/* ============================================================================
   Service page system (.brx-*) -- shared by the six US service pages rendered
   through includes/service-page.php. Lifted from brochure-design.php's
   page-scoped styles so every service page shares one set of components.
   Section rules (hero, capability grid, process, CTA) are unchanged from the
   brochure page; the hero photo is replaced by a brand gradient plus an
   illustrative panel, and benefits / use cases / FAQ / related links are new.
   ========================================================================== */

.svc-page {
    --brx-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --brx-line: rgba(7, 52, 71, 0.12);
    --brx-line-light: rgba(255, 255, 255, 0.16);
}

.brx-shell { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Section rhythm. VISUAL_DENSITY sits low here on purpose — this is a
   consideration-stage service page, so it should breathe. */
.brx-section { padding: 110px 0; }
@media (max-width: 991px) { .brx-section { padding: 72px 0; } }

.brx-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 22px;
}
.brx-eyebrow.is-on-deep { color: #ff8f8f; }

/* Headings: hierarchy comes from weight and measure, not from sheer size.
   clamp() means these never need a media-query ladder, and never orphan a
   word the way a hard <br> does. */
.brx-h1 {
    font-size: clamp(36px, 3.9vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 26px;
    /* 19ch holds "Company profiles that / win the meeting" on two lines at every
       desktop width. 15ch pushed it to three, which reads as a font-size error. */
    max-width: 19ch;
    text-wrap: balance;
}
.brx-h1 em {
    font-style: normal;
    color: #ff8f8f;
}
.brx-h2 {
    font-size: clamp(30px, 3.1vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 20px;
    max-width: 20ch;
    text-wrap: balance;
}
.brx-h2.is-on-deep { color: #fff; }
.brx-lede {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-body);
    max-width: 58ch;
    margin: 0 0 18px;
}
.brx-lede.is-on-deep { color: rgba(255, 255, 255, 0.76); }

/* ---------------------------------------------------------------- hero ---- */
/* Asymmetric split: content sits in the left 7 columns, the composed visual
   in the right 5. min-height uses dvh, not vh — vh jumps when mobile Safari
   collapses its address bar. */
.brx-hero {
    position: relative;
    /* No photograph: the service pages carry an illustrative panel on the
       right instead, so the ground is the brand teal with the same red glow
       the CTA band uses. */
    background: var(--color-deep);
    overflow: hidden;
    padding: 132px 0 104px;
    min-height: min(88dvh, 820px);
    display: flex;
    align-items: center;
}
.brx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(38% 60% at 86% 30%, rgba(232, 66, 66, 0.16), transparent 70%),
        radial-gradient(50% 70% at 10% 100%, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
}
.brx-hero > .brx-shell { position: relative; z-index: 1; width: 100%; }

/* Copy on the left, illustrative panel on the right. Capping the copy measure
   (rather than filling the width) keeps the lede readable on wide screens. */
.brx-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}
.brx-hero-copy { max-width: 700px; }

@media (max-width: 991px) {
    .brx-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 991px) {
    .brx-hero { padding: 104px 0 72px; min-height: 0; }
    .brx-hero-copy { max-width: 100%; }
}

.brx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Buttons. Both get the same press feedback: 160ms, ease-out, scale 0.97 —
   enough to confirm the press without reading as a bounce. */
.brx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 160ms var(--brx-ease),
                background-color 200ms ease,
                border-color 200ms ease,
                color 200ms ease;
}
.brx-btn:active { transform: scale(0.97); }
.brx-btn-primary { background: var(--color-brand); color: #fff; }
.brx-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: var(--brx-line-light);
}
@media (hover: hover) and (pointer: fine) {
    .brx-btn-primary:hover { background: var(--color-brand-hover); color: #fff; }
    .brx-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
}
.brx-btn .brx-arrow { transition: transform 200ms var(--brx-ease); }
@media (hover: hover) and (pointer: fine) {
    .brx-btn:hover .brx-arrow { transform: translateX(3px); }
}

/* Hero entrance. Staggered by 70ms so the eye lands eyebrow → headline →
   copy → buttons in the order it should read them. Pure CSS, deliberately not
   AOS: AOS holds elements at opacity 0 until it initialises, which flashes an
   empty hero above the fold. */
.brx-rise {
    opacity: 0;
    transform: translateY(14px);
    animation: brx-rise 640ms var(--brx-ease) forwards;
}
.brx-rise:nth-child(1) { animation-delay: 40ms; }
.brx-rise:nth-child(2) { animation-delay: 110ms; }
.brx-rise:nth-child(3) { animation-delay: 180ms; }
.brx-rise:nth-child(4) { animation-delay: 250ms; }
.brx-rise:nth-child(5) { animation-delay: 320ms; }
@keyframes brx-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- proof ----- */
/* Hairline-separated metrics instead of three boxed cards. Nothing here needs
   elevation, so nothing here gets a card. */
.brx-proof {
    border-top: 1px solid var(--brx-line-light);
    margin-top: 72px;
    padding-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 767px) { .brx-proof { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }
.brx-proof-n {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}
.brx-proof-l {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------- capability --- */
/* Asymmetric 12-col grid, not eight identical thirds. The first item spans
   wider and carries the section's weight; the rest sit on hairlines. */
.brx-cap-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--brx-line);
    border: 1px solid var(--brx-line);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 56px;
}
.brx-cap {
    grid-column: span 4;
    background: var(--color-surface);
    padding: 38px 32px;
    transition: background-color 220ms ease;
}
.brx-cap.is-wide { grid-column: span 6; }
@media (hover: hover) and (pointer: fine) {
    .brx-cap:hover { background: #fbfcfc; }
}
@media (max-width: 991px) {
    .brx-cap, .brx-cap.is-wide { grid-column: span 6; }
}
@media (max-width: 575px) {
    .brx-cap, .brx-cap.is-wide { grid-column: span 12; }
    .brx-cap { padding: 30px 24px; }
}
.brx-cap img { width: 46px; height: 46px; margin-bottom: 22px; }
.brx-cap h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    margin: 0 0 10px;
}
.brx-cap p {
    font-size: 15px;
    line-height: 1.62;
    color: var(--color-body);
    margin: 0;
}

/* -------------------------------------------------------------- work ----- */
.brx-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 52px;
}
@media (max-width: 991px) { .brx-work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .brx-work-grid { grid-template-columns: 1fr; } }

.brx-work {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-surface-alt);
    text-decoration: none;
    transition: transform 260ms var(--brx-ease),
                box-shadow 260ms var(--brx-ease);
}
.brx-work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 520ms var(--brx-ease);
}
/* Caption plate. Sits on a gradient rather than a flat scrim so the image
   stays readable underneath it. */
