/* Ohio Orthopedic Expert Witness Group
   Navy, brass, and warm paper. Serif headings, sans body. */

/* ---------- Fonts (self-hosted, Latin subset, SIL Open Font License) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #14263F;          /* Primary brand. Dark panels, solid buttons on light backgrounds. */
  --navy-deep: #0C1829;     /* Footer, mobile menu, navy button hover. */
  --navy-soft: #24395A;     /* Secondary dark surface, dark half-panel. */
  --brass: #B08D57;         /* Accent on navy surfaces only. Never text on white or paper. */
  --brass-text: #8A6A35;    /* Accent text on white and paper. */
  --brass-hover: #C4A36E;   /* Brass button hover. Also small brass text on --navy-soft. */
  --ink: #1A1F2B;           /* Headings on light backgrounds. */
  --text: #4A5260;          /* Body copy. */
  --text-muted: #6B7280;    /* Secondary copy on white. Fails AA on paper, so not used there. */
  --rule: #D8DCE3;          /* Hairlines, form borders, dividers. */
  --paper: #F6F5F1;         /* Alternate section background. */
  --white: #FFFFFF;
  --footer-text: #B9C0CC;   /* Footer copy on --navy-deep. */
  --error: #B42318;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --focus: var(--navy);
  --header-h: 64px;
  --gutter: 20px;
  --bar-h: 56px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 96px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; color: var(--ink); }

a { color: inherit; }

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

button, input, textarea { font: inherit; color: inherit; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

/* Focus ring: navy on light surfaces, brass on navy surfaces. */
.site-header,
.hero,
.site-footer,
.bottom-bar { --focus: var(--brass); }

.site-header.is-scrolled { --focus: var(--navy); }
.menu-open .site-header { --focus: var(--brass); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

main:focus { outline: none; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
  --focus: var(--brass);
}

.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.hero__title,
.section__title,
.why__title,
.why__num,
.card__title {
  font-family: var(--serif);
  letter-spacing: -.01em;
}

.lead {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.3;
}

.section__title {
  margin-bottom: 48px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.panel { position: relative; }

.section { padding-block: 72px; }
.section--light { background: var(--paper); }

@media (min-width: 1024px) {
  .section { padding-block: 120px; }
}

/* Anchor jumps land below the fixed header. */
html { scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* Solid navy: light backgrounds. */
.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

/* Solid brass: navy backgrounds. */
.btn--brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--navy);
}

.btn--brass:hover {
  background: var(--brass-hover);
  border-color: var(--brass-hover);
}

/* Outlined: navy on light backgrounds, white on dark. */
.btn--outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  color: var(--white);
  background-color: transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* Soft scrim so white header text holds up over any hero photo. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -32px;
  background: linear-gradient(rgba(12, 24, 41, .35), rgba(12, 24, 41, 0));
  pointer-events: none;
  transition: opacity .3s ease;
}

.site-header.is-scrolled {
  background-color: var(--white);
  border-bottom-color: var(--rule);
  color: var(--ink);
}

.site-header.is-scrolled::before { opacity: 0; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding-inline: var(--gutter);
}

.header__left {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: inherit;
  text-decoration: none;
}

.brand__top {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brand__bottom {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .02em;
}

/* Hamburger */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu: full-screen navy panel */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  background: var(--navy-deep);
  color: var(--white);
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.menu-open { overflow: hidden; }

.menu-open .nav {
  visibility: visible;
  opacity: 1;
  transition: opacity .3s ease;
}

.menu-open .site-header { color: var(--white); border-bottom-color: transparent; }

.nav__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .12); }

.nav__link {
  position: relative;
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.nav__email {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--footer-text);
}

