/* =============================================================================
   HOMEPAGE STYLES — Digital Marketing 2026
   All values sourced from tokens.css. Sections in spec order.
   ============================================================================= */

/* =============================================================================
   BASE RESET & BODY
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--lh-body);
    color: var(--color-body);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* style.css sets .site-main { padding: 4rem 0 } — zero both ends so dark sections butt the header and footer */
.site-main { padding-top: 0; padding-bottom: 0; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }


/* =============================================================================
   LAYOUT — CONTAINER + SECTION
   ============================================================================= */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--col-gap);
}

/* Full-width child (use when a child needs 12 cols) */
.col-full    { grid-column: 1 / -1; }
.col-center  { grid-column: 3 / 11; } /* cols 3-10, centered 8-col block */
.col-wide    { grid-column: 2 / 12; } /* cols 2-11, 10-col */
.col-left6   { grid-column: 1 / 7;  }
.col-right6  { grid-column: 7 / 13; }
.col-left7   { grid-column: 1 / 8;  }
.col-right5  { grid-column: 8 / 13; }

.section {
    padding: var(--section-py) 0;
    background: var(--color-bg);
    background-image: radial-gradient(rgba(10, 10, 10, 0.08) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}
.section--soft {
    background: var(--color-bg);
    background-image: radial-gradient(rgba(10, 10, 10, 0.08) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}
.section--dark {
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

/* Lime glow blob — top-right, matches hero/final-CTA */
.section--dark::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-full);
    background: rgba(var(--color-primary-rgb), 0.15);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* White dot grid — matches hero/final-CTA */
.section--dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='white' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Lift content above pseudo-elements */
.section--dark > .container { position: relative; z-index: 1; }

/* Case studies panel — full-width band with rounded top and bottom */
#work {
    border-radius: 32px;
}


/* =============================================================================
   REUSABLE COMPONENTS
   ============================================================================= */

/* Eyebrow */
.eyebrow {
    display: inline-block;
    font-size: var(--text-eyebrow);
    font-weight: 600;
    line-height: 1;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

/* Section header block — centered, cols 3-10 */
.section-header {
    grid-column: 3 / 11;
    text-align: center;
    margin-bottom: var(--space-8);
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--lh-h1);
    letter-spacing: var(--ls-h1);
    color: var(--color-ink);
    margin-top: var(--space-3);
}
.section-header .lead {
    font-size: var(--text-lead);
    line-height: var(--lh-lead);
    color: var(--color-body);
    margin-top: var(--space-4);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Larger display-size headings for Process and Services */
#our-approach .section-header h2,
#services .section-header h2 {
    font-size: var(--text-display);
    line-height: var(--lh-display);
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 56px;
    padding: 0 28px;
    background: var(--color-accent);
    color: var(--color-on-primary);
    font-size: var(--text-button);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-primary);
    cursor: pointer;
    transition: all var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(var(--color-primary-rgb), 0.32);
    color: var(--color-on-primary);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 56px;
    padding: 0 28px;
    background: transparent;
    color: var(--color-ink);
    font-size: var(--text-button);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-line);
    cursor: pointer;
    transition: all var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}
.btn-secondary:hover {
    border-color: var(--color-ink);
    background: var(--color-bg-soft);
    color: var(--color-ink);
}

/* Ghost / text link CTA */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-accent);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--ease-out);
}
.btn-ghost .arrow { display: inline-block; transition: transform var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-ghost:hover { text-decoration: underline; }

/* Card */
.card {
    background: #F1F5F9;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-out);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Pill badge */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 40px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-line);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-body);
    background: var(--color-bg);
    cursor: pointer;
    transition: all var(--ease-out);
}
.pill.is-active, .pill:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

/* Stars */
.stars { color: var(--color-gold); letter-spacing: 2px; line-height: 1; }

/* SVG icon fill helper */
.icon-primary  { color: var(--color-accent); }
.icon-muted    { color: var(--color-muted); }


/* =============================================================================
   SCROLL REVEAL ANIMATION
   ============================================================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--ease-reveal), transform var(--ease-reveal);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }
[data-reveal-delay="6"] { transition-delay: 480ms; }


/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
    padding: 70px 0 var(--space-5);
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

/* White dot-grid pattern — matches final-CTA */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='white' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero > .container { position: relative; z-index: 1; align-items: center; gap: var(--space-8); }

/* ─ Hero Left ─ */
.hero__left {
    grid-column: 1 / 7;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 32px;
    padding: 0 var(--space-3);
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
    font-size: var(--text-small);
    font-weight: 600;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: var(--space-5);
}
.hero__pill-dot {
    width: 6px; height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    flex-shrink: 0;
}

.hero__h1 {
    font-family: var(--font-head);
    font-size: var(--text-display);
    font-weight: 700;
    line-height: var(--lh-display);
    letter-spacing: var(--ls-display);
    color: #ffffff;
    margin-bottom: var(--space-5);
}

/* Squiggle highlight */
.text-highlight {
    position: relative;
    display: inline;
    color: var(--color-primary);
}
.text-highlight .squiggle {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 12px;
    pointer-events: none;
    overflow: visible;
}

.hero__sub {
    font-size: var(--text-lead);
    line-height: var(--lh-lead);
    color: #CBD5E1;
    max-width: 540px;
    margin-bottom: var(--space-7);
}

.hero__cta-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

/* Social proof strip */
.hero__proof {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-line);
}
.avatar-stack {
    display: flex;
    flex-direction: row;
}
.avatar-stack img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg);
    margin-left: calc(-1 * var(--space-3));
    object-fit: cover;
}
.avatar-stack img:first-child { margin-left: 0; }

