/* ==========================================================================
   In-House Escrow — Homepage styles
   Table of contents:
   1. Design tokens (custom properties)
   2. Reset & base
   3. Layout helpers
   4. Buttons
   5. Site header & navigation
   6. Mobile menu
   7. Hero
   8. Audience cards
   9. About / "Who we are"
   10. Value props
   11. Process steps
   12. Locations
   13. Final CTA banner
   14. Footer
   15. Utilities & accessibility
   16. Typography styles (reusable .title-* / .text-* classes, .on-dark, .prose)
   17. Design system reference pages (element.html, typography.html)
   18. Inner page hero
   19. Panels, step list & QR code
   20. Forms, upload, notices & info list
   21. Profile card & accordion
   22. Split (text + media)
   23. Roadmap
   24. Tabs, choices, select, repeater & form sections
   25. Slider
   26. Bare page (team bio: back bar, no header or footer)
   27. Service grid
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */

/*
  Fluid scale strategy
  --------------------
  The source design has two fixed artboards: mobile at 390px and desktop at
  1440px. Rather than jumping between the mobile values and the desktop
  values at a single breakpoint (which left everything between 1024px and
  1439px looking cramped/oversized), every spacing and type token below is
  interpolated with clamp() between those two exact values:

    clamp(MIN, MIN + (MAX - MIN) * ((100vw - 390px) / 1050), MAX)

  1050 = 1440 - 390 (the viewport range the design spans). Below 390px the
  value holds at MIN; above 1440px it holds at MAX — so it is pixel-accurate
  at both source artboards AND at every width in between (1199px, 1499px,
  etc.), not just at hard-coded stops.

  Hard breakpoints (520 / 768 / 1024 / 1199 / 1499) are reserved for
  structural changes only: grid column counts, nav style, hover states.
  See section 3 for the breakpoint map.
*/
:root {
  /* Color: surfaces */
  --color-bg: #f8f8f0;
  --color-surface: #ffffff;
  --color-surface-alt: #f8f8f0;
  --color-placeholder-bg: #e6e6d8;

  /* Color: brand ink & accent */
  --color-ink: #063231;          /* primary dark teal (headings, dark surfaces) */
  --color-ink-soft: #0f1f1e;     /* body base color */
  --color-teal: #1d5c57;         /* links, eyebrow text */
  --color-teal-darker: #042423;  /* footer background */
  --color-accent: #aff173;       /* lime CTA accent */
  --color-accent-hover: #9de35c;
  --color-accent-soft: #c3f595;
  --color-accent-ink: #25504a;   /* body text on accent surfaces */

  /* Color: text */
  --color-text-muted: #3a4947;
  --color-text-subtle: #4a5957;
  --color-text-on-dark: #c4d6d2;
  --color-white: #ffffff;

  /* Color: borders */
  --color-border: #e2e2d5;
  --color-border-soft: #ebebe0;
  --color-border-dark: rgba(255, 255, 255, 0.22);
  --color-border-on-dark: rgba(255, 255, 255, 0.14);

  /* Color: feedback (form states; AA contrast on their soft backgrounds) */
  --color-error: #b42318;
  --color-error-soft: #fef3f2;
  --color-error-border: #fecdca;
  --color-success-soft: #eefbe2;

  /* Typography */
  --font-heading: 'Manrope', 'DM Sans', system-ui, sans-serif;
  --fontext-body: 'DM Sans', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-round: 50%;

  /* Layout */
  --container-width: 1240px;
  --header-height-mobile: 72px;            /* top of page */
  --header-height-desktop: 110px;          /* top of page: fits the 86px logo */
  --header-height-mobile-scrolled: 60px;   /* after scrolling (.is-scrolled) */
  --header-height-desktop-scrolled: 66px;
  --header-shadow: 0 8px 24px -16px rgba(6, 50, 49, 0.35);

  /* Motion */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.25s ease;
  --transition-header: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); /* header shrink + logo cross-fade */

  /* Fluid spacing (mobile 390px -> desktop 1440px) */
  --space-page-x: clamp(24px, calc(24px + 76 * ((100vw - 390px) / 1050)), 100px);
  --py-hero-top: clamp(18px, calc(18px + 22 * ((100vw - 390px) / 1050)), 40px);
  /* Global vertical rhythm: every section, the bottom of every hero and the
     closing CTA banner use --py-section; never set section padding per page */
  --py-section: clamp(64px, calc(64px + 40 * ((100vw - 390px) / 1050)), 104px);
  --py-footer: clamp(48px, calc(48px + 40 * ((100vw - 390px) / 1050)), 88px);
  --cta-pad-y: clamp(44px, calc(44px + 44 * ((100vw - 390px) / 1050)), 88px);
  --cta-pad-x: clamp(24px, calc(24px + 72 * ((100vw - 390px) / 1050)), 96px);

  --gap-section: clamp(32px, calc(32px + 28 * ((100vw - 390px) / 1050)), 60px);   /* between stacked blocks (intro -> content, hero text -> media on mobile) */
  --gap-columns: clamp(32px, calc(32px + 40 * ((100vw - 390px) / 1050)), 72px);   /* between two side-by-side columns (heroes, about) */
  --gap-grid: 32px;                  /* column gap in 12-column layouts */
  --gap-hero-content: clamp(20px, calc(20px + 8 * ((100vw - 390px) / 1050)), 28px);
  --gap-audience-grid: clamp(12px, calc(12px + 8 * ((100vw - 390px) / 1050)), 20px);
  --gap-value-list: clamp(28px, calc(28px + 4 * ((100vw - 390px) / 1050)), 32px);
  --gap-section-intro: 18px; /* eyebrow / heading / intro text inside every section intro */

  /* Fluid typography (mobile 390px -> desktop 1440px) */
  --fs-hero-title: clamp(46px, calc(46px + 30 * ((100vw - 390px) / 1050)), 76px);
  --fs-h2: clamp(30px, calc(30px + 14 * ((100vw - 390px) / 1050)), 44px);
  --fs-h2-value: clamp(32px, calc(32px + 16 * ((100vw - 390px) / 1050)), 48px);
  --fs-lede: clamp(17px, calc(17px + 3 * ((100vw - 390px) / 1050)), 20px);
  --fs-desc: clamp(16px, calc(16px + 2 * ((100vw - 390px) / 1050)), 18px);
  --fs-card-title: clamp(17px, calc(17px + 5 * ((100vw - 390px) / 1050)), 22px);
  --fs-card-text: clamp(14px, calc(14px + 2 * ((100vw - 390px) / 1050)), 16px);
  --fs-value-item-title: clamp(19px, calc(19px + 3 * ((100vw - 390px) / 1050)), 22px);
  --fs-city: clamp(22px, calc(22px + 4 * ((100vw - 390px) / 1050)), 26px);
  --fs-contactext-number: clamp(22px, calc(22px + 6 * ((100vw - 390px) / 1050)), 28px);
  --fs-statext-number: clamp(40px, calc(40px + 8 * ((100vw - 390px) / 1050)), 48px);
  --fs-h4: clamp(18px, calc(18px + 2 * ((100vw - 390px) / 1050)), 20px);
  --fs-body: clamp(16px, calc(16px + 1 * ((100vw - 390px) / 1050)), 17px);
  --fs-prose-h2: clamp(24px, calc(24px + 8 * ((100vw - 390px) / 1050)), 32px);
}

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

html {
  scroll-behavior: smooth;
  /* Anchor targets land below the (scrolled) fixed header */
  scroll-padding-top: calc(var(--header-height-mobile-scrolled) + 16px);
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: calc(var(--header-height-desktop-scrolled) + 16px);
  }
}

body {
  margin: 0;
  /* Room for the fixed header at its full (top-of-page) height */
  padding-top: var(--header-height-mobile);
  font-family: var(--fontext-body);
  color: var(--color-ink-soft);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-teal);
}

a:hover {
  color: var(--color-ink);
}

/* Phone numbers in running text never break across lines. Only inline links:
   whole cards or buttons that are tel: links must still wrap their text. */
:where(p, li, dd, address) > a[href^="tel:"] {
  white-space: nowrap;
}

/* Long email addresses may break instead of overflowing narrow boxes */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

/* Phone and email links: one hover standard across the site (the "Call Your
   Local Office" cards on contact-us.html set it): underline on hover and
   keyboard focus, plus the colour change each link style defines. Buttons
   and whole-card links keep their own hover. */
a:where([href^="tel:"], [href^="mailto:"]):not(.btn, .card, .contact-card, .text-link):is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

