/* =============================================================================
   Tarlu — Editorial preview stylesheet
   Palette: real tarlu.com neutrals (#1D1E20 / #FFFFFF / #ECEFF3) +
            editorial cream (#F5F3EE) + bronze accent (#C9A96E).
   Typography: Fraunces (serif display) + Inter (sans body).
   ========================================================================== */

:root {
    /* All colours extracted from live tarlu.com. */
    --ink:        #1D1E20;    /* body text */
    --ink-90:     rgba(29, 30, 32, 0.9);
    --ink-70:     rgba(29, 30, 32, 0.7);
    --ink-50:     rgba(29, 30, 32, 0.5);
    --muted:      #4B5563;    /* darker muted for AA contrast (was #56585E) */
    --paper:      #FFFFFF;
    --stone:      #ECEFF3;    /* light section BG (from tarlu.com) */
    --stone-50:   #F5F6F8;    /* softer stone for subtle alternation */
    --hairline:   #E4E5E7;

    /* Blue is a DOMINANT colour on tarlu.com, not just an accent —
       big full-width feature sections use it. */
    --blue:       #0075C2;    /* brand blue (large section BG + CTA) */
    --blue-600:   #005E9C;    /* hover / darker blue */
    --navy:       #001A78;    /* deep navy (dark sections, pillar cards) */
    --navy-90:    rgba(0, 26, 120, 0.9);

    /* Dark = deep navy (was near-black, made visibly blue). */
    --dark:       var(--navy);

    /* Was gold — now Tarlu brand blue so all accents stay on-brand.
       Aliases kept so existing rules continue to work without a rename. */
    --gold:       #0075C2;
    --gold-600:   #005E9C;

    --wrap:      1240px;
    --wrap-narrow: 780px;

    --ease:  cubic-bezier(0.2, 0, 0, 1);
    --dur:   240ms;
    --dur-slow: 450ms;

    /* Sticky-header height — sub-navs that stick below the header offset by
       this. Tracks the logo height + wrap padding at each breakpoint. */
    --header-h: 78px;
}
@media (max-width: 900px) { :root { --header-h: 72px; } }
@media (max-width: 560px) { :root { --header-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h, 78px) + 62px); }
body {
    margin: 0;
    font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.0625rem;   /* 17px at browser default, scales with user preference */
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus { outline: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Dark contexts need a light focus ring — --ink on navy is ~1.1:1. */
.site-footer :focus-visible, .section-dark :focus-visible,
.cta-banner :focus-visible, .hero :focus-visible { outline-color: var(--paper); }

/* Visually hidden but available to assistive technology. */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    padding: 0.75rem 1rem;
    background: var(--ink); color: var(--paper);
    font-weight: 600; font-size: 0.85rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

::selection { background: var(--ink); color: var(--paper); }

/* ----- Typography ------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 0.6em;
    font-weight: 600;
    color: var(--ink);
    font-kerning: normal;
    font-feature-settings: 'kern' 1;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); letter-spacing: -0.018em; font-weight: 600; }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 500; font-family: 'IBM Plex Sans', sans-serif; letter-spacing: 0; }
p  { margin: 0 0 1.2em; color: var(--ink-70); }
strong { font-weight: 600; color: var(--ink); }
em     { font-style: italic; }

/* Editorial italic on emphasis inside headings */
/* Sans emphasis: bold weight + gold colour (Space Grotesk has no italic). */
h1 em, h2 em, h3 em {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-style: normal;
    font-weight: 700;
    color: var(--gold-600);
}

.eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.lead {
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
    color: var(--ink-70);
    max-width: 55ch;
    line-height: 1.55;
    font-weight: 400;
}
.hairline {
    height: 1px;
    background: var(--hairline);
    border: 0;
    margin: 0;
}

/* ----- Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: var(--wrap-narrow); }
section { padding: clamp(5rem, 10vw, 9rem) 0; }

/* ----- Buttons --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 1.05rem 1.75rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); }

.link-underline {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 0.95rem;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ink);
    transition: gap var(--dur) var(--ease);
}
.link-underline:hover { gap: 0.7rem; }

/* ----- Header ---------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid var(--hairline);
}
/* The frosted-glass layer lives on a pseudo-element: backdrop-filter on the
   header itself would make it the containing block for fixed descendants,
   trapping the fullscreen mobile nav inside the header bar. */
.site-header::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 1.15rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}
.brand img { display: block; height: 40px; width: auto; }
.footer-brand .brand img { height: 44px; filter: brightness(0) invert(1); }
@media (max-width: 800px) { .brand img { height: 34px; } }
.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav a {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem; font-weight: 500;
    color: var(--ink-70);
    position: relative;
    transition: color var(--dur) var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
    content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
    height: 1px; background: var(--ink);
}
.nav-cta {
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink) !important;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

.nav-toggle { display: none; width: 40px; height: 40px; }

/* ----- Hero: FULL-BLEED image with text overlay (magazine cover style) ----- */
.hero {
    position: relative;
    min-height: clamp(560px, 92vh, 820px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--dark);
    color: var(--paper);
    padding: 0;
}
.hero-image {
    position: absolute; inset: 1.25rem;
    background-size: cover;
    background-position: center 65%;
    background-color: var(--dark);
    filter: brightness(0.7);
    border-radius: 24px;
    overflow: hidden;
}
@media (max-width: 700px) { .hero-image { inset: 0.75rem; border-radius: 16px; } }
.hero::after {
    /* dark→transparent gradient from bottom so text is readable */
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 26, 120, 0.4) 0%, rgba(0, 26, 120, 0.2) 35%, rgba(0, 22, 100, 0.92) 100%);
    pointer-events: none;
}
.hero .wrap {
    position: relative; z-index: 2;
    max-width: var(--wrap);
    padding-block: clamp(2.5rem, 8vw, 5.5rem);
}
.hero-content { max-width: 720px; }
.hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.hero-content h1 { color: var(--paper); margin-bottom: 1.75rem; font-size: clamp(3rem, 7.5vw, 6.5rem); }
/* Lightened blue on dark heroes — brand blue #0075C2 sinks into the navy-tinted photo. */
.hero-content h1 em { color: #7CC3EF; }
.hero-content .lead { color: rgba(255,255,255,0.95); max-width: 55ch; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .btn-primary:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.hero .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.35); background: transparent; }
.hero .btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }

/* Hero benefit trio — mirrors the live tarlu.com value-prop cards. */
.hero-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 3rem 0 0;
}
.hero-benefits li {
    background: rgba(0, 26, 120, 0.4);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-benefits strong {
    display: block;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--paper);
    margin-bottom: 0.35rem;
}
.hero-benefits span {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.88);
}
@media (max-width: 900px) {
    .hero-benefits { grid-template-columns: 1fr; gap: 0.6rem; margin-top: 2rem; }
    .hero-benefits li { padding: 0.85rem 1.1rem; }
    .hero-benefits span { font-size: 0.85rem; }
}

/* KPI bar sits BELOW the hero on its own strip */
.kpi-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
}
.kpi-strip .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-block: clamp(2rem, 4vw, 3rem);
}
.kpi-strip > .wrap > div { padding: 0.5rem 1.5rem; }
.kpi-strip > .wrap > div + div { border-left: 1px solid var(--hairline); }
@media (max-width: 700px) {
    .kpi-strip .wrap { grid-template-columns: 1fr; }
    .kpi-strip > .wrap > div + div { border-left: 0; border-top: 1px solid var(--hairline); padding-top: 1.5rem; margin-top: 1rem; }
}

.kpi-num {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--ink);
    }
.kpi-lbl {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

/* ----- Section headers ------------------------------------------------- */
.section-head {
    max-width: 720px;
    margin: 0 0 4rem;
}
.section-head.centered { margin: 0 auto 4rem; text-align: center; }
.section-head h2 { margin-bottom: 1.5rem; }
.section-head .lead { margin: 0; max-width: 60ch; }
.section-head.centered .lead { margin-inline: auto; }

/* ----- Cream / dark section variants ----------------------------------- */
.section-cream { background: var(--stone-50); }
.section-dark  { background: var(--dark); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p  { color: rgba(255,255,255,0.7); }
.section-dark .eyebrow { color: rgba(255,255,255,0.55); }

/* ----- How it works (editorial numbered steps) ------------------------ */
.how-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
@media (max-width: 900px) { .how-list { grid-template-columns: 1fr; gap: 2rem; } }
.how-item { padding-top: 2rem; border-top: 1px solid var(--hairline); }
.how-num {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold-600);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    }
.how-item h3 { margin-bottom: 0.75rem; }
.how-item p { margin: 0; }

/* ----- About split ----------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
/* Single clean image with rounded shadow — no layering. */
.split-image {
    aspect-ratio: 4/5;
    width: 100%;
    object-fit: cover; object-position: center;
    background-size: cover; background-position: center;
    background-color: var(--stone);
    border-radius: 28px;
    box-shadow: 0 40px 80px -30px rgba(0, 26, 120, 0.25);
}
@media (max-width: 900px) {
    .split-image { aspect-ratio: 4/3; }
}

/* ----- Markets snapshot (BENTO with fixed rows for true masonry) --- */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;   /* fixed row height enables real bento */
    gap: 1.25rem;
}
/* Bento pattern: 6 cards mixing 2x2, 2x1, 3x1, 3x2 shapes */
.markets-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }  /* tall */
.markets-grid > *:nth-child(2) { grid-column: span 4; grid-row: span 1; }  /* wide */
.markets-grid > *:nth-child(3) { grid-column: span 2; grid-row: span 1; }  /* square */
.markets-grid > *:nth-child(4) { grid-column: span 2; grid-row: span 1; }  /* square */
.markets-grid > *:nth-child(5) { grid-column: span 3; grid-row: span 2; }  /* big */
.markets-grid > *:nth-child(6) { grid-column: span 3; grid-row: span 1; }  /* wide */

