/* =========================================================================
   RBW Tech - Unified Public Stylesheet
   Single source of truth for the public site. BEM-ish class naming.
   Light by default. Dark via [data-theme="dark"] on <html>.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Design tokens
   Warm-earth palette derived from the RBW-Tech squirrel logo: amber-brown
   accent over cream parchment. Single accent. No saturated gradients. No
   glassmorphism.
   ------------------------------------------------------------------------- */
:root {
    --color-bg:           #FAF6EE;
    --color-surface:      #FFFFFF;
    --color-surface-alt:  #F2EBDA;
    --color-border:       #E5DDC8;
    --color-text:         #1F1408;
    --color-text-muted:   #6B5840;
    --color-accent:       #B85C1A;
    --color-accent-hover: #8F4715;
    --color-accent-soft:  #FCE9CB;
    --color-success:      #1A7F37;
    --color-danger:       #B91C1C;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(31, 20, 8, .05), 0 1px 1px rgba(31, 20, 8, .04);
    --shadow-md: 0 4px 14px rgba(31, 20, 8, .07), 0 2px 4px rgba(31, 20, 8, .05);

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container-max: 1180px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    --header-height: 64px;
}

[data-theme="dark"] {
    --color-bg:           #1A1208;
    --color-surface:      #241A0E;
    --color-surface-alt:  #2E2316;
    --color-border:       #3A2D1C;
    --color-text:         #F4E9D2;
    --color-text-muted:   #B5A88A;
    --color-accent:       #E8821E;
    --color-accent-hover: #FFA744;
    --color-accent-soft:  #3A2818;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 1px 1px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .3);
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

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

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection { background: var(--color-accent); color: #fff; }

/* Visually hidden - accessible label for icon-only controls */
.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;
}

/* -------------------------------------------------------------------------
   Typography
   Fluid scale so body copy stays readable across breakpoints.
   ------------------------------------------------------------------------- */
h1 { font-size: clamp(2rem, 2.5vw + 1rem, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.text-muted { color: var(--color-text-muted); }

/* -------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--color-surface-alt); }

/* -------------------------------------------------------------------------
   Buttons
   44px min tap target. Single accent. No gradients, no translateY.
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.btn--primary:hover { background: var(--color-accent-hover); color: #fff; }

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn--ghost {
    background: transparent;
    color: var(--color-text);
}
.btn--ghost:hover { color: var(--color-accent); }

.btn .icon { width: 18px; height: 18px; }

/* -------------------------------------------------------------------------
   Site header
   ------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    border-bottom: 1px solid var(--color-border);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    min-height: var(--header-height);
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
    letter-spacing: -0.005em;
}
.site-header__brand:hover { color: var(--color-text); text-decoration: none; }
.site-header__brand svg { width: 22px; height: 22px; color: var(--color-accent); }

.site-header__nav {
    display: none;
    align-items: center;
    gap: var(--space-6);
}
.site-header__nav a {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}
.site-header__nav a:hover { color: var(--color-text); text-decoration: none; }
.site-header__nav a[aria-current="page"] { color: var(--color-text); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    border: 1px solid transparent;
    transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.icon-button:hover { color: var(--color-text); background: var(--color-surface-alt); }
.icon-button svg { width: 20px; height: 20px; }

.theme-toggle [data-theme-icon="dark"] { display: none; }
[data-theme="dark"] .theme-toggle [data-theme-icon="light"] { display: none; }
[data-theme="dark"] .theme-toggle [data-theme-icon="dark"] { display: inline-block; }

.nav-toggle { display: inline-flex; }

/* Mobile navigation panel */
.site-header__mobile {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}
.site-header__mobile[hidden] { display: none; }
.site-header__mobile ul {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) 0;
}
.site-header__mobile a {
    display: block;
    padding: var(--space-3) clamp(16px, 4vw, 32px);
    color: var(--color-text);
    font-weight: 500;
}
.site-header__mobile a:hover { background: var(--color-surface-alt); text-decoration: none; }
.site-header__mobile .btn { margin: var(--space-3) clamp(16px, 4vw, 32px) 0; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { padding-block: clamp(72px, 10vw, 128px); }
.hero__inner { max-width: 760px; }
.hero__eyebrow { margin-bottom: var(--space-4); }
.hero__title { margin-bottom: var(--space-5); }
.hero__sub {
    font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
    color: var(--color-text-muted);
    margin-bottom: var(--space-7);
    max-width: 640px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* -------------------------------------------------------------------------
   Trust strip
   Plain text on alt surface - no cards, no borders, no icons.
   ------------------------------------------------------------------------- */
.trust-strip { padding-block: var(--space-6); }
.trust-strip__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
.trust-strip__list li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.trust-strip__list li::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--color-accent);
    border-radius: 999px;
    flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   Section heading block
   ------------------------------------------------------------------------- */
.section__head { max-width: 640px; margin-bottom: var(--space-7); }
.section__head .eyebrow { margin-bottom: var(--space-3); }
.section__head p { color: var(--color-text-muted); margin-top: var(--space-3); }

/* -------------------------------------------------------------------------
   Service grid
   Plain white surfaces. No border-left bars. No translateY.
   ------------------------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.service-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.service-card__icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 { color: var(--color-text); }
.service-card p { color: var(--color-text-muted); font-size: 0.9375rem; }
.service-card__link {
    margin-top: auto;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9375rem;
    align-self: flex-start;
}
.service-card__link:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Process
   Vertical on mobile, horizontal timeline on desktop.
   ------------------------------------------------------------------------- */
.process__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    counter-reset: step;
}
.process__step {
    position: relative;
    padding-left: var(--space-7);
    counter-increment: step;
}
.process__step::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9375rem;
    z-index: 1;
}
.process__step h3 { margin-bottom: var(--space-2); }
.process__step p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* -------------------------------------------------------------------------
   Why section - plain text three columns
   ------------------------------------------------------------------------- */
.why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}
.why__item h3 { margin-bottom: var(--space-2); }
.why__item p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* -------------------------------------------------------------------------
   FAQ preview
   ------------------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq__item {
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-4);
}
.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: var(--color-text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease-out;
    flex: 0 0 auto;
    margin-top: -4px;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq__item p { color: var(--color-text-muted); font-size: 0.9375rem; margin-top: var(--space-3); }
.faq__more { margin-top: var(--space-5); }

/* -------------------------------------------------------------------------
   CTA strip
   ------------------------------------------------------------------------- */
.cta-strip {
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
    border: 1px solid var(--color-border);
}
.cta-strip h2 { margin-bottom: var(--space-5); }
.cta-strip__buttons { display: inline-flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    padding-block: var(--space-8) var(--space-6);
    margin-top: var(--space-8);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-7);
}
.site-footer h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}
.site-footer ul li { margin-bottom: var(--space-2); }
.site-footer ul a { color: var(--color-text-muted); font-size: 0.9375rem; }
.site-footer ul a:hover { color: var(--color-text); text-decoration: none; }
.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}
.site-footer__brand svg { width: 22px; height: 22px; color: var(--color-accent); }
.site-footer__about { color: var(--color-text-muted); font-size: 0.9375rem; max-width: 340px; }
.site-footer__address { color: var(--color-text-muted); font-size: 0.875rem; margin-top: var(--space-3); font-style: normal; }
.site-footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------
   Error pages (404 / 403)
   ------------------------------------------------------------------------- */