address {
  font-style: normal;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 8px var(--color-accent);
  border-radius: var(--radius-sm);
}

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

/* 3. Layout helpers
   -------------------------------------------------------------------------- */

/*
  Breakpoint map (structural changes only — spacing/type scale fluidly, see
  section 1):
    520px  large-phone polish (buttons become auto-width, minor alignment)
    768px  tablet: 2-column grids for audience / value props / locations
    1024px desktop: nav switch, 2-col hero/about, full grids, hover states
    1199px laptop refinement: cards & a few grids reach fuller sizing
    1499px true desktop lock: matches the 1440px design frame exactly
*/

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-page-x);
}

@media (min-width: 1499px) {
  .container {
    padding-inline: 100px;
  }
}

.section {
  display: flex;
  justify-content: center;
  padding-block: var(--py-section);
  padding-inline: var(--space-page-x);
}

@media (min-width: 1499px) {
  .section {
    padding-inline: 100px;
  }
}

.section__inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
}

/*
  Section intro: optional .eyebrow + heading (.title-h2) + description, with the
  same spacing as the home page intros (--gap-section-intro, 18px: about,
  process). .section__inner--stack then spaces the intro from the content
  below it with the home Process section's gap (32 -> 60px). Use both on every
  content section so intros match site-wide.
*/
.section-intro {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section-intro);
  max-width: 760px;
}

.section__inner--stack {
  gap: var(--gap-section);
}

/* Intro variants (from 1024px):
   --split  heading left (6 of 12 columns), description right (columns 8-12)
   --row    .section-intro__text (eyebrow + heading) left, an action link right */
.section-intro__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section-intro);
}

@media (min-width: 1024px) {
  .section-intro--split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap-grid);
    align-items: end;
    max-width: none;
  }

  .section-intro--split > * {
    grid-column: 1 / span 6;
  }

  .section-intro--split > :last-child {
    grid-column: 8 / span 5;
  }

  .section-intro--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
    max-width: none;
  }

  /* The action link keeps to one line; the text column takes the squeeze */
  .section-intro--row > .text-link {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Several actions (e.g. a button + a text link): one line, kept whole */
  .section-intro--row > .btn-group {
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
  }

  .section-intro--row > .btn-group > .text-link {
    white-space: nowrap;
  }
}

/* Aside layout (from 1024px): intro in the first 4 of 12 columns, content in
   columns 6-12. Stacked below that. */
@media (min-width: 1024px) {
  .section__inner--aside {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap-grid);
  }

  .section__inner--aside > :first-child {
    grid-column: span 4;
  }

  .section__inner--aside > :last-child {
    grid-column: 6 / span 7;
  }
}

.section__inner--aside {
  gap: var(--gap-section);
}

/* Keep a short intro in view beside long content (e.g. the open escrow forms) */
@media (min-width: 1024px) {
  .section-intro--sticky {
    position: sticky;
    top: calc(var(--header-height-desktop-scrolled) + 32px);
    align-self: start;
  }
}

/* Vertical rhythm for a simple run of content (title, text, buttons) */
.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-hero-content);
}

/* Equal-column grid for cards and panels: 1 column, 2 from 768px */
.grid {
  display: grid;
  gap: var(--gap-audience-grid);
  width: 100%;
}

@media (min-width: 768px) {
  .grid--2,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --3 stays one column (cards in their compact row layout) until 1024px */
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.section--bordered {
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section--dark {
  background: var(--color-ink);
  color: var(--color-white);
}

/* --top: a content section used as the first thing on a page instead of a
   banner (e.g. faq.html). Same top spacing as a banner, so the content starts
   at the usual height below the header. */
.section--top {
  padding-top: var(--py-hero-top);
}

@media (min-width: 1025px) {
  .section--top {
    padding-top: calc(var(--py-hero-top) + 25px);
  }
}

/* White band on the cream page background (like the home About and Process sections) */
.section--surface {
  background: var(--color-surface);
}

.eyebrow {
  margin: 0;
  font-size: clamp(12px, calc(12px + 1 * ((100vw - 390px) / 1050)), 13px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-teal);
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
  color: var(--color-white);
}

/* Image placeholder pattern (swap for real photography) */
.media-placeholder {
  background-color: var(--color-placeholder-bg);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(6, 50, 49, 0.05) 0 2px,
    transparent 2px 16px
  );
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

/* The <img> carries width/height attributes only to reserve aspect ratio
   and prevent layout shift — it must still stretch to fill whatever size
   the grid/flex layout gives its parent figure, not render at that
   intrinsic size. */
.media-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  padding: 20px;
}

/* 4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: clamp(54px, calc(54px + 2 * ((100vw - 390px) / 1050)), 56px);
  width: 100%;
  padding: 0 clamp(22px, calc(22px + 6 * ((100vw - 390px) / 1050)), 28px);
  border-radius: var(--radius-md);
  font-family: var(--fontext-body);
  font-weight: 600;
  font-size: clamp(16px, calc(16px + 1 * ((100vw - 390px) / 1050)), 17px);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap; /* labels never wrap; .btn-group wraps whole buttons */
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

@media (min-width: 520px) {
  .btn {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .btn--compact {
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
  }
}

.btn--primary,
.btn--light {
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn--primary:hover,
.btn--light:hover {
  background: var(--color-accent-hover);
  color: var(--color-ink);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
}

.btn--secondary:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  /* Buttons sit in a row and move to a new line if they don't fit,
     rather than squeezing their labels onto two lines */
  .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Text link with trailing arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.text-link:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 5. Site header & navigation
   -------------------------------------------------------------------------- */
/*
  Fixed (not sticky) so that shrinking it on scroll never shifts the page
  content; <body> reserves its full height (section 2).
  States: top of page = tall, no border, full logo.
          .is-scrolled (set by js/main.js) = short, border + shadow, icon.
*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--header-height-mobile);
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-page-x);
  transition: height var(--transition-header), border-color var(--transition-header),
    box-shadow var(--transition-header);
}

.site-header.is-scrolled {
  height: var(--header-height-mobile-scrolled);
  border-bottom-color: var(--color-border);
  box-shadow: var(--header-shadow);
}

@media (min-width: 1499px) {
  .site-header {
    padding-inline: 100px;
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: var(--header-height-desktop);
  }

  .site-header {
    height: var(--header-height-desktop);
  }

  .site-header.is-scrolled {
    height: var(--header-height-desktop-scrolled);
  }
}

.site-header__inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* min-width reserves the wider of the two images (logo: height × 1200/528,
   icon: height × 1210/324) so nothing beside the brand moves on scroll */
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 134px;
  text-decoration: none;
}

/*
  Logo (top of page) and icon (scrolled) cross-fade in the same spot.
  Both stay rendered (opacity, never display:none) so the icon is already
  decoded when it first appears, and both use the header's own timing so
  the logo shrinks in step with the header.
*/
.brand__logo,
.brand__icon {
  display: block;
  width: auto;
  transition: height var(--transition-header), opacity var(--transition-header);
}

.brand__logo {
  height: 56px;
}

.brand__icon {
  position: absolute;
  left: 0;
  top: 50%;
  height: 36px;
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.site-header.is-scrolled .brand__logo {
  height: 36px;
  opacity: 0;
}

.site-header.is-scrolled .brand__icon {
  opacity: 1;
}

@media (max-width: 410px) {
  .brand {
    min-width: 112px;
  }

  .brand__logo {
    height: 42px;
  }

  .brand__icon,
  .site-header.is-scrolled .brand__logo {
    height: 30px;
  }
}

@media (min-width: 1024px) {
  .brand {
    min-width: 196px;
  }

  .brand__logo {
    height: 86px;
  }

  .brand__icon,
  .site-header.is-scrolled .brand__logo {
    height: 44px;
  }
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--color-ink);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
@media(max-width: 410px){
  .brand__mark{
    width: 30px;
  height: 30px;
  }
  .brand__name{
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  .brand {
    gap: 12px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 15px;
  }

  .brand__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .brand__name {
    font-size: 19px;
  }

  .brand__tagline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--color-text-subtle);
  }
}

/* Primary nav: desktop only */
.primary-nav {
  display: none;
}

/* The desktop menu shows from 1280px (7 items; below that the menu button
   opens the mobile menu). Gap between items: 16px at 1280px up to 24px at
   1440px+ (was 36px; tightened 2026-11-13). The links drop to 14px below
   1360px, so everything fits on one line */
@media (min-width: 1280px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, calc(16px + 8 * ((100vw - 1280px) / 160)), 24px);
  }
}

