/* ==========================================================================
   Retgt theme extensions — built on the original retgt.com stylesheet (style.min.css).
   Palette: primary #008aff, dark #171347, text #718096, light #eaecf3, success #5cc9a7.
   ========================================================================== */

:root {
	--rt-primary: #008aff;
	--rt-primary-2: #003eff;
	--rt-dark: #171347;
	--rt-text: #718096;
	--rt-light: #eaecf3;
	--rt-soft: #f2f8ff;
	--rt-radius: .75rem;
	--rt-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }
.min-vh-75 { min-height: 75vh; }
.border-light-10 { border-color: rgba(255,255,255,.1) !important; }
.icon-shape.icon-md { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }
.btn-linkedin { color: #fff; background-color: #0a66c2; border-color: #0a66c2; }
.btn-linkedin:hover { color: #fff; background-color: #084f96; }
@media (max-width: 575.98px) { .btn-block-sm { display: block; width: 100%; } }

/* ---------- Logo ---------- */
.retgt-logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--rt-dark); line-height: 1; }
.retgt-logo__mark { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; margin-right: .5rem; border-radius: .6rem; color: #fff; font-size: .95rem; background: linear-gradient(50deg, var(--rt-primary), var(--rt-primary-2)); box-shadow: 0 .4rem 1rem rgba(0,138,255,.35); transition: transform .4s var(--rt-ease); }
.navbar-brand:hover .retgt-logo__mark { transform: rotate(-12deg) scale(1.08); }
.retgt-logo--light { color: #fff; }
.retgt-custom-logo { max-height: 44px; width: auto; }

/* ---------- Header ---------- */
#header-main { position: sticky; top: 0; z-index: 1030; }
.admin-bar #header-main { top: 32px; }
@media (max-width: 782px) { .admin-bar #header-main { top: 46px; } }
#navbar-main { transition: box-shadow .3s ease, padding .3s ease; padding-top: 1rem; padding-bottom: 1rem; }
#navbar-main .container::after { display: none; }
.is-scrolled #navbar-main { box-shadow: 0 .5rem 1.5rem rgba(23,19,71,.08); padding-top: .55rem; padding-bottom: .55rem; }
.navbar-main .nav-link { font-weight: 600; color: #4a5568; }
.navbar-main .nav-item.active > .nav-link, .navbar-main .nav-link:hover { color: var(--rt-primary); }
.navbar-main .dropdown-toggle::after { border: 0; content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; vertical-align: 0; margin-left: .35rem; font-size: .75em; }
.nav-cart { position: relative; color: #4a5568; padding: .5rem; }
.nav-cart .badge { position: absolute; top: -2px; right: -6px; font-size: .6rem; }
@media (max-width: 991.98px) {
	.navbar-main .navbar-collapse { margin-top: .75rem; padding: .75rem 0; border-top: 1px solid var(--rt-light); max-height: calc(100vh - 80px); overflow-y: auto; }
	.navbar-main .dropdown-animate > .dropdown-menu { position: static; opacity: 1; pointer-events: auto; transform: none !important; display: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; margin: 0; background: transparent; }
	.navbar-main .dropdown.show > .dropdown-menu { display: block; }
	.navbar-main .dropdown-item { padding: .4rem 0; }
}

/* ---------- Hero ---------- */
.hero, .page-hero { isolation: isolate; }
.display-hello { font-size: 1.5rem; letter-spacing: .02em; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; animation: blob 18s ease-in-out infinite alternate; }
.hero-blob--1 { width: 460px; height: 460px; top: -140px; right: -120px; background: radial-gradient(circle at 30% 30%, rgba(0,138,255,.35), rgba(80,181,255,.08)); }
.hero-blob--2 { width: 380px; height: 380px; bottom: -120px; left: -140px; background: radial-gradient(circle at 60% 40%, rgba(92,201,167,.3), rgba(92,201,167,.05)); animation-duration: 22s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 20px) scale(1.08); } 100% { transform: translate(20px, -20px) scale(.95); } }
.typed { border-right: 3px solid var(--rt-primary); padding-right: 3px; white-space: nowrap; animation: caret 1s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-checks .list-inline-item { margin-right: 1.25rem; font-weight: 600; color: #4a5568; }
.hero-visual { position: relative; }
.hero-pill { position: absolute; background: #fff; border-radius: 50rem; padding: .55rem 1rem; font-size: .85rem; font-weight: 700; color: var(--rt-dark); display: inline-flex; align-items: center; gap: .5rem; animation: floaty 5s ease-in-out infinite; }
.hero-pill i { color: var(--rt-primary); }
.hero-pill--1 { top: 8%; left: -4%; }
.hero-pill--2 { bottom: 10%; right: -2%; animation-delay: -2.5s; }
.hero-pill--2 i { color: #5cc9a7; }
@media (max-width: 767.98px) { .hero-pill { display: none; } }
.float-slow { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.page-hero__ill { max-height: 320px; width: auto; display: block; margin-left: auto; }
.demo-overlap { margin-top: -1rem; }
@media (min-width: 992px) { .demo-overlap { margin-top: -3.5rem; position: relative; z-index: 2; } }

/* ---------- Link demo ---------- */
.link-demo .input-group { flex-wrap: wrap; }
.link-demo .input-group > .form-control { min-width: 0; }
.link-demo .is-invalid ~ .invalid-feedback, .link-demo .invalid-feedback.d-block { display: block; }
.pixel-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pixel-chip { margin: 0; cursor: pointer; }
.pixel-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pixel-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 50rem; border: 1px solid var(--rt-light); font-weight: 600; font-size: .875rem; color: #4a5568; background: #fff; transition: all .2s ease; user-select: none; }
.pixel-chip input:checked + span { background: var(--rt-primary); border-color: var(--rt-primary); color: #fff; box-shadow: 0 .35rem .9rem rgba(0,138,255,.3); }
.pixel-chip input:focus-visible + span { outline: 2px solid var(--rt-primary); outline-offset: 2px; }
.link-demo__result:not([hidden]) { animation: pop .45s var(--rt-ease); }
.link-demo__flow li { opacity: 0; animation: fadeInUp .4s ease forwards; margin-bottom: .2rem; }
.link-demo__short { word-break: break-all; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; display: flex; overflow: hidden; user-select: none; gap: 2rem; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { flex-shrink: 0; display: flex; gap: 2rem; min-width: 100%; justify-content: space-around; list-style: none; margin: 0; padding: .5rem 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: #4a5568; white-space: nowrap; font-size: 1rem; }
.marquee__item i { font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(calc(-100% - 2rem)); } }

/* ---------- Cards ---------- */
.stat-card .display-4 { font-size: 2.5rem; }
.step { position: relative; overflow: hidden; }
.step__num { position: absolute; top: -.6rem; right: .6rem; font-size: 5rem; font-weight: 800; color: rgba(0,138,255,.07); line-height: 1; }
.integration-card .integration-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; font-size: 1.5rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); transition: transform .3s var(--rt-ease); }
.integration-card:hover .integration-icon { transform: scale(1.12) rotate(-6deg); }
.service-card__media { display: block; background: var(--rt-soft); border-radius: var(--rt-radius) var(--rt-radius) 0 0; padding: 1.5rem 2rem 0; height: 190px; overflow: hidden; text-align: center; }
.service-card__media img { height: 165px; width: auto; transition: transform .5s var(--rt-ease); }
.service-card:hover .service-card__media img { transform: translateY(-6px) scale(1.04); }
.post-card__media { display: block; overflow: hidden; border-radius: var(--rt-radius) var(--rt-radius) 0 0; aspect-ratio: 1200 / 630; background: var(--rt-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rt-ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.feature-ill { max-height: 360px; display: block; margin: 0 auto; }

/* ---------- Pricing ---------- */
.pricing-toggle { display: inline-flex; padding: .3rem; border-radius: 50rem; background: #fff; box-shadow: 0 .5rem 1.5rem rgba(23,19,71,.08); }
.pricing-toggle__btn { border: 0; background: transparent; border-radius: 50rem; padding: .55rem 1.3rem; font-weight: 700; color: #4a5568; transition: all .25s ease; cursor: pointer; }
.pricing-toggle__btn.active { background: var(--rt-primary); color: #fff; box-shadow: 0 .35rem .9rem rgba(0,138,255,.35); }
.pricing-toggle__btn.active .badge { background: #fff; color: var(--rt-primary); }
.card-pricing { position: relative; transition: transform .35s var(--rt-ease), box-shadow .35s; }
.card-pricing.popular { background: linear-gradient(160deg, var(--rt-primary), var(--rt-primary-2)) !important; }
@media (min-width: 992px) { .card-pricing.popular { transform: scale(1.04); } }
.pricing-badge { position: absolute; top: 1rem; right: 1rem; background: #ffbe3d; color: var(--rt-dark); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .7rem; border-radius: 50rem; }
.pricing-list li { padding: .35rem 0; display: flex; align-items: baseline; }
.price { display: inline-block; transition: transform .3s var(--rt-ease), opacity .3s; }
.price.is-switching { transform: translateY(-8px); opacity: 0; }

/* ---------- ROI ---------- */
.roi-line { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.roi-line strong { font-size: 1.35rem; color: #fff; }
.roi-line--big { border-bottom: 0; }
.roi-line--big strong { font-size: 2.2rem; }
.custom-range::-webkit-slider-thumb { background: var(--rt-primary); }
.custom-range::-moz-range-thumb { background: var(--rt-primary); }

/* ---------- FAQ ---------- */
.faq-toggle { position: relative; padding-right: 2.5rem !important; white-space: normal; text-decoration: none !important; }
.faq-toggle .faq-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(45deg); color: var(--rt-primary); transition: transform .3s var(--rt-ease); }
.faq-toggle.collapsed .faq-icon { transform: translateY(-50%) rotate(0); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -100px; top: -160px; background: rgba(255,255,255,.08); }
.cta-band::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; left: -60px; bottom: -120px; background: rgba(255,255,255,.06); }
.cta-band .row { position: relative; z-index: 1; }

/* ---------- Entry content (articles, policies, pages) ---------- */
.entry-content { color: #4a5568; font-size: 1.0625rem; line-height: 1.8; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { font-size: 1.75rem; font-weight: 800; color: var(--rt-dark); margin: 2.5rem 0 1rem; scroll-margin-top: 100px; }
.entry-content h3 { font-size: 1.3rem; font-weight: 700; color: var(--rt-dark); margin: 2rem 0 .75rem; scroll-margin-top: 100px; }
.entry-content h4 { font-size: 1.1rem; font-weight: 700; color: var(--rt-dark); margin: 1.5rem 0 .5rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .45rem; }
.entry-content ul li::marker { color: var(--rt-primary); }
.entry-content a:not(.btn):not(.badge) { text-decoration: underline; text-decoration-color: rgba(0,138,255,.35); text-underline-offset: 3px; }
.entry-content a:not(.btn):not(.badge):hover { text-decoration-color: var(--rt-primary); }
.entry-content blockquote, .entry-content .wp-block-quote { border-left: 4px solid var(--rt-primary); background: var(--rt-soft); padding: 1.25rem 1.5rem; border-radius: 0 var(--rt-radius) var(--rt-radius) 0; margin: 2rem 0; font-size: 1.1rem; color: var(--rt-dark); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--rt-light); padding: .7rem .9rem; vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--rt-soft); color: var(--rt-dark); font-weight: 700; }
.entry-content .wp-block-table { overflow-x: auto; margin: 0 0 1.5rem; }
.entry-content code { color: #d6336c; background: #f8f9fc; padding: .1rem .35rem; border-radius: .3rem; font-size: .9em; }
.entry-content pre { background: var(--rt-dark); color: #e2e8f0; padding: 1.25rem; border-radius: var(--rt-radius); }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content .callout { background: var(--rt-soft); border: 1px solid rgba(0,138,255,.15); border-radius: var(--rt-radius); padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.entry-content .callout strong:first-child { color: var(--rt-primary); }
.entry-content .key-takeaways { background: #fff; border: 1px solid var(--rt-light); border-left: 4px solid #5cc9a7; border-radius: var(--rt-radius); padding: 1.25rem 1.5rem; margin: 0 0 2rem; box-shadow: 0 .5rem 1.25rem rgba(23,19,71,.04); }
.entry-content .key-takeaways h2 { margin-top: 0; font-size: 1.15rem; }
.entry-content .key-takeaways ul { margin-bottom: 0; }
.article-body > p:first-of-type::first-letter { float: left; font-size: 3.4rem; line-height: .9; font-weight: 800; color: var(--rt-primary); margin: .35rem .5rem 0 0; }
.legal h2 { font-size: 1.45rem; padding-top: .5rem; border-top: 1px solid var(--rt-light); margin-top: 2.25rem; }
.legal h2:first-child { border-top: 0; margin-top: 0; }
.home-intro h2 { margin-top: 0; }
.entry-content-full > .wp-block-html { margin: 0; }

/* ---------- TOC ---------- */
.toc { top: 100px; }
.toc__list { counter-reset: toc; border-left: 2px solid var(--rt-light); }
.toc__list li { margin: 0; }
.toc__list a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--rt-text); font-size: .875rem; line-height: 1.4; transition: all .2s; }
.toc__list a:hover { color: var(--rt-primary); }
.toc__list a.active { color: var(--rt-primary); border-left-color: var(--rt-primary); font-weight: 700; }
.toc__list .toc-h3 a { padding-left: 1.75rem; font-size: .8rem; }
.article-aside { top: 100px; }
.order-card { top: 100px; z-index: 5; }

/* ---------- Reading progress / back to top ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1040; background: transparent; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rt-primary), #5cc9a7); transition: width .1s linear; }
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--rt-primary); color: #fff; box-shadow: 0 .5rem 1.25rem rgba(0,138,255,.4); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s var(--rt-ease); z-index: 1020; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: #0074d9; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(23,19,71,.92); backdrop-filter: blur(6px); display: flex; align-items: center; animation: fadeIn .25s ease; }
.search-overlay[hidden] { display: none; }
.search-overlay__close { position: absolute; top: 1.5rem; right: 1.5rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.25rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Forms ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-control, .contact-form .custom-select { border-radius: .6rem; }
.contact-form .form-control:focus, .contact-form .custom-select:focus { box-shadow: 0 0 0 .2rem rgba(0,138,255,.15); }
.was-validated .form-control:valid, .form-control.is-valid { background-image: none; }
.newsletter-form .form-control-flush { background: rgba(255,255,255,.08); border-radius: .5rem 0 0 .5rem; padding-left: 1rem; color: #fff; }
.newsletter-form .form-control-flush::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form .invalid-feedback { order: 5; }
.contact-details li { display: flex; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-details .icon-shape { flex-shrink: 0; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn-inner--text::after { content: '…'; }

/* ---------- Thank you ---------- */
.thankyou-check { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; background: linear-gradient(50deg, #5cc9a7, #2fb68d); box-shadow: 0 1rem 2rem rgba(92,201,167,.45); animation: popIn .6s var(--rt-ease) both; }
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- Footer ---------- */
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.65); transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 3px; }
.footer .copyright, .footer .copyright a { color: rgba(255,255,255,.6); }

/* ---------- Breadcrumbs, pagination, misc ---------- */
.retgt-breadcrumbs .breadcrumb { background: transparent; font-size: .85rem; }
.retgt-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: '›'; color: #a0aec0; }
.retgt-breadcrumbs a { color: var(--rt-text); }
.retgt-breadcrumbs a:hover { color: var(--rt-primary); }
.retgt-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.retgt-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--rt-light); font-weight: 700; color: #4a5568; }
.retgt-pagination .page-numbers.current, .retgt-pagination .page-numbers:hover { background: var(--rt-primary); border-color: var(--rt-primary); color: #fff; }
.author-box__avatar { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; background: linear-gradient(50deg, var(--rt-primary), var(--rt-primary-2)); }
.post-nav a { display: block; color: var(--rt-dark); text-decoration: none !important; }
.post-nav a:hover span { color: var(--rt-primary); }
.html-sitemap ul { padding-left: 1.1rem; }
.html-sitemap li { margin-bottom: .35rem; }
.glossary-list dt { color: var(--rt-dark); font-size: 1.1rem; margin-top: 1.5rem; }
.glossary-list dd { margin-left: 0; }
.team-value { border-left: 3px solid var(--rt-primary); padding-left: 1rem; }
.timeline-simple { border-left: 2px solid var(--rt-light); padding-left: 1.5rem; }
.timeline-simple li { position: relative; margin-bottom: 1.5rem; list-style: none; }
.timeline-simple li::before { content: ''; position: absolute; left: calc(-1.5rem - 7px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--rt-primary); box-shadow: 0 0 0 4px rgba(0,138,255,.15); }
.comparison-table th, .comparison-table td { text-align: center; }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }

/* ---------- WooCommerce ---------- */
.retgt-woo .woocommerce-message, .retgt-woo .woocommerce-info { border-top-color: var(--rt-primary); }
.retgt-woo .button, .woocommerce .button, .woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--rt-primary) !important; color: #fff !important; border-radius: .5rem !important; font-weight: 700 !important; }
.retgt-woo .price { color: var(--rt-primary) !important; font-weight: 800; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	[data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Quick accordion pseudo-icon replaced by our own icon. */
.faq-accordion .card-header::after { content: none !important; }
.faq-accordion > .card { border-radius: .75rem !important; overflow: hidden; }
.faq-accordion > .card:not(:last-of-type) { border-bottom: 0; }