@media (max-width: 1000px) {
    .markets-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
    .markets-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .markets-grid > *:nth-child(2) { grid-column: span 2; grid-row: span 1; }
    .markets-grid > *:nth-child(3) { grid-column: span 2; grid-row: span 1; }
    .markets-grid > *:nth-child(4) { grid-column: span 2; grid-row: span 1; }
    .markets-grid > *:nth-child(5) { grid-column: span 2; grid-row: span 2; }
    .markets-grid > *:nth-child(6) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
    .markets-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .markets-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
}
/* Bento card = image fills the tile, title/copy overlay on hover. */
.market-card {
    position: relative;
    display: block;
    text-decoration: none; color: inherit;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: var(--stone);
    transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur) var(--ease);
    isolation: isolate;
}
.market-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0, 26, 120, 0.3); }
.market-image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%;
    background-size: cover; background-position: center 30%;
    background-color: var(--stone);
    transition: transform var(--dur-slow) var(--ease), filter var(--dur) var(--ease);
    z-index: 0;
}
/* Focal-point tuning per bento tile — prevents faces/hands being cropped. */
.markets-grid > *:nth-child(1) .market-image { object-position: center 50%; }
.markets-grid > *:nth-child(2) .market-image { object-position: center 78%; }
.markets-grid > *:nth-child(3) .market-image { object-position: center 50%; }
.markets-grid > *:nth-child(4) .market-image { object-position: center 70%; }
.markets-grid > *:nth-child(5) .market-image { object-position: center 40%; }
.markets-grid > *:nth-child(6) .market-image { object-position: center 50%; }
.market-card:hover .market-image { transform: scale(1.05); }
.market-card::after {
    /* dark→transparent gradient so overlay text stays readable */
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 26, 120, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}
.market-card h3,
.market-card p {
    position: relative;
    z-index: 2;
}
.market-card h3 {
    position: absolute;
    bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
    color: var(--paper);
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    margin: 0;
    letter-spacing: -0.02em;
}
/* Description hidden visually — kept in DOM for SEO / screen readers. */
.market-card p {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Markets full page — uniform two-up sector cards, image above text.
   Mirrors the arrangement on tarlu.com/markets-we-serve. */
.sector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
}
.sector-grid + .sector-grid { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 800px) {
    .sector-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.sector-card img {
    aspect-ratio: 3/2;
    width: 100%;
    object-fit: cover; object-position: center;
    background-color: var(--stone);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 24px 48px -28px rgba(0, 26, 120, 0.25);
}
/* Logos and certification marks sit on white, uncropped. */
.sector-card img.img-contain {
    object-fit: contain;
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--hairline);
    box-shadow: none;
}
/* Low crop windows keep the frame on product and hands, faces out of
   shot, matching the crops on tarlu.com (square sources are trimmed
   at the CDN instead — object-position can't exclude their faces). */
#pet-products img { object-position: center bottom; }
#fashion-apparel img { object-position: center 72%; }
.sector-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 0.75rem; }
.sector-card p { margin: 0; max-width: 55ch; }
/* Text-only cards for sectors without dedicated photography. */
.sector-card-text {
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* ----- Services (grouped, editorial list) ----------------------------- */
.service-group {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--hairline);
}
.service-group-head {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: baseline;
    margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .service-group-head { grid-template-columns: 1fr; gap: 1rem; } }
.service-group-title h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0.35rem 0 0; }
.service-group-title p  { margin: 1rem 0 0; }

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0; margin: 0;
}
@media (max-width: 700px) { .service-list { grid-template-columns: 1fr; } }
.service-item {
    padding: 1.75rem;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-item:hover { box-shadow: 0 20px 40px -25px rgba(0, 26, 120, 0.2); }
.service-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.service-item h3 { font-family: 'IBM Plex Sans', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.service-item .strap { font-size: 0.92rem; color: var(--ink); font-weight: 500; margin-bottom: 0.5rem; font-style: italic; font-family: 'IBM Plex Sans', sans-serif; }
.service-item p { margin: 0; font-size: 0.92rem; color: var(--ink-70); }

/* Cream variant of service-item (for alternating groups) */
.section-cream .service-item { background: var(--paper); }

/* ----- FAQ (details/summary accordion) --------------------------------
   Section currently not rendered on any page; styles kept
   so it can be restored without CSS work. ----------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; }
.faq-item {
    background: var(--paper);
    border: 1px solid var(--hairline, rgba(29, 30, 32, 0.1));
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
    border-color: var(--blue);
    box-shadow: 0 6px 24px -12px rgba(0, 26, 120, 0.18);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--ink);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 12px; }
.faq-q { flex: 1; }
.faq-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--stone-50);
    color: var(--blue);
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--blue); color: var(--paper); }
.faq-a { padding: 0 1.5rem 1.4rem; color: var(--ink-70); }
.faq-a p { margin: 0; line-height: 1.65; }
@media (max-width: 600px) {
    .faq-item summary { padding: 1rem 1.15rem; gap: 1rem; }
    .faq-a { padding: 0 1.15rem 1.1rem; }
}

/* ----- Big CTA banner ------------------------------------------------- */
/* Tarlu.com uses giant blue feature blocks — the CTA banner adopts that. */
.cta-banner {
    padding: clamp(4rem, 8vw, 7rem) 2rem;
    background: var(--blue);
    color: var(--paper);
    text-align: center;
    border-radius: 32px;
    max-width: calc(var(--wrap) - 2rem);
    margin: clamp(4rem, 6vw, 6rem) auto;
    box-shadow: 0 30px 80px -30px rgba(0, 26, 120, 0.4);
}
@media (max-width: 700px) { .cta-banner { border-radius: 20px; margin-inline: 1rem; } }
.cta-banner h2 { max-width: 18ch; margin: 0 auto 1.5rem; color: var(--paper); }
.cta-banner h2 em { color: rgba(255,255,255,0.85); }
.cta-banner .lead { margin: 0 auto 2.5rem; max-width: 55ch; color: rgba(255,255,255,0.95); }
.cta-banner .eyebrow { color: rgba(255,255,255,0.95); }
.cta-banner .btn-primary { background: var(--paper); color: var(--blue); border-color: var(--paper); }
.cta-banner .btn-primary:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

/* ----- Contact page — blue band with form card + office photo ----------
   Mirrors the arrangement on tarlu.com/contact-tarlu. ------------------ */
.contact-hero {
    background: var(--blue);
    color: var(--paper);
    padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(4.5rem, 8vw, 6.5rem);
    text-align: center;
}
.contact-hero h1 {
    color: var(--paper);
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
}
.contact-hero > .wrap > .lead { color: rgba(255,255,255,0.95); margin: 0 auto; }
.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
    text-align: left;
}
@media (max-width: 900px) { .contact-hero-grid { grid-template-columns: 1fr; } }
.contact-form-card {
    background: var(--stone);
    border-radius: 20px;
    padding: clamp(1.75rem, 3.5vw, 3rem);
    color: var(--ink);
}
/* Friendly sentence-case labels, as on the live contact page — the
   uppercase micro-labels stay on the other (editorial) forms. */
.contact-form-card .field label {
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
}
.contact-form-card .field input,
.contact-form-card .field textarea {
    background: var(--paper);
    border-radius: 10px;
}
.contact-form-card .field textarea { min-height: 150px; }
.contact-hero-grid > img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 20px;
    min-height: 320px;
    background-color: var(--navy-90);
}
.contact-hero .btn-enquiry {
    background: var(--paper);
    color: var(--blue);
    border-color: var(--paper);
    margin-top: clamp(2rem, 4vw, 3rem);
}
.contact-hero .btn-enquiry:hover { background: transparent; color: var(--paper); }