@media (min-width: 1280px) and (max-width: 1359px) {
  .primary-nav .nav-link,
  .primary-nav .login-link {
    font-size: 14px;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-teal);
}

.nav-link[aria-current='page'] {
  font-weight: 600;
}

/* Nav item with a dropdown: the label stays a link, the chevron button
   opens the panel (js/main.js sets .is-open + aria-expanded; hover opens
   it on pointer devices). */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-toggle {
  all: unset;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle svg,
.mobile-nav__toggle svg {
  transition: transform var(--transition-fast);
}

.nav-toggle[aria-expanded='true'] svg,
.mobile-nav__toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.nav-item:hover .nav-link,
.nav-item:hover .nav-toggle {
  color: var(--color-teal);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  z-index: 31;
  min-width: 240px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -24px rgba(6, 50, 49, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast),
    visibility 0s linear 0.2s;
}

/* Invisible bridge over the gap so moving the pointer down doesn't close it */
.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
}

.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.dropdown__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown__link:hover {
  background: var(--color-surface-alt);
  color: var(--color-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .header-actions {
    gap: 20px;
  }
}

.login-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .login-link {
    height: auto;
    padding: 0;
    gap: 8px;
    font-size: 15px;
  }
}

.header-actions .btn {
  display: none;
}

@media (min-width: 1280px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

.menu-toggle {
  all: unset;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  cursor: pointer;
  border-radius: var(--radius-md);
}

@media (min-width: 1280px) {
  .menu-toggle {
    display: none;
  }
}

/* 6. Mobile menu
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* expanded sub-menus on short / landscape screens */
}

.mobile-menu[hidden] {
  display: none;
}

@media (min-width: 1280px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__header {
  height: var(--header-height-mobile);
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.mobile-menu__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-ink);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 0;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
}

/* Mobile item with a sub-menu: link + chevron button, items expand in place */
.mobile-nav__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__row .mobile-nav__link {
  flex: 1;
  border-bottom: 0;
}

.mobile-nav__toggle {
  all: unset;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-teal);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.mobile-subnav {
  display: none;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__group.is-open .mobile-subnav {
  display: block;
}

.mobile-nav__group.is-open .mobile-nav__row {
  border-bottom-color: transparent;
}

.mobile-subnav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: 16px;
  color: var(--color-text-muted);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-subnav__link:hover {
  color: var(--color-ink);
}

.mobile-menu__footer {
  margin-top: auto;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__login {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

/* 7. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--color-surface);
  display: flex;
  justify-content: center;
  padding-top: var(--py-hero-top);
  padding-bottom: var(--py-section);
  padding-inline: var(--space-page-x);
}
@media (min-width: 1499px) {
  .hero {
    padding-inline: 100px;
  }
}

/* Stacked (mobile/tablet): text then media, one --gap-section apart.
   Side by side (1024px+): --gap-columns between the two columns. */
.hero .section__inner {
  gap: var(--gap-section);
}
@media (min-width: 1024px) {
  .hero .section__inner {
    gap: var(--gap-columns);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-hero-content);
}

/* Banner text offset, shared by every banner type (.hero and the text-only
   .page-hero), so page content always starts at the same height. */
@media (min-width: 1025px) {
  .hero__content,
  .page-hero__inner {
    padding-block: 25px;
  }
}
.hero .btn-group {
  padding-top: 8px;
}

.hero__audience-note {
  margin: 0;
  font-size: clamp(14px, calc(14px + 1 * ((100vw - 390px) / 1050)), 15px);
  line-height: 1.5;
  color: var(--color-text-subtle);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

@media (min-width: 1024px) {
  .hero__audience-note {
    justify-content: flex-start;
    text-align: left;
  }
}

.hero__media {
  position: relative;
}

@media (min-width: 1024px) {
  .hero__media {
    /* height: clamp(300px, calc(300px + 280 * ((100vw - 1024px) / 416)), 580px); */
    height: 100%;
    padding-top: 0;
  }
}

.hero__image {
  height: 260px;
  align-items: flex-start;
  padding: 20px;
}

@media (min-width: 1024px) {
  /* The image sits 40px in from the column's left edge (set explicitly so it
     stays in its column); the .hero__badge overhangs that edge */
  .hero__image {
    position: absolute;
    top: 0;
    left: 40px;
    width: calc(100% - 40px);
    margin-inline: 0;
    height: 93%;
    align-items: flex-end;
    padding: 28px;
  }
}
@media(max-width: 1024px){
  figure.hero__image{
    margin: 0px;
    height: 400px;
  }
}

.hero__badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-ink);
}

@media (min-width: 1024px) {
  .hero__badge {
    left: 25px;
    right: auto;
    bottom: -9px;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 22px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -28px rgba(6, 50, 49, 0.5);
  }

  .hero__badge-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background: #e9f9d8;
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
}

.hero__badge-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  .hero__badge-text {
    font-size: 15px;
    letter-spacing: 0.01em;
  }
}

/* 8. Audience cards
   -------------------------------------------------------------------------- */
.card {
  --card-divider: var(--color-border-soft);
  --card-fg: var(--color-ink);
  --card-fg-muted: var(--color-text-muted);
  --card-link: var(--color-teal);
  --card-icon: var(--color-ink);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--card-fg);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium),
    border-color var(--transition-medium);
}

@media (min-width: 1024px) {
  .card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 22px 22px;
    min-height: 240px;
  }

  .card:not(.card--static):hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -24px rgba(6, 50, 49, 0.45);
    border-color: var(--color-teal);
    color: var(--card-fg);
  }
}

@media (min-width: 1199px) {
  .card {
    padding: 32px 28px 28px;
    min-height: 290px;
  }
}

.card:hover {
  color: var(--card-fg);
}

.card--highlight {
  --card-divider: rgba(6, 50, 49, 0.15);
  --card-fg-muted: var(--color-accent-ink);
  --card-link: var(--color-ink);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.card--dark {
  --card-divider: var(--color-border-on-dark);
  --card-fg: var(--color-white);
  --card-fg-muted: var(--color-text-on-dark);
  --card-link: var(--color-accent);
  --card-icon: var(--color-accent);
  border-color: var(--color-ink);
  background: var(--color-ink);
}

.card__icon {
  flex-shrink: 0;
  color: var(--card-icon);
}

@media (min-width: 1024px) {
  .card__icon {
    margin-bottom: 4px;
  }
}

/* Small square photo in the icon's place (service cards): beside the text
   below 1024px, above it from 1024px */
.card__photo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: var(--radius-md);
}

@media (min-width: 1024px) {
  .card__photo {
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
  }
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

@media (min-width: 1024px) {
  .card__body {
    gap: 16px;
  }
}

.card__title {
  margin: 0;
  font-family: inherit; /* same font whether the title is a <span> or a heading */
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--card-fg);
  letter-spacing: -0.01em;
}

/* Static card: the .card look for content that holds its own links (e.g.
   phone lists), so the card itself is not a link and does not lift on hover.
   Lists inside pick up the card's colours. */
.card--static {
  align-items: flex-start; /* mobile row layout: icon at the top, not centred */
  cursor: default;
}

@media (min-width: 1024px) {
  .card--static {
    align-items: stretch;
  }
}

.card .info-list__row {
  border-bottom-color: var(--card-divider);
}

.card .info-list dt {
  color: var(--card-fg);
}

.card .info-list dd {
  color: var(--card-fg-muted);
}

.card .info-list a {
  color: var(--card-link);
}

.card .info-list a:hover {
  color: var(--card-fg);
}

.card__text {
  font-size: var(--fs-card-text);
  line-height: 1.45;
  color: var(--card-fg-muted);
}

@media (min-width: 1024px) {
  .card__text {
    line-height: 1.55;
    flex-grow: 1;
  }
}

.card__cta {
  flex-shrink: 0;
  color: var(--card-link);
  transition: transform var(--transition-fast);
}

@media (min-width: 1024px) {
  .card__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
  }

  .card:hover .card__cta-icon {
    transform: translateX(4px);
  }
}

.card__cta-label {
  display: none;
}

@media (min-width: 1024px) {
  .card__cta-label {
    display: inline;
  }
}

/* 9. About / "Who we are"
   -------------------------------------------------------------------------- */
.about .section__inner {
  gap: var(--gap-section);
}

@media (min-width: 1024px) {
  .about .section__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--gap-columns);
  }

  .about__media {
    order: -1;
  }
}