.error-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.error-page main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: var(--space-7) var(--space-5);
    text-align: center;
}
.error-page__code {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-4);
}
.error-page__title { margin-bottom: var(--space-3); }
.error-page__desc {
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto var(--space-6);
}

/* -------------------------------------------------------------------------
   Breakpoints
   Mobile-first. md = 768px, lg = 1024px.
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .site-header__nav { display: inline-flex; }
    .nav-toggle { display: none; }
    .site-header__mobile { display: none !important; }

    .trust-strip__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .why__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }

    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-7); }
    .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
    .process__steps {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5);
        position: relative;
    }
    .process__step { padding-left: 0; padding-top: var(--space-7); }
    .process__step::before { position: absolute; left: 0; top: 0; }
    /* Subtle connector line between steps */
    .process__steps::after {
        content: "";
        position: absolute;
        top: 18px;
        left: calc(100% / 8);
        right: calc(100% / 8);
        height: 1px;
        background: var(--color-border);
        z-index: 0;
    }
}

/* =========================================================================
   Supporting pages (about, services, process, contact, faq, terms, privacy,
   refund). These pages were authored against a slightly different class
   vocabulary than index.html, so the rules below add the missing components
   without changing existing ones. Mobile behaviour: nav-toggle is hidden,
   the nav drops to a horizontal scroll row below the brand.
   ========================================================================= */

