/* =========================================================
   DirectITR — Stylesheet
   Design tokens: deep navy + emerald (growth) + warm cream
   Display face: Fraunces (serif)  |  Body/UI: Inter
   Data/figures: JetBrains Mono
========================================================= */

:root {
    /* Colour palette */
    --navy-deep: #0B2540;
    --navy-mid: #14385C;
    --navy-soft: #1F4A73;
    --emerald: #12A875;
    --emerald-dark: #0D7A57;
    --cream: #F7F4ED;
    --cream-dim: #EFEAE0;
    --ink: #1B2430;
    --slate: #5C6B7A;
    --gold: #D9A648;
    --white: #FFFFFF;
    --danger: #D14B4B;

    /* Typography */
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    /* Layout */
    --container-w: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --header-h: 76px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(11, 37, 64, 0.06);
    --shadow-md: 0 12px 32px rgba(11, 37, 64, 0.12);
    --shadow-lg: 0 24px 60px rgba(11, 37, 64, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   RESET & BASE
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--navy-deep);
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--emerald);
    color: var(--white);
    padding: 10px 16px;
    z-index: 1000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Visible focus state for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
}

/* =========================================================
   GLASSMORPHISM UTILITY
========================================================= */
.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
}

/* Glass on dark hero background needs lighter tint */
.hero .glass {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--emerald);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(18, 168, 117, 0.35);
}

.btn-primary:hover {
    background: var(--emerald-dark);
    box-shadow: 0 14px 30px rgba(18, 168, 117, 0.4);
}

.btn-secondary {
    background: var(--navy-deep);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--navy-mid);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-outline {
    background: transparent;
    color: var(--navy-deep);
    border: 1.5px solid var(--navy-deep);
}

.btn-outline:hover {
    background: var(--navy-deep);
    color: var(--white);
}

.btn-login {
    background: var(--navy-deep);
    color: var(--white);
    padding: 10px 22px;
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--emerald);
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(247, 244, 237, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(11, 37, 64, 0.06);
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
    background: rgb(247 244 237 / 63%);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.logo-text em {
    font-style: normal;
    color: var(--emerald);
}

.logo-mark {
    display: flex;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy-mid);
    position: relative;
    padding: 6px 2px;
    transition: color 0.2s var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: width 0.25s var(--ease);
}

.nav-link:hover {
    color: var(--navy-deep);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 8px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy-deep);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    position: relative;
    background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--navy-soft) 100%);
    color: var(--white);
    overflow: hidden;
    padding: 96px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.hero-glow-1 {
    width: 480px;
    height: 480px;
    background: var(--emerald);
    top: -160px;
    right: -120px;
}

.hero-glow-2 {
    width: 360px;
    height: 360px;
    background: var(--gold);
    bottom: -140px;
    left: -100px;
    opacity: 0.18;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald);
    margin: 0 0 14px;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Hero visual: ledger card (signature element) --- */
.hero-visual {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 420px;
}

.ledger-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--white);
}

.ledger-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.ledger-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.ledger-dot:first-child {
    background: var(--gold);
}

.ledger-dot:nth-child(2) {
    background: var(--emerald);
}

.ledger-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
}

.ledger-rows li {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.10);
}

.ledger-rows li:last-child {
    border-bottom: none;
}

.ledger-total {
    font-weight: 700;
    color: var(--white) !important;
    padding-top: 14px !important;
    font-size: 1.02rem;
}

.mono {
    font-family: var(--font-mono);
}

.ledger-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: var(--emerald);
    font-weight: 600;
}

.status-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 0 rgba(18, 168, 117, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 168, 117, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(18, 168, 117, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(18, 168, 117, 0);
    }
}

.float-card {
    position: absolute;
    bottom: -28px;
    left: -28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--white);
    max-width: 250px;
    animation: floatUpDown 5s ease-in-out infinite;
}

.float-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.float-card strong {
    display: block;
    font-size: 0.88rem;
}