.address-group { margin-bottom: 1.75rem; }
.address-group h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-600);   /* --blue is 4.49:1 on the cream bg, just under AA */
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.address-group p { margin: 0 0 0.6rem; color: var(--ink-70); font-size: 0.98rem; }
.address-group strong { color: var(--ink); font-weight: 600; }

/* ----- Contact form --------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 3rem; } }
.form { display: flex; flex-direction: column; gap: 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}
.field input, .field textarea {
    padding: 0.9rem 1.1rem;
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
    transition: border-color var(--dur) var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--ink-50); }
.field input:focus, .field textarea:focus {
    outline: 0;
    border-color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; padding-top: 0.5rem; }

.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }
.info-block h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.info-block a, .info-block address {
    color: var(--ink); font-style: normal;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    display: block;
    transition: color var(--dur) var(--ease);
    }
.info-block a:hover { color: var(--muted); }

.location-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.location-list li {
    padding: 1rem 1.15rem;
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    transition: border-color var(--dur) var(--ease);
}
.location-list li:hover { border-color: var(--ink-50); }
.location-list li strong { display: block; color: var(--ink); margin-bottom: 0.35rem; font-size: 0.95rem; }
.location-list li span { color: var(--muted); font-size: 0.9rem; font-family: 'IBM Plex Sans', sans-serif; }

/* ----- Footer --------------------------------------------------------- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: clamp(4rem, 6vw, 5rem) 0 2.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.footer-brand .brand { color: var(--paper); }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 0.75rem; max-width: 28ch; }
.footer-col h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paper);
    font-weight: 500;
    margin: 0 0 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color var(--dur) var(--ease); }
.footer-col ul a:hover { color: var(--paper); }

.footer-bottom {
    padding-top: 1.75rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    color: rgba(255,255,255,0.7); font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--paper); }

/* ----- Reveal animation (subtle on load) ----------------------------- */
@keyframes editorial-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.reveal { animation: editorial-in 0.7s var(--ease) both; }
.reveal-2 { animation-delay: 120ms; }
.reveal-3 { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* ----- Mobile nav --------------------------------------------------- */
@media (max-width: 800px) {
    .nav-toggle {
        display: grid; place-items: center;
        border: 1px solid var(--hairline);
        /* Stay tappable above the open fullscreen nav (z-index 30). */
        position: relative; z-index: 50;
        background: var(--paper);
        border-radius: 8px;
    }
    .nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: background var(--dur) var(--ease); }
    .nav-toggle span::before, .nav-toggle span::after {
        content: ''; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
        transition: transform var(--dur) var(--ease);
    }
    .nav-toggle span::before { top: -6px; }
    .nav-toggle span::after  { top: 6px; }
    /* Hamburger → X while the menu is open. */
    .nav-toggle[aria-expanded="true"] span { background: transparent; }
    .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }
    .nav {
        position: fixed; inset: 0;
        background: var(--paper);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        /* visibility keeps the off-screen links out of the tab order while
           closed; the delay lets the slide-out finish before hiding. */
        visibility: hidden;
        transition: transform 0.4s var(--ease), visibility 0s 0.4s;
        z-index: 30;
    }
    .nav.open { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s 0s; }
    .nav a { font-family: 'Space Grotesk', -apple-system, sans-serif; font-size: 2rem; color: var(--ink); font-variation-settings: 'opsz' 32; }
    .nav a.active::after { display: none; }
    .nav-cta { border: 0; font-family: 'IBM Plex Sans', sans-serif; font-size: 1rem; padding: 0.75rem 1.5rem; background: var(--ink); color: var(--paper) !important; }
    .hero-image { aspect-ratio: 4/3; max-height: 400px; }
    section { padding: 4rem 0; }
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.mt-md { margin-top: 1.5rem; }

/* Cookie consent banner — bottom, non-blocking, dismissible.
   Injected by consent.js once (first visit only). */
.consent-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 60;
    background: var(--ink);
    color: var(--paper);
    border-radius: 16px;
    box-shadow: 0 20px 40px -20px rgba(0, 26, 120, 0.5);
    padding: 1rem 1.25rem;
    animation: consent-slide-in 0.35s var(--ease) both;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