.brx-work-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 56px 20px 18px;
    /* These are product mockups shot on light grey, so the plate carries more
       weight than a scrim over photography would need — the label has to stay
       legible over near-white as well as over dark artwork. */
    background: linear-gradient(to top, rgba(7, 52, 71, 0.94) 0%, rgba(7, 52, 71, 0.72) 45%, rgba(7, 52, 71, 0) 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
@media (hover: hover) and (pointer: fine) {
    .brx-work:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(7, 52, 71, 0.5); }
    .brx-work:hover img { transform: scale(1.04); }
}

/* ----------------------------------------------------------- process ----- */
.brx-steps { margin-top: 52px; border-top: 1px solid var(--brx-line); }
.brx-step {
    display: grid;
    grid-template-columns: 80px 1fr 1.3fr;
    gap: 28px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--brx-line);
}
@media (max-width: 767px) {
    .brx-step { grid-template-columns: 52px 1fr; gap: 18px; row-gap: 8px; }
    .brx-step p { grid-column: 2; }
}
.brx-step-n {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-brand);
    padding-top: 4px;
}
.brx-step h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    margin: 0;
}
.brx-step p {
    font-size: 15px;
    line-height: 1.62;
    color: var(--color-body);
    margin: 0;
}

/* --------------------------------------------------------------- cta ----- */
/* Full-bleed band: the teal runs edge to edge, but the copy inside still sits
   on .brx-shell's margin so it lines up with every section above it. No radius
   and no side padding of its own — the shell supplies both. */