.float-card small {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =========================================================
   TRUST STRIP
========================================================= */
.trust-strip {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.65);
    padding: 14px 0;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.dot-sep {
    color: var(--emerald);
}

/* =========================================================
   SECTIONS — GENERIC
========================================================= */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--cream-dim);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 600;
    margin: 8px 0 16px;
}

.section-sub {
    color: var(--slate);
    font-size: 1rem;
}

.grid {
    display: grid;
    gap: 28px;
}

/* =========================================================
   SCROLL-REVEAL ANIMATION
========================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children of a grid when revealed */
.services-grid .fade-up:nth-child(2) {
    transition-delay: 0.05s;
}

.services-grid .fade-up:nth-child(3) {
    transition-delay: 0.1s;
}

.services-grid .fade-up:nth-child(4) {
    transition-delay: 0.15s;
}

.services-grid .fade-up:nth-child(5) {
    transition-delay: 0.2s;
}

.services-grid .fade-up:nth-child(6) {
    transition-delay: 0.25s;
}

.why-grid .fade-up:nth-child(2) {
    transition-delay: 0.05s;
}

.why-grid .fade-up:nth-child(3) {
    transition-delay: 0.1s;
}

.why-grid .fade-up:nth-child(4) {
    transition-delay: 0.15s;
}

.pricing-grid .fade-up:nth-child(2) {
    transition-delay: 0.08s;
}

.pricing-grid .fade-up:nth-child(3) {
    transition-delay: 0.16s;
}

/* =========================================================
   SERVICES
========================================================= */
.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid rgba(11, 37, 64, 0.06);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(18, 168, 117, 0.25);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(18, 168, 117, 0.10);
    color: var(--emerald-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--emerald-dark);
    transition: gap 0.2s var(--ease);
}

.card-link:hover {
    color: var(--emerald);
}

/* =========================================================
   WHY CHOOSE
========================================================= */
.why-grid {
    grid-template-columns: repeat(4, 1fr);
}

.why-card {
    padding: 28px 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(11, 37, 64, 0.06);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.why-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--emerald);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.why-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.why-card p {
    color: var(--slate);
    font-size: 0.92rem;
}

/* =========================================================
   PRICING
========================================================= */
.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid rgba(11, 37, 64, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.price-card h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.price-tagline {
    color: var(--slate);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 24px;
}

.currency {
    font-size: 1.4rem;
    vertical-align: top;
    margin-right: 2px;
}

.price-period {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate);
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    flex-grow: 1;
}

.price-features li {
    font-size: 0.92rem;
    color: var(--ink);
    padding-left: 26px;
    position: relative;
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--emerald);
    font-weight: 700;
}

.price-card .btn {
    width: 100%;
}

.price-card-featured {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: var(--white);
    transform: scale(1.03);
}

.price-card-featured h3,
.price-card-featured .price-amount {
    color: var(--white);
}

.price-card-featured .price-tagline,
.price-card-featured .price-period {
    color: rgba(255, 255, 255, 0.65);
}

.price-card-featured .price-features li {
    color: rgba(255, 255, 255, 0.9);
}

.price-card-featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emerald);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 999px;
}

/* =========================================================
   TAX CALCULATOR
========================================================= */
.calculator-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 920px;
    margin: 0 auto;
}

.calculator-card,
.calc-result {
    border-radius: var(--radius-lg);
    padding: 36px;
}

.calculator-card {
    background: rgb(239 234 224 / 59%);
    border: 1px solid rgb(11 37 64 / 13%);
}

.calc-result {
    background: var(--navy-deep);
    color: var(--white);
    border: 1px solid var(--navy-deep);
}

.calc-field {
    margin-bottom: 22px;
}

.calc-field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--navy-deep);
}

.calc-field label small {
    font-weight: 400;
    color: var(--slate);
}

.calc-field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(11, 37, 64, 0.15);
    background: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.calc-field input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(18, 168, 117, 0.15);
}

.calc-btn {
    width: 100%;
    margin-top: 8px;
}

.calc-result h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 0.94rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
}

.result-total {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--emerald);
    padding-top: 16px;
}

