/* ============================================================
   GentBit Inc. — Stripe-inspired Theme
   Aesthetic: Clean light surfaces · Aurora gradient hero
              Navy dark sections · Purple accent
   Font: Plus Jakarta Sans
   ============================================================ */

/* Google Fonts loaded via wp_enqueue_style in functions.php — no @import needed */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg:      #ffffff;
    --bg-alt:  #f6f9fc;
    --bg-dark: #0a2540;

    /* Surfaces */
    --surface:   #ffffff;
    --surface-2: #f6f9fc;

    /* Text */
    --text:        #0a2540;
    --text-strong: #0a2540;
    --muted:       #697386;
    --muted-2:     #425466;

    /* Borders */
    --line:        #e3e8ef;
    --line-strong: #c8d1dc;

    /* Primary — Stripe purple */
    --primary:        #635bff;
    --primary-light:  #7a73ff;
    --primary-glow:   rgba(99, 91, 255, 0.28);
    --primary-dim:    rgba(99, 91, 255, 0.07);
    --primary-border: rgba(99, 91, 255, 0.22);

    /* Accent — cyan and pink (aurora palette) */
    --cyan:      #00d4ff;
    --cyan-dim:  rgba(0, 212, 255, 0.10);
    --pink:      #ff80b5;
    --pink-dim:  rgba(255, 128, 181, 0.10);

    /* Navy (dark section text / badge) */
    --navy: #0a2540;

    /* Shape */
    --radius:    12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --container: 1140px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
    --shadow:    0 4px 20px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10), 0 0 1px rgba(0, 0, 0, 0.06);

    /* Typography */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── Accessibility ─────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus {
    left: 1rem; top: 1rem;
    background: var(--surface);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    z-index: 9999; /* must exceed header z-index:100 */
    box-shadow: var(--shadow);
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
    width: min(var(--container), 100% - 2.5rem);
    margin: 0 auto;
}

.narrow { max-width: 820px; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(227, 232, 239, 0.8);
    transition: background 200ms ease, box-shadow 200ms ease;
}

.site-header.is-condensed {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: min-height 180ms ease;
}

.site-header.is-condensed .nav-wrap { min-height: 60px; }

.brand {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    color: var(--navy);
}

.brand span { color: var(--primary); }

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.site-nav .menu {
    margin: 0; padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.site-nav .menu li { margin: 0; }

.site-nav a {
    color: var(--muted-2);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.38rem 0.72rem;
    border-radius: var(--radius-xs);
    transition: color 150ms ease, background 150ms ease;
}

.site-nav a:hover { color: var(--text); background: var(--bg-alt); }

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--primary-dim);
    font-weight: 600;
}

.menu-scroll-hint { display: none; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}

.lang-switch a.is-active { color: var(--primary); font-weight: 700; }
.lang-switch a:hover { color: var(--text); }

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: clamp(3.2rem, 6.5vw, 6.4rem) 0; }

.section-soft {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ─── Typography ─────────────────────────────────────────────── */
.hero h1, h1 {
    margin: 0.4rem 0 1.25rem;
    line-height: 1.06;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    letter-spacing: -0.03em;
    max-width: 14ch;
    font-weight: 800;
    color: var(--navy);
}

h2 {
    margin: 0.3rem 0 1.2rem;
    line-height: 1.2;
    font-size: clamp(1.55rem, 3.5vw, 2.6rem);
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--navy);
}

h3 {
    margin: 0;
    line-height: 1.28;
    font-size: clamp(1.04rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

/* Eyebrow — clean uppercase label */
.eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
    display: block;
}

.eyebrow::before { display: none; }
.eyebrow::after  { display: none; }

.lead {
    margin: 0;
    max-width: 56ch;
    color: var(--muted-2);
    font-size: clamp(1.08rem, 2vw, 1.22rem);
    line-height: 1.7;
    font-weight: 400;
}

.meta {
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.cta-microcopy,
.legal-note,
.trust-legal,
.response-note,
.field-hint {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.cta-microcopy { margin-top: 0.75rem; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
}

/* Stripe signature: soft aurora gradient mesh */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.22) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Pink accent orb (right) */
.hero .container { position: relative; z-index: 1; }

/* Hero gradient orb (pink, bottom right) */
.hero .container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 128, 181, 0.13) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Hero Split Layout ─────────────────────────────────────── */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
    align-items: start;
}

.hero-text { min-width: 0; }

.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.hero-mockup {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18))
            drop-shadow(0 4px 16px rgba(99, 91, 255, 0.10));
    animation: mockup-float 7s ease-in-out infinite;
    border-radius: 0;
}

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

/* ─── Proof Badges ───────────────────────────────────────────── */
.proof-strip {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.proof-strip span {
    padding: 0.4rem 0.88rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted-2);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.button-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 22px var(--primary-glow);
}