.proof-rating {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.proof-rating .stars { font-size: var(--text-small); }
.proof-rating span   { font-size: var(--text-small); color: var(--color-muted); }

.proof-divider {
    width: 1px;
    height: 32px;
    background: var(--color-line);
    flex-shrink: 0;
}
.proof-text {
    font-size: var(--text-small);
    color: var(--color-body);
    font-weight: 600;
}

/* ─ Hero Right ─ */
.hero__right {
    grid-column: 7 / 13;
    position: relative;
}

/* Blob glow */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: var(--radius-full);
    background: rgba(var(--color-primary-rgb), 0.15);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* Dashboard card */
.dashboard-card {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}
.dashboard-title {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-ink);
}
.dashboard-live {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    height: 24px;
    padding: 0 var(--space-3);
    background: rgba(16,185,129,0.1);
    color: var(--color-success);
    font-size: var(--text-micro);
    font-weight: 600;
    border-radius: var(--radius-full);
}
.live-dot {
    width: 6px; height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-success);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Area chart SVG */
.chart-wrap {
    width: 100%;
    height: 140px;
    margin-bottom: var(--space-5);
    overflow: visible;
}
.chart-svg { width: 100%; height: 100%; }

/* Dashboard stat row */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}
.dashboard-stat-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.dashboard-stat-card .label {
    font-size: var(--text-micro);
    color: var(--color-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.dashboard-stat-card .value {
    font-family: var(--font-head);
    font-size: var(--text-h4);
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1;
}
.dashboard-stat-card .value.green  { color: var(--color-success); }
.dashboard-stat-card .value.primary { color: var(--color-accent); }

/* Floating notification cards */
.float-card {
    position: absolute;
    z-index: 2;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    white-space: nowrap;
}
.float-card--top    { top: calc(-1 * var(--space-5)); right: calc(-1 * var(--space-5)); animation: float-up 4s ease-in-out infinite; }
.float-card--bottom { bottom: var(--space-6); left: calc(-1 * var(--space-6)); animation: float-up 4s ease-in-out 2s infinite; }

.float-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(var(--color-accent-rgb), 0.10);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.float-card__icon.success { background: rgba(16,185,129,0.1); color: var(--color-success); }
.float-card__text strong { display: block; font-size: var(--text-small); font-weight: 600; color: var(--color-ink); }
.float-card__text span   { display: block; font-size: var(--text-micro); color: var(--color-muted); margin-top: 2px; }

/* Hero dark-context overrides — scoped so only hero elements change */
.hero .btn-secondary {
    border-color: rgba(255,255,255,0.30);
    color: #ffffff;
}
.hero .btn-secondary:hover {
    border-color: rgba(255,255,255,0.60);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}
.hero .dashboard-card {
    box-shadow: 0 8px 40px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,255,255,0.08);
}
.hero .float-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.40), 0 0 0 1px rgba(255,255,255,0.06);
}

@keyframes float-up {
    0%, 100% { transform: translateY(4px); }
    50%       { transform: translateY(-4px); }
}

/* Hero trust strip — sits at the bottom of the dark hero, spans full width */
.hero__trust {
    grid-column: 1 / -1;
    padding-top: var(--space-6);
    margin-top: var(--space-7);
    border-top: 1px solid rgba(255,255,255,0.10);
}
.hero__trust-label {
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    margin-bottom: var(--space-4);
}
.hero__trust-names {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
}
.hero__trust-names span {
    font-size: var(--text-small);
    font-weight: 600;
    color: rgba(255,255,255,0.70);
    letter-spacing: 0.01em;
}


/* =============================================================================
   LOGO TRUST STRIP
   ============================================================================= */

.logo-strip {
    padding: var(--space-4) 0 var(--space-6);
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}
.logo-strip .container { align-items: center; }
.logo-strip__label {
    grid-column: 1 / -1;
    text-align: center;
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-5);
}
.logo-strip__logos {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-7);
    flex-wrap: wrap;
}
.logo-placeholder {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--color-body);
    opacity: 0.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-4);
    white-space: nowrap;
}


/* =============================================================================
   WHO WE ARE
   ============================================================================= */

.who-story { grid-column: 3 / 11; text-align: center; }
.who-story p {
    font-size: var(--text-lead);
    line-height: var(--lh-lead);
    color: #000000;
    margin-top: var(--space-4);
}

/* Who We Are — section overrides */
#about {
    background: #F1F5F9;
    background-image: radial-gradient(rgba(10, 10, 10, 0.08) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}