.about__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
}

@media (min-width: 1024px) {
  .about__media {
    gap: 16px;
    padding-top: 0;
  }
}
figure.about__photo--wide , figure.about__photo--closing{
  margin: 0px;
}
.about__photo--wide {
  grid-column: span 2;
  height: clamp(210px, calc(210px + 120 * ((100vw - 390px) / 1050)), 330px);
}

.stat-card {
  height: clamp(160px, calc(160px + 80 * ((100vw - 390px) / 1050)), 240px);
  border-radius: var(--radius-xl);
  background: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px;
}

@media (min-width: 1024px) {
  .stat-card {
    gap: 10px;
    padding: 24px;
  }
}

.stat-card__icon {
  display: none;
}

@media (min-width: 1024px) {
  .stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-ink);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.stat-card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-statext-number);
  line-height: 1;
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  .stat-card__number {
    letter-spacing: -0.03em;
  }
}

.stat-card__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
}

/* Review badges card: full width under the wide photo, holding third-party
   review widgets (review-widget.net, a fixed 250px wide each). They sit side
   by side when there is room and wrap onto 2 rows when there isn't. */
.review-card {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 16px 8px; /* narrow side padding so a 250px widget fits on 320px phones */
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
}

@media (min-width: 1024px) {
  .review-card {
    padding: 24px;
  }
}

.about__photo--closing {
  height: clamp(160px, calc(160px + 80 * ((100vw - 390px) / 1050)), 240px);
}

/* Team bio pages (.about--bio): 3 photos on the left (1 wide, 2 small).
   On desktop the photo column stays in view (sticky) while the bio text on
   the right scrolls. Only when the screen is tall enough to show all 3 photos. */
@media (min-width: 1024px) {
  .about--bio .section__inner {
    align-items: start;
  }
}

@media (min-width: 1024px) and (min-height: 700px) {
  .about--bio .about__media {
    position: sticky;
    top: 32px;
  }
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section-intro);
}

.about__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .about__meta {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding-top: 4px;
  }
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .person__avatar {
    width: 48px;
    height: 48px;
  }
}

.person__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.person__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-ink);
}

.person__title {
  font-size: 13px;
  color: var(--color-text-subtle);
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .about__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 16px;
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-alt);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    min-height: 190px;
  }
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-contactext-number);
  color: var(--color-ink);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .contact-card__number {
    letter-spacing: -0.02em;
  }
}

.contact-card__caption {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-alt);
}

@media (min-width: 1024px) {
  .help-card {
    gap: 18px;
    padding: 26px;
    min-height: 190px;
  }
}

.help-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  .help-card__title {
    font-size: 17px;
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list__item {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  background: var(--color-surface);
}

/* 10. Value props
   -------------------------------------------------------------------------- */
.value-props__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-value-list);
}

@media (min-width: 768px) {
  .value-props__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .value-props__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.value-props__item {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1.5px solid var(--color-border-dark);
}

@media (min-width: 1024px) {
  .value-props__item {
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
  }
}

.value-props__index {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent);
  width: 28px;
  flex-shrink: 0;
  padding-top: 3px;
  letter-spacing: 0.06em;
}

@media (min-width: 1024px) {
  .value-props__index {
    width: auto;
    padding-top: 0;
    font-size: 15px;
  }
}

.value-props__item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 1024px) {
  .value-props__item-body {
    gap: 16px;
  }
}

.value-props__item-title {
  font-size: var(--fs-value-item-title);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.value-props__item-text {
  font-size: clamp(15px, calc(15px + 1 * ((100vw - 390px) / 1050)), 16px);
  line-height: 1.6;
  color: var(--color-text-on-dark);
}

/* 11. Process steps
   -------------------------------------------------------------------------- */
.process__steps {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .process__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }
}

.process__step {
  display: flex;
  gap: 18px;
}

@media (min-width: 1024px) {
  .process__step {
    flex-direction: column;
    gap: 16px;
  }
}

.process__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .process__marker {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

.process__number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: var(--color-ink);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .process__number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

.process__step--complete .process__number {
  background: var(--color-accent);
  color: var(--color-ink);
}

.process__connector {
  width: 2px;
  flex-grow: 1;
  background: var(--color-border);
  min-height: 24px;
}

@media (min-width: 1024px) {
  .process__connector {
    width: auto;
    height: 2px;
    min-height: 0;
  }
}

.process__step--complete .process__connector {
  background: transparent;
}

.process__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 28px;
}

@media (min-width: 1024px) {
  .process__body {
    padding: 0;
  }
}

.process__step-title {
  font-size: clamp(18px, calc(18px + 2 * ((100vw - 390px) / 1050)), 20px);
  font-weight: 700;
  color: var(--color-ink);
}

.process__step-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .process__step-text {
    line-height: 1.6;
  }
}

/* 12. Locations
   -------------------------------------------------------------------------- */
/* Desktop-only "main line" block — the mobile design surfaces this number
   via the hero badge / mobile menu call link instead, to avoid repeating it
   twice on small screens. */
.locations__main-line {
  display: none;
}

@media (min-width: 1024px) {
  .locations__main-line {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
  }
}

.locations__main-line-label {
  font-size: 14px;
  color: var(--color-text-subtle);
  padding-top: 12px;
}

.locations__main-line-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-ink);
  text-decoration: none;
}

.locations__main-line-number:hover {
  color: var(--color-teal);
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.location-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
  }

@media(max-width: 768px){
  .location-card__body{
    padding: 18px;
  }
}

@media (min-width: 1024px) {
  .location-card {
    gap: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
  }

  .location-card__map {
    height: 180px;
    border-radius: 0;
    margin: 0px;
  }
}

.location-card__map {
  display: none;
}

@media (min-width: 1024px) {
  .location-card__map {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: var(--color-placeholder-bg); /* shows while the map loads */
  }
}

/* Google Maps embed: fills the map area. Sized here, so the iframe needs no
   width, height or style attributes; give it a title for screen readers.
   The map area is hidden on phones, so the lazy iframe doesn't load there. */
.location-card__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-card__region {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-teal);
}

.location-card__city {
  font-size: var(--fs-city);
  font-weight: 700;
  color: var(--color-ink);
}

.location-card__address {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .location-card__address {
    font-size: 16px;
  }
}

.location-card__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-card__phone,
.location-card__email {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 16px;
}

/* Long email addresses may break rather than overflow narrow cards */
.location-card__email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.location-card__email svg {
  flex-shrink: 0;
}

.location-card__phone {
  font-weight: 600;
}

.location-card__phone:hover,
.location-card__email:hover {
  color: var(--color-teal);
}

.location-card__actions {
  display: grid;
  gap: 10px;
}

@media (min-width: 1024px) {
  .location-card__actions {
    display: block;
  }
}

/* 13. Final CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  padding-inline: 16px;
  padding-bottom: var(--py-section);
}

@media (min-width: 1024px) {
  .cta-banner {
    padding-inline: var(--space-page-x);
    padding-top: 0;
  }
}

/* The banner has no top padding: it relies on the previous section's bottom
   padding. When that section has a visible edge (border, dark fill, page
   hero, or a .hero followed directly by the banner, as on open-escrow.html),
   give the banner its own breathing room so it doesn't touch it. */
.hero + .cta-banner,
.section--bordered + .cta-banner,
.section--dark + .cta-banner,
.section--surface + .cta-banner,
.page-hero + .cta-banner {
  padding-top: var(--py-section);
}

.cta-banner__panel {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding: var(--cta-pad-y) var(--cta-pad-x);
  border-radius: var(--radius-xl);
  background: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cta-banner__panel {
    border-radius: var(--radius-2xl);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
  }
}

.cta-banner__ring {
  display: none;
}

@media (min-width: 1024px) {
  .cta-banner__ring {
    display: block;
    position: absolute;
    border-radius: var(--radius-round);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
  }

  .cta-banner__ring--outer {
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
  }

  .cta-banner__ring--inner {
    right: -40px;
    top: -40px;
    width: 260px;
    height: 260px;
  }
}

.cta-banner__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