@keyframes consent-slide-in {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.consent-inner {
    display: flex; align-items: center; gap: 1.25rem;
    flex-wrap: wrap;
}
.consent-msg {
    flex: 1 1 320px;
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}
.consent-msg strong { color: var(--paper); }
.consent-msg a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 1px; }
.consent-msg a:hover { border-color: var(--paper); }
.consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.consent-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.consent-btn-primary { background: var(--paper); color: var(--ink); }
.consent-btn-primary:hover { background: var(--blue); color: var(--paper); }
.consent-btn-ghost { background: transparent; color: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.35); }
.consent-btn-ghost:hover { color: var(--paper); border-color: rgba(255,255,255,0.6); }
@media (max-width: 560px) {
    .consent-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.85rem 1rem; }
    .consent-actions { width: 100%; }
    .consent-btn { flex: 1; text-align: center; }
}

/* Services page scroll-spy sub-nav — 4 pill links that stick under the main
   header once scrolled past the hero. IntersectionObserver in-page updates
   which pill is .active as the reader crosses each group. */
.services-spy {
    position: sticky;
    top: var(--header-h);
    z-index: 9;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
    padding: 0.75rem 0;
}
.services-spy .wrap {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.services-spy .wrap::-webkit-scrollbar { display: none; }
.services-spy-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--paper);
    white-space: nowrap;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    text-decoration: none;
}
.services-spy-pill:hover { border-color: var(--ink-50); color: var(--ink); }
.services-spy-pill.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
@media (max-width: 640px) {
    .services-spy { padding: 0.5rem 0; }
    .services-spy-pill { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
    .services-spy-pill span { font-size: 0.62rem; }
}

/* Enquiry form progress indicator — sticky under nav, 3 numbered steps + fill bar.
   State classes: .active (current section in view), .done (already scrolled past). */
.form-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem 1.25rem 0.85rem;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    z-index: 8;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px -18px rgba(0, 26, 120, 0.35);
}
.form-progress-step {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.3rem 0.5rem;
    text-decoration: none;
    color: var(--muted);
    border-radius: 8px;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
    cursor: pointer;
}
.form-progress-step:hover { color: var(--ink); background: var(--stone-50); }
.form-progress-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--dur) var(--ease);
}
.form-progress-lbl {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--dur) var(--ease);
}
.form-progress-step.done .form-progress-num,
.form-progress-step.done .form-progress-lbl { color: var(--ink-70); }
.form-progress-step.active .form-progress-num { color: var(--blue); font-weight: 600; }
.form-progress-step.active .form-progress-lbl { color: var(--ink); font-weight: 600; }
.form-progress-bar {
    grid-column: 1 / -1;
    height: 3px;
    background: var(--stone);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.4rem;
}
.form-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--blue);
    border-radius: 999px;
    transition: width 350ms var(--ease);
}
@media (max-width: 640px) {
    .form-progress { top: var(--header-h); border-radius: 0; margin-left: -1.15rem; margin-right: -1.15rem; }
    .form-progress-lbl { font-size: 0.78rem; }
    .form-progress-num { font-size: 0.62rem; }
}

/* Reviews — light cards with client logos and star ratings.
   Mirrors the "Trusted by Businesses Like Yours" section on tarlu.com. */
.rating-badge { margin: 1.5rem 0 0; }
.rating-badge img { height: 52px; width: auto; margin-inline: auto; }
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-top: 2rem;
}
@media (max-width: 700px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex; flex-direction: column;
    gap: 1.15rem;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.review-card:hover {
    border-color: var(--ink-50);
    box-shadow: 0 20px 40px -25px rgba(0, 26, 120, 0.2);
}
.review-head { display: flex; align-items: center; gap: 0.9rem; }
.review-head img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--hairline);
    padding: 4px;
    flex-shrink: 0;
}
.review-head strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.review-stars { color: #DB9C27; font-size: 0.8rem; letter-spacing: 0.12em; }
.review-card blockquote {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ink-70);
}
.review-author { color: var(--muted); font-size: 0.9rem; font-weight: 500; text-align: right; }


/* Credentials — 4 cert cards under the KPI strip on the homepage. Replaces
   the old text-only trust bar; carries more visual weight and describes what
   each accreditation actually unlocks for the client. */
.credentials {
    padding: clamp(3rem, 5vw, 4rem) 0;
    background: var(--stone-50);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1000px) { .credentials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .credentials-grid { grid-template-columns: 1fr; gap: 1rem; } }

.credential {
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.credential:hover { border-color: var(--ink-50); transform: translateY(-2px); }
.credential-ico {
    width: 36px; height: 36px;
    color: var(--blue);
    margin-bottom: 1rem;
    display: block;
}
.credential h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 0.5rem;
}
.credential p {
    font-size: 0.85rem;
    color: var(--ink-70);
    line-height: 1.55;
    margin: 0;
}

/* Real accreditation marks under the credential cards (assets from tarlu.com). */
.accreditation-logos {
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
}
.accreditation-logos img { height: 64px; width: auto; }
@media (max-width: 560px) { .accreditation-logos { gap: 1.5rem; } .accreditation-logos img { height: 48px; } }

/* Embedded Google Form (complete enquiry) — width attr is a fallback;
   CSS makes it fluid so it never overflows on phones. */
.gform-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 1600px;
    border: 0;
    border-radius: 16px;
    background: var(--stone-50);
}
@media (max-width: 640px) { .gform-embed { height: 1800px; border-radius: 0; } }