#about .eyebrow { color: var(--color-primary); }
.who-story h2 {
    font-family: var(--font-head);
    font-size: var(--text-display);
    font-weight: 700;
    line-height: var(--lh-display);
    letter-spacing: var(--ls-display);
    color: #000000;
    margin-top: var(--space-3);
}
#about .who-cta-row .btn-secondary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}
#about .who-cta-row .btn-secondary:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

.stats-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-8);
}
.stat-card {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--ease-out);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border: 2px solid var(--color-primary); }
.stat-card__num {
    font-family: var(--font-head);
    font-size: var(--text-h1);
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1;
    display: block;
}
.stat-card__label {
    font-size: var(--text-small);
    color: var(--color-body);
    margin-top: var(--space-2);
    display: block;
}

.who-cta-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: var(--space-7);
}


/* =============================================================================
   PROCESS / APPROACH
   ============================================================================= */

#our-approach {
    background: #F1F5F9;
    background-image: radial-gradient(rgba(10, 10, 10, 0.08) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}

.process-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    position: relative;
    margin-top: var(--space-8);
}

/* Dashed connector lines between cards */
.process-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(25% + 24px);
    right: calc(25% + 24px);
    height: 2px;
    border-top: 2px dashed var(--color-line);
    z-index: 0;
    pointer-events: none;
}

.process-card {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: all var(--ease-out);
}
.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-primary);
}

.process-card__badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-family: var(--font-head);
    font-size: var(--text-h3);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(var(--color-accent-rgb), 0.10);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-5);
}

.process-card h3 {
    font-family: var(--font-head);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-ink);
    margin-top: var(--space-5);
}
.process-card p {
    font-size: var(--text-body);
    color: var(--color-body);
    margin-top: var(--space-2);
    line-height: var(--lh-body);
}

.process-cta-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: var(--space-7);
}


/* =============================================================================
   SERVICES
   ============================================================================= */

#services {
    background: #F1F5F9;
    background-image: radial-gradient(rgba(10, 10, 10, 0.08) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}

.services-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-8);
}

.service-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all var(--ease-out);
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border: 2px solid var(--color-primary);
}

.service-card__ribbon {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--space-3);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(var(--color-accent-rgb), 0.10);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-card h3 {
    font-family: var(--font-head);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-ink);
    margin-top: var(--space-5);
}
.service-card p {
    font-size: var(--text-body);
    color: var(--color-body);
    margin-top: var(--space-2);
    line-height: var(--lh-body);
    flex: 1;
}
.service-card .learn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-accent);
    margin-top: var(--space-5);
    transition: all var(--ease-out);
}
.service-card .learn-link .arrow { transition: transform var(--ease-out); }
.service-card .learn-link:hover .arrow { transform: translateX(4px); }

.services-cta-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
}


/* =============================================================================
   CASE STUDIES
   ============================================================================= */

.filter-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.cases-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.case-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-out);
    display: flex;
    flex-direction: column;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.case-card__img-wrap { overflow: hidden; aspect-ratio: 16/10; }
.case-card__img-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.case-card__img-logo img {
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 0;
}
.case-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: transform 0.4s ease;
}
.case-card:hover .case-card__img-wrap img { transform: scale(1.04); }

.case-card__body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }

.case-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--space-3);
    background: rgba(var(--color-accent-rgb), 0.10);
    color: var(--color-accent);
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    border-radius: var(--radius-full);
    width: fit-content;
}
.case-card h3 {
    font-family: var(--font-head);
    font-size: var(--text-h4);
    font-weight: 600;
    color: var(--color-ink);
    margin-top: var(--space-4);
}
.case-card__problem {
    font-size: var(--text-body);
    color: var(--color-body);
    margin-top: var(--space-2);
    line-height: var(--lh-body);
    flex: 1;
}
.case-card__kpi {
    background: var(--color-bg-dark);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-4);
    margin-top: var(--space-5);
}
.case-card__kpi-num {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}
.case-card__kpi-label {
    font-size: var(--text-small);
    color: #94A3B8;
    display: block;
    margin-top: var(--space-1);
}
.case-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-accent);
    margin-top: var(--space-5);
    transition: all var(--ease-out);
}
.case-card__link .arrow { transition: transform var(--ease-out); }
.case-card__link:hover .arrow { transform: translateX(4px); }

.cases-cta-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
}

/* Dark section: text + button overrides */
.section--dark .section-header h2 { color: #ffffff; }
.section--dark .section-header .lead { color: #CBD5E1; }
.section--dark .btn-secondary {
    border-color: rgba(255,255,255,0.25);
    color: #ffffff;
    background: transparent;
}
.section--dark .btn-secondary:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}


/* =============================================================================
   COMPARISON TABLE
   ============================================================================= */

.compare-wrap {
    grid-column: 2 / 12;
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-8);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-body);
}

.compare-table thead tr { background: var(--color-bg-soft); height: 80px; }
.compare-table th {
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-head);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-ink);
    text-align: center;
    vertical-align: middle;
}
.compare-table th:first-child { text-align: left; width: 40%; }