@media (min-width: 1024px) {
  .cta-banner__content {
    gap: 20px;
    max-width: 620px;
  }
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

@media (min-width: 1024px) {
  .cta-banner__actions {
    gap: 20px;
    align-items: flex-start;
    flex-shrink: 0;
  }
}

.cta-banner__login-note {
  font-size: 15px;
  color: var(--color-text-on-dark);
  padding-top: 4px;
}

@media (min-width: 1024px) {
  .cta-banner__login-note {
    text-align: left;
    padding-top: 0;
  }
}

.cta-banner__login-note a {
  color: var(--color-white);
  font-weight: 600;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-underline-offset 0.2s ease;
}

/* Hover/focus: turns lime (the accent on the dark banner) and the underline
   moves closer, so the link clearly reacts */
.cta-banner__login-note a:is(:hover, :focus-visible) {
  color: var(--color-accent);
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner__login-note a {
    transition: none;
  }
}

/* 14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-teal-darker);
  color: var(--color-text-on-dark);
  padding: var(--py-footer) var(--space-page-x) 32px;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

.site-footer__inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .site-footer__inner {
    gap: 64px;
  }
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .site-footer__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 4;
    gap: 20px;
  }
}

.footer-brand__description {
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-brand__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.footer-link {
  color: var(--color-text-on-dark);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-brand__contact .footer-link--phone {
  color: var(--color-white);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-white);
}

/* --v2 footer columns (home page first, 2026-11-13):
   1 brand (white logo, description, phone, email, fax) | 2-3 Services (12
   links in 2 columns) | 4 Process (4 links). Phone: brand, then Services
   (2 columns), then Process, each below the other. */
@media (min-width: 1024px) {
  .site-footer__top--v2 {
    gap: 32px 40px;
  }

  .site-footer__top--v2 .footer-brand {
    grid-column: span 4;
  }

  .site-footer__top--v2 .footer-nav--services {
    grid-column: span 5;
  }

  .site-footer__top--v2 .footer-nav--process {
    grid-column: span 3;
  }
}

.site-footer__top--v2 {
  gap: 32px;
}

.site-footer__top--v2 .footer-nav {
  padding-top: 28px;
  border-top: 1px solid var(--color-border-on-dark);
}

@media (min-width: 1024px) {
  .site-footer__top--v2 .footer-nav {
    padding-top: 0;
    border-top: none;
  }
}

/* White version of the full logo: the logo file is one image, so a filter
   turns every coloured pixel white (transparent areas stay transparent) */
.footer-brand__home {
  display: inline-flex;
  align-self: flex-start;
}

.footer-brand__logo-img {
  display: block;
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (min-width: 1024px) {
  .footer-brand__logo-img {
    height: 72px;
  }
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

/* Two columns read top to bottom: the first half of the list on the left
   (6 rows for the 12 services; change the row count if the list changes) */
.footer-nav__list--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  column-gap: 24px;
}

.footer-nav__list .footer-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.35;
}

/* Small chevron before each footer list link (lime accent). Drawn as a CSS
   mask, so no extra markup and it takes the colour from background-color */
.footer-nav__list .footer-link::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transition-fast);
}

.footer-nav__list .footer-link:hover::before {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-nav__list .footer-link::before {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .footer-nav__list {
    gap: 14px;
  }

  .footer-nav__list .footer-link {
    min-height: 0;
  }
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-on-dark);
  font-size: 13px;
}

@media (min-width: 1024px) {
  .site-footer__bottom {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    font-size: 14px;
  }
}

.legal-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .legal-nav {
    gap: 28px;
  }
}

/* 15. Utilities
   -------------------------------------------------------------------------- */
.no-scroll {
  overflow: hidden;
}

/* Keep a word group (e.g. "In-House") on one line */
.text-nowrap {
  white-space: nowrap;
}

/* Qualia's widget only opens when the clicked element itself has
   .get-qualia-quote, so clicks on an icon or label inside the trigger must
   land on the trigger. */
.get-qualia-quote * {
  pointer-events: none;
}

/* 16. Typography styles
   --------------------------------------------------------------------------
   The site's only text styles: every page (home included) uses these
   classes; there are no section-specific heading or text classes.
   Every style is documented in typography.html — keep the two in sync.
   The visual style is independent of the tag: <h2 class="title-h3"> is fine.
   -------------------------------------------------------------------------- */
.title-display,
.title-h2,
.title-h2-lg,
.title-h3,
.title-h4,
.text-number,
.text-stat {
  font-family: var(--font-heading);
  color: var(--color-ink);
  margin: 0;
}

.title-display {
  font-size: var(--fs-hero-title);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

@media (min-width: 1199px) {
  .title-display {
    line-height: 1.02;
  }
}

.title-h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.title-h2-lg {
  font-size: var(--fs-h2-value);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (min-width: 1024px) {
  .title-h2 {
    line-height: 1.12;
  }

  .title-h2-lg {
    line-height: 1.1;
  }
}

.title-h3 {
  font-size: var(--fs-card-title);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.title-h4 {
  font-size: var(--fs-h4);
  line-height: 1.3;
  font-weight: 700;
}

.text-lede,
.text-body-lg,
.text-body,
.text-small,
.text-caption {
  color: var(--color-text-muted);
}

.text-lede {
  max-width: 540px;
  font-size: var(--fs-lede);
  line-height: 1.6;
}

.text-body-lg {
  font-size: var(--fs-desc);
  line-height: 1.6;
}

.text-body {
  font-size: var(--fs-body);
  line-height: 1.65;
}

.text-small {
  font-size: 15px;
  line-height: 1.55;
}

.text-caption {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.text-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-teal);
}

.text-number {
  font-size: var(--fs-contactext-number);
  font-weight: 800;
}

.text-stat {
  font-size: var(--fs-statext-number);
  line-height: 1;
  font-weight: 800;
}

@media (min-width: 1024px) {
  .text-number {
    letter-spacing: -0.02em;
  }

  .text-stat {
    letter-spacing: -0.03em;
  }
}

/* Dark context: any .section--dark or .on-dark wrapper flips text colours */
:is(.section--dark, .on-dark) :is(.title-display, .title-h2, .title-h2-lg, .title-h3, .title-h4, .text-number, .text-stat) {
  color: var(--color-white);
}

:is(.section--dark, .on-dark) :is(.text-lede, .text-body-lg, .text-body, .text-small, .text-caption) {
  color: var(--color-text-on-dark);
}

:is(.section--dark, .on-dark) :is(.eyebrow, .text-label) {
  color: var(--color-accent);
}

/* Text links on dark: lime, white on hover (teal would fail contrast) */
:is(.section--dark, .on-dark) .text-link {
  color: var(--color-accent);
}

:is(.section--dark, .on-dark) .text-link:hover {
  color: var(--color-white);
}

.on-dark {
  background: var(--color-ink);
  color: var(--color-white);
}

/* Long-form content (legal pages, articles, FAQ answers) */
.prose {
  max-width: 72ch;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: var(--fs-prose-h2);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: var(--fs-card-title);
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-ink);
}

.prose h4 {
  margin-top: 1.4em;
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-ink);
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--color-teal);
  font-weight: 700;
}

.prose a {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--color-ink);
}

.prose strong {
  color: var(--color-ink);
  font-weight: 600;
}

.prose blockquote {
  margin-inline: 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-surface-alt);
  color: var(--color-ink);
}

.prose hr {
  margin-block: 2em;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.prose small {
  font-size: 14px;
}

.prose code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-placeholder-bg);
  color: var(--color-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* 17. Design system reference pages
   --------------------------------------------------------------------------
   Layout used only by element.html and typography.html. Never use .ds-*
   classes on real pages. On these two pages only, a single custom property
   may be set inline (style="--swatch: …") to demonstrate a token.
   -------------------------------------------------------------------------- */
.ds-hero {
  display: flex;
  justify-content: center;
  padding: var(--py-hero-top) var(--space-page-x) var(--py-section);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
}

.ds-hero__inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ds-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.ds-toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ds-toc__link:hover {
  border-color: var(--color-teal);
  color: var(--color-ink);
}

.ds-section {
  scroll-margin-top: var(--header-height-mobile);
}

@media (min-width: 1024px) {
  .ds-section {
    scroll-margin-top: var(--header-height-desktop);
  }
}

.ds-section .section__inner {
  gap: 28px;
}

.ds-section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.ds-group-title {
  padding-top: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.ds-specimen {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height-desktop) + 16px);
}

.ds-specimen__preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, calc(20px + 20 * ((100vw - 390px) / 1050)), 40px);
}

.ds-specimen__preview--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.ds-specimen__preview--alt {
  background: var(--color-bg);
}

.ds-specimen__preview--dark {
  background: var(--color-ink);
}