.calc-note {
    margin-top: 18px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   HOW IT WORKS
========================================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step-card {
    padding: 28px 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(11, 37, 64, 0.06);
    position: relative;
}

.step-card::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -12px;
    width: 24px;
    height: 1px;
    background: rgba(11, 37, 64, 0.15);
    display: none;
}


.step-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--slate);
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonial-wrap {
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    /* overflow: hidden; */
    border-radius: var(--radius-lg);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
    flex: 0 0 calc(100% - 20px);
    min-width: calc(100% - 20px);
    background: var(--white);
    border: 1px solid rgba(11, 37, 64, 0.06);
    border-radius: var(--radius-lg);
    padding: 44px;
    margin: 0 10px;
    transition: transform 0.5s var(--ease);
}

.testimonial-card blockquote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--navy-deep);
    margin: 0 0 28px;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-card figcaption strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy-deep);
}

.testimonial-card figcaption small {
    font-size: 0.82rem;
    color: var(--slate);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.testimonial-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(11, 37, 64, 0.1);
    font-size: 1.1rem;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
    font-size: 23px;
}

.testimonial-btn:hover {
    background: var(--emerald);
    color: var(--white);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(11, 37, 64, 0.18);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
    padding: 0px;
}

.testimonial-dots button.active {
    background: var(--emerald);
    transform: scale(1.2);
}

/* =========================================================
   FAQ ACCORDION
========================================================= */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(11, 37, 64, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-deep);
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--emerald);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--slate);
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* =========================================================
   CONTACT
========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info .section-sub {
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-details li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(18, 168, 117, 0.1);
    color: var(--emerald-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-details strong {
    display: block;
    font-size: 0.92rem;
    color: var(--navy-deep);
    margin-bottom: 2px;
}

.contact-details span {
    font-size: 0.9rem;
    color: var(--slate);
}

.contact-form {
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(11, 37, 64, 0.08);
    background: rgba(255, 255, 255, 0.65);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--navy-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(11, 37, 64, 0.15);
    background: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(18, 168, 117, 0.15);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 4px;
}

.field-error {
    display: block;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 1em;
}

.form-field input.invalid,
.form-field select.invalid,
.calc-field input.invalid {
    border-color: var(--danger);
}

.form-submit {
    width: 100%;
    margin-top: 4px;
}

.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(18, 168, 117, 0.12);
    color: var(--emerald-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-success.show {
    display: block;
}

/* =========================================================
   NEWSLETTER
========================================================= */
.newsletter {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
    color: var(--white);
    padding: 64px 0;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.newsletter-inner h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 10px;
}

.newsletter-inner>div>p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: var(--emerald);
    background: rgba(255, 255, 255, 0.14);
}

.newsletter-form .field-error {
    flex-basis: 100%;
}

.newsletter .form-success {
    background: rgba(18, 168, 117, 0.18);
    color: var(--emerald);
    margin-top: 14px;
    flex-basis: 100%;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-footer {
    margin-bottom: 16px;
}

.logo-text-light {
    color: var(--white);
}

.logo-text-light em {
    color: var(--emerald);
    font-style: normal;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 320px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: 18px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--emerald);
}

.footer-contact li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.social-heading {
    margin-top: 24px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.social-link:hover {
    background: var(--emerald);
    color: var(--navy-deep);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
    color: var(--emerald);
}

/* =========================================================
   BACK TO TOP
========================================================= */
.back-to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
    z-index: 800;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--emerald-dark);
}





/* =========================================================
   FILE ITR MODAL
========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(11, 37, 64, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
    overflow: auto;
    flex-wrap: wrap;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    width: 100%;
    max-width: 860px;
    min-height: 550px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.4s var(--ease);
}

.modal-overlay.open .modal-inner {
    transform: translateY(0) scale(1);
}

/* Close */
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

/* LEFT */
.modal-left {
    background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    color: var(--white);
    overflow-y: auto;
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--white);
}

.modal-brand em {
    font-style: normal;
    color: var(--emerald);
}

.modal-left h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 12px;
}

.modal-left>p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.93rem;
    margin-bottom: 28px;
}