.compare-th-us {
    background: #000000;
    color: #ffffff !important;
    position: relative;
}
.compare-badge {
    display: block;
    font-size: var(--text-micro);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(var(--color-primary-rgb), 0.20);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    padding: 3px var(--space-3);
    margin-top: var(--space-1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.compare-table tbody tr { height: var(--space-8); border-bottom: 1px solid var(--color-line); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: var(--color-bg-soft); }
.compare-table td {
    padding: 0 var(--space-5);
    text-align: center;
    vertical-align: middle;
}
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--color-ink); }

/* Highlighted "our" column */
.compare-table .col-us {
    box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.03);
}
.compare-table .col-us.first { box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary), inset 0 2px 0 var(--color-primary); }
.compare-table .col-us.last  { box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary), inset 0 -2px 0 var(--color-primary); }

.check-yes { color: var(--color-primary);  font-size: var(--text-h4); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.check-no  { color: var(--color-muted);    font-size: var(--text-h4); font-weight: 700; display: flex; align-items: center; justify-content: center; }


/* =============================================================================
   TESTIMONIAL CAROUSEL
   ============================================================================= */

#reviews {
    background: #F1F5F9;
    background-image: radial-gradient(rgba(10, 10, 10, 0.08) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}

.tcarousel-wrap { grid-column: 1 / -1; margin-top: var(--space-8); }

.tcarousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }

.tcarousel-track {
    display: flex;
    gap: var(--space-5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.t-card {
    flex: 0 0 calc((100% - 48px) / 3); /* 3 visible */
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
    transition: all var(--ease-out);
}
.t-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border: 2px solid var(--color-primary); }

.t-card__quote-mark {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    color: var(--color-accent);
    opacity: 0.4;
}

.t-card .stars { font-size: var(--text-body); margin-top: var(--space-4); }

.t-card blockquote {
    font-size: var(--text-body);
    color: var(--color-body);
    line-height: var(--lh-body);
    margin: 0;
    font-style: italic;
    flex: 1;
}

.t-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-line);
    margin-top: auto;
}
.t-card__author img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.t-card__author strong {
    display: block;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-ink);
}
.t-card__author span:not(.t-card__initials) {
    display: block;
    font-size: var(--text-small);
    color: var(--color-muted);
    margin-top: 2px;
}

.t-card__initials {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-toggle {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--text-small);
    cursor: pointer;
    padding: 0;
    margin-top: var(--space-2);
    display: inline-block;
}
.review-toggle:hover { text-decoration: underline; }

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-5);
}
.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-out);
}
.carousel-btn:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); }

.carousel-dots {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--ease-out);
}
.carousel-dot.is-active {
    width: 24px;
    background: var(--color-primary);
}

/* Review badges row */
.review-badges-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}
.review-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.review-badge__name {
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--color-ink);
    display: block;
}
.review-badge__meta {
    font-size: var(--text-micro);
    color: var(--color-muted);
    display: block;
    margin-top: 2px;
}


/* =============================================================================
   WHAT'S INCLUDED — FREE AUDIT
   ============================================================================= */

.audit-left  { grid-column: 1 / 7; }
.audit-right { grid-column: 7 / 13; position: relative; }

.audit-left h2 {
    font-family: var(--font-head);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--lh-h1);
    letter-spacing: var(--ls-h1);
    color: var(--color-ink);
    margin-top: var(--space-3);
}
.audit-left .lead {
    font-size: var(--text-lead);
    line-height: var(--lh-lead);
    color: var(--color-body);
    margin-top: var(--space-4);
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}
.checklist-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.checklist-item span {
    font-size: var(--text-body);
    color: var(--color-body);
    line-height: var(--lh-body);
}

.audit-value-box {
    background: rgba(var(--color-accent-rgb), 0.08);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-5);
    margin-top: var(--space-6);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-ink);
}

.audit-right img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
}

.audit-float {
    position: absolute;
    bottom: calc(-1 * var(--space-6));
    left: calc(-1 * var(--space-6));
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 2;
}
.audit-float__icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(16,185,129,0.1);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.audit-float strong { display: block; font-size: var(--text-small); font-weight: 600; color: var(--color-ink); }
.audit-float span   { display: block; font-size: var(--text-micro); color: var(--color-muted); margin-top: 2px; }


/* =============================================================================
   FINAL CTA + MULTI-STEP FORM
   ============================================================================= */

.final-cta {
    padding: var(--space-10) 0 var(--space-9);
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    margin-bottom: var(--space-6);
}

/* Glow blob top-right */
.final-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-full);
    background: rgba(var(--color-primary-rgb), 0.15);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* White dot grid */
.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='white' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.final-cta > .container { position: relative; z-index: 1; align-items: start; }

.final-left  { grid-column: 1 / 7; }
.final-right { grid-column: 7 / 13; }

.final-left h2 {
    font-family: var(--font-head);
    font-size: var(--text-display);
    font-weight: 700;
    line-height: var(--lh-display);
    letter-spacing: var(--ls-display);
    color: #fff;
    margin-top: var(--space-3);
}
.final-left .lead {
    font-size: var(--text-lead);
    line-height: var(--lh-lead);
    color: #CBD5E1;
    margin-top: var(--space-4);
}

