/* ==========================================================================
   Selah Veterinary Hospital — shared stylesheet
   Warm rustic-modern: cream/oat neutrals, barn-red accents, serif display.
   No external requests. System fonts only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette (derived from the barn-red logo) */
  --red:        #8a2222;  /* barn red — primary accent */
  --red-deep:   #6e1a1a;  /* hover / deep band */
  --red-shadow: #571414;  /* darkest red, large dark surfaces */
  --red-tint:   #f5e7de;  /* pale red-clay tint for icon chips */
  --cream:      #faf6ee;  /* page background */
  --oat:        #f1e9d8;  /* alternate section background */
  --card:       #fffdf8;  /* card surface */
  --ink:        #3b332e;  /* warm near-black text */
  --ink-soft:   #6b5f56;  /* secondary text (AA on cream) */
  --line:       #e4d9c4;  /* hairline borders (decorative only) */
  --line-soft:  #ece3d1;
  --field-border: #9b886f; /* form input borders — 3.4:1 on white (WCAG 1.4.11) */
  --gold:       #9a7422;  /* borders/ornament ONLY — 3.98:1 on cream, never text */
  --footer-bg:  #362720;  /* dark coffee-brown footer */
  --footer-ink: #e9dfd0;
  --footer-dim: #c3b4a3;

  /* Type */
  --serif: Georgia, "Iowan Old Style", Charter, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(59, 42, 28, 0.06), 0 10px 30px -12px rgba(59, 42, 28, 0.18);
  --shadow-lift: 0 2px 4px rgba(59, 42, 28, 0.07), 0 18px 44px -16px rgba(59, 42, 28, 0.26);
  --container: 72rem;

  /* Hand-crafted feel: faint warm grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.26 0 0 0 0 0.17 0 0 0 0 0.10 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--grain);
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.5vw + 0.8rem, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 2.2vw + 0.9rem, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 0.8vw + 1rem, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-deep); }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

strong { color: var(--ink); }
.hero strong,
.band-emergency strong,
.site-footer strong { color: #fff; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-footer :focus-visible,
.band-emergency :focus-visible,
.call-bar :focus-visible,
.hero :focus-visible {
  outline-color: #ffe9c9;
}

#main:focus { outline: none; }

::selection { background: var(--red); color: #fff; }

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}
.container--narrow { width: min(52rem, 100% - 2.5rem); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--oat { background: var(--oat); background-image: var(--grain); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--push { margin-top: 2rem; }

.grid--push { margin-top: 2rem; }
.flow-top { margin-top: 1.5rem; }
.section-cta { margin-top: 1.5rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.center .btn-row { justify-content: center; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.section-intro {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.7; cursor: default; transform: none; }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(110, 26, 26, 0.7);
}
.btn--primary:hover { background: var(--red-deep); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--red);
  border-color: currentColor;
}
.btn--outline:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.55rem;
}

/* Brand: barn mark + HTML wordmark. The wordmark baked into logo.png is
   illegible at header sizes, so the name is rendered as real text. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
}
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand-name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-top: 0.28em;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--red); background: var(--red-tint); }
.site-nav a[aria-current="page"] {
  color: var(--red-deep);
  background: var(--red-tint);
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.site-nav ~ .header-actions { margin-left: 0; }

.btn--call {
  padding: 0.62rem 1.15rem;
  min-height: 44px;             /* comfortable tap target */
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;                /* shown only when JS is available (html.js) */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