.modal-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.modal-trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.modal-trust-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(18, 168, 117, 0.22);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.modal-stat-row {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: auto;
}

.modal-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-stat:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 16px;
}

.modal-stat:not(:first-child):not(:last-child) {
    padding-left: 16px;
}

.modal-stat-num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
}

.modal-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* RIGHT */
.modal-right {
    background: var(--cream);
    padding: 44px 36px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-step-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.modal-step-sub {
    color: var(--slate);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modal-step-panel.hidden {
    display: none;
}

/* Fields */
.modal-field {
    margin-bottom: 18px;
}

.modal-field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

.modal-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(11, 37, 64, 0.15);
    background: var(--white);
    font-size: 0.95rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    /* Remove number input arrows */
    -moz-appearance: textfield;
}

.modal-field input::-webkit-outer-spin-button,
.modal-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-field input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(18, 168, 117, 0.15);
    outline: none;
}

.modal-field input.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(209, 75, 75, 0.1);
}

/* Phone prefix */
.phone-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 14px;
    font-size: 0.93rem;
    color: var(--slate);
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.phone-input-wrap input {
    padding-left: 46px;
}

/* Submit button */
.modal-cta {
    width: 100%;
    margin-top: 8px;
    font-size: 1rem;
    padding: 14px;
    position: relative;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading.hidden,
.btn-label.hidden {
    display: none;
}

.spin-icon {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success panel */
.modal-success-panel {
    flex: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 20px 0;
}

.modal-success-panel:not(.hidden) {
    display: flex;
}

.modal-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(18, 168, 117, 0.12);
    color: var(--emerald);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.4s var(--ease);
}

@keyframes popIn {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-success-panel h3 {
    font-size: 1.4rem;
    color: var(--navy-deep);
}

.modal-success-panel p {
    color: var(--slate);
    font-size: 0.95rem;
    max-width: 300px;
}

.modal-success-panel .btn {
    margin-top: 8px;
    padding: 12px 36px;
}

/* Toast */
.itr-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy-deep);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 1100;
}

.itr-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}





/* =========================================================
   CHATBOT
========================================================= */
.cb-launcher {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--emerald);
    /* background: var(--navy-deep); */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(11, 37, 64, 0.35);
    z-index: 950;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
    border: none;
    cursor: pointer;
}

.cb-launcher:hover {
    background: var(--emerald-dark);
    transform: scale(1.08);
}

.cb-launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: popIn 0.3s var(--ease);
}

.cb-widget {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 340px;
    max-height: 480px;
    /* background: var(--white); */
    background: linear-gradient(135deg, var(--navy-deep), #1f4a73);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(11, 37, 64, 0.22);
    display: flex;
    flex-direction: column;
    z-index: 950;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cb-widget.cb-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.cb-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cb-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-header-info strong {
    display: block;
    color: var(--white);
    font-size: 0.92rem;
}

.cb-header-info span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cb-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Messages */
.cb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--cream);
    scroll-behavior: smooth;
}

.cb-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: msgIn 0.25s var(--ease);
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cb-msg-bot {
    background: var(--white);
    color: var(--ink);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
}

.cb-msg-user {
    background: var(--navy-deep);
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.cb-msg-error {
    background: rgba(209, 75, 75, 0.1);
    color: var(--danger);
    border-radius: 10px;
    font-size: 0.8rem;
    align-self: center;
    padding: 8px 12px;
    animation: msgIn 0.2s var(--ease);
}

/* Typing indicator */
.cb-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    min-width: 56px;
}

.cb-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--slate);
    animation: typingBounce 1.2s infinite ease-in-out;
}

.cb-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.cb-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Input area */
.cb-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(11, 37, 64, 0.08);
    background: var(--white);
    flex-shrink: 0;
}

.cb-input {
    flex: 1;
    border: 1.5px solid rgba(11, 37, 64, 0.14);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.88rem;
    background: var(--cream);
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    -moz-appearance: textfield;
}

.cb-input::-webkit-outer-spin-button,
.cb-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.cb-input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(18, 168, 117, 0.12);
}