.final-trust {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-top: var(--space-6);
}
.final-trust .stars { font-size: var(--text-body); }
.final-trust-text { font-size: var(--text-body); font-weight: 600; color: #fff; }
.final-trust-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

.final-social-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-7);
}
.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--ease-out);
    text-decoration: none;
}
.social-icon-btn:hover { background: var(--color-primary); color: var(--color-on-primary); }

.final-privacy {
    font-size: var(--text-small);
    color: var(--color-muted);
    margin-top: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ─ Multi-step form card ─ */
.msf-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* Progress step indicator */
.msf-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--space-6);
}
.msf-step-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}
.msf-step-item:last-child { flex: 0 0 auto; }
.msf-step-dot {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-line);
    color: var(--color-muted);
    font-size: var(--text-small);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--ease-out);
}
.msf-step-item.is-active .msf-step-dot {
    background: var(--color-primary);
    color: var(--color-on-primary);
}
.msf-step-item.is-done .msf-step-dot {
    background: var(--color-success);
    color: #fff;
}
.msf-step-label {
    font-size: var(--text-micro);
    color: var(--color-muted);
    font-weight: 600;
    white-space: nowrap;
}
.msf-step-item.is-active .msf-step-label { color: var(--color-ink); font-weight: 600; }
.msf-connector {
    flex: 1;
    height: 1.5px;
    background: var(--color-line);
    margin: 0 var(--space-2);
    transition: background var(--ease-out);
}
.msf-connector.is-done { background: var(--color-success); }

.msf-step-heading {
    font-family: var(--font-head);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: var(--space-2);
}
.msf-step-sub {
    font-size: var(--text-small);
    color: var(--color-muted);
    margin-bottom: var(--space-6);
}

/* Form inputs */
.msf-step-content { display: none; }
.msf-step-content.is-active { display: block; }

.msf-input,
.msf-select {
    width: 100%;
    height: 56px;
    padding: 0 var(--space-5);
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-body);
    color: var(--color-ink);
    background: var(--color-bg);
    transition: border-color var(--ease-out), box-shadow var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}
.msf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-7);
    cursor: pointer;
}
.msf-input:focus,
.msf-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.10);
}

.msf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.msf-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.msf-field label {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-body);
}
.msf-field label abbr { color: var(--color-error); text-decoration: none; }

/* Radio cards */
.msf-radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.msf-radio-card {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--space-8);
    padding: 0 var(--space-5);
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-body);
    color: var(--color-ink);
    font-weight: 600;
    transition: all var(--ease-out);
    gap: var(--space-3);
}
.msf-radio-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.msf-radio-card:hover { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb), 0.04); }
.msf-radio-card.is-selected {
    border-color: var(--color-primary);
    border-width: 2px;
    background: rgba(var(--color-primary-rgb), 0.06);
}
.msf-radio-check {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-on-primary);
    display: none;
    align-items: center;
    justify-content: center;
}
.msf-radio-card.is-selected .msf-radio-check { display: flex; }

/* Form fields area */
.msf-fields { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.msf-fields.single { gap: var(--space-4); }

/* Nav row */
.msf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.msf-nav .btn-primary { min-width: 200px; justify-content: center; }
.msf-btn-back {
    height: 56px;
    padding: 0 28px;
    background: transparent;
    color: var(--color-body);
    font-size: var(--text-button);
    font-weight: 600;
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--ease-out);
}
.msf-btn-back:hover { border-color: var(--color-ink); color: var(--color-ink); }
.msf-btn-back[hidden] { display: none; }

/* Success state */
.msf-success {
    text-align: center;
    padding: var(--space-7) 0;
}
.msf-success__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}
.msf-success h3 {
    font-family: var(--font-head);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: var(--lh-h2);
    color: var(--color-ink);
    margin-bottom: var(--space-4);
}
.msf-success p { font-size: var(--text-body); color: var(--color-body); line-height: var(--lh-body); }


/* =============================================================================
   HEADER (sticky, backdrop-blur)
   ============================================================================= */

.site-header-v2 {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 80px;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease-out), backdrop-filter var(--ease-out), background var(--ease-out);
}
.site-header-v2.is-scrolled {
    border-bottom-color: rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-header-v2 > .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

.header-logo-wrap { grid-column: 1 / 4; display: flex; align-items: center; }
.header-logo {
    font-family: var(--font-head);
    font-size: var(--text-h3);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    white-space: nowrap;
}
.header-logo .accent { color: var(--color-primary); }
.header-logo-img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: block; }

.header-nav-wrap {
    grid-column: 4 / 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}
.header-nav a {
    font-size: var(--text-body);
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color var(--ease-out);
}
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--ease-out);
}
.header-nav a:hover { color: var(--color-primary); }
.header-nav a:hover::after { width: 100%; }

