/* Dan's Auto: site styles.
 *
 * The look comes from the shop's logo, a Florida license plate: deep green
 * lettering, citrus orange, the mint of the state outline, on plate white.
 * Headings are Barlow Condensed (a face drawn from highway and plate lettering),
 * body text is Barlow.
 *
 * Responsive rules, same standard as the other Vital Consulting sites:
 * viewport-fit=cover with safe-area insets, 44px touch targets, and layouts
 * checked at 1440x900, 1024x768, 951x669, 768x1024, 874x402 (phone sideways),
 * 402x874, 375x812 and 320x568.
 * Content photos carry width/height and scale as one piece. Only the hero and
 * band backgrounds, the service photos and the group photo beside its text are
 * cropped (object-fit), and their boxes are sized by their content or an aspect
 * ratio, never by the viewport.
 */

:root {
  --green-950: #06281a;
  --green-900: #0b3d26;
  --green-700: #14603c;
  --green-100: #e4efe8;
  --mint: #40c8a0;
  --mint-100: #e2f6ee;
  --orange: #f57c1f;
  --orange-hover: #ff8f37;
  --orange-ink: #b04600;
  --sun: #f2c811;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #14201a;
  --muted: #4f5d55;
  --line: #e3ded0;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(6 40 26 / 6%), 0 8px 28px rgb(6 40 26 / 8%);
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 36px);
  --section: clamp(56px, 8vw, 104px);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar-h: 0px; /* height of the phone action bar; set where the bar shows */
}

*, *::before, *::after { box-sizing: border-box; }
/* Several components set display, which would otherwise beat the attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: clip;
  /* The footer sits at the bottom of the screen on short pages (Thanks, 404). */
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > .page-hero:only-child { flex: 1 0 auto; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--green-900); outline-offset: 3px; border-radius: 4px; }
/* Orange on the dark blocks, where the green ring would not show. */
.topbar :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.band :focus-visible, .crew :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }
/* The skip link straddles the dark top bar and the white header, so its ring
   is drawn inside its own white box. */
.skip:focus-visible { outline-offset: -4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .45em;
  color: var(--green-900);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
.nowrap { white-space: nowrap; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.center { text-align: center; }

.container {
  width: min(100% - 2 * var(--gutter) - var(--safe-l) - var(--safe-r), var(--max));
  margin-inline: auto;
}
.narrow { max-width: 780px; }
.narrow.center { margin-inline: auto; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--paper); color: var(--green-900); font-weight: 600;
  padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .95rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--orange); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  font: 700 1.1rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--green-950); }