.ds-specimen__meta {
  display: grid;
  grid-template-columns: minmax(80px, max-content) 1fr;
  gap: 6px 16px;
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-surface-alt);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.ds-specimen__meta dt {
  font-weight: 700;
  color: var(--color-ink);
}

.ds-specimen__meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ds-code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--color-placeholder-bg);
  color: var(--color-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ds-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .ds-grid--2,
  .ds-grid--3,
  .ds-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ds-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ds-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ds-swatch {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}

.ds-swatch__chip {
  height: 88px;
  background: var(--swatch);
  border-bottom: 1px solid var(--color-border-soft);
}

.ds-swatch__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.ds-swatch__name {
  font-weight: 700;
  color: var(--color-ink);
}

.ds-radius {
  width: 96px;
  height: 96px;
  border: 2px solid var(--color-teal);
  border-radius: var(--radius);
  background: var(--color-accent-soft);
}

.ds-radius-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.ds-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
  padding: 16px 8px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: 13px;
  text-align: center;
}

.ds-media-demo {
  width: 100%;
  max-width: 560px;
  height: 260px;
  margin: 0;
}

.ds-font-sample {
  font-size: clamp(56px, calc(56px + 24 * ((100vw - 390px) / 1050)), 80px);
  line-height: 1;
  color: var(--color-ink);
}

.ds-font--heading {
  font-family: var(--font-heading);
}

.ds-font--body {
  font-family: var(--fontext-body);
}

.ds-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 20px;
  color: var(--color-ink);
}

.ds-w-400 { font-weight: 400; }
.ds-w-500 { font-weight: 500; }
.ds-w-600 { font-weight: 600; }
.ds-w-700 { font-weight: 700; }
.ds-w-800 { font-weight: 800; }

.ds-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.ds-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--color-text-muted);
}

.ds-table th,
.ds-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-soft);
  text-align: left;
  vertical-align: top;
}

.ds-table th {
  background: var(--color-surface-alt);
  color: var(--color-ink);
  font-weight: 700;
}

.ds-table tr:last-child td {
  border-bottom: 0;
}

.ds-note {
  padding: 16px 20px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-surface);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink);
}

/* 18. Inner page hero
   --------------------------------------------------------------------------
   The first section on every inner page (everything except the home page):
   optional eyebrow, the page <h1> (.title-display), a .text-lede and
   an optional .btn-group. --compact for utility pages. Shown on element.html.
   -------------------------------------------------------------------------- */
.page-hero {
  display: flex;
  justify-content: center;
  padding: var(--py-hero-top) var(--space-page-x) var(--py-section);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
}

@media (min-width: 1499px) {
  .page-hero {
    padding-inline: 100px;
  }
}

.page-hero__inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-hero-content);
}

.page-hero__inner .btn-group {
  width: 100%;
  padding-top: 4px;
}

/* --compact: a shorter banner for utility pages (legal, sitemap): less bottom
   padding and no 50px text offset */
.page-hero--compact {
  padding-bottom: var(--gap-section);
}

@media (min-width: 1025px) {
  .page-hero--compact .page-hero__inner {
    padding-block: 0;
  }
}

@media (min-width: 768px) {
  .page-hero__inner .btn-group {
    width: auto;
  }
}

/* 19. Panels, step list & QR code
   --------------------------------------------------------------------------
   .panel     non-clickable content card (icon tile, title, text, actions);
              put several in a .grid
   .step-list numbered instructions (numbers drawn with a CSS counter)
   .qr-code   framed QR image
   .link-list list of page links (sitemap); --nested indents sub-pages
   Shown on element.html.
   -------------------------------------------------------------------------- */
.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(24px, calc(24px + 12 * ((100vw - 390px) / 1050)), 36px);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.panel__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-ink);
}

/* Pushes actions to the bottom so buttons line up across a row of panels */
.panel__footer {
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}

.link-list {
  width: 100%;
  display: grid;
  gap: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
}

.link-list a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-list a:hover {
  color: var(--color-teal);
  text-decoration-color: currentColor;
}

.link-list--nested {
  margin-top: 10px;
  padding-left: 16px;
  gap: 8px;
  border-left: 2px solid var(--color-border-soft);
}

.link-list--nested a {
  font-weight: 500;
  color: var(--color-text-muted);
}

.step-list {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step-list__item {
  position: relative;
  min-height: 30px;
  padding: 3px 0 0 44px;
  counter-increment: step;
}

.step-list__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background: var(--color-ink);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.qr-code {
  width: 100%;
  max-width: 240px;
  margin: 0;
  padding: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.qr-code img {
  width: 100%;
  height: auto;
}

/* Hero image box holding a QR code instead of a photo. Same box, size and
   position as the home page .hero__image (it starts at the top of the
   hero); white surface instead of the photo placeholder. The code sits near
   the top so the .hero__badge across the bottom never covers it. */
.hero__image--qr {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -28px rgba(6, 50, 49, 0.5);
  overflow: hidden;
  z-index: 2;
}

.hero__image--qr ~ .hero__badge {
  z-index: 3;
}

.hero__image--qr img {
  width: min(64%, 240px);
  height: auto;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .hero__image--qr {
    align-items: flex-start;
    padding-top: 40px;
  }

  .hero__image--qr img {
    width: min(74%, 360px);
    margin-top: 0;
  }
}

/* Hero with a form in the right column (contact page). The media column
   holds normal content instead of an absolutely positioned image, and both
   columns align to the top. */
@media (min-width: 1024px) {
  .hero .hero__inner--form {
    align-items: start;
  }


  .hero__media--form {
    height: auto;
  }
}

.hero__media--form {
  padding-top: 0;
}

/* Panel lifted off a white background (e.g. the hero form) */
.panel--raised {
  box-shadow: 0 24px 48px -32px rgba(6, 50, 49, 0.45);
}

.hero__audience-note a {
  font-weight: 600;
  white-space: nowrap;
}


/* 20. Forms, upload, notices & info list
   --------------------------------------------------------------------------
   .form         a form; .form__grid lays fields out (1 column, 2 from 768px;
                 .field--full spans both)
   .field        label + control + help + error (js/forms.js fills errors)
   .upload       file picker: drop zone over a native <input type="file">
                 plus a removable file list
   .notice       form-level message (--error / --success)
   .info-list    label / value rows (phone numbers, details)
   Markup and behaviour: docs/05-forms.md; shown on element.html.
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%; /* fill .panel, which shrink-wraps its children */
}

.form__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.form__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
}

.field__req {
  margin-left: 2px;
  color: var(--color-error);
}

.field__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field__input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px; /* 16px minimum: iOS zooms in on smaller inputs */
  line-height: 1.4;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field__input::placeholder {
  color: var(--color-text-subtle);
}

.field__input:hover {
  border-color: var(--color-text-subtle);
}

.field__input:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

textarea.field__input {
  min-height: 160px;
  resize: vertical;
}

/* Shorter textarea for compact forms (e.g. the contact form in the hero) */
textarea.field__input--short {
  min-height: 104px;
}

.field__input[aria-invalid='true'] {
  border-color: var(--color-error);
}

.field__input[aria-invalid='true']:focus {
  box-shadow: 0 0 0 4px var(--color-error-soft);
}

.field__help {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.field__error {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-error);
}

.field__error[hidden],
.notice[hidden] {
  display: none;
}

/* Qualia quote widget: hide its floating sticky button (the "activator" iframe
   the script adds at the end of the page). The popup itself ("stage" iframe)
   still opens from every .get-qualia-quote link (Client Login, Login Here,
   Title & Escrow Rates). !important beats the inline style the script sets. */
iframe[name='activator'][src*='connect.qualia.com/quote-widget'] {
  display: none !important;
}

/* reCAPTCHA v3: no box. Google's floating badge is hidden, which Google allows
   only when this notice sits in the form (above the submit button). */
.grecaptcha-badge {
  visibility: hidden;
}

.captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captcha__notice {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.captcha__notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.captcha__notice a:is(:hover, :focus-visible) {
  color: var(--color-accent);
}

/* Visually hidden trap field; real visitors never see or fill it */
.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload__drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
  background: var(--color-surface-alt);
  border: 1.5px dashed var(--color-text-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 15px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.upload__drop:hover,
.upload__drop.is-dragover {
  border-color: var(--color-teal);
  background: var(--color-success-soft);
}

/* Keyboard focus lands on the (invisible) input; ring the whole zone */
.upload__drop:focus-within {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

/* Compact upload: a single row the same height as an input */
.upload--compact .upload__drop {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  text-align: left;
  background: var(--color-surface);
}

.upload--compact .upload__icon {
  width: auto;
  height: auto;
  flex-shrink: 0;
  background: none;
  color: var(--color-teal);
}

.upload--compact .field__help {
  margin-top: -4px;
}

.upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-ink);
}

.upload__prompt strong {
  color: var(--color-teal);
  font-weight: 700;
}

.upload__hint {
  font-size: 13px;
  color: var(--color-text-subtle);
}

.upload__list {
  display: grid;
  gap: 8px;
}

.upload__list:empty {
  display: none;
}

.upload__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.upload__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--color-ink);
}

