:root {
  --bg: #e6dccf;
  --surface: #f3ebe2;
  --ink: #2a221b;
  --muted: #5e5146;
  --faint: #8a7968;
  --line: #d2c3b2;
  --accent: #7c4a32;
  --accent-hover: #623926;
  --on-accent: #f8f1e8;
  --header-h: 4.25rem;
  --content: 72rem;
  --gutter: 1.25rem;
  --radius: 0.2rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --step: 0.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80rem 32rem at 0% -10%, rgba(124, 74, 50, 0.09), transparent 55%),
    radial-gradient(ellipse 50rem 24rem at 100% 0%, rgba(90, 62, 40, 0.07), transparent 50%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 40;
}

.skip:focus { transform: none; }

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

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
  container-type: inline-size;
  container-name: page;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header.is-stuck { border-bottom-color: #c4b5a4; }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.lang {
  display: flex;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
}

.lang button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang button + button { border-left: 1px solid var(--line); }

.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.site-footer .icon,
.note .icon { margin-right: 0.35rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header__meta {
  display: none;
  margin: 0;
  padding: 0 0 0.7rem;
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.92rem;
  gap: 1.25rem;
  align-items: center;
}

.site-header__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.site-header__towns { color: var(--faint); }

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 0.28rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
}
.nav-toggle span::before { top: -0.34rem; }
.nav-toggle span::after { top: 0.34rem; }

.nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(18rem, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.nav.is-open { transform: none; }

.nav a {
  text-decoration: none;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.nav a[aria-current="page"] { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

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

.btn--block { width: 100%; }

.hero {
  display: grid;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  padding: 2.5rem var(--gutter) 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); margin: 0 0 0.8rem; }

h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.6rem; }

h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }

.lede, .section__intro { color: var(--muted); max-width: 42rem; }

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero__banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 1.25rem;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.hero__banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-view {
  width: min(96vw, 56rem);
  max-height: 94vh;
  margin: auto;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-view::backdrop { background: rgba(28, 22, 18, 0.72); }
.hero-view__close {
  display: block;
  margin: 0 0 0.55rem auto;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.hero-view img { display: block; width: 100%; height: auto; }

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--ink);
}

.band a:first-child { grid-column: 1 / -1; }

.band a { display: block; min-width: 0; }
.band img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }
.band a:first-child img { aspect-ratio: 16 / 10; }

.section { padding: 3.5rem 0; }

.section__head { margin-bottom: 1.5rem; }

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; object-position: center; }

.card__body { padding: 1rem 1rem 1.15rem; }

.card p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.split img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; border: 1px solid var(--line); }

.quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
}

.quote footer {
  margin-top: 0.8rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

.facts, .steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact, .step {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.fact p, .step p { margin: 0; color: var(--muted); }

.icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--accent);
  display: inline-block;
  vertical-align: -0.3rem;
}

.icon--lg { width: 2rem; height: 2rem; margin-bottom: 0.6rem; display: block; }

.step__mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  position: relative;
  font-family: var(--serif);
  color: var(--accent);
}

.step__mark svg { position: absolute; inset: 0; }

.step__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.page-intro {
  padding: 2.5rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }

.service ul { margin: 0.6rem 0 1rem; padding-left: 1.1rem; color: var(--muted); }

.banner { width: min(100%, 40rem); border: 1px solid var(--line); margin: 1rem 0 0.5rem; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.gallery a {
  display: block;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
}

.gallery img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }

.gallery figcaption {
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 0.9rem;
}

.gallery small {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--accent);
}

.faq { display: grid; gap: 0.5rem; }

.faq__item { border: 1px solid var(--line); background: var(--surface); }

.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 0.95rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq__a { padding: 0 1rem 1rem; color: var(--muted); }

.faq__a[hidden] { display: none; }

.contact {
  display: grid;
  gap: 1.25rem;
}

form { display: grid; gap: 0.8rem; }

label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }

input, select, textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

textarea { min-height: 8rem; resize: vertical; }

.stack { display: grid; gap: 0.75rem; }

.note {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
}

.note h3 { display: flex; align-items: center; gap: 0.45rem; }

