:root {
  --ink: #1F1A17;
  --bg: #FBF7F1;
  --surface: #fefcfa;
  --surface-alt: #f1ede7;
  --muted: #615c58;
  --line: #dcd8d2;
  --brand: #B4441C;
  --on-brand: #ffffff;
  --brand-ink: #B4441C;
  --brand-tint: #f4e5dc;
  --accent: #F2B33D;
  --on-accent: #1F1A17;
  --font-heading: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'URW Palladio L', P052, 'Book Antiqua', Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* ==========================================================================
   Site template styles. Brand variables (:root) are prepended by build.mjs
   from intake.yaml. Mobile-first: base styles target phones, then scale up.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 4.25rem; /* room for the mobile action bar */
}

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

h1, h2, h3, .h3 {
  font-family: var(--font-heading);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.5vw, 4.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--brand-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

address { font-style: normal; }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.narrow { max-width: 46rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

.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: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0.5rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 8px 20px -8px var(--brand);
}
.btn-primary:hover { box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 12px 26px -8px var(--brand); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: currentColor; }
.btn-large { min-height: 3.4rem; padding-inline: 1.6rem; font-size: 1.0625rem; }
.btn-small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn .icon { width: 1.2em; height: 1.2em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-row.center { justify-content: center; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand-logo { height: 2.5rem; width: auto; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0.5rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.4rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}
.site-nav a:hover { color: var(--brand-ink); }

/* Mobile: the nav is a drop-down panel controlled by site.js. Without JS
   the toggle stays hidden and the nav wraps below the brand. */
@media (max-width: 47.99rem) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-bottom: 0.75rem; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.25);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { display: block; padding: 0.5rem 1.25rem 1rem; }
  .js .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .header-call { display: none; }
}
@media (min-width: 48rem) {
  .nav-toggle { display: none !important; }
  .site-nav ul { display: flex; gap: 1.75rem; }
  .site-nav a { font-size: 0.975rem; padding-block: 0.5rem; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .header-call span { display: none; }
  .header-call { padding-inline: 0.75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 2rem 3rem;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 110% -10%, var(--brand-tint), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero h1 { margin-bottom: 0.35em; }
.hero-tagline {
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-cta .btn { flex: 1 1 14rem; }
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.open-status::before {
  content: "";
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: #9ca3af;
}
.open-status.is-open::before { background: #16a34a; box-shadow: 0 0 0 4px rgb(22 163 74 / 0.18); }
.open-status.is-closed::before { background: #b91c1c; }

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45);
}
@media (min-width: 56rem) {
  .hero { padding-block: 4.5rem 5.5rem; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero-cta .btn { flex: 0 0 auto; }
  .hero-media img { aspect-ratio: 5 / 6; border-radius: 2rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.lead { font-size: 1.1875rem; color: var(--muted); }
.page-head { padding-bottom: 1rem; }
.page-head + .section { border-top: 0; padding-top: 1.5rem; }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }

/* Services / menu */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.service {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}
.service-head { display: flex; align-items: baseline; gap: 0.6rem; }
.service h3 { margin: 0; }
.service p { margin: 0.5rem 0 0; color: var(--muted); }
.service-dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--line); transform: translateY(-0.3em); }
.price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--brand-ink);
}
@media (min-width: 40rem) {
  .service-list { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 64rem) {
  .service-list.is-priced { gap: 0 4rem; }
  .is-priced .service { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.5rem 0; }
  .service-list:not(.is-priced) { grid-template-columns: repeat(3, 1fr); }
}

/* About */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-copy p { font-size: 1.125rem; max-width: 36rem; }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: 1.5rem; }
@media (min-width: 56rem) {
  .has-image .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .has-image .split-media { order: -1; }
}

/* Gallery */
.section-gallery { padding-block: 0; border-top: 0 !important; }
.section-gallery + .section { border-top: 0; }
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery li:first-child { grid-column: 1 / -1; }
.gallery img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}
@media (min-width: 48rem) {
  .gallery { gap: 1.25rem; }
  .gallery.count-3, .gallery.count-4 { grid-template-columns: repeat(3, 1fr); }
  .gallery.count-3 li:first-child { grid-column: auto; }
  .gallery.count-4 li:first-child { grid-column: 1 / -1; }
  .gallery img { border-radius: 1.25rem; }
}

/* Reviews */
.section-reviews { background: var(--surface-alt); }
.section-reviews .section-head { margin-inline: auto; text-align: center; }
.testimonials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.testimonial {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.testimonial blockquote { margin: 0 0 1.5rem; flex: 1; }
.testimonial blockquote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.45;
}
.testimonial blockquote p::before { content: "\201C"; color: var(--brand-ink); }
.testimonial blockquote p::after { content: "\201D"; color: var(--brand-ink); }
.testimonial figcaption { font-weight: 650; }
.testimonial .source { font-weight: 400; color: var(--muted); }
@media (min-width: 56rem) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* Visit: hours + contact + map */
.visit-grid { display: grid; gap: 2rem; }
.visit-info { display: grid; gap: 2rem; align-content: start; }
.card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}
.hours-card h3, .hours-card .h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.hours-card .icon { color: var(--brand-ink); }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.hours-table th { font-weight: 550; padding-right: 1rem; }
.hours-table td { text-align: right; white-space: nowrap; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--brand-ink); font-weight: 700; }
.hours-table .closed { color: var(--muted); }
.hours-note { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--muted); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list .icon {
  width: 2.75rem; height: 2.75rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.contact-list .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a, .contact-list address, .contact-list p { font-size: 1.0625rem; margin: 0; }
.contact-list .text-link { display: inline-block; margin-top: 0.25rem; font-weight: 600; }

.map-frame {
  overflow: hidden;
  min-height: 20rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 20rem; border: 0; }
@media (min-width: 56rem) {
  .visit-grid.has-map { grid-template-columns: 1fr 1.25fr; gap: 3rem; }
  .map-frame, .map-frame iframe { min-height: 32rem; }
}

/* Contact form */
.section-contact { background: var(--surface-alt); }
.contact-wrap { max-width: 44rem; margin-inline: auto; }
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 650; }
.req { color: var(--brand-ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #b91c1c; }
.form-note { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: #b91c1c; }
.form-thanks {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 1rem;
}
.form-thanks h3 { margin-bottom: 0.4rem; }
.form-thanks p { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact page */
.contact-page-grid { display: grid; gap: 3rem; }
.contact-page-info { display: grid; gap: 2rem; align-content: start; }
.page-contact .map-frame { margin-top: 3rem; }
@media (min-width: 56rem) {
  .contact-page-grid { grid-template-columns: 1fr 1.35fr; gap: 4rem; }
}

/* Prose (privacy) */
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

/* ---------- Social icons ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
  font-size: 0.975rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.footer-logo { height: 3rem; width: auto; }
.footer-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin: 0; }
.footer-tagline { margin: 0; color: var(--muted); max-width: 26rem; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.site-footer ul:not(.social) { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--brand-ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  padding: 0.5rem max(0.5rem, env(safe-area-inset-left)) calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
  background: var(--ink);
  box-shadow: 0 -8px 24px rgb(0 0 0 / 0.15);
  transition: transform 0.25s ease;
}
.action-bar.is-hidden { transform: translateY(110%); }
.action-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  border-radius: 0.75rem;
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
}
.action-bar a:first-child { background: var(--brand); color: var(--on-brand); }
.action-bar a:focus-visible { outline-color: var(--accent); }
@media (min-width: 48rem) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}
