:root {
  --ink: #1b2420;
  --muted: #5b6660;
  --paper: #f1ede4;
  --surface: #ffffff;
  --line: #ddd6c9;
  --pine: #1b4332;
  --pine-dark: #102b20;
  --moss: #3a5a40;
  --clay: #bc6c4a;
  --clay-dark: #9a5138;
  --gold: #c9a15e;
  --shadow: 0 18px 45px rgba(27, 36, 32, 0.14);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  /* Without this, the width/height attributes leave height definite, so the
     `aspect-ratio` on .contact-photo and .contact-map img never applies. Rules that
     set an explicit height (.hero-image, .approach-media img, .visit-gallery img,
     .brand-mark) are class-based and still win. */
  height: auto;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(241, 237, 228, 0.92);
  border-bottom: 1px solid rgba(221, 214, 201, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* assets/icon.svg supplies its own pine ground and rounded corners. */
.brand-mark {
  width: 44px;
  height: 44px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--pine);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 600;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.14rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-tick {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.hero .eyebrow {
  color: #f2d8a4;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
  background: var(--clay-dark);
  color: #fff8ef;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 10px 22px rgba(188, 108, 74, 0.35);
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--pine-dark);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 62%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 43, 32, 0.86), rgba(16, 43, 32, 0.5) 46%, rgba(16, 43, 32, 0.14)),
    linear-gradient(0deg, rgba(16, 43, 32, 0.6), rgba(16, 43, 32, 0.1) 45%);
}