.btn-primary:hover { background: var(--orange-hover); color: var(--green-950); }
.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: var(--green-700); color: #fff; }
.btn-ghost { border-color: rgb(255 255 255 / 70%); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--green-900); }
.btn-outline { border-color: var(--green-900); color: var(--green-900); }
.btn-outline:hover { background: var(--green-900); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row.center { justify-content: center; }
@media (max-width: 520px) { .btn-row > .btn { flex: 1 1 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 700 1.05rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); text-decoration: none;
}
.link-arrow .icon { transition: transform .15s; }
.link-row { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.more-reviews { margin-top: clamp(24px, 4vw, 40px); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar { background: var(--green-950); color: #d9e7df; font-size: .9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 40px; padding-block: 6px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa8a0; }
.status.is-open::before { background: var(--mint); box-shadow: 0 0 0 4px rgb(64 200 160 / 22%); }
.status.is-closed::before { background: var(--orange); }
@media (max-width: 640px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-address { display: none; } /* the action bar has Directions */
}

/* ── Header and nav ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; flex: none; }
/* The plate has its own rounded corners (cut out in scripts/web-images.py). */
.brand img { width: 118px; filter: drop-shadow(0 1px 2px rgb(6 40 26 / 28%)); }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 600 1.1rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase;
  color: var(--green-900); text-decoration: none; border-radius: var(--radius-sm);
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.header-call { min-height: 46px; padding: 10px 20px; font-size: 1.05rem; white-space: nowrap; }

.nav-toggle {
  display: none; flex: none; width: 48px; height: 48px; padding: 0; margin-right: -8px;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--green-900); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Below 900px the menu is a panel that drops from the header. */
@media (max-width: 899px) {
  .header-inner { min-height: 68px; gap: 10px; }
  .brand img { width: 104px; }
  /* The button comes before the menu in the HTML, so Tab goes from it into
     the links. It is drawn last. */
  .header-call { margin-left: auto; order: 2; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(6 40 26 / 18%);
    max-height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
  .nav-list {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px calc(var(--gutter) + var(--safe-r)) 16px calc(var(--gutter) + var(--safe-l));
  }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { display: flex; min-height: 56px; padding: 0 4px; font-size: 1.35rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--orange-ink); padding-left: 14px; box-shadow: inset 4px 0 0 var(--orange-ink); }
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 40; background: rgb(6 40 26 / 45%); }
}
@media (max-width: 520px) {
  /* Icon-only call button: the number is in the action bar and the hero. */
  .header-call { width: 48px; min-height: 48px; padding: 0; }
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-call .icon { width: 1.3em; height: 1.3em; }
}

/* ── Hero (home) ─────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; background: var(--green-950); color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 40 26 / 94%) 0%, rgb(6 40 26 / 82%) 42%, rgb(6 40 26 / 30%) 100%),
    linear-gradient(0deg, rgb(6 40 26 / 60%), transparent 45%);
}
.hero-inner { padding-block: clamp(64px, 10vw, 128px) clamp(96px, 13vw, 168px); }
.hero-copy { max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: #dbe8e1; margin-bottom: 1.6em; }
.plate-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 16px;
  border: 2px solid rgb(255 255 255 / 55%); border-radius: 10px;
  font: 600 .95rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: #fff;
  white-space: nowrap;
}
@media (max-width: 340px) { .plate-tag { letter-spacing: .1em; gap: 8px; padding-inline: 12px; } }
.plate-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgb(6 40 26 / 88%), rgb(6 40 26 / 80%)); }
}

/* Facts card that overlaps the bottom of the hero. */
.facts { position: relative; z-index: 2; margin-top: clamp(-84px, -7vw, -52px); }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 0; overflow: hidden;
}
.facts-grid li { display: flex; gap: 14px; align-items: flex-start; padding: clamp(18px, 2.4vw, 28px); }
.facts-grid li + li { border-left: 1px solid var(--line); }
.fact-icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--mint-100); color: var(--green-700);
}
.fact-icon .icon { width: 24px; height: 24px; }
.facts-grid strong { display: block; font: 700 1.3rem/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--green-900); margin-bottom: 3px; }
.facts-grid div > span { font-size: .95rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 1100px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid li + li { border-left: 0; }
  .facts-grid li:nth-child(even) { border-left: 1px solid var(--line); }
  .facts-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid li:nth-child(even) { border-left: 0; }
  .facts-grid li + li { border-top: 1px solid var(--line); }
  .facts-grid li { align-items: center; }
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero { position: relative; isolation: isolate; background: var(--green-900); color: #fff; overflow: hidden; }
.page-hero::after {
  /* the mint sweep from the plate */
  content: ""; position: absolute; z-index: -1; right: -12%; top: -60%; width: 60%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(64 200 160 / 26%), transparent);
}
.page-hero-inner { padding-block: clamp(48px, 7vw, 92px); max-width: 820px; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.4rem); margin-bottom: .25em; }
.page-hero .lead { color: #dbe8e1; }
.page-hero .eyebrow { color: var(--mint); }
.page-hero .eyebrow::before { background: var(--mint); }
.page-hero.has-photo { background: var(--green-950); }
.page-hero.has-photo .hero-bg { object-position: 50% 40%; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(6 40 26 / 93%) 0%, rgb(6 40 26 / 78%) 50%, rgb(6 40 26 / 40%) 100%); }
.page-hero.has-photo::after { display: none; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .7); }
.section-paper { background: var(--paper); }
.section-green { background: var(--green-100); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media::before {
  /* offset block behind the photo */
  content: ""; position: absolute; z-index: 0; inset: 18px -14px -14px 18px; border-radius: var(--radius);
  background: var(--mint-100); border: 2px solid var(--mint);
}
.split.flip > .split-media::before { inset: 18px 18px -14px -14px; }
.split-media.accent-orange::before { background: #fdeede; border-color: var(--orange); }
.split-media > * { position: relative; z-index: 1; }
/* Two photos side by side, stepped. No offset block behind these. */
.split-media.pair::before { display: none; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 16px); align-items: start; }
.photo-pair img:first-child { margin-top: clamp(20px, 4vw, 40px); }
/* Tablets upright (768) keep two columns; phones stack. */
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > .split-media { order: 0; }
  .split-media { margin-right: 14px; }
  .split.flip > .split-media { margin: 0 0 0 14px; }
  .split > .split-media.pair { margin: 0; }
}