.upload__size {
  white-space: nowrap;
  color: var(--color-text-subtle);
}

.upload__remove {
  all: unset;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

.upload__remove:hover {
  background: var(--color-error-soft);
  color: var(--color-error);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
}

.notice--error {
  background: var(--color-error-soft);
  border-color: var(--color-error-border);
  color: #7a271a;
}

.notice--success {
  background: var(--color-success-soft);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}

.info-list {
  width: 100%;
  margin: 0;
}

.info-list__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.info-list__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
}

.info-list dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.info-list a {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.info-list a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 21. Profile card & accordion
   --------------------------------------------------------------------------
   .profile-card  photo + name + role (team members); put several in a
                  ul.grid.grid--3. A compact row (photo strip down the left,
                  full card height) below 1024px, a column with a 4:3 photo from 1024px.
                  Name uses .title-h4, role .text-small
   .accordion     questions and answers built on <details>/<summary>, so it
                  works without JS; the answer is a .prose block
   Shown on element.html.
   -------------------------------------------------------------------------- */
.profile-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Below 1024px the photo is a strip down the card's left side, the full
   height of the card (at least square), so it never floats with gaps above
   and below when the name or role wraps onto more lines */
.profile-card__photo {
  flex-shrink: 0;
  width: 112px;
  min-height: 112px;
  margin: 0;
  border-radius: 0;
}

@media (min-width: 600px) {
  .profile-card__photo {
    width: 140px;
    min-height: 140px;
  }
}

/* Keep faces in frame when the strip crops a photo */
@media (max-width: 1023px) {
  .profile-card__photo img {
    object-position: 50% 25%;
  }
}

@media (min-width: 1024px) {
  .profile-card {
    flex-direction: column;
  }

  .profile-card__photo {
    width: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

.profile-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere; /* long names/titles in narrow tiles */
  padding: clamp(14px, calc(14px + 10 * ((100vw - 390px) / 1050)), 24px);
}

/* Optional action row (e.g. a "Meet [name]" .text-link to the bio page);
   pinned to the bottom of the card so the links line up across a row */
.profile-card__actions {
  margin-top: auto;
  padding-top: 4px;
}

.accordion {
  border-top: 1px solid var(--color-border);
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 0;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary:hover .title-h4 {
  color: var(--color-teal);
}

.accordion__summary:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.accordion__icon {
  flex-shrink: 0;
  color: var(--color-teal);
  transition: transform var(--transition-fast);
}

.accordion__item[open] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__answer {
  padding-bottom: 24px;
}

/* 22. Split (text + media)
   --------------------------------------------------------------------------
   A content section with text on one side and an image on the other.
   Add it to .section__inner. Stacked below 1024px (text first); two columns
   from 1024px. .split--reverse puts the image on the left, so consecutive
   sections can alternate. The text column is a .section-intro (eyebrow,
   heading, text, optional .text-link). Shown on element.html.
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--gap-section);
  align-items: center;
}

.split__media {
  margin: 0;
  aspect-ratio: 4 / 3;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-columns);
  }

  .split--reverse .split__media {
    order: -1;
  }
}

/* 23. Roadmap
   --------------------------------------------------------------------------
   Numbered steps joined by a lime path. Below 1024px: a vertical timeline.
   From 1024px: three steps per row, the path snaking left-to-right, a rounded
   turn at the edge, right-to-left, and so on (rows are placed with
   nth-child + grid-auto-flow: dense, so any number of steps works).
   .roadmap__step--complete marks the final step. Shown on element.html.
   -------------------------------------------------------------------------- */
.roadmap {
  --roadmap-icon: 64px;
  --roadmap-line: 4px;
  --roadmap-turn: 48px;
  --roadmap-row-gap: var(--gap-section);
  display: grid;
}

.roadmap__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
}

/* The path: vertical on small screens */
.roadmap__step::before {
  content: '';
  position: absolute;
  left: calc(var(--roadmap-icon) / 2 - var(--roadmap-line) / 2);
  top: 0;
  bottom: 0;
  width: var(--roadmap-line);
  background: var(--color-accent);
}

.roadmap__step:first-child::before {
  top: calc(var(--roadmap-icon) / 2);
}

.roadmap__step:last-child {
  padding-bottom: 0;
}

.roadmap__step:last-child::before {
  bottom: auto;
  height: calc(var(--roadmap-icon) / 2);
}

.roadmap__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: var(--roadmap-icon);
  height: var(--roadmap-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  color: var(--color-teal);
}

.roadmap__step--complete .roadmap__icon {
  background: var(--color-accent);
  color: var(--color-ink);
}

.roadmap__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  min-width: 0;
}

.roadmap__index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
}

/* On dark sections: dark circles with lime icons; lime step labels */
:is(.section--dark, .on-dark) .roadmap__step:not(.roadmap__step--complete) .roadmap__icon {
  background: var(--color-ink);
  color: var(--color-accent);
}

:is(.section--dark, .on-dark) .roadmap__index {
  color: var(--color-accent);
}

@media (min-width: 1024px) {
  .roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row dense;
    row-gap: var(--roadmap-row-gap);
    padding-inline: var(--roadmap-turn);
  }

  .roadmap__step {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    text-align: center;
  }

  .roadmap__body {
    align-items: center;
    padding-top: 0;
  }

  /* Serpentine placement: odd rows left to right, even rows right to left */
  .roadmap__step:nth-child(6n + 1) { grid-column: 1; }
  .roadmap__step:nth-child(6n + 2) { grid-column: 2; }
  .roadmap__step:nth-child(6n + 3) { grid-column: 3; }
  .roadmap__step:nth-child(6n + 4) { grid-column: 3; }
  .roadmap__step:nth-child(6n + 5) { grid-column: 2; }
  .roadmap__step:nth-child(6n + 6) { grid-column: 1; }

  /* The path: horizontal through every icon centre */
  .roadmap__step::before,
  .roadmap__step:first-child::before,
  .roadmap__step:last-child::before {
    top: calc(var(--roadmap-icon) / 2 - var(--roadmap-line) / 2);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: var(--roadmap-line);
  }

  /* Starts at the first icon; ends at the last icon */
  .roadmap__step:first-child::before {
    left: 50%;
  }

  .roadmap__step:last-child:is(:nth-child(6n + 1), :nth-child(6n + 2), :nth-child(6n + 3))::before {
    left: 0;
    right: 50%;
  }

  .roadmap__step:last-child:is(:nth-child(6n + 4), :nth-child(6n + 5), :nth-child(6n))::before {
    left: 50%;
    right: 0;
  }

  /* Rounded turns down to the next row: right edge after odd rows, left
     edge after even rows */
  .roadmap__step:is(:nth-child(6n + 3), :nth-child(6n)):not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--roadmap-icon) / 2 - var(--roadmap-line) / 2);
    width: var(--roadmap-turn);
    /* From this row's line to the next row's line: row height + gap, plus one
       line thickness so the turn's bottom edge lands on the next line
       instead of stopping just above it */
    height: calc(100% + var(--roadmap-row-gap) + var(--roadmap-line));
    border: var(--roadmap-line) solid var(--color-accent);
  }

  .roadmap__step:nth-child(6n + 3):not(:last-child)::after {
    right: calc(-1 * var(--roadmap-turn));
    border-left: 0;
    border-radius: 0 var(--roadmap-turn) var(--roadmap-turn) 0;
  }

  .roadmap__step:nth-child(6n):not(:last-child)::after {
    left: calc(-1 * var(--roadmap-turn));
    border-right: 0;
    border-radius: var(--roadmap-turn) 0 0 var(--roadmap-turn);
  }
}

/* 24. Tabs, choices, select, repeater & form sections
   --------------------------------------------------------------------------
   .tabs           [data-tabs] tablist + panels (js/main.js: arrow keys,
                   deep links). The list stays hidden until JS runs, so
                   without JS every panel simply shows.
   .choice         a radio/checkbox drawn as a pill; group them in
                   fieldset.field--group > .choice-list
   select          select.field__input gets a chevron
   .repeater       add/remove rows from a <template> (js/forms.js)
   .form__section  fieldset grouping fields under a legend
   .icon-button    44px square icon button (remove, close)
   Shown on element.html.
   -------------------------------------------------------------------------- */
