/* ==========================================================================
   Olympian Pest Control — Design System
   Institutional navy · warm paper · copper accents
   Fraunces (display serif) + Archivo (grotesque body)
   ========================================================================== */

:root {
  --ink: #0b1d2e;          /* deep institutional navy */
  --ink-soft: #23384c;
  --ink-mute: #51637a;
  --paper: #f7f4ee;        /* warm document paper */
  --paper-deep: #efeadf;
  --copper: #b4642a;       /* warm authority accent */
  --copper-deep: #94501f;
  --copper-pale: #f3e2d3;
  --line: rgba(11, 29, 46, 0.16);
  --line-strong: rgba(11, 29, 46, 0.32);
  --line-inverse: rgba(247, 244, 238, 0.18);
  --white: #ffffff;
  --ok: #2c6e49;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;

  --shadow-card: 0 1px 2px rgba(11, 29, 46, 0.06), 0 12px 32px -16px rgba(11, 29, 46, 0.18);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--copper); color: var(--white); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;   /* no more lonely last words on their own line */
}
p, li, .lede { text-wrap: pretty; }

h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--copper);
}

.on-dark { color: var(--paper); }
.on-dark .lede { color: rgba(247, 244, 238, 0.78); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-copper {
  background: var(--copper);
  color: var(--white);
}
.btn-copper:hover { background: var(--copper-deep); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--ink-soft); }

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

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-inverse);
}
.btn-ghost-light:hover { border-color: var(--paper); }

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Accessibility: skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Utility bar ---------- */

.topbar {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.85);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.45rem;
}
.topbar a { color: var(--paper); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #e8a06a; }
.topbar-note { display: flex; align-items: center; gap: 0.5rem; }
.topbar-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6fcf97;
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.22);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.2rem;
  height: 2px;
  background: var(--copper);
}
.nav .btn { padding: 0.65rem 1.2rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
}