/* ── Services dropdown — Option B (single-column list with descriptions) ──
   Desktop: CSS hover + :focus-within (keyboard).
   Descriptions injected by initServiceDescriptions() JS on DOMContentLoaded.
   Mobile: inline always-visible; descriptions hidden to keep menu clean.
   ─────────────────────────────────────────────────────────────────────── */

/* Parent li: position context */
.header-nav > .menu-item-has-children {
    position: relative;
}

/* Caret space on the Services link */
.header-nav > .menu-item-has-children > a {
    padding-right: 16px;
}

/* Override the underline ::after to show a chevron on the parent link */
.header-nav > .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    bottom: auto;
    left: auto;
    width: 6px;
    height: 6px;
    background: none;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    border-radius: 0;
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--ease-out);
}

/* Rotate caret open; reset the underline width:100% rule */
.header-nav > .menu-item-has-children:hover > a::after,
.header-nav > .menu-item-has-children:focus-within > a::after {
    width: 6px;
    transform: translateY(-30%) rotate(-135deg);
}

/* Colour parent link lime when panel is open */
.header-nav > .menu-item-has-children:hover > a,
.header-nav > .menu-item-has-children:focus-within > a {
    color: var(--color-primary);
}

/* Dropdown panel — hidden by default */
.header-nav > .menu-item-has-children > .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: max-content;
    min-width: 180px;
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease-out, visibility 200ms ease-out, transform 200ms ease-out;
    z-index: 1000;
    box-shadow: 0 20px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Services keeps its wide panel — its items use a 2-line name + description layout */
.header-nav > .menu-item-has-children > .sub-menu:has(.svc-menu__desc) {
    width: 300px;
}

/* Invisible bridge: lets the mouse travel from link down to panel */
.header-nav > .menu-item-has-children > .sub-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

/* Open state — hover or keyboard focus-within */
.header-nav > .menu-item-has-children:hover > .sub-menu,
.header-nav > .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* List item reset */
.header-nav .sub-menu > li {
    list-style: none;
}

/* Link block: flex column so name sits above description */
.header-nav .sub-menu a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px var(--space-4);
    color: rgba(255,255,255,0.85);
    font-size: var(--text-small);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--ease-out), background-color var(--ease-out);
}

/* Suppress the underline pseudo on sub-menu links */
.header-nav .sub-menu a::after {
    display: none;
}

/* Description line */
.svc-menu__desc {
    display: block;
    font-size: var(--text-micro);
    font-weight: 400;
    color: rgba(255,255,255,0.38);
    transition: color var(--ease-out);
    line-height: 1.4;
}

/* Hover state — lime name + tinted bg + muted desc brightens */
.header-nav .sub-menu a:hover {
    color: var(--color-primary);
    background-color: rgba(192,255,1,0.08);
}

.header-nav .sub-menu a:hover .svc-menu__desc {
    color: rgba(192,255,1,0.55);
}

/* Current/active service page */
.header-nav .sub-menu .current-menu-item > a,
.header-nav .sub-menu .current-menu-ancestor > a {
    color: var(--color-primary);
}

.header-nav .sub-menu .current-menu-item > a .svc-menu__desc,
.header-nav .sub-menu .current-menu-ancestor > a .svc-menu__desc {
    color: rgba(192,255,1,0.55);
}

/* ── Mobile overlay: collapsible sub-menus ────────────────────────────────── */

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-list > li {
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-list > li > a {
    display: block;
    padding: var(--space-4) 0;
}

/* Parent items with sub-menus */
.mobile-nav-list > .menu-item-has-children {
    display: flex;
    flex-direction: column;
}
.mobile-nav-list > .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-list > .menu-item-has-children > a::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
}
.mobile-nav-list > .menu-item-has-children.is-expanded > a::after {
    content: '\2212';
}

/* Sub-menus: hidden by default */
.mobile-nav-list .sub-menu {
    list-style: none;
    padding: 0 0 var(--space-3) var(--space-5);
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 0;
}
.mobile-nav-list .menu-item-has-children.is-expanded > .sub-menu {
    display: flex;
}
.mobile-nav-list .sub-menu > li {
    list-style: none;
}
.mobile-nav-list .sub-menu > li > a {
    display: block;
    padding: var(--space-2) 0;
}

/* Sub-menu links: smaller + muted */
.mobile-overlay .mobile-nav-list .sub-menu a {
    font-size: var(--text-small);
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: color var(--ease-out);
}
.mobile-overlay .mobile-nav-list .sub-menu a:hover {
    color: var(--color-primary);
}

/* Current page highlight */
.mobile-overlay .mobile-nav-list .sub-menu .current-menu-item > a {
    color: var(--color-primary);
}

/* Hide descriptions on mobile */
.mobile-overlay .svc-menu__desc {
    display: none;
}

.header-cta-wrap {
    grid-column: 10 / 13;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.header-cta-btn {
    height: 44px;
    padding: 0 var(--space-5);
    background: var(--color-accent);
    color: var(--color-on-primary);
    font-size: var(--text-small);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--ease-out);
    white-space: nowrap;
}
.header-cta-btn:hover { background: var(--color-primary); color: var(--color-on-primary); transform: translateY(-1px); }