.brx-cta {
    background: var(--color-deep);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.brx-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(42% 78% at 82% 24%, rgba(232, 66, 66, 0.18), transparent 68%);
    pointer-events: none;
}
.brx-cta > * { position: relative; z-index: 1; }

/* Two columns: the argument on the left, a real piece of work on the right.
   The right half was previously empty, which read as an unfinished section
   rather than as deliberate space. */
.brx-cta-grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 72px;
    align-items: center;
}
.brx-cta-copy { max-width: 620px; }

.brx-cta-art {
    position: relative;
    /* 16px matches .brx-work — one radius scale across the page. */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 36px 72px -28px rgba(0, 0, 0, 0.75);
    transform: rotate(1.4deg);
}
/* These mockups are shot on light grey, which on a deep-teal ground reads as a
   glaring plate. Knocking the exposure back and cooling it slightly settles the
   photograph into the section instead of floating on top of it. */
.brx-cta-art img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.88) contrast(1.04) saturate(1.05);
}
/* 1px inner edge so it reads as a lit object, not a pasted rectangle. */
.brx-cta-art::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

@media (max-width: 991px) {
    .brx-cta-grid { grid-template-columns: 1fr; gap: 48px; }
    .brx-cta-copy { max-width: 100%; }
    .brx-cta-art { max-width: 420px; transform: rotate(0deg); }
}
@media (max-width: 767px) { .brx-cta { padding: 64px 0; } }

.brx-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--brx-line-light);
}
.brx-contact-row a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 2px;
    transition: border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .brx-contact-row a:hover { border-color: #fff; }
}
.brx-contact-row span { color: rgba(255, 255, 255, 0.5); font-size: 13px; display: block; margin-bottom: 6px; }

/* ------------------------------------------------- reduced motion -------- */
/* Motion sensitivity means less movement, not no feedback: opacity still
   resolves so nothing is left invisible, but nothing translates or floats. */
@media (prefers-reduced-motion: reduce) {
    .brx-rise {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .brx-work,
    .brx-work img,
    .brx-btn,
    .brx-btn .brx-arrow { transition: none; }
    .brx-work:hover { transform: none; }
    .brx-work:hover img { transform: none; }
}

/* ============================================================================
   Components added for the US service pages.
   ========================================================================== */

/* ------------------------------------------------------ hero example panel */
/* The scope doc asks for illustrative visuals (a workflow, a sample chat, a
   keyword map) clearly labelled as examples, never fake dashboards. Built in
   HTML so it needs no image asset and stays sharp at every width. */
.brx-demo {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--brx-line-light);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 36px 72px -32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #fff;
}
.brx-demo-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.brx-demo-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--brx-line-light);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* flow: a vertical chain of steps; .is-alt marks a branch (review, error) */
.brx-flow { list-style: none; margin: 0; padding: 0; }
.brx-flow li {
    position: relative;
    padding: 0 0 18px 34px;
    font-size: 15px;
    line-height: 1.45;
}
.brx-flow li:last-child { padding-bottom: 0; }
.brx-flow li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(232, 66, 66, 0.2);
}
.brx-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 20px;
    bottom: 2px;
    width: 1px;
    background: var(--brx-line-light);
}
.brx-flow small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.brx-flow li.is-alt::before { background: #f5b942; box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.2); }

/* chat: a sample conversation */
.brx-chat { display: flex; flex-direction: column; gap: 10px; }
.brx-msg {
    max-width: 86%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.brx-msg.is-user { align-self: flex-end; background: var(--color-brand); border-bottom-right-radius: 4px; }
.brx-msg.is-bot { align-self: flex-start; background: rgba(255, 255, 255, 0.1); border-bottom-left-radius: 4px; }
.brx-msg.is-note {
    align-self: center;
    max-width: 100%;
    background: none;
    border: 1px dashed var(--brx-line-light);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
}

/* rows: a two-column map (search topic -> page, day -> post ...) */
.brx-rows { margin: 0; }
.brx-rows div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--brx-line-light);
    font-size: 14px;
    line-height: 1.45;
}
.brx-rows div:first-child { border-top: 0; padding-top: 0; }
.brx-rows dt { font-weight: 400; color: rgba(255, 255, 255, 0.72); }
.brx-rows dd { margin: 0; font-weight: 600; }
.brx-rows .brx-rows-h dt,
.brx-rows .brx-rows-h dd {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------ overview --- */
.brx-overview {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}
.brx-overview .brx-h2,
.brx-overview .brx-lede { margin: 0; }
@media (max-width: 991px) { .brx-overview { grid-template-columns: 1fr; gap: 22px; } }

/* ------------------------------------------------------------ benefits --- */
/* Three outcomes on hairlines, no cards: they are claims to read, not items
   to click. */
.brx-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--brx-line);
}
@media (max-width: 991px) { .brx-benefits { grid-template-columns: 1fr; gap: 30px; margin-top: 44px; } }
.brx-benefit h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    margin: 0 0 10px;
}
.brx-benefit p { font-size: 15px; line-height: 1.62; color: var(--color-body); margin: 0; }