/* Recurring patterns extracted from inline styles across form pages */
.section-tight { padding-top: 2.5rem; }
.form-actions {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.form-note { color: var(--muted); font-size: 0.85rem; }
.form-note-error   { color: #96302A; font-weight: 500; }
.form-note-success { color: #1F7A4D; font-weight: 500; }
/* Spam honeypot: off-screen rather than display:none, which some bots detect. */
.field-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}
/* <small> unit label inside a rate value ("/ hour", "/ label") */
.rate-value small { color: var(--muted); font-weight: 400; }

/* =============================================================================
   Utility / hidden pages — rate tables, extended forms, legal docs, doc hero.
   Applied by files not linked in the main nav (complaints, pricing, T&Cs).
   ========================================================================== */

/* ----- Doc hero ------------------------------------------------------- */
/* Compact solid-colour hero for utility pages (no full-bleed image). */
.doc-hero {
    position: relative;
    padding: clamp(6rem, 10vw, 9rem) 0 clamp(3rem, 5vw, 4rem);
    background: var(--stone-50);
    border-bottom: 1px solid var(--hairline);
}
.doc-hero .eyebrow { color: var(--muted); }
.doc-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    color: var(--ink);
    max-width: 22ch;
    margin-bottom: 1.25rem;
}
.doc-hero .lead { color: var(--ink-70); max-width: 62ch; }
.doc-hero .doc-meta {
    margin-top: 2rem;
    display: flex; gap: 2rem; flex-wrap: wrap;
    font-size: 0.85rem; color: var(--muted);
}
.doc-hero .doc-meta strong { color: var(--ink); font-weight: 600; }

/* ----- Rate tables (pricing) ---------------------------------------- */
.rate-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 800px) { .rate-groups { grid-template-columns: 1fr; } }

.rate-group { break-inside: avoid; }
.rate-group h2 {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ink);
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.rate-group h2 .rate-group-num {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}
.rate-table { list-style: none; padding: 0; margin: 0; }
.rate-table li {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.98rem;
}
.rate-table li:last-child { border-bottom: 0; }
.rate-table .rate-label { color: var(--ink); flex: 1; }
.rate-table .rate-value {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.rate-table .rate-value.free { color: var(--gold-600); }
.rate-note {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--stone-50);
    border-left: 3px solid var(--gold-600);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--muted);
}
.rate-note strong { color: var(--ink); }

/* Full-width rate group (single-column variant for long tables) */
.rate-group.full { grid-column: 1 / -1; }

/* ----- Extended form controls (radio / checkbox / select) ----------- */
.field select {
    padding: 0.9rem 1.1rem;
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
    transition: border-color var(--dur) var(--ease);
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2356585E'><path d='M10 13.5l-5-5 1.4-1.4L10 10.7l3.6-3.6L15 8.5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 2.75rem;
    cursor: pointer;
}
.field select:hover { border-color: var(--ink-50); }
.field select:focus { outline: 0; border-color: var(--ink); }

.field-group { display: flex; flex-direction: column; gap: 0.6rem; }
.field-group > label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.3rem;
}
.opt {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    font-size: 0.95rem;
    color: var(--ink);
}
.opt:hover { border-color: var(--ink-50); }
.opt input[type="radio"], .opt input[type="checkbox"] {
    margin-top: 0.15rem; flex-shrink: 0;
    accent-color: var(--blue);
    width: 18px; height: 18px;
    cursor: pointer;
}
.opt input:checked + span,
.opt:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.opt-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.opt-inline .opt { flex: 1 1 auto; }

.consent {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 1rem 1.15rem;
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--ink-70);
    line-height: 1.5;
}
.consent input { accent-color: var(--blue); width: 18px; height: 18px; margin-top: 0.15rem; flex-shrink: 0; cursor: pointer; }

/* Fieldset that wraps a section of the form. */
.form-section {
    display: flex; flex-direction: column; gap: 1.25rem;
    padding: 0;
    border: 0;
    margin: 0;
}
.form-section legend {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
    padding: 0;
}
.form-section-num {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-600);
    display: block;
    margin-bottom: 0.35rem;
}
.form + .form-section, .form-section + .form-section {
    padding-top: 2.25rem;
    border-top: 1px solid var(--hairline);
    margin-top: 0.5rem;
}

/* ----- Legal doc (T&Cs) -------------------------------------------- */
.legal-doc {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
}
@media (max-width: 900px) { .legal-doc { grid-template-columns: 1fr; } }
.legal-toc {
    position: sticky; top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
    font-size: 0.9rem;
}
@media (max-width: 900px) {
    .legal-toc { position: static; max-height: none; padding: 0; }
}
.legal-toc h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0 0 1rem;
}
.legal-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.legal-toc li { counter-increment: toc; margin: 0.4rem 0; }
.legal-toc li::before {
    content: counter(toc, decimal-leading-zero) ' ';
    color: var(--gold-600);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    margin-right: 0.5rem;
}
.legal-toc a { color: var(--ink-70); transition: color var(--dur) var(--ease); }
.legal-toc a:hover { color: var(--ink); }

.legal-body { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.legal-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    letter-spacing: -0.015em;
    margin: 3rem 0 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hairline);
}
.legal-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--ink);
}
.legal-body p { color: var(--ink-70); font-size: 0.98rem; margin: 0 0 1rem; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body ol, .legal-body ul { padding-left: 1.25rem; color: var(--ink-70); font-size: 0.98rem; }
.legal-body li { margin: 0.5rem 0; }
.legal-body dl { margin: 0 0 1.5rem; }
.legal-body dt {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1.25rem;
    font-size: 1rem;
}
.legal-body dd { margin: 0.35rem 0 0; color: var(--ink-70); font-size: 0.98rem; }
.legal-body .callout {
    padding: 1rem 1.25rem;
    background: var(--stone-50);
    border-left: 3px solid var(--gold-600);
    border-radius: 0 8px 8px 0;
    color: var(--ink);
    font-size: 0.95rem;
    margin: 1.5rem 0 2rem;
}
.legal-body .clause-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--gold-600);
    margin-right: 0.5rem;
    font-variant-numeric: tabular-nums;
}