/* Hamburger (mobile) */
.header-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    margin-left: auto;
}

/* Mobile overlay — top-anchored panel, auto-height */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    z-index: 1000;
    flex-direction: column;
    padding: var(--space-5) var(--gutter-mobile) var(--space-6);
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 90vh;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.mobile-overlay-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.mobile-overlay.is-open { transform: translateY(0); }
.mobile-overlay-backdrop.is-open { display: block; }
.mobile-overlay__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}
.mobile-overlay-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    cursor: pointer; color: #ffffff;
    flex-shrink: 0;
}
.mobile-overlay-close:hover { background: rgba(255,255,255,0.15); }
.mobile-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-overlay nav a {
    font-size: var(--text-body);
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color var(--ease-out);
}
.mobile-overlay nav a:hover { color: var(--color-primary); }
.mobile-overlay .btn-primary { margin-top: var(--space-5); width: 100%; justify-content: center; }


/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer-v2 {
    background: var(--color-bg-dark);
    padding: var(--space-9) 0 var(--space-7);
}
.site-footer-v2 .container { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); }

.footer-brand   { grid-column: 1 / 5; }
.footer-col-ql  { grid-column: 5 / 8; }
.footer-col-svc { grid-column: 8 / 11; }
.footer-col-cta { grid-column: 11 / 13; }

.footer-brand .footer-logo {
    font-family: var(--font-head);
    font-size: var(--text-h3);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.footer-brand .footer-logo .accent { color: var(--color-primary); }
.footer-tagline {
    font-size: var(--text-small);
    color: #94A3B8;
    margin-top: var(--space-3);
    line-height: var(--lh-body);
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}
.footer-social-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    text-decoration: none;
    transition: all var(--ease-out);
}
.footer-social-btn:hover { background: var(--color-primary); color: var(--color-on-primary); }

.footer-col-heading {
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--space-5);
}
.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.footer-link-list a {
    font-size: var(--text-body);
    color: #CBD5E1;
    text-decoration: none;
    transition: color var(--ease-out);
}
.footer-link-list a:hover { color: #fff; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-small);
    color: #CBD5E1;
    margin-bottom: var(--space-3);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; color: var(--color-primary); }
.footer-contact-item a,
.footer-contact-item span { overflow-wrap: break-word; word-break: break-word; }

/* ── Accessibility utility ── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding-top: var(--space-6);
    margin-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-copy {
    font-size: var(--text-small);
    color: var(--color-muted);
}
.footer-legal {
    display: flex;
    gap: var(--space-5);
}
.footer-legal a {
    font-size: var(--text-small);
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--ease-out);
}
.footer-legal a:hover { color: #fff; }


/* =============================================================================
   SCROLL-TO-TOP BUTTON
   ============================================================================= */

.scroll-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-accent);
    border: 1px solid rgba(0,255,255,0.20);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease-out, visibility 200ms ease-out, border-color 200ms ease-out;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-top:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,255,255,0.18);
}


/* =============================================================================
   RESPONSIVE — TABLET (≤1023px)
   ============================================================================= */

@media (max-width: 1023px) {
    :root { --gutter: var(--gutter-tablet); }

    .section-header { grid-column: 1 / -1; }

    .hero__left  { grid-column: 1 / -1; }
    .hero__right { grid-column: 1 / -1; order: -1; }
    .hero__h1    { font-size: var(--text-h1); }

    .stats-strip           { grid-template-columns: repeat(2, 1fr); }
    .process-grid          { grid-template-columns: repeat(2, 1fr); }
    .process-grid::after   { display: none; }
    .services-grid         { grid-template-columns: repeat(2, 1fr); }
    .cases-grid            { grid-template-columns: repeat(2, 1fr); }

    .compare-wrap          { grid-column: 1 / -1; }

    .t-card                { flex: 0 0 calc((100% - 24px) / 2); }

    .audit-left, .audit-right { grid-column: 1 / -1; }
    .audit-right { order: -1; }

    .final-left, .final-right { grid-column: 1 / -1; }
    .final-left h2 { font-size: var(--text-h1); }

    /* Header */
    .header-nav-wrap { display: none; }
    .header-cta-wrap { display: none; }
    .header-hamburger { display: flex; grid-column: 10 / 13; }
    .mobile-overlay { display: flex; }

    /* Footer */
    .footer-brand   { grid-column: 1 / -1; }
    .footer-col-ql  { grid-column: 1 / 5; }
    .footer-col-svc { grid-column: 5 / 9; }
    .footer-col-cta { grid-column: 9 / 13; }
}


/* =============================================================================
   RESPONSIVE — MOBILE (≤767px)
   ============================================================================= */