.cta {
  background: var(--ink);
  color: #f5f5f4;
  padding: 3rem 0;
}

.cta p { color: #d6d3d1; }

.cta .btn--primary { background: var(--surface); color: var(--ink); border-color: var(--surface); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 5.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a { text-decoration: none; }

.site-footer h2 {
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }

.site-footer__grid { display: grid; gap: 1.5rem; }

.legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}

.call-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 700;
}

.page-404 { min-height: 70vh; display: grid; align-content: center; gap: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .icon--phone { animation: wobble 2.8s ease-in-out infinite; transform-origin: 50% 20%; }
  .icon--pin { animation: bob 2.2s ease-in-out infinite; }
  .icon--mail { animation: tilt 3s ease-in-out infinite; transform-origin: 50% 80%; }
  .step__ring { animation: draw 1.1s ease forwards; }
  .step:nth-child(2) .step__ring { animation-delay: 0.15s; }
  .step:nth-child(3) .step__ring { animation-delay: 0.3s; }
  .step:nth-child(4) .step__ring { animation-delay: 0.45s; }
}

@keyframes wobble {
  0%, 55%, 100% { transform: rotate(0); }
  65% { transform: rotate(-14deg); }
  75% { transform: rotate(12deg); }
  85% { transform: rotate(-6deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes tilt {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-8deg); }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 40rem) {
  .hero__actions { flex-direction: row; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .contact { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

@container page (min-width: 40rem) {
  .service { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: center; gap: 1.5rem; }
}

@media (min-width: 56rem) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    transform: none;
    width: auto;
    border: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    background: transparent;
  }
  .nav a { border: 0; padding: 0.4rem 0.55rem; font-weight: 600; }
  .site-header__meta { display: flex; }
  .call-dock { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 54rem);
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.4rem;
  }
  .hero__copy { padding: 1.7rem 0.4rem 1.7rem 1.35rem; }
  .hero__banner { position: static; min-height: 0; padding: 0; }
  .hero__banner img { position: static; inset: auto; width: 100%; height: auto; }
  .band { grid-template-columns: 1.35fr 1fr 1fr; }
  .band a:first-child { grid-column: auto; grid-row: 1 / span 2; }
  .band img { aspect-ratio: 1 / 1; height: auto; }
  .band a:first-child img { aspect-ratio: auto; height: 100%; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split img { aspect-ratio: 4 / 3; height: auto; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.filters button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.filters button span { font-weight: 500; margin-left: 0.25rem; opacity: 0.75; }

.filters__status { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9rem; }

.filters__empty { margin: 1rem 0 0; color: var(--muted); }

.viewer:not([open]) { display: none; }

.viewer {
  width: min(96vw, 72rem);
  max-width: calc(100vw - 1.5rem);
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 1px solid #4a3d32;
  background: #241c17;
  color: var(--on-accent);
}

.viewer::backdrop { background: rgba(28, 22, 18, 0.88); }

.viewer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #3d322a;
}

.viewer__meta {
  margin: 0;
  display: flex;
  gap: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.viewer__close,
.viewer__nav {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
  background: #241c17;
  border: 1px solid #5c4b3e;
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.viewer__zoom {
  display: flex;
  margin-left: auto;
}

.viewer__zoom button {
  min-width: 2.4rem;
  padding-inline: 0.45rem;
}

.viewer__zoom button + button { margin-left: -1px; }

.viewer__zoom button:disabled { opacity: 0.4; cursor: default; }

.viewer__stage {
  position: relative;
  padding: 0.6rem 3.2rem;
}

.viewer__frame {
  height: min(72vh, 48rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1a1512;
  touch-action: none;
  cursor: zoom-in;
}

.viewer__frame.is-zoomed { cursor: grab; }
.viewer__frame.is-panning { cursor: grabbing; }

.viewer__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom, 1));
  transform-origin: center center;
  user-select: none;
}

.viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.viewer__nav[data-viewer-prev] { left: 0.45rem; }
.viewer__nav[data-viewer-next] { right: 0.45rem; }

.viewer__title {
  margin: 0;
  padding: 0.15rem 0.9rem 0.9rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
  .step__ring { stroke-dashoffset: 0; }
}