.nav__email-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav__email a {
  font-size: 16px;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .header__left { gap: 22px; }
  .brand__top { font-size: 17px; }
  .brand__bottom { font-size: 15px; }

  .nav-toggle { display: none; }

  .nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    overflow: visible;
    background: none;
    color: inherit;
    visibility: visible;
    opacity: 1;
    transition: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 24px;
    width: auto;
  }

  .nav__list li + li { border: 0; }

  .nav__link {
    padding: 8px 0;
    font-size: 14px;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
  }

  .is-scrolled .nav__link::after { background: var(--brass-text); }

  .nav__link:hover::after { transform: scaleX(1); }

  .nav__email { display: none; }

  /* Header CTA is brass over the hero, navy once the header turns white. */
  .is-scrolled .nav__cta {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
  }

  .is-scrolled .nav__cta:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
  }
}

@media (min-width: 1024px) {
  .brand,
  .nav__link,
  .nav__cta { white-space: nowrap; }
}

/* Narrow desktop: keep the full header on one line. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__inner { padding-inline: 28px; }
  .header__left { gap: 16px; }
  .brand__top { font-size: 15px; }
  .brand__bottom { font-size: 13px; }
  .nav { gap: 20px; }
  .nav__list { gap: 18px; }
  .nav__link { letter-spacing: .04em; }
  .nav__cta { padding-inline: 20px; letter-spacing: .06em; }
}

@media (min-width: 1280px) {
  .nav { gap: 36px; }
  .nav__list { gap: 32px; }
}

/* ---------- Mobile action bar ---------- */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 2px solid var(--brass);
  background: var(--navy);
  transition: transform .25s ease;
}

/* Hidden while the contact form is on screen. */
.bottom-bar.is-hidden {
  visibility: hidden;
  transform: translateY(100%);
  transition: transform .25s ease, visibility 0s linear .25s;
}

.bottom-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--bar-h);
  padding: 0 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.bottom-bar__link + .bottom-bar__link { border-left: 1px solid rgba(176, 141, 87, .4); }
.bottom-bar__link svg { flex: none; color: var(--brass); }
.bottom-bar__link:hover { background: var(--navy-deep); }
.bottom-bar__link:focus-visible { outline-offset: -6px; }

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
}

/* ---------- 1. Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shown only when the photo is missing: hides the broken image icon. */
.hero__media::after,
.contact__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
}

.contact__media::after { background: var(--paper); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(12, 24, 41, .35) 0%, rgba(12, 24, 41, .85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(860px + 2 * var(--gutter));
  padding: calc(var(--header-h) + 32px) var(--gutter) 112px;
}

.hero__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(12, 24, 41, .3);
}

/* Brass rule above the H1. */
.hero__title::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--brass);
}

.hero__lead {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(12, 24, 41, .35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero__next {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-h) + 12px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  color: var(--white);
}

@media (min-width: 1024px) {
  .hero__next { bottom: 24px; }
}

/* ---------- Credentials bar ---------- */
.credentials {
  background: var(--navy);
  color: var(--white);
}

.credentials__list {
  display: grid;
  padding-block: 8px;
}

.credentials__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: center;
}

.credentials__item + .credentials__item { border-top: 1px solid rgba(176, 141, 87, .4); }

.credentials__icon {
  flex: none;
  color: var(--brass);
}

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

  .credentials__item {
    min-height: 72px;
    padding: 0 20px;
    white-space: nowrap;
  }

  .credentials__item + .credentials__item {
    border-top: 0;
    border-left: 1px solid rgba(176, 141, 87, .4);
  }
}

/* ---------- 2. Why a Local Expert ---------- */
.eyebrow {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass-text);
}

.why__top {
  display: grid;
  align-items: start;
  gap: 32px;
}

.why__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.why__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 28px;
  background: var(--brass);
}

.why__lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brass);
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.text-link svg { transition: transform .2s ease; }

.text-link:hover {
  color: var(--brass-text);
  border-bottom-color: var(--brass-text);
}

.text-link:hover svg { transform: translateX(3px); }

.why__points {
  display: grid;
  gap: 8px 48px;
  margin-top: 72px;
  border-top: 1px solid var(--rule);
}

.why__point { padding-top: 32px; }

.why__num {
  display: block;
  margin-bottom: 16px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--brass-text);
}