@media (max-width: 767px) {
    :root {
        --gutter: var(--gutter-mobile);
        --section-py: var(--section-py-mob);
    }

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

    /* All grid-column rules collapse to full width */
    .col-center, .col-wide, .col-left6, .col-right6,
    .col-left7, .col-right5,
    .section-header,
    .hero__left, .hero__right,
    .audit-left, .audit-right,
    .final-left, .final-right,
    .who-story,
    .compare-wrap,
    .header-logo-wrap,
    .header-cta-wrap,
    .footer-brand
    { grid-column: 1 / -1; }

    /* ── Hero ── */
    .hero { padding: 54px 0 var(--section-py-mob); }
    .hero__h1 { font-size: var(--text-display-mob); }
    .hero__sub { font-size: var(--text-body); margin-bottom: var(--space-5); }
    .hero__cta-row { flex-direction: column; align-items: stretch; margin-bottom: var(--space-4); }
    .hero__cta-row .btn-primary,
    .hero__cta-row .btn-secondary { justify-content: center; }
    .hero > .container { gap: var(--space-4); }
    .hero__trust { margin-top: 0; padding-top: 0; }
    .hero__right { display: none; }

    /* ── All H2s → 36px (must match ID specificity for #our-approach / #services) ── */
    .section-header h2,
    #our-approach .section-header h2,
    #services .section-header h2 { font-size: 36px; }
    .who-story h2 { font-size: 36px; }
    .final-left h2 { font-size: 36px; }
    .final-left .lead { font-size: var(--text-body); margin-top: var(--space-3); }

    /* ── Audit "What's Included" ── */
    .audit-right { display: none; }
    .audit-left h2 { font-size: 36px; }

    /* ── Uniform spacing: 24px between content blocks, 32px section-header mb ── */
    .section-header { margin-bottom: var(--space-5); }
    .stats-strip { grid-template-columns: 1fr 1fr; margin-top: var(--space-5); }
    .process-grid { grid-template-columns: 1fr; margin-top: 0; }
    .process-card {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        column-gap: var(--space-4);
        row-gap: var(--space-2);
        align-items: center;
    }
    .process-card__badge { grid-column: 1; grid-row: 1; width: 40px; height: 40px; font-size: 18px; }
    .process-card__icon  { grid-column: 3; grid-row: 1; width: 40px; height: 40px; margin-top: 0; }
    .process-card h3     { grid-column: 2; grid-row: 1; margin-top: 0; font-size: var(--text-h4); }
    .process-card p      { grid-column: 1 / -1; grid-row: 2; margin-top: var(--space-2); }
    .services-grid { grid-template-columns: 1fr; margin-top: 0; }
    .cases-grid { grid-template-columns: 1fr; }

    /* ── CTA row margins: uniform 24px ── */
    .who-cta-row { margin-top: var(--space-5); }
    .process-cta-row { margin-top: var(--space-5); }
    .services-cta-row { margin-top: var(--space-5); }
    .cases-cta-row { margin-top: var(--space-5); }

    /* ── Hide sections ── */
    .compare-table th:nth-child(4),
    .compare-table td:nth-child(4) { display: none; }
    #why-us { display: none; }

    /* ── Review cards ── */
    .tcarousel-wrap { margin-top: var(--space-5); }
    .tcarousel-track { gap: 0; }
    .t-card { flex: 0 0 100%; padding: var(--space-5); min-height: auto; }

    /* Prevent horizontal overflow from the carousel track */
    #reviews .container { display: block; padding: 0 var(--gutter-mobile); }
    #reviews .section-header { text-align: center; margin-bottom: var(--space-5); }

    /* ── Final CTA + form ── */
    .final-cta { padding: var(--space-7) 0; border-radius: 16px; overflow: visible; }
    .final-cta > .container { display: block; padding: 0 var(--gutter-mobile); }
    .final-right { margin-top: var(--space-6); }
    .msf-card { padding: var(--space-6); }
    .msf-steps { margin-bottom: var(--space-5); justify-content: space-between; }
    .msf-step-item { flex: 0 0 auto; gap: var(--space-1); }
    .msf-connector { display: none; }
    .msf-step-dot { width: 28px; height: 28px; font-size: 12px; }
    .msf-step-label { font-size: 10px; }
    .final-trust { margin-top: var(--space-5); gap: var(--space-3); }
    .final-social-row { margin-top: var(--space-5); }
    .msf-nav { flex-direction: column-reverse; }
    .msf-nav .btn-primary { width: 100%; justify-content: center; }
    .msf-btn-back { width: 100%; justify-content: center; }
    .msf-field-row { grid-template-columns: 1fr; }

    /* ── Footer ── */
    .site-footer-v2 { padding: var(--space-7) 0 var(--space-6); }
    .site-footer-v2 .container { grid-template-columns: 1fr 1fr; row-gap: var(--space-5); }
    .site-footer-v2 .footer-brand   { grid-column: 1 / -1; }
    .site-footer-v2 .footer-col-ql  { grid-column: 1 / 2; }
    .site-footer-v2 .footer-col-svc { grid-column: 2 / 3; }
    .site-footer-v2 .footer-col-cta { grid-column: 1 / -1; margin-top: var(--space-5); }
    .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: var(--space-4); padding-top: var(--space-4); }

    /* Header */
    .site-header-v2 { height: 64px; }
    .site-header-v2 > .container { display: flex; }
    .header-hamburger { grid-column: auto; }
}