.hero-arc {
  position: absolute;
  left: clamp(-40px, -2vw, 20px);
  bottom: 0;
  width: min(46vw, 460px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}

.hero-arc-track {
  fill: none;
  stroke: rgba(242, 216, 164, 0.55);
  stroke-width: 1.5;
}

.hero-arc-ticks line {
  stroke: rgba(242, 216, 164, 0.55);
  stroke-width: 1.5;
}

.hero-arc-label {
  fill: rgba(242, 216, 164, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
}

.hero-arc-needle {
  transform-origin: 160px 300px;
  transform: rotate(-58deg);
}

.hero-arc-needle line {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
}

.hero-arc-needle circle {
  fill: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-arc-needle {
    animation: arc-sweep 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;
  }
}

@keyframes arc-sweep {
  from {
    transform: rotate(-172deg);
  }
  to {
    transform: rotate(-58deg);
  }
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 9vh, 88px) clamp(18px, 7vw, 96px);
  color: #fff;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.03rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Quick contact ---------- */

.quick-contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-contact div {
  position: relative;
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 34px);
  background: var(--surface);
}

.quick-contact div::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.quick-contact span {
  display: block;
  margin-bottom: 6px;
  padding-left: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-contact p,
.quick-contact a {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Hours run to two lines (weekdays, then Friday). */
.quick-contact p + p {
  margin-top: 4px;
}

/* Secondary to the phone above it, so it overrides the ink/700 of `.quick-contact p`. */
.quick-contact .quick-contact-fax {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Sections (shared) ---------- */

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.section-copy,
.section-heading {
  max-width: 760px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.intro-text p,
.approach-copy li,
.contact-copy {
  grid-column: 1 / -1;
  max-width: 62ch;
}

.contact-copy p {
  color: var(--muted);
}

.intro-text {
  display: grid;
  gap: 14px;
  font-size: 1.06rem;
}

.intro-text p {
  margin: 0;
}

/* ---------- Services ---------- */

.services {
  background: #e9e3d5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(27, 67, 50, 0.14);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(27, 36, 32, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(27, 36, 32, 0.1);
}

.service-icon {
  width: 34px;
  height: 34px;
  stroke: var(--clay-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-icon circle {
  fill: var(--clay-dark);
  stroke: none;
}

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

/* ---------- Approach band ---------- */

.approach-band {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  min-height: 620px;
  background: var(--pine-dark);
  color: #fff;
}

.approach-media {
  min-height: 420px;
}

.approach-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.approach-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 92px);
}

.approach-copy .eyebrow {
  color: #f2d8a4;
}

.check-list {
  display: grid;
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: rgba(255, 255, 255, 0.82);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}

/* ---------- First visit / arc timeline ---------- */

.steps-arc {
  position: relative;
  margin-top: 8px;
  padding-top: 64px;
}

.steps-arc-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
}

.steps-arc-line path {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 1 8;
  stroke-linecap: round;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
  border-top: 3px solid var(--line);
}

.step-marker {
  position: absolute;
  top: -64px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 8px 18px rgba(27, 36, 32, 0.18);
}

.step-start .step-marker {
  top: -18px;
}

.step-end .step-marker {
  top: -18px;
}

.step-degree {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.step h3 {
  margin-top: 18px;
}

.step p {
  color: var(--muted);
}

.visit-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 16px;
  margin-top: 50px;
}

.visit-gallery img {
  width: 100%;
  height: clamp(220px, 26vw, 360px);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(27, 36, 32, 0.1);
}

.visit-gallery img:first-child {
  object-position: center 72%;
}

.visit-gallery img:last-child {
  object-position: center 58%;
}

/* ---------- Contact ---------- */

.contact-section {
  display: grid;
  /* Intro spans the full width, then two equal cards sit beside it. Collapses to a
     single column at 980px, where the cards simply stack. */
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
  background: #efe6d8;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 58%;
}

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

.contact-card .button {
  width: fit-content;
}

/* The location card runs shorter than the one beside it, so its map stretches into the
   leftover height rather than leaving dead space under it; object-fit keeps the pin
   centred as the crop changes. Reset at 980px, where the two cards stack. */
.contact-card--location {
  align-content: stretch;
  grid-template-rows: auto auto 1fr;
}

.contact-card--location .contact-map {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.contact-card--location .contact-map > a {
  display: block;
  min-height: 0;
}

.contact-card--location .contact-map img {
  height: 100%;
  min-height: 210px;
  aspect-ratio: auto;
}

.contact-card-details {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-card-details span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card-details a,
.contact-card-details p {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Beats the generic `.contact-card-details a` rule above, which is for the phone. */
.contact-card-details .directions-link {
  justify-self: start;
  margin-top: 12px;
  color: var(--clay-dark);
  border-bottom: 1px solid rgba(154, 81, 56, 0.4);
}

.contact-card-details .directions-link:hover,
.contact-card-details .directions-link:focus-visible {
  border-bottom-color: var(--clay-dark);
}

.contact-map {
  margin: 0;
}

.contact-map img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.contact-map figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.contact-map figcaption a {
  color: inherit;
}

.contact-card-details span:not(:first-child) {
  margin-top: 10px;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

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

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .quick-contact,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-band,
  .contact-section,
  .intro {
    grid-template-columns: 1fr;
  }

  .contact-card--location {
    align-content: start;
    grid-template-rows: none;
  }

  .contact-card--location .contact-map img {
    height: auto;
    aspect-ratio: 16 / 7;
  }

  .steps-arc-line {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .step-marker,
  .step-start .step-marker,
  .step-end .step-marker {
    position: static;
    margin-bottom: 12px;
  }

  .step {
    padding-top: 0;
  }

  .step h3 {
    margin-top: 4px;
  }

  .visit-gallery {
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }

  .visit-gallery img:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 75px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-arc {
    width: 60vw;
    opacity: 0.4;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(16, 43, 32, 0.86), rgba(16, 43, 32, 0.25)),
      linear-gradient(90deg, rgba(16, 43, 32, 0.65), rgba(16, 43, 32, 0.2));
  }

  .hero-content {
    margin: 0 auto 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .quick-contact,
  .service-grid,
  .visit-gallery {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .contact-photo {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .approach-band {
    min-height: 0;
  }

  .approach-media {
    min-height: 320px;
  }

  .site-footer {
    flex-direction: column;
  }
}