/* Numeric marker, used by benefits and by capability cards that have no
   icon asset. */
.brx-num {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-brand);
    margin-bottom: 14px;
}
.brx-cap .brx-num { margin-bottom: 18px; }

/* ----------------------------------------------------------- use cases --- */
.brx-uses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
}
@media (max-width: 991px) { .brx-uses { grid-template-columns: 1fr; } }
.brx-use {
    background: var(--color-surface);
    border: 1px solid var(--brx-line);
    border-radius: 16px;
    padding: 28px 26px;
}
.brx-use h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-ink);
    margin: 0 0 8px;
}
.brx-use p { font-size: 15px; line-height: 1.6; color: var(--color-body); margin: 0; }

/* ----------------------------------------------------------------- faq --- */
/* Native <details>: keyboard and screen-reader support for free, and it works
   before any script has loaded. */
.brx-faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 991px) { .brx-faq-grid { grid-template-columns: 1fr; gap: 28px; } }
.brx-faq { border-top: 1px solid var(--brx-line); }
.brx-faq details { border-bottom: 1px solid var(--brx-line); }
.brx-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}
.brx-faq summary::-webkit-details-marker { display: none; }
.brx-faq summary::after {
    content: "+";
    flex: none;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-brand);
    transition: transform 200ms var(--brx-ease);
}
.brx-faq details[open] summary::after { transform: rotate(45deg); }
.brx-faq summary:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 4px; border-radius: 4px; }
.brx-faq details p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-body);
    margin: 0;
    padding: 0 40px 26px 0;
    max-width: 62ch;
}

/* ------------------------------------------------------ related links ---- */
/* Sits in the right column of the closing CTA band. */
.brx-related {
    border: 1px solid var(--brx-line-light);
    border-radius: 18px;
    padding: 30px;
}
.brx-related-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}
.brx-related a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--brx-line-light);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}
.brx-related a:last-child { border-bottom: 0; padding-bottom: 0; }
.brx-related .brx-arrow { flex: none; transition: transform 200ms var(--brx-ease); }
@media (hover: hover) and (pointer: fine) {
    .brx-related a:hover { color: #fff; }
    .brx-related a:hover .brx-arrow { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
    .brx-faq summary::after,
    .brx-related .brx-arrow { transition: none; }
}

/* Service-page H1s run longer than the brochure one ("Help Website Visitors
   Get Answers and Take the Next Step") and share the row with the example
   panel, so they sit a step smaller and a little wider. */
.svc-page .brx-h1 { font-size: clamp(34px, 3.3vw, 52px); max-width: 20ch; }

/* The theme sheets colour li / figcaption / dd directly, so inheriting #fff
   from .brx-demo is not enough -- set it on the text elements themselves. */
.brx-demo-head, .brx-demo-head span:first-child, .brx-flow li, .brx-msg, .brx-rows dd { color: #fff; }