@media (max-width: 900px) {
  .brand img { height: 42px; }
  .brand-name { font-size: 1.08rem; }

  .header-inner { flex-wrap: wrap; }

  /* No-JS fallback: the nav renders as a plain stacked list under the
     header row, always reachable. site.js adds html.js, which collapses
     it into the toggle-driven dropdown panel instead. */
  .site-nav {
    order: 4;
    flex-basis: 100%;
    margin-left: 0;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 0.8rem;
  }
  .site-nav a {
    padding: 0.85rem 0.75rem;
    font-size: 1.08rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav li:last-child a { border-bottom: 0; }

  html:not(.js) .site-header { position: static; }

  html.js .nav-toggle { display: flex; }
  html.js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--cream);
    background-image: var(--grain);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  html.js .nav-open .site-nav { display: block; }
  html.js .site-nav ul { padding: 0.6rem 1.25rem 1rem; }

  .nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  /* Icon-only call button up top; the sticky call bar below keeps the
     full phone number visible on small screens. */
  .btn--call { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .btn--call .call-label { display: none; }
  .brand img { height: 40px; }
  .brand-name { font-size: 1rem; }
  .brand-name span { font-size: 0.58rem; }
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 720px) {
  .call-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--red);
    border-top: 1px solid var(--red-shadow);
    box-shadow: 0 -8px 20px -10px rgba(59, 42, 28, 0.45);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.55em 1em;
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  .call-bar svg { flex: none; }
  body { padding-bottom: 3.6rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: #fff;
}
.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
}
/* Scrim: stops verified against the brightest sky pixels of building.jpg /
   building-small.jpg (worst-case pixel per text band at 360px and
   1280-1440px layouts). With these values the kicker and lede hold >= 4.5:1
   and the heading (including the #ffd9b0 em) >= 3:1 wherever they can sit.
   If the hero photo or hero text colors change, re-verify the contrast. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(32, 18, 12, 0.72) 0%,
      rgba(38, 19, 13, 0.66) 28%,
      rgba(43, 19, 13, 0.78) 55%,
      rgba(43, 19, 13, 0.87) 75%,
      rgba(40, 17, 12, 0.94) 100%);
}
@media (max-width: 700px) {
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(32, 18, 12, 0.78) 0%,
        rgba(38, 19, 13, 0.72) 30%,
        rgba(43, 19, 13, 0.82) 60%,
        rgba(40, 17, 12, 0.94) 100%);
  }
}

.hero-content {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 44rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #ffe9cf;
  margin: 0 0 1rem;
  text-shadow: 0 1px 8px rgba(20, 10, 6, 0.55);
}
.hero-kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 18px rgba(20, 10, 6, 0.5);
}
.hero h1 em { font-style: italic; color: #ffd9b0; }

.hero-lede {
  font-size: clamp(1.08rem, 1vw + 0.9rem, 1.28rem);
  max-width: 36rem;
  color: rgba(255, 250, 242, 0.96);
  text-shadow: 0 1px 10px rgba(20, 10, 6, 0.45);
  margin-bottom: 1.6rem;
}
.hero-lede strong { color: #fff; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.7rem;
}

.hero-award {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 34rem;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #fdf3e3;
  background: rgba(30, 15, 10, 0.5);
  border: 1px solid rgba(255, 233, 201, 0.35);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-award svg { flex: none; margin-top: 2px; color: #ffcf8f; }

/* ---------- Announcements slot (sits between header and hero) ---------- */
.announcements {
  background: var(--red-tint);
  border-bottom: 1px solid #ecd6c8;
}
.announcements-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-block: 0.85rem;
  font-size: 0.98rem;
}
.announcements-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red-deep);
  white-space: nowrap;
}
.announcements-label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.announcements p { margin: 0; color: var(--ink); }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-soft);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); }

/* How-it-works trio */
.how-step { text-align: left; position: relative; }
.how-step .step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--red);
  opacity: 0.9;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.how-step h3 { margin-bottom: 0.35em; }
.how-step p { color: var(--ink-soft); font-size: 0.99rem; }

/* Services */
.svc-card h3 { margin: 0.9rem 0 0.35em; }
.svc-card p { color: var(--ink-soft); font-size: 0.98rem; }
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-tint);
  color: var(--red);
}
.svc-icon svg { width: 26px; height: 26px; }

/* ---------- Hours & contact ---------- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.1rem;
  font-size: 1rem;
}
.hours-table th,
.hours-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 650; padding-right: 1rem; white-space: nowrap; }
.hours-table td { text-align: right; }
.hours-table .closed { color: var(--red-deep); font-weight: 650; }
.hours-table .note {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

/* Narrow screens: stack each day's label over its times so time ranges
   don't wrap mid-range in the skinny right column. */
@media (max-width: 480px) {
  .hours-table, .hours-table tbody { display: block; }
  .hours-table tr {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .hours-table tr:last-child { border-bottom: 0; }
  .hours-table th,
  .hours-table td {
    display: block;
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }
  .hours-table th { margin-bottom: 0.1rem; }
}

.hours-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding: 0.55rem 0;
  border-top: 1px dashed var(--line);
  margin: 0;
}
.hours-note:first-of-type { border-top: 1px solid var(--line); margin-top: 0.2rem; }
.hours-note svg { flex: none; margin-top: 3px; color: var(--red); }