.why__point-title {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.why__point p {
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .why__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
  }

  .why__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }
}

/* Wide screens: four columns with hairline rules, like a printed brief. */
@media (min-width: 1280px) {
  .why__points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .why__point { padding-inline: 32px; }
  .why__point:first-child { padding-left: 0; }
  .why__point:last-child { padding-right: 0; }
  .why__point + .why__point { border-left: 1px solid var(--rule); }
}

.why__coverage {
  display: grid;
  gap: 8px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.why__coverage .eyebrow { margin-bottom: 0; }

.why__coverage p {
  font-size: 18px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .why__coverage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: baseline;
  }
}

/* ---------- Subspecialties ---------- */
.sub__heading { margin-bottom: 16px; }

.sub__intro {
  max-width: 720px;
  margin-bottom: 48px;
  font-size: 20px;
  line-height: 1.6;
}

.sub__list {
  display: grid;
  gap: 32px 40px;
}

.sub__item {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.sub__title {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.sub__item p {
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* ---------- 3 and 4. Icon columns ---------- */
.cards {
  display: grid;
  gap: 48px 40px;
}

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

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

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

.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--brass-text);
}

.step-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

.card__title {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--brass-text);
}

.section__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 56px;
}

/* ---------- 5. Contact ---------- */
.contact {
  overflow: hidden;
  background: var(--paper);
}

.contact__media {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop: solid paper left half, photo on the right behind the form. */
@media (min-width: 1024px) {
  .contact__media { display: block; }

  .contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, var(--paper) 50%, transparent 50%);
  }
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact__grid {
  display: grid;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 80px;
  }
}

.contact__title {
  margin-bottom: 20px;
  color: var(--brass-text);
}

.contact__lines {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 32px;
}

.contact__lines a {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__email { color: var(--ink); }

.contact__lines a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact__area { margin-top: 24px; }

/* Form */
.form-card {
  padding: 28px 20px;
  border: 1px solid var(--rule);
  background: var(--white);
}

.form-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-card { padding: 40px; }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

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

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

.field--radios { display: block; }
.field--radios legend { margin-bottom: 10px; }

.field__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.field input:not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234A5260' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
}

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

.field input:not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

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

.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--ink);
  cursor: pointer;
}

.radio input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--navy);
}

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

.field--radios .field__error { margin-top: 8px; }
.field__error:empty { display: none; }

.form-actions { margin-top: 28px; }

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-note a {
  color: var(--navy);
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}

.form-note a:hover { color: var(--brass-text); }

.form-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink);
}

.form-status:empty { display: none; }

.form-status.is-success {
  padding: 16px 20px;
  border-left: 3px solid var(--brass);
  background: var(--paper);
  font-size: 16px;
}

.form-status.is-error { color: var(--error); }

/* Spam trap: hidden from people, visible to bots */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- 6. Footer ---------- */
.site-footer {
  padding: 72px 0 32px;
  background: var(--navy-deep);
  color: var(--footer-text);
  font-size: 16px;
  line-height: 1.5;
}

.footer__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.brand--footer {
  margin-bottom: 12px;
  color: var(--white);
}

.footer__heading {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__list {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer__bottom {
  display: grid;
  gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(176, 141, 87, .4); /* --brass at 40% */
}

.footer__legal { font-size: 14px; }

/* ---------- Privacy page ---------- */
.page-simple { padding-bottom: 0; }

.legal {
  max-width: calc(760px + 2 * var(--gutter));
  padding-block: calc(var(--header-h) + 64px) 96px;
}

.legal h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.legal__date {
  margin-bottom: 48px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.65;
}

.legal p + p,
.legal ul + p { margin-top: 12px; }

.legal ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal li + li { margin-top: 6px; }

.legal a:not(.btn) {
  color: var(--navy);
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}

.legal a:not(.btn):hover { color: var(--brass-text); }

.header__back {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}

.header__back:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* 404 page */
.not-found__actions {
  justify-content: flex-start;
  margin-top: 32px;
}

.not-found__footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