@media (max-width: 880px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .nav-toggle { display: block; }
  .topbar-note { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(180, 100, 42, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0e2438 100%);
  color: var(--paper);
  overflow: hidden;
}
.hero::after {
  /* blueprint grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 244, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 238, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 20% 30%, black, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; }
}
.hero-figure { margin: 0; }
.hero-figure svg { width: 100%; height: auto; }
.fig-caption {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(247, 244, 238, 0.6);
  border-left: 2px solid var(--copper);
  padding-left: 0.85rem;
}
.fig-caption-light {
  color: var(--ink-mute);
}
.hero h1 { max-width: 12.5em; }
.hero h1 em {
  font-style: italic;
  color: #e8a06a;
}
.hero .lede { margin-top: 1.5rem; color: rgba(247, 244, 238, 0.8); }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.hero-kicker {
  color: #e8a06a;
}
.hero-kicker::before { background: #e8a06a; }

/* SLA strip inside hero */
.sla-strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(247, 244, 238, 0.04);
}
.sla-strip > div {
  padding: 1.4rem 1.5rem;
  border-left: 1px solid var(--line-inverse);
}
.sla-strip > div:first-child { border-left: none; }
.sla-strip .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 550;
  color: var(--paper);
  line-height: 1;
}
.sla-strip .num span { color: #e8a06a; }
.sla-strip .lbl {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.6);
}
@media (max-width: 880px) {
  .sla-strip { grid-template-columns: repeat(2, 1fr); }
  .sla-strip > div:nth-child(3) { border-left: none; }
  .sla-strip > div:nth-child(n+3) { border-top: 1px solid var(--line-inverse); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-deep { background: var(--paper-deep); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.section-head .lede { margin-top: 1rem; }
.section-head-cta { justify-self: end; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head-cta { justify-self: start; }
}

/* ---------- Cards & grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card .num-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--copper);
}
.card p { color: var(--ink-mute); font-size: 0.98rem; }
.card .card-link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--copper-deep);
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--copper-pale);
  color: var(--copper-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Process (numbered steps) ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
}
.step {
  counter-increment: step;
  padding: 2rem 1.6rem 2.2rem;
  border-left: 1px solid var(--line-inverse);
}
.step:first-child { border-left: none; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 400;
  color: #e8a06a;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}
.step h3 { color: var(--paper); margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; color: rgba(247, 244, 238, 0.68); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: none; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-inverse); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; }
  .step:nth-child(n+2) { border-top: 1px solid var(--line-inverse); }
}

/* ---------- Guarantee / SLA panel ---------- */

.guarantee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .guarantee { grid-template-columns: 1fr; } }

.guarantee-doc {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 2rem;
}
.guarantee-doc .doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.guarantee-doc .doc-head strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.guarantee-doc .doc-head span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.doc-line {
  display: flex;
  gap: 0.9rem;
  padding-block: 0.85rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.doc-line:last-child { border-bottom: none; }
.doc-line .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--copper-pale);
  color: var(--copper-deep);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ---------- Checklist ---------- */

.checklist { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 1rem;
}
.checklist .tick {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.on-dark .checklist li { color: rgba(247, 244, 238, 0.85); }

/* ---------- Owner's letter (Ogilvy) ---------- */

.letter {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(2rem, 5vw, 3.25rem);
}
.letter .letter-date {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.letter h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.letter p { color: var(--ink-soft); margin-bottom: 1.05rem; font-size: 1.02rem; }
.letter p strong { color: var(--ink); }
.letter .signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
  margin-top: 1.75rem;
  margin-bottom: 0.15rem;
}
.letter .sig-role {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0;
}
.letter .ps {
  border-top: 1px dashed var(--line);
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  font-size: 0.95rem;
}

/* ---------- Service page icons ---------- */

.svc-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  background: var(--copper-pale);
  color: var(--copper-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.svc-icon svg { width: 34px; height: 34px; }

/* card header: number tag + icon on one line */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-head .icon-badge { margin-bottom: 0; }

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}
.quote-card blockquote::before { content: "“"; color: var(--copper); }
.quote-card blockquote::after { content: "”"; color: var(--copper); }
.quote-card figcaption {
  font-size: 0.88rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.quote-card figcaption strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 550;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--copper);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0.25rem 1.4rem;
  color: var(--ink-mute);
  max-width: 60ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(180, 100, 42, 0.22), transparent 60%),
    var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-band .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-band h2 { max-width: 18em; margin-inline: auto; }
.cta-band .lede { margin: 1.2rem auto 0; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, #0e2438 100%);
  color: var(--paper);
  border-bottom: 4px solid var(--copper);
}
.page-hero::after,
.cta-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 120'%3E%3Cpath fill='rgba(247,244,238,0.06)' d='M0 120V95h35V70h25v25h30V55h20V80h25V88h30V35h18l6-18 6 18h18v53h28V60h22v28h26V78h20l10-40 10 40h22v10h30V50h24v38h34V70h26v18h30V62h24v26h32V80h28v40Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 800px 110px;
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 15em; }
.page-hero .lede { margin-top: 1.2rem; color: rgba(247, 244, 238, 0.78); }

/* ---------- Service detail rows ---------- */

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: none; }
.svc-row .svc-index {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--copper);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.svc-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc-row .svc-meta {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.svc-row p + p { margin-top: 0.9rem; }
.svc-row .svc-body p { color: var(--ink-soft); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(180, 100, 42, 0.18);
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 1rem;
}
.form-status {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 500;
}
.form-status.ok { display: block; background: #e4efe7; color: var(--ok); border: 1px solid #bcd9c6; }
.form-status.err { display: block; background: #f7e4e0; color: #9b3324; border: 1px solid #e5beb5; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact page layout ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.contact-aside .aside-block {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.contact-aside .aside-block:first-child { border-top: none; padding-top: 0; }
.contact-aside h3 { margin-bottom: 0.5rem; }
.contact-aside p, .contact-aside a { color: var(--ink-mute); font-size: 0.98rem; }
.contact-aside a { color: var(--copper-deep); font-weight: 600; text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.94rem;
}
.site-footer .wrap { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-inverse);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid a { color: rgba(247, 244, 238, 0.72); text-decoration: none; }
.footer-grid a:hover { color: #e8a06a; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { margin-top: 1rem; max-width: 30ch; font-size: 0.9rem; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.5);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.footer-legal-links a {
  color: rgba(247, 244, 238, 0.65);
  text-decoration: none;
}
.footer-legal-links a:hover { color: #e8a06a; text-decoration: underline; }

/* ---------- Legal / policy pages ---------- */

.legal-body {
  max-width: 800px;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.legal-body .effective {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2rem;
}
.legal-body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  margin: 2.5rem 0 0.9rem;
}
.legal-body h3 {
  margin: 1.8rem 0 0.6rem;
}
.legal-body p, .legal-body li {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.legal-body ul, .legal-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.legal-body li { margin-bottom: 0.5rem; }
.legal-body a { color: var(--copper-deep); font-weight: 600; }
.legal-body .legal-callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* ---------- Accessibility widget ---------- */

.a11y-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 54px;
  height: 54px;
  border: 2px solid var(--paper);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(11, 29, 46, 0.35);
  transition: background 0.18s ease, width 0.18s ease;
}
.a11y-btn:hover { background: var(--copper); }
.a11y-btn:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}
.a11y-btn svg { width: 30px; height: 30px; }

.a11y-panel {
  position: fixed;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 201;
  width: min(320px, calc(100vw - 80px));
  max-height: min(80vh, 640px);
  overflow-y: auto;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(11, 29, 46, 0.35);
  padding: 1.25rem;
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
}
.a11y-panel-head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.a11y-close {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 30px;
  height: 30px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.a11y-close:hover { border-color: var(--ink); }

.a11y-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.a11y-option:hover { border-color: var(--ink-mute); }
.a11y-option[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.a11y-option .a11y-state {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.a11y-option[aria-pressed="true"] .a11y-state { color: #e8a06a; }

.a11y-textsize {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.a11y-textsize span { font-size: 0.92rem; font-weight: 500; }
.a11y-textsize .a11y-steps { display: flex; gap: 0.4rem; }
.a11y-steps button {
  width: 38px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.a11y-steps button:hover { border-color: var(--ink); }
.a11y-panel .a11y-footer {
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.a11y-panel .a11y-footer a { color: var(--copper-deep); font-weight: 600; }
.a11y-reset {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.a11y-reset:hover { border-color: var(--ink); }

@media (max-width: 560px) {
  .a11y-panel { right: 10px; left: 10px; width: auto; transform: none; top: auto; bottom: 80px; }
  .a11y-btn { top: auto; bottom: 14px; transform: none; border-radius: 10px 0 0 10px; }
}

/* --- Accessibility modes applied to <html> --- */

/* Text size steps (rem-based layout scales with root) */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }

/* High contrast: override design tokens */
html.a11y-contrast {
  --ink: #000000;
  --ink-soft: #000000;
  --ink-mute: #1f1f1f;
  --paper: #ffffff;
  --paper-deep: #ffffff;
  --copper: #7a3500;
  --copper-deep: #5e2900;
  --copper-pale: #ffe3cc;
  --line: rgba(0, 0, 0, 0.55);
  --line-strong: rgba(0, 0, 0, 0.8);
  --line-inverse: rgba(255, 255, 255, 0.6);
}
html.a11y-contrast .hero,
html.a11y-contrast .page-hero,
html.a11y-contrast .section-dark,
html.a11y-contrast .cta-band,
html.a11y-contrast .topbar,
html.a11y-contrast .site-footer { background: #000000; }
html.a11y-contrast .hero .lede,
html.a11y-contrast .page-hero .lede,
html.a11y-contrast .on-dark .lede,
html.a11y-contrast .step p,
html.a11y-contrast .site-footer,
html.a11y-contrast .site-footer a,
html.a11y-contrast .topbar,
html.a11y-contrast .footer-legal,
html.a11y-contrast .footer-legal-links a,
html.a11y-contrast .sla-strip .lbl { color: #ffffff; }
html.a11y-contrast .hero h1 em,
html.a11y-contrast .hero-kicker,
html.a11y-contrast .step::before,
html.a11y-contrast .sla-strip .num span { color: #ffb020; }

/* Readable font */
html.a11y-font body,
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3,
html.a11y-font .brand-name, html.a11y-font .btn,
html.a11y-font input, html.a11y-font select, html.a11y-font textarea {
  font-family: Verdana, Arial, sans-serif !important;
  letter-spacing: 0.01em;
}
html.a11y-font body { line-height: 1.8; word-spacing: 0.08em; }

/* Underline links */
html.a11y-underline a { text-decoration: underline !important; }

/* Pause animations */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
}
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }

/* Grayscale */
html.a11y-grayscale { filter: grayscale(1); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