.doc-hours {
  background: var(--oat);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.doc-hours strong { display: block; margin-bottom: 0.15rem; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { flex: none; margin-top: 4px; color: var(--red); }
.contact-list .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.1rem;
}
.contact-list a { font-weight: 600; }
.contact-list .sub { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* ---------- Emergency band ---------- */
.band-emergency {
  background: var(--red-deep);
  background-image: var(--grain);
  color: #fff;
}
.band-emergency h2,
.band-emergency h3 { color: #fff; }
.band-emergency .eyebrow { color: #ffd2ad; }
.band-emergency .section-intro { color: rgba(255, 244, 233, 0.92); }
.er-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.er-card h3 { margin-bottom: 0.2em; font-size: 1.22rem; }
.er-card .er-city { color: #ffd9b6; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 650; }
.er-card a.er-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  min-height: 44px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 217, 182, 0.6);
  padding-bottom: 2px;
}
.er-card a.er-phone:hover { border-bottom-color: #fff; }

/* ---------- Payments strip ---------- */
.pay-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}
.pay-strip h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.pay-strip .pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pay-strip .pay-methods li {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-weight: 650;
  font-size: 0.92rem;
}
.pay-fineprint { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.cta-card .eyebrow { margin-bottom: 0.2rem; }
.cta-card p { color: var(--ink-soft); }
.cta-card .btn { margin-top: auto; }
.cta-card h3 { font-size: 1.45rem; }

/* ---------- Sub-page header ---------- */
.page-header {
  background: var(--oat);
  background-image: var(--grain);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
.page-header h1 { margin-bottom: 0.35em; }
.page-header .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0;
}

/* ---------- Policy / prose sections (visit page) ---------- */
.policy {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
  border-bottom: 1px solid var(--line);
}
.policy:last-of-type { border-bottom: 0; }
@media (min-width: 860px) {
  .policy { grid-template-columns: 17rem minmax(0, 1fr); }
}
.policy-head h2 { font-size: clamp(1.45rem, 1.4vw + 1rem, 1.8rem); margin-bottom: 0.3em; }
.policy-head .policy-sub { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.policy-body { max-width: 44rem; }
.policy-body ul { padding-left: 1.25em; }
.policy-body li { margin-bottom: 0.55em; }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.2rem 0;
  font-size: 0.98rem;
}
.callout--gentle { border-left-color: var(--gold); }  /* gold as ornament only */
.callout p:last-child { margin-bottom: 0; }

.fee-badge {
  display: inline-block;
  background: var(--red-tint);
  color: var(--red-deep);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.2rem 0.8rem;
  white-space: nowrap;
}

/* ---------- Steps (new clients) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.35rem, 2.5vw, 1.9rem) clamp(1.35rem, 2.5vw, 1.9rem) clamp(1.35rem, 2.5vw, 1.9rem) 4.6rem;
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  content: counter(step) / "";  /* decorative — the headings carry the order */
  position: absolute;
  left: 1.35rem;
  top: 1.45rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}
/* Step titles are h2s (no h2 precedes them under the page h1), sized to
   keep the original card scale. */
.steps h2 {
  font-size: clamp(1.2rem, 0.8vw + 1rem, 1.4rem);
  margin-bottom: 0.35em;
}
.steps p, .steps li { color: var(--ink); }
.steps .muted { color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 480px) {
  .steps > li { padding-left: 1.35rem; padding-top: 4rem; }
  .steps > li::before { top: 1.2rem; left: 1.35rem; }
}

.form-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px dashed var(--line);
  background: var(--oat);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.form-slot svg { color: var(--red); flex: none; }

/* ---------- Refill form ---------- */
.form-card { max-width: 44rem; }

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

.field label {
  display: block;
  font-weight: 650;
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}
.field .hint {
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: -0.2rem 0 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(138, 34, 34, 0.18);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

.req { color: var(--red); }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}
.form-actions .aside { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--red-tint);
  border: 1px solid #ecd6c8;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}
.notice svg { flex: none; color: var(--red); margin-top: 3px; }
.notice p { margin: 0; }

.after-form {
  max-width: 44rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* Honeypot — hidden from people, visible to bots. Never display. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submission confirmation. refill.php redirects to
   refills.html?sent=1#refill-confirm — the :target rule reveals the panel
   and hides the form with no JavaScript required; site.js mirrors it
   (.is-visible) and adds focus management when JS is available. */
.confirm {
  border-left: 4px solid var(--red);
  margin-bottom: 1.5rem;
}
.confirm h2 { font-size: 1.5rem; margin-bottom: 0.35em; }
.confirm:focus { outline: none; }
.confirm:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#refill-confirm { display: none; }
#refill-confirm:target,
#refill-confirm.is-visible { display: block; }
#refill-confirm:target ~ form { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  background-image: var(--grain);
  color: var(--footer-ink);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-block: clamp(2.6rem, 5vw, 4rem) 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; }
}
.site-footer .f-brand img { height: 76px; width: auto; margin-bottom: 1rem; }
.site-footer .f-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--footer-ink);
  max-width: 20rem;
}
/* Footer column titles are h2s (avoids h2 -> h4 level skips on subpages),
   styled as small caps labels. */
.site-footer h2 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55em; color: var(--footer-dim); }
.site-footer a { color: var(--footer-ink); text-decoration-color: rgba(233, 223, 208, 0.4); }
.site-footer a:hover { color: #fff; }
.f-hours-line { display: flex; justify-content: space-between; gap: 1rem; }
.f-hours-line span:last-child { color: var(--footer-ink); }
.f-note { font-size: 0.88rem; color: var(--footer-dim); }

.footer-bottom {
  border-top: 1px solid rgba(233, 223, 208, 0.18);
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--footer-dim);
}
.footer-bottom p { margin: 0; }

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

/* ---------- Print ---------- */
@media print {
  .skip-link, .nav-toggle, .site-nav, .call-bar, .hero-ctas, .btn { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .band-emergency, .site-footer { background: #fff !important; color: #000 !important; }
  .band-emergency h2, .band-emergency h3, .er-card h3,
  .site-footer h2, .er-card a.er-phone { color: #000 !important; }
}