/* ── Cards ───────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--mint); box-shadow: 0 2px 4px rgb(6 40 26 / 6%), 0 18px 40px rgb(6 40 26 / 13%); }
.card .fact-icon { margin-bottom: 18px; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }
/* the whole card is the link target */
.card .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .card .fact-icon { grid-row: span 3; margin: 2px 0 0; }
}

/* ── Photo band (call to action) ─────────────────────────── */
.band { position: relative; isolation: isolate; background: var(--green-950); color: #fff; text-align: center; }
.band .hero-bg { object-position: 50% 30%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(6 40 26 / 84%); }
.band-inner { padding-block: clamp(64px, 9vw, 120px); max-width: 820px; margin-inline: auto; }
.band h2 { color: #fff; }
.band .lead { color: #dbe8e1; margin-bottom: 1.5em; }
.band .eyebrow { color: var(--mint); }
.band .eyebrow::before { background: var(--mint); }
.band .btn-row { justify-content: center; }

/* Closing block on Home: the group photo in plain view, not behind a tint. */
.crew { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--green-900); color: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); }
.crew img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.crew-copy { padding: clamp(28px, 4.5vw, 60px); align-self: center; }
.crew h2 { color: #fff; }
.crew .lead { color: #dbe8e1; margin-bottom: 1.4em; }
.crew .eyebrow { color: var(--mint); }
.crew .eyebrow::before { background: var(--mint); }
/* Side by side only where the photo keeps most of its width; stacked below
   that, where it is shown whole. */
@media (max-width: 1040px) {
  .crew { grid-template-columns: 1fr; }
  .crew img { height: auto; }
}

/* ── Testimonials ────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.quote {
  display: flex; flex-direction: column; margin: 0; padding: clamp(24px, 3vw, 34px);
  background: var(--paper); border-radius: var(--radius); border-top: 5px solid var(--orange); box-shadow: var(--shadow);
}
.quote > .icon { width: 34px; height: 34px; color: var(--mint); margin-bottom: 10px; }
.quote blockquote { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; font: 700 1.15rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--green-900); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; } }

/* ── Guarantee ───────────────────────────────────────────── */
.guarantee {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3.5vw, 44px); align-items: center;
  background: var(--paper); border: 2px solid var(--green-900); border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow);
}
.seal {
  display: grid; place-content: center; text-align: center; width: clamp(128px, 17vw, 176px); aspect-ratio: 1;
  border-radius: 50%; background: var(--green-900); color: #fff;
  outline: 3px dashed var(--mint); outline-offset: -12px;
  font-family: var(--display); text-transform: uppercase; line-height: 1;
}
.seal b { font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--orange); }
.seal span { font-size: clamp(.85rem, 1.4vw, 1rem); letter-spacing: .14em; margin-top: 4px; }
@media (max-width: 640px) {
  .guarantee { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ── Services ────────────────────────────────────────────── */
.services { display: grid; gap: clamp(44px, 7vw, 96px); }
.service .split-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.service-num { display: block; font: 700 1rem/1 var(--display); letter-spacing: .2em; color: var(--orange-ink); margin-bottom: 10px; }
.service h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.jump a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--green-900); text-decoration: none;
  font: 600 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.jump a:hover { border-color: var(--green-900); }
.perks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.perks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--mint-100); color: var(--green-900); font-weight: 500; font-size: .98rem; }
.perks .icon { color: var(--green-700); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.info { display: grid; gap: 14px; list-style: none; margin: 0 0 28px; padding: 0; }
.info li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.info h2, .info h3 { font-size: 1.15rem; letter-spacing: .1em; margin-bottom: 4px; }
.info a { font-weight: 500; overflow-wrap: anywhere; }
.info li a:not(.link-arrow) { display: inline-flex; align-items: center; min-height: 44px; }
.info .big { font: 700 1.7rem/1.1 var(--display); letter-spacing: .03em; color: var(--green-900); text-decoration: none; }
.hours { margin: 0; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding: 3px 0; }
.hours dt { font-weight: 500; white-space: nowrap; }
.hours dd { margin: 0 0 0 auto; text-align: right; white-space: nowrap; }
.info li > div { flex: 1; min-width: 0; }
.info .status { color: var(--green-900); margin-bottom: 4px; }
/* Small phones: tighter cards and smaller hours, so each day stays on one line. */
@media (max-width: 420px) {
  .info li { padding: 16px; gap: 12px; }
  .info .hours { font-size: .9rem; }
}

.form-card { background: var(--paper); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3.6vw, 44px); box-shadow: var(--shadow); border-top: 6px solid var(--orange); }
.form { display: grid; gap: 18px; margin-top: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 6px; color: var(--green-900); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid #857f6c; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
/* Fields keep the site's focus ring as well as the change of border. */
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--green-700); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
}