.tabs__list {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.tabs__tab {
  all: unset;
  box-sizing: border-box;
  flex: 1 0 auto;
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Phones: tabs share the width so every tab stays visible (labels may wrap) */
@media (max-width: 519px) {
  .tabs__list {
    gap: 4px;
    padding: 4px;
  }

  .tabs__tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 4px;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
  }
}

.tabs__tab:hover {
  background: var(--color-surface-alt);
  color: var(--color-ink);
}

.tabs__tab[aria-selected='true'] {
  background: var(--color-accent);
  color: var(--color-ink);
}

.tabs__panel {
  margin-top: 20px;
}

.tabs__panel[hidden] {
  display: none;
}

.form__section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form__section + .form__section {
  padding-top: 28px;
  border-top: 1px solid var(--color-border-soft);
}

/* Float the legend so it sits below the divider, not on it (default fieldset rendering) */
.form__section > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 18px;
}

.form__section > legend + * {
  clear: both;
}

fieldset.field--group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.field--group > legend {
  padding: 0;
  margin-bottom: 10px;
}

.field--group[hidden],
.form__grid[hidden],
.field[hidden] {
  display: none;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
  display: inline-flex;
}

.choice__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.choice__label::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-text-subtle);
  border-radius: var(--radius-round);
  background: var(--color-surface);
  transition: border-width var(--transition-fast), border-color var(--transition-fast);
}

.choice:hover .choice__label {
  border-color: var(--color-text-subtle);
}

.choice__input:checked + .choice__label {
  border-color: var(--color-ink);
  background: var(--color-success-soft);
}

.choice__input:checked + .choice__label::before {
  border: 5px solid var(--color-ink);
}

.choice__input:focus-visible + .choice__label {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

.field--group[aria-invalid='true'] .choice__label {
  border-color: var(--color-error);
}

select.field__input {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231d5c57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

.repeater {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.repeater__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.repeater__row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 20px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.repeater__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  all: unset;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--color-error-soft);
  color: var(--color-error);
}

.icon-button[hidden] {
  display: none;
}

/* A .text-link that is a <button> (e.g. "Add another email") */
button.text-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* 25. Slider
   --------------------------------------------------------------------------
   Crossfading photo slider (home page banner only). Put .slider on the media
   frame (e.g. figure.media-placeholder.hero__image) so it keeps that frame's
   size and rounded corners. Slides stack and fade; the active one has
   .is-active. Controls (pause/play + one dot per slide) sit top-right, clear
   of the .hero__badge, and stay hidden until js/main.js starts the slider,
   so without JS the first photo simply shows. Shown on element.html.
   -------------------------------------------------------------------------- */
.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}

.slider__controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: rgba(6, 50, 49, 0.6);
  color: var(--color-white);
}

.slider__controls[hidden] {
  display: none;
}

.slider__toggle,
.slider__dot {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider__toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.slider__toggle .slider__icon-play,
.slider__toggle.is-paused .slider__icon-pause {
  display: none;
}

.slider__toggle.is-paused .slider__icon-play {
  display: block;
}

/* 24px tap target around a small visible dot; the current dot widens */
.slider__dot {
  width: 20px;
  height: 24px;
}

.slider__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.slider__dot[aria-current='true']::before {
  width: 16px;
  background: var(--color-accent);
}

.slider__dot:hover::before {
  background: var(--color-white);
}

.slider__dot[aria-current='true']:hover::before {
  background: var(--color-accent);
}

.slider__toggle:focus-visible,
.slider__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 999px;
}

@media (min-width: 1024px) {
  .slider__controls {
    top: 20px;
    right: 20px;
  }
}

/* Arrows: previous / next, inside the photo, vertically centred
   ([data-slider-arrows] on the slider; buttons built by js/main.js). Hidden
   until the pointer is over the slider or an arrow has keyboard focus. Only on
   devices that can hover; on touch screens the dots under the photo are used. */
.slider__arrow {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-ink); /* same as .hero__badge */
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 10px 24px -12px rgba(6, 50, 49, 0.55);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background-color 0.2s ease;
}

.slider__arrow--prev {
  left: 16px;
}

.slider__arrow--next {
  right: 16px;
}

@media (hover: hover) {
  .slider__arrow {
    display: flex;
  }

  .slider:hover .slider__arrow,
  .slider__arrow:focus-visible {
    opacity: 1;
  }
}

.slider__arrow:hover {
  background: var(--color-accent);
}

.slider__arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .slider__arrow--prev {
    left: 20px;
  }

  .slider__arrow--next {
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider__arrow {
    transition: none;
  }
}

/* Pager: slider dots OUTSIDE the photo, on a light background
   ([data-slider-pager="<slider id>"], dots built by js/main.js, one per slide).
   Small dots in faded ink; the current one is a longer ink bar. Each button is
   24px tall for tapping, around an 8px visible mark.
   Placement in the home hero (.hero__media > .slider__pager):
   - below 1024px: centred under the photo (the badge sits inside the photo)
   - 1024-1199px: under the badge, lined up with it (no room beside it)
   - 1200px and up: just under the photo's bottom edge, right of the badge */
.slider__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.slider__pager[hidden] {
  display: none;
}

.slider__pager .slider__dot {
  width: 18px;
  transition: width 0.3s ease;
}

.slider__pager .slider__dot::before {
  width: 8px;
  background: rgba(6, 50, 49, 0.22);
}

.slider__pager .slider__dot[aria-current='true'] {
  width: 48px;
}

.slider__pager .slider__dot[aria-current='true']::before {
  width: 36px;
  background: var(--color-ink);
}

.slider__pager .slider__dot:hover::before {
  background: rgba(6, 50, 49, 0.5);
}

.slider__pager .slider__dot[aria-current='true']:hover::before {
  background: var(--color-ink);
}

/* In the hero the pager sits outside the media box's height, so the badge
   (positioned from the box's bottom) stays where it was */
.hero__media > .slider__pager {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  margin-top: 0;
}

@media (max-width: 1023px) {
  /* room for the dots under the photo */
  .hero__media:has(> .slider__pager:not([hidden])) {
    margin-bottom: 36px;
  }
}

@media (min-width: 1024px) {
  .hero__media > .slider__pager {
    top: calc(100% + 18px);
    left: 25px;
    right: auto;
  }
}

@media (min-width: 1200px) {
  .hero__media > .slider__pager {
    top: auto;
    left: auto;
    right: 20px;
    bottom: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider__slide,
  .slider__slide.is-active,
  .slider__dot::before {
    transition: none;
  }
}

/* 26. Bare page (team bio: back bar, no header or footer)
   --------------------------------------------------------------------------
   body.page--bare drops the room reserved for the fixed header (there is no
   header) and makes the page white. .page-bar is the white strip at the top
   holding a .text-link back link (arrow + label), aligned to the content
   column. Shown on element.html.
   -------------------------------------------------------------------------- */
body.page--bare {
  padding-top: 0;
  background: var(--color-surface);
}

.page-bar {
  display: flex;
  justify-content: center;
  padding-inline: var(--space-page-x);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
}

@media (min-width: 1499px) {
  .page-bar {
    padding-inline: 100px;
  }
}

.page-bar__inner {
  width: 100%;
  max-width: var(--container-width);
  min-height: 64px;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-bar__inner {
    min-height: 76px;
  }
}

/* 27. Service grid
   --------------------------------------------------------------------------
   .service-grid  one column of service cards (services.html: 12). The cards
                  are the standard .card.card--static with .card--row and a
                  .card__photo, so they match every other card on the site.
                  Shown on element.html.
   -------------------------------------------------------------------------- */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .card--row: photo (or icon) on the left, body on the right at every width.
   A normal card stacks from 1024px; this one stays a row and drops the
   minimum height, so a list of them stays compact. */
.card--row {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .card--row {
    gap: 20px;
  }

  .card--row .card__photo {
    width: 96px;
    height: 96px;
  }
}

@media (min-width: 1024px) {
  .card--row {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    min-height: 0;
  }

  .card--row .card__photo {
    width: 120px;
    height: 120px;
    margin-bottom: 0;
  }

  .card--row .card__body {
    gap: 8px;
  }
}