/* ----- Requirements checklist -------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.check-list li {
    display: flex; gap: 0.9rem; align-items: flex-start;
    padding: 0.9rem 1.1rem;
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    font-size: 0.98rem;
    color: var(--ink);
}
.check-list li::before {
    content: '✓';
    color: var(--gold-600);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

/* ----- Two-column info split (aside + text) ------------------------ */
.doc-split {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 900px) { .doc-split { grid-template-columns: 1fr; } }
.doc-split-aside {
    padding: 1.5rem;
    background: var(--stone-50);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    font-size: 0.92rem;
    color: var(--ink-70);
}
.doc-split-aside h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0 0 0.75rem;
}
.doc-split-aside p:last-child { margin-bottom: 0; }
.doc-split-aside .aside-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

/* =============================================================================
   Responsive — full-coverage breakpoint sweep.
   Tiers: ≥1200 desktop · 900–1199 laptop · 640–899 tablet · <640 phone.
   Order matches source cascade — later rules win where they overlap earlier ones.
   ========================================================================== */

/* Global — prevent long strings (URLs, code, addresses) from breaking layout */
body { overflow-wrap: break-word; word-wrap: break-word; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: manual; }
.wrap, .wrap-narrow { max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

/* Tablet + small laptop -------------------------------------------- */
@media (max-width: 1024px) {
    section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
    /* Markets grid — bento becomes even 2-col grid */
    .markets-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .markets-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
    /* Split section stacks under 1000px */
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split-image { aspect-ratio: 16/10; }
}

/* Small tablet ------------------------------------------------------- */
@media (max-width: 900px) {
    /* Header eases in gap so brand + toggle fit */
    .site-header .wrap { gap: 1rem; }
    .brand img { height: 34px; }
    /* Legal doc TOC moves above body (grid rule already at 900 elsewhere) */
    .legal-body { font-size: 0.95rem; }
    .legal-body h2 { margin-top: 2.25rem; padding-top: 1.5rem; }
    /* Section head centred padding */
    .section-head { margin-bottom: 2.5rem; }
    /* Rate group grid already stacks below 800 */
    /* Kpi strip: reduce internal padding */
    .kpi-strip > .wrap > div { padding: 0.35rem 1rem; }
}

/* Mobile nav & hero — already handled at 800, but extend adjustments */
@media (max-width: 800px) {
    /* Doc hero pad + heading trim */
    .doc-hero { padding: clamp(4.5rem, 12vw, 6rem) 0 clamp(2rem, 5vw, 3rem); }
    .doc-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .doc-hero .lead { font-size: clamp(1rem, 3.4vw, 1.15rem); }
    .doc-meta { gap: 1rem; font-size: 0.8rem; }
    /* Rate table already 1-col at 800 (rate-groups rule) */
    /* Kpi strip already stacks to 1 col at 700 */
    .kpi-strip > .wrap > div + div { border-left: 0; }
    .kpi-num { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    /* Form section grid to 1 col */
    .form-grid { grid-template-columns: 1fr; }
    /* Opt-inline (radio pills) allow full width */
    .opt-inline .opt { flex: 1 1 100%; }
    /* Service group head stacks */
    .service-group-head { grid-template-columns: 1fr; gap: 0.5rem; }
    .service-list { grid-template-columns: 1fr; }
    /* CTA banner: reduce padding */
    .cta-banner { padding: clamp(3rem, 8vw, 5rem) 0; }
    /* Footer: stack address block */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* Phone -------------------------------------------------------------- */
@media (max-width: 560px) {
    :root { --wrap: 100%; }
    .wrap { padding: 0 1.15rem; }
    section { padding: 3rem 0; }
    /* Nav toggle stays right — brand shrinks */
    .brand img { height: 30px; }
    /* Hero heading — allow to break natural */
    .hero-content h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
    .hero-content .lead { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    /* Doc hero */
    .doc-hero { padding: 4rem 0 2rem; }
    .doc-hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); max-width: 100%; }
    /* Section head */
    .section-head h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
    /* Markets — single column */
    .markets-grid { grid-template-columns: 1fr; gap: 1rem; }
    .markets-grid > * { grid-column: 1 !important; }
    .market-card { min-height: 260px; }
    .market-card h3 { font-size: 1.35rem; }
    /* Rate tables — force wrap on long labels */
    .rate-table li { flex-wrap: wrap; gap: 0.35rem 1rem; padding: 0.75rem 0; }
    .rate-table .rate-value { font-size: 0.95rem; }
    .rate-group h2 { flex-wrap: wrap; gap: 0.5rem; font-size: 1.2rem; }
    /* Doc split aside becomes full-width */
    .doc-split-aside { padding: 1.15rem; }
    /* Buttons full-width where they'd overflow */
    .btn { padding: 0.9rem 1.25rem; font-size: 0.9rem; }
    /* Form controls */
    .field input, .field textarea, .field select { font-size: 1rem; padding: 0.85rem 1rem; }
    /* Section legend size */
    .form-section legend { font-size: 1.15rem; }
    /* Contact info block: smaller values */
    .info-block a, .info-block address { font-size: 1.05rem; }
    /* Location list */
    .location-list li { padding: 0.85rem 1rem; }
    .location-list li strong { font-size: 0.9rem; }
    .location-list li span { font-size: 0.85rem; }
    /* Legal doc callout */
    .legal-body .callout { padding: 0.85rem 1rem; font-size: 0.9rem; }
    /* Contact layout — already 1-col at 900. Reduce gap. */
    .contact-layout { gap: 2rem; }
    /* Site header — reduce padding */
    .site-header .wrap { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    /* Footer brand image smaller */
    .footer-brand .brand img { height: 36px; }
}

/* Ultra-narrow (older iPhone SE — 320px) -------------------------- */
@media (max-width: 380px) {
    .wrap { padding: 0 0.9rem; }
    .hero-content h1 { font-size: 1.95rem; }
    .doc-hero h1 { font-size: 1.7rem; }
    .section-head h2 { font-size: 1.55rem; }
    .btn { padding: 0.85rem 1.1rem; font-size: 0.88rem; }
    .kpi-num { font-size: 1.6rem; }
    .rate-group h2 { font-size: 1.1rem; }
    .rate-table li { font-size: 0.92rem; }
    /* Nav CTA — smaller pill */
    .nav-cta { font-size: 0.9rem; padding: 0.6rem 1.15rem; }
}

/* High-density landscape phones (max-height guardrail) ------------ */
@media (max-height: 500px) and (orientation: landscape) {
    /* Fixed mobile nav overlay: allow scroll */
    .nav.open { overflow-y: auto; padding: 2rem 1rem; }
    .nav a { font-size: 1.35rem; }
    .hero { min-height: auto; }
    .hero-image { aspect-ratio: 21/9; }
}

/* Reduce motion — respect user preference (already global at top) --- */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-2, .reveal-3, .consent-banner { animation: none !important; }
    .market-card, .market-row-image { transition: none; }
    /* Ensure any element that starts hidden ends up visible */
    .reveal, .reveal-2, .reveal-3 { opacity: 1; transform: none; }
    .consent-banner { transform: translateY(0); opacity: 1; }
}

/* =============================================================================
   Print — optimised for legal doc (T&Cs) but sane for any page.
   Hides chrome (nav / footer / TOC), forces readable black-on-white typography,
   avoids clause-breaks mid-page, and prints the URL at the top so the
   printed copy can be traced back to source.
   ========================================================================== */
@media print {
    @page { margin: 18mm 16mm; size: A4; }

    /* Kill interactive chrome */
    .site-header, .site-footer, .nav-toggle,
    .cta-banner, .skip-link,
    .legal-toc, .doc-hero .doc-meta,
    .btn, .link-underline { display: none !important; }

    /* Neutralise brand colour bloat — save toner */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10.5pt;
        line-height: 1.5;
    }
    a { color: #000 !important; text-decoration: none !important; }
    /* Show inline link targets on paper */
    .legal-body a[href^="http"]::after,
    .legal-body a[href^="mailto:"]::after,
    .legal-body a[href^="tel:"]::after {
        content: ' (' attr(href) ')';
        font-size: 0.85em;
        color: #555;
    }
    a[href^="#"]::after { content: ''; }

    /* Doc hero collapses to a compact header block */
    .doc-hero {
        background: transparent !important;
        border: 0 !important;
        padding: 0 0 0.75rem !important;
        page-break-after: avoid;
    }
    .doc-hero h1 {
        font-size: 20pt !important;
        margin: 0 0 0.3rem !important;
        color: #000 !important;
    }
    .doc-hero .eyebrow { font-size: 8pt !important; color: #555 !important; letter-spacing: 0.12em; }
    .doc-hero .lead { font-size: 10.5pt !important; color: #333 !important; max-width: 100% !important; }

    /* Legal body — occupy the full page, no grid */
    .legal-doc { display: block !important; }
    .legal-body { font-size: 10pt !important; color: #000 !important; }
    .legal-body h2 {
        font-size: 13pt !important;
        margin: 1.5rem 0 0.5rem !important;
        padding: 0.5rem 0 0 !important;
        border-top: 1px solid #999 !important;
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    .legal-body h2:first-child { border-top: 0 !important; }
    .legal-body h3 {
        font-size: 11pt !important;
        margin: 0.85rem 0 0.35rem !important;
        page-break-after: avoid;
    }
    .legal-body p, .legal-body dt, .legal-body dd, .legal-body li {
        color: #000 !important;
        orphans: 3; widows: 3;
        page-break-inside: avoid;
    }
    .legal-body .callout {
        background: transparent !important;
        border: 1px solid #999 !important;
        border-left: 3px solid #000 !important;
        padding: 0.5rem 0.75rem !important;
        color: #000 !important;
    }
    .legal-body .clause-num { color: #555 !important; }

    /* Section paddings collapse */
    section { padding: 0.5rem 0 !important; }
    .wrap { padding: 0 !important; max-width: 100% !important; }

    /* Rate tables — print as tight text rows */
    .rate-groups { grid-template-columns: 1fr !important; gap: 0.5rem !important; }
    .rate-table li { padding: 0.25rem 0 !important; font-size: 9.5pt !important; }
    .rate-value { font-weight: 600 !important; }

    /* Backgrounds should not print by default; but ensure images if needed */
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* Force page break before big new clauses in T&Cs */
    .legal-body h2[id^="clause-"] { page-break-before: auto; }
    /* Callout that flags clause 16 — keep with next heading */
    .legal-body .callout + h2 { page-break-before: avoid; }
}