/* ---- Skip link (keyboard accessibility) ------------------------------- */
.skip-link {
    position: absolute;
    left: 8px; top: 8px;
    padding: 8px 12px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: var(--radius-sm);
    z-index: 100;
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); text-decoration: none; color: var(--color-bg); }

/* ---- Wordmark span ---------------------------------------------------- */
.site-header__wordmark { font-weight: 600; letter-spacing: -0.005em; color: var(--color-text); }

/* ---- Standalone theme-toggle and nav-toggle (supporting pages) -------- */
.theme-toggle,
.site-header__nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    border: 1px solid transparent;
    background: transparent;
    transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.theme-toggle:hover,
.site-header__nav-toggle:hover { color: var(--color-text); background: var(--color-surface-alt); }
.theme-toggle svg,
.site-header__nav-toggle svg { width: 20px; height: 20px; }
.site-header__nav-toggle { display: none; } /* nav drops below on mobile; toggle not needed */

/* ---- Lead paragraph --------------------------------------------------- */
.lede {
    font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
    color: var(--color-text-muted);
    max-width: 64ch;
    margin-top: var(--space-4);
}

/* ---- Generic grid utilities ------------------------------------------ */
.grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.grid--two { grid-template-columns: 1fr; }
.grid--three { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .grid--two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
}

/* ---- CTA strip alternative composition (supporting pages) ------------- */
.cta-strip__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    align-items: center;
}
.cta-strip__inner > div h2 { margin-bottom: var(--space-3); }
.cta-strip__inner > div p { color: var(--color-text-muted); }
.cta-strip__actions { display: inline-flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 768px) {
    .cta-strip__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-7); }
    .cta-strip__actions { justify-content: flex-end; }
}

/* ---- Footer alternative composition (supporting pages) ---------------- */
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
}
/* Supporting-page footer uses .site-footer__brand as a *block* (wordmark +
   paragraph), so reset the inline-flex from the index variant. */
.site-footer .site-footer__brand:has(p) {
    display: block;
}
.site-footer__brand p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-top: var(--space-2);
    max-width: 30ch;
}
.site-footer__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
.site-footer__nav > div { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__nav h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
}
.site-footer__nav a { color: var(--color-text-muted); font-size: 0.9375rem; }
.site-footer__nav a:hover { color: var(--color-text); text-decoration: none; }
.site-footer__meta {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-5);
    margin-top: var(--space-5);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}
@media (min-width: 768px) {
    .site-footer__inner { grid-template-columns: 1.4fr 2fr; }
    .site-footer__nav   { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}

/* ---- Legal document (terms, privacy, refund) -------------------------- */
.legal-doc { max-width: 72ch; margin-inline: auto; }
.legal-doc h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--space-7);
    margin-bottom: var(--space-3);
    scroll-margin-top: calc(var(--header-height) + 16px);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin-bottom: var(--space-4); color: var(--color-text); }
.legal-doc p:last-child { margin-bottom: 0; }
.legal-doc ul,
.legal-doc ol {
    list-style: revert;
    padding-left: var(--space-5);
    margin-bottom: var(--space-4);
}
.legal-doc li { margin-bottom: var(--space-2); }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
.legal-doc__meta { color: var(--color-text-muted); font-size: 0.875rem; margin-top: var(--space-3); }