.btn-secondary {
    color: var(--text);
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
}

.btn-secondary:hover {
    border-color: var(--muted);
    background: var(--bg-alt);
}

/* ─── Section Header ─────────────────────────────────────────── */
.section-head { margin-bottom: 2.2rem; }
.section-head h2 { max-width: 22ch; }

/* ─── Grid Layouts ───────────────────────────────────────────── */
.page-stack {
    display: grid;
    gap: 1.4rem;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.metric-item {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric-value {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* .metric-title: text label variant (used on About page) — no oversized clamp */
.metric-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    overflow-wrap: break-word;
    word-break: break-word;
}

.metric-label {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card,
.content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card {
    min-height: 132px;
    display: flex;
    align-items: flex-start;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-border);
}

/* Gradient top-line on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    opacity: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: opacity 200ms ease;
}

.card:hover::before { opacity: 1; }

/* ─── Trust / Case Cards ─────────────────────────────────────── */
.trust-grid .card { flex-direction: column; gap: 0.75rem; }
.case-grid .card  { flex-direction: column; gap: 0.65rem; }

/* ─── Service Overview Cards ─────────────────────────────────── */
.service-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-overview-card {
    flex-direction: column;
    gap: 0.6rem;
}

.service-proof {
    margin: 0;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.service-link {
    margin-top: 0.3rem;
    font-size: 0.87rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 160ms ease;
}

.service-link::after { content: '→'; }
.service-link:hover { gap: 0.5rem; }

/* ─── Trust Note / KPI ───────────────────────────────────────── */
.trust-note {
    margin: 0;
    color: var(--muted-2);
    max-width: 45ch;
    font-size: 0.95rem;
    line-height: 1.6;
}

.trust-kpi {
    margin: 0;
    display: inline-flex;
    align-self: flex-start;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1.5px solid var(--primary-border);
    background: var(--primary-dim);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

/* ─── Fit Block ──────────────────────────────────────────────── */
.fit-block { margin-bottom: 1rem; }

.fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.fit-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem;
    background: var(--bg-alt);
}

.fit-item p { margin: 0; color: var(--muted-2); font-size: 0.95rem; }

.fit-label {
    margin-bottom: 0.45rem !important;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
}

/* ─── Split Layout ───────────────────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ─── Process List ───────────────────────────────────────────── */
.process-list {
    margin: 0; padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
    counter-reset: steps;
}

.process-list li {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0.4rem 1rem;
    align-items: start;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    counter-increment: steps;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.process-list li:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow);
}

.process-list li::before {
    content: counter(steps);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1.5px solid var(--primary-border);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    grid-row: 1 / 3;
    margin-top: 0.08rem;
}

.process-list strong {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.97rem;
}

.process-list span {
    color: var(--muted-2);
    font-size: 0.92rem;
    display: block;
    grid-column: 2;
}

.simple-list { margin: 0; padding-left: 1.15rem; }
.simple-list li { margin: 0.4rem 0; color: var(--muted-2); }

/* ─── Service Grid ───────────────────────────────────────────── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-lg);
}

.service-card h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.service-card p { margin: 0; }
.service-card p:not(.service-meta) { color: var(--muted-2); }

.service-meta {
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-block details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    background: var(--surface);
    margin-bottom: 0.6rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 180ms ease;
}

.faq-block details[open] { border-color: var(--primary-border); }

.faq-block summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-block summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
    transition: content 0ms;
}

.faq-block details[open] > summary::after {
    content: '−';
}

.faq-block summary::-webkit-details-marker { display: none; }

.faq-block details p {
    margin: 0.55rem 0 0;
    color: var(--muted-2);
    font-size: 0.95rem;
}

.cta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

/* ─── Industry Grid ──────────────────────────────────────────── */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.industry-card {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    position: relative;
    overflow: hidden;
}

.industry-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-lg);
}

.industry-tag {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
}

.industry-card h2 {
    margin: 0.55rem 0 0.7rem;
    font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.industry-card p { margin: 0; color: var(--muted-2); }

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline { display: grid; gap: 1rem; }

.timeline-item {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow);
}

.timeline-step {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
}