.cb-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cb-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
    cursor: pointer;
    border: none;
}

.cb-send:hover {
    background: var(--emerald-dark);
    transform: scale(1.08);
}

.cb-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.cb-restart-btn {
    width: 100%;
    padding: 11px;
    border-radius: 999px;
    background: var(--emerald);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s var(--ease);
}

.cb-restart-btn:hover {
    background: var(--emerald-dark);
}



.cb-form-area {
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(11, 37, 64, 0.08);
    background: var(--white);
    flex-shrink: 0;
}

.cb-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-form-field input {
    width: 100%;
    border: 1.5px solid rgba(11, 37, 64, 0.14);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 0.88rem;
    background: var(--cream);
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    -moz-appearance: textfield;
}

.cb-form-field input::-webkit-outer-spin-button,
.cb-form-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.cb-form-field input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(18, 168, 117, 0.12);
}

.cb-form-field input.invalid {
    border-color: var(--danger);
}

.cb-field-error {
    display: block;
    color: var(--danger);
    font-size: 0.76rem;
    margin-top: 4px;
    min-height: 1em;
}

.cb-submit-btn {
    width: 100%;
    padding: 11px;
    border-radius: 999px;
    background: var(--emerald);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s var(--ease);
    margin-top: 4px;
}

.cb-submit-btn:hover {
    background: var(--emerald-dark);
}

.cb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cb-btn-loading.hidden,
.cb-btn-label.hidden {
    display: none;
}



/* =========================================================
   CONTACT — QUICK ACTIONS (WhatsApp / Call)
========================================================= */
.contact-quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-quick-actions .btn {
    flex: 1;
    min-width: 150px;
    padding: 10px 18px;
    font-size: 0.85rem;
    gap: 8px;
}

.contact-quick-actions .btn i {
    font-size: 1.05rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1DA851;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
}

.btn-call {
    background: var(--navy-deep);
    color: var(--white);
}

.btn-call:hover {
    background: var(--navy-mid);
}

@media (max-width: 400px) {
    .contact-quick-actions .btn {
        flex: 1 1 100%;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 460px;
        margin: 0 auto;
    }

    .price-card-featured {
        transform: none;
    }

    .price-card-featured:hover {
        transform: translateY(-6px);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 460px;
        margin: 0 auto;
        margin-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        justify-content: center;
    }

    .newsletter-inner>div>p {
        margin: 0 auto;
    }

    .contact-quick-actions {
        max-width: 350px;
    }
}

@media (min-width: 1000px) {
    .step-card:not(:last-child)::after {
        display: block;
    }
}

@media (max-width: 860px) {
    .primary-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid rgba(11, 37, 64, 0.08);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
    }

    .primary-nav.open {
        max-height: 420px;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 4px;
    }

    .primary-nav .nav-link {
        display: block;
        padding: 12px 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .btn-login {
        padding: 7px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .services-grid,
    .why-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrap {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .float-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }

    @keyframes floatUpDown {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        50% {
            transform: translateX(-50%) translateY(-10px);
        }
    }

    .hero {
        padding: 64px 0 60px;
    }

    .testimonial-card {
        padding: 28px;
    }

    .testimonial-card blockquote {
        font-size: 1.05rem;
    }
}

/* =========================================================
   MODAL RESPONSIVE
========================================================= */
@media (max-width: 720px) {
    .modal-inner {
        grid-template-columns: 1fr;
        max-height: max-content;
        min-height: 100%;
        /* overflow-y: auto; */
    }

    .modal-left {
        padding: 32px 24px 28px;
    }

    .modal-stat-row {
        margin-top: 24px;
    }

    .modal-right {
        padding: 28px 24px;
    }

    .modal-close {
        background: rgba(11, 37, 64, 0.1);
        color: var(--white);
    }
}


/* Mobile */
@media (max-width: 480px) {
    .cb-widget {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 88px;
    }

    .cb-launcher {
        bottom: 20px;
        right: 20px;
    }

    .float-card {
        min-width: 80%;
        bottom: -52px;
    }
}