.map { border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); background: var(--green-100); }
.map iframe { width: 100%; height: clamp(300px, 46vw, 460px); border: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--green-950); color: #c9d9d0; font-size: 1rem; }
.stripe { height: 6px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--sun) 33.3% 66.6%, var(--mint) 66.6% 100%); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(max-content, 1fr) minmax(max-content, 1.2fr) minmax(max-content, .8fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.footer-brand .brand img { width: 150px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-h { font-size: 1.15rem; letter-spacing: .14em; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.footer-contact { margin-top: 12px; }
.footer-contact a, .site-footer address a { display: inline-block; padding-block: 9px; overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px calc(20px + var(--safe-b)); border-top: 1px solid rgb(255 255 255 / 14%); font-size: .92rem;
}
/* Tablets: the logo gets its own row, the three lists share the next one. */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1.3fr .7fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 52ch; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .footer-links a { min-height: 44px; }
  .site-footer .hours { max-width: 340px; }
}

/* ── Phone action bar ────────────────────────────────────── */
.action-bar { display: none; }
@media (max-width: 640px) {
  :root { --bar-h: 58px; }
  body { padding-bottom: calc(var(--bar-h) + var(--safe-b)); }
  /* A focused field or link is scrolled clear of the bar, not left under it. */
  html { scroll-padding-bottom: calc(var(--bar-h) + var(--safe-b) + 12px); }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: var(--safe-b); padding-left: var(--safe-l); padding-right: var(--safe-r);
    background: var(--green-900); box-shadow: 0 -6px 24px rgb(6 40 26 / 28%);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 9px; height: var(--bar-h);
    font: 700 1.12rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
    color: #fff; text-decoration: none;
  }
  .action-bar a:first-child { background: var(--orange); color: var(--green-950); }
  /* The links fill the bar, so the ring goes inside each one. */
  .action-bar a:focus-visible { outline-offset: -5px; outline-color: #fff; border-radius: 0; }
  .action-bar a:first-child:focus-visible { outline-color: var(--green-950); }
  .footer-base { padding-bottom: 20px; }
}

/* ── Phone sideways (short and wide) ─────────────────────── */
@media (max-height: 480px) and (orientation: landscape) {
  /* Not sticky here: a fixed header would take a quarter of the screen. It
     stays positioned so the menu panel still hangs from it. */
  .site-header { position: relative; }
  .header-inner { min-height: 60px; }
  .hero-inner { padding-block: 40px 84px; }
  .page-hero-inner { padding-block: 36px; }
  .nav { max-height: none; }
  html { scroll-padding-top: 16px; }
}

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

@media print {
  .topbar, .nav, .nav-toggle, .action-bar, .header-call, .map { display: none !important; }
  body { background: #fff; padding: 0; }
  .site-header { position: static; }
}