/* ---- Contact info (definition list) ---------------------------------- */
.contact-info__list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-5) 0; }
.contact-info__row { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3); align-items: baseline; }
.contact-info__row dt { color: var(--color-text-muted); font-size: 0.875rem; font-weight: 500; }
.contact-info__row dd { margin: 0; color: var(--color-text); }
.contact-info__row dd a { color: var(--color-accent); }
.contact-info__row dd a:hover { color: var(--color-accent-hover); }
.contact-info__note { color: var(--color-text-muted); font-size: 0.9375rem; margin-top: var(--space-4); }

/* ---- Contact form ----------------------------------------------------- */
.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.contact-form h2 { margin-bottom: var(--space-1); }
.contact-form__intro { color: var(--color-text-muted); font-size: 0.9375rem; margin: 0 0 var(--space-3); }
.contact-form__intro code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    background: var(--color-surface-alt);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}
.contact-form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form__field label { font-size: 0.875rem; font-weight: 500; color: var(--color-text); }
.contact-form__optional { color: var(--color-text-muted); font-weight: 400; font-size: 0.8125rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    font: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    min-height: 44px;
    width: 100%;
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.contact-form textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.contact-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }

/* ---- Service catalogue table-of-contents ----------------------------- */
.service-toc {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-6);
}
.service-toc a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: border-color 150ms ease-out, color 150ms ease-out;
}
.service-toc a:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

/* ---- Services page anchor offsets ------------------------------------ */
section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ---- Deliverables list (services page) -------------------------------- */
.deliverables {
    list-style: disc;
    padding-left: var(--space-5);
    margin: var(--space-3) 0 var(--space-4);
}
.deliverables li { margin-bottom: var(--space-2); color: var(--color-text); }

/* ---- Process (ordered list with index labels) ------------------------- */
.process {
    list-style: none;
    counter-reset: process-step;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: 0;
}
.process__step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: var(--space-3);
}
.process__step h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.process__step > p { color: var(--color-text); margin: 0; }
.process__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}
.process__panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}
.process__panel h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
}
.process__panel p { color: var(--color-text); margin: 0; font-size: 0.9375rem; }
@media (min-width: 768px) {
    .process__panels { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

/* ---- FAQ on the dedicated FAQ page ----------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq h2 { margin-top: var(--space-7); margin-bottom: var(--space-4); }
.faq h2:first-child { margin-top: 0; }
.faq > details {
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-4);
}
.faq > details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: var(--color-text);
}
.faq > details summary::-webkit-details-marker { display: none; }
.faq > details summary::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease-out;
    flex: 0 0 auto;
    margin-top: -4px;
}
.faq > details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq__answer { margin-top: var(--space-3); color: var(--color-text-muted); font-size: 0.9375rem; }
.faq__answer p { margin: 0; }

/* ---- Supporting-page header layout adjustments ----------------------- */
/* Mobile: nav drops below the brand row, scrolls horizontally if needed. */
.site-header__inner { flex-wrap: wrap; row-gap: var(--space-2); }
.site-header__nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767.98px) {
    /* Show nav links as a scrolling row on mobile so they are reachable
       without JS, since supporting pages have no mobile disclosure panel. */
    .site-header__nav {
        display: flex !important;
        order: 3;
        flex: 1 0 100%;
        gap: var(--space-5);
        padding: var(--space-2) 0 var(--space-3);
        white-space: nowrap;
    }
    .site-header__cta { display: none; } /* primary contact still in body */
}


@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* -------------------------------------------------------------------------
   Print - hide chrome, neutralize colours for legible output.
   ------------------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .site-header__actions,
    .cta-strip { display: none !important; }

    :root {
        --color-bg: #fff;
        --color-text: #000;
        --color-text-muted: #333;
        --color-accent: #000;
        --color-border: #ccc;
    }

    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
    .section { padding-block: 24px; }
}