.timeline-item h2 {
    margin: 0.45rem 0 0.6rem;
    font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.timeline-item p { margin: 0; color: var(--muted-2); }

.timeline-output {
    margin-top: 0.65rem !important;
    color: var(--navy) !important;
    font-weight: 700;
}

/* ─── CTA Strip — dark navy, Stripe style ────────────────────── */
.cta-strip {
    background: var(--bg-dark);
    border-top: none;
    position: relative;
    overflow: hidden;
}

/* Gradient aurora behind CTA */
.cta-strip::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.cta-strip::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-strip h2 {
    color: #ffffff;
    max-width: 28ch;
}

.cta-strip .cta-microcopy { color: rgba(255, 255, 255, 0.75); } /* ≥4.5:1 on #0a2540 */

/* White button in dark section */
.cta-strip .btn-primary {
    background: #ffffff;
    color: var(--navy);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-strip .btn-primary:hover {
    background: #f0f4ff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

/* ─── Contact Page ───────────────────────────────────────────── */
.contact-layout { gap: 2.8rem; }

.contact-layout > div:first-child {
    display: grid;
    align-content: start;
    gap: 1.35rem;
}

.contact-layout > .content-card { padding: 1.8rem; }

.contact-next-steps {
    margin-top: 0.35rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-next-steps h2 { margin-bottom: 1rem; }
.contact-next-steps .simple-list { padding-left: 1.25rem; }
.contact-next-steps .simple-list li { margin: 0.65rem 0; }
.contact-meta p { margin: 0 0 1.25rem; color: var(--muted-2); }

/* ─── Contact Form ───────────────────────────────────────────── */
.contact-form { display: grid; gap: 1rem; }

.conditional-field { display: none; }
.conditional-field.is-visible { display: block; }
/* CF7 conditional fields: toggled by theme.js via is-hidden class */
.is-hidden { display: none !important; }

.contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.78rem 1rem;
    font: inherit;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

/* ─── CF7 Overrides ──────────────────────────────────────────── */
.wpcf7 p { margin: 0 0 0.85rem; }

.wpcf7 label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.78rem 1rem;
    font: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.wpcf7 textarea { min-height: 160px; }
.wpcf7 p.is-hidden { display: none; }

.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 0;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-1px);
    background: var(--primary-light);
    box-shadow: 0 6px 22px var(--primary-glow);
}

.wpcf7 .wpcf7-not-valid-tip { font-size: 0.84rem; color: #e53e3e; }

.wpcf7 .wpcf7-response-output {
    margin: 0.8rem 0 0;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--muted-2);
}

/* Honeypot */
.hp-field {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

/* Form Status */
.form-status {
    margin-top: 0;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

.form-status.success {
    color: #276749;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.form-status.error {
    color: #742a2a;
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

/* ─── Footer — dark navy, Stripe style ───────────────────────── */
.site-footer {
    background: var(--bg-dark);
    border-top: none;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.site-footer,
.site-footer a,
.site-footer .footer-bottom {
    color: rgba(255, 255, 255, 0.75); /* ≥4.5:1 on #0a2540 */
}

.site-footer a:hover { color: rgba(255, 255, 255, 0.9); }

.site-footer .brand { color: #ffffff; }
.site-footer .brand span { color: rgba(99, 91, 255, 0.9); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-label {
    margin-bottom: 0.5rem;
    font-size: 0.73rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.60); /* ≥4.5:1 on #0a2540 */
    font-weight: 600;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ─── Cookie Table (Privacy Policy) ─────────────────────────── */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.88rem;
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line);
}

.cookie-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--navy);
}

.cookie-table td { color: var(--muted-2); }
.cookie-table code {
    font-size: 0.83rem;
    background: var(--bg-alt);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: var(--primary);
}

/* ─── Case Tag ───────────────────────────────────────────────── */
.case-tag {
    display: inline-block;
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* ─── Team Strip ─────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.team-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-border);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.team-avatar svg { width: 72px; height: 72px; display: block; }

.team-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.2rem;
}

.team-role {
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--muted-2);
    line-height: 1.55;
    margin: 0;
}

/* ─── Reveal Animations ──────────────────────────────────────── */
/* .js class is added by theme.js before DOMContentLoaded so no-JS
   users always see content (opacity stays at its natural value).   */
.js .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms cubic-bezier(0.22, 0.68, 0.12, 1.0),
                transform 420ms cubic-bezier(0.22, 0.68, 0.12, 1.0);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive: 1024px ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-row { grid-template-columns: 1fr; }

    .grid-two,
    .service-grid,
    .industry-grid,
    .fit-grid,
    .service-overview-grid { grid-template-columns: 1fr; }

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

    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { justify-content: center; margin-top: 2rem; }
    .hero-mockup { max-width: 440px; }
}

/* ─── Responsive: 760px ──────────────────────────────────────── */
@media (max-width: 760px) {
    body { padding-bottom: env(safe-area-inset-bottom); }

    .container {
        width: min(var(--container), 100% - 2rem); /* 1rem per side minimum */
        padding-left: max(0rem, env(safe-area-inset-left));
        padding-right: max(0rem, env(safe-area-inset-right));
    }

    .nav-wrap {
        min-height: auto;
        padding: 0.7rem 0 0.6rem;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand lang"
            "nav   nav";
        gap: 0.45rem 0.6rem;
        align-items: center;
    }

    .site-header.is-condensed .nav-wrap { padding: 0.5rem 0 0.45rem; }

    .brand { grid-area: brand; font-size: 1.05rem; }

    .lang-switch {
        grid-area: lang;
        justify-self: end;
        padding: 0.22rem 0.5rem;
        border: 1.5px solid var(--line);
        border-radius: 999px;
        background: var(--bg-alt);
    }

    .site-nav {
        grid-area: nav;
        width: 100%;
        padding-top: 0.15rem;
    }

    .site-nav .menu {
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
    }

    .site-nav .menu::-webkit-scrollbar { display: none; }

    .site-nav.is-scrollable::after,
    .site-nav.is-scrollable::before {
        content: "";
        position: absolute;
        top: 0;
        height: 36px;
        width: 24px;
        pointer-events: none;
        z-index: 2;
        transition: opacity 180ms ease;
    }

    .site-nav.is-scrollable::after {
        right: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.98));
        opacity: 1;
    }

    .site-nav.is-scrollable::before {
        left: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0));
        opacity: 0;
    }

    .site-nav.is-scrollable:not(.is-at-start)::before { opacity: 1; }
    .site-nav.is-scrollable.is-at-end::after { opacity: 0; }

    .site-nav .menu a {
        display: inline-flex;
        min-height: 2rem;
        padding: 0.36rem 0.65rem;
        border-radius: 999px;
        background: var(--bg-alt);
        border: 1px solid var(--line);
        font-size: 0.84rem;
        scroll-snap-align: center;
    }

    .site-nav .current-menu-item > a,
    .site-nav .current_page_item > a,
    .site-nav a[aria-current="page"] {
        color: var(--primary);
        border-color: var(--primary-border);
        background: var(--primary-dim);
    }

    .site-nav.is-scrollable .menu-scroll-hint {
        display: inline-flex;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.2rem;
        font-size: 0.72rem;
        color: var(--muted);
        opacity: 0.9;
    }

    .site-nav.is-scrollable.is-at-end .menu-scroll-hint,
    .site-nav.is-scrollable.has-interacted .menu-scroll-hint {
        opacity: 0;
        transition: opacity 220ms ease;
    }

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

    .hero-grid { gap: 2rem; }

    .hero-visual {
        margin-top: 0;
        justify-content: center;
    }

    .hero-mockup {
        max-width: min(100%, 420px);
        animation-duration: 10s;
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.14))
                drop-shadow(0 2px 8px rgba(99, 91, 255, 0.09));
    }

    .section { padding: clamp(2.2rem, 8vw, 3.2rem) 0; }

    .hero h1, h1 {
        margin-top: 0.2rem;
        font-size: clamp(2rem, 10vw, 2.8rem);
        max-width: 14ch;
    }

    .lead { font-size: 1rem; line-height: 1.6; }

    .button-row { width: 100%; gap: 0.65rem; }
    .button-row .btn { width: 100%; min-height: 46px; }

    .proof-strip { gap: 0.45rem; }
    .proof-strip span { font-size: 0.76rem; padding: 0.34rem 0.7rem; }

    .card,
    .content-card,
    .service-card,
    .industry-card,
    .timeline-item {
        border-radius: var(--radius-sm);
        padding: 1.2rem;
    }

    .service-link { margin-top: 0.25rem; }

    /* CTA strip: stack vertically on mobile */
    .cta-strip .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .cta-strip h2 { font-size: clamp(1.45rem, 6vw, 2rem); }

    .cta-strip .button-row { margin-top: 0; }

    .contact-layout { gap: 1.8rem; }

    .contact-layout > .content-card,
    .contact-next-steps { padding: 1.3rem; }

    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 select,
    .wpcf7 textarea { font-size: 16px; }

    .site-footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}

/* ─── Responsive: 480px ──────────────────────────────────────── */
@media (max-width: 480px) {
    .container { width: min(var(--container), 100% - 1.75rem); } /* ~0.875rem per side */
    .site-nav .menu a { font-size: 0.8rem; padding: 0.34rem 0.56rem; }
    .menu-scroll-hint { font-size: 0.7rem; }

    .section-head { margin-bottom: 1.4rem; }

    .hero-grid { gap: 1.5rem; }

    .hero-mockup { max-width: 100%; }

    .cta-microcopy,
    .legal-note,
    .trust-legal,
    .response-note,
    .field-hint { font-size: 0.83rem; }
}

/* ─── Touch: disable hover lifts (prevents iOS sticky-tap state) */
@media (hover: none) {
    .card:hover,
    .service-card:hover,
    .industry-card:hover,
    .timeline-item:hover,
    .process-list li:hover,
    .btn:hover {
        transform: none;
    }

    .card:hover::before { opacity: 0; }
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

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

    .js .reveal { opacity: 1; transform: none; }
}
