/* ==========================================================================
   Griffin Wallpaper Installation — stylesheet
   Palette: warm ivory / charcoal / olive-sage accent / brass detail
   Type: Cormorant Garamond (display) + Jost (text), self-hosted variable fonts
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F6F1E8;
  --paper: #FDFBF7;
  --sand: #EDE4D5;
  --ink: #25211C;
  --muted: #655B50;
  --line: #DCD0BD;
  --line-soft: #E8DFD0;
  --sage: #4E5A3E;
  --sage-dark: #3B4530;
  --brass: #8A6A3B;
  --brass-light: #CDAA72;
  --dark: #1E1A16;
  --dark-2: #2A251F;
  --on-dark: #F1EADF;
  --on-dark-muted: #BDB1A0;
  --error: #A3322A;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-text: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 78px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(37, 33, 28, .06), 0 2px 8px rgba(37, 33, 28, .05);
  --shadow-md: 0 10px 30px -12px rgba(37, 33, 28, .22), 0 2px 6px rgba(37, 33, 28, .06);
  --shadow-lg: 0 30px 60px -25px rgba(30, 26, 22, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0 0 .6em;
  color: var(--ink);
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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: -100px;
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ---------- Eyebrows & intros ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7A5C30;
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow-light { color: #E6D3AE; }
.eyebrow-brass { color: var(--brass-light); }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 36rem; }
.section-intro-light { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn-lg { min-height: 54px; padding: .95rem 1.85rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--sage); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage-dark); box-shadow: var(--shadow-md); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(20,17,14,.18); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(246, 241, 232, .82);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
  }
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 8px 24px -18px rgba(37,33,28,.35); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.brand-mark { width: 42px; height: 42px; flex: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}
.brand-sub {
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .32rem;
}
.primary-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.1rem); }
.primary-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: .5rem 0;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .25rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-nav a:not(.btn):hover::after,
.primary-nav a:not(.btn)[aria-current="true"]::after { transform: scaleX(1); }
.nav-call-mobile { display: none; }
.header-call { padding-inline: 1.15rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex: none;
}
.nav-toggle-bar {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 23px; }
.nav-toggle-bar:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header-call span { display: none; }
  .header-call { width: 48px; padding: 0; }
  .header-call .icon { width: 20px; height: 20px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--line-soft);
    padding: 1.5rem var(--gutter) 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line-soft); }
  .primary-nav a:not(.btn) {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }
  .primary-nav a:not(.btn)::after { display: none; }
  .nav-call-mobile { display: inline-flex; width: 100%; min-height: 54px; }
  body.nav-open { overflow: hidden; }
  /* Without JavaScript the menu stays reachable as a simple stacked list. */
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: .75rem; }
  .no-js .primary-nav {
    position: static; height: auto; visibility: visible; opacity: 1; transform: none;
    width: 100%; padding: 0; border: 0; background: transparent;
  }
  .no-js .primary-nav ul { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; }
  .no-js .primary-nav li { border: 0; }
  .no-js .primary-nav a:not(.btn) { font-family: var(--font-text); font-size: .9rem; padding: .35rem 0; }
  .no-js .nav-call-mobile { width: auto; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.22rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .26em; }
  .brand-mark { width: 38px; height: 38px; }
}
@media (max-width: 340px) {
  .brand-name { font-size: 1.08rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 640px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  max-height: 980px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-media img { object-fit: cover; object-position: 62% 50%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 17, 14, .86) 0%, rgba(20, 17, 14, .72) 34%, rgba(20, 17, 14, .28) 62%, rgba(20, 17, 14, .08) 100%),
    linear-gradient(0deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, 0) 38%);
}
.hero-inner { padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero-content { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .9rem;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .88);
}
.hero-points li { display: flex; align-items: center; gap: .6rem; }
.hero-points li::before {
  content: "";
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--brass-light);
  flex: none;
}
@media (min-width: 768px) and (max-width: 1180px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(20, 17, 14, .88) 0%, rgba(20, 17, 14, .78) 50%, rgba(20, 17, 14, .5) 80%, rgba(20, 17, 14, .32) 100%),
      linear-gradient(0deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, 0) 40%);
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait) {
  .hero { max-height: 860px; }
}
@media (max-width: 420px) {
  .eyebrow { font-size: .72rem; letter-spacing: .16em; gap: .65rem; }
  .eyebrow::before { width: 1.5rem; }
}
@media (max-width: 767.98px) {
  .hero { align-items: flex-end; min-height: 600px; min-height: calc(100svh - var(--header-h)); max-height: none; }
  .hero-media img { object-position: 50% 40%; }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(20, 17, 14, .92) 0%, rgba(20, 17, 14, .78) 45%, rgba(20, 17, 14, .38) 75%, rgba(20, 17, 14, .25) 100%);
  }
  .hero-inner { padding-block: 3rem 2.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { flex-direction: column; gap: .5rem; margin-top: 2rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1.5rem 4rem;
  align-items: end;
}
.split-head h2 { margin-bottom: 0; max-width: 18ch; }
.split-head .section-intro { margin-bottom: .35rem; }
.center-head { text-align: center; max-width: 46rem; margin-inline: auto; }
.center-head .section-intro { margin-inline: auto; }
.center-head .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7; }
@media (max-width: 860px) {
  .split-head { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.services-figure {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.services-figure picture {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.services-figure img { width: 100%; aspect-ratio: 4 / 5.4; object-fit: cover; }
.services-figure figcaption,
.gallery-caption {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--muted);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: background-color .35s var(--ease);
}
.service-card:hover { background: #fff; }
.service-num {
  font-variant-numeric: lining-nums;
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #7A5C30;
  margin-bottom: .9rem;
}
.service-card h3 { font-size: clamp(1.3rem, 1.8vw, 1.5rem); margin-bottom: .55rem; }
.service-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.75rem clamp(1.5rem, 3vw, 2.5rem);
  background: var(--sand);
  border-radius: var(--radius-lg);
}
.services-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.3;
  max-width: 36rem;
}
@media (max-width: 1023.98px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-figure { position: static; max-width: 560px; }
  .services-figure img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Why choose us ---------- */
.why {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}
.why::before {
  /* subtle wallpaper-like lattice, drawn in CSS */
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image:
    linear-gradient(45deg, var(--brass-light) 1px, transparent 1px),
    linear-gradient(-45deg, var(--brass-light) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.why .container { position: relative; }
.why-head { max-width: 44rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.why h2 { color: var(--on-dark); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
.why-item { padding-top: 1.6rem; border-top: 1px solid rgba(205, 170, 114, .35); }
.why-icon { width: 38px; height: 38px; color: var(--brass-light); margin-bottom: 1.2rem; }
.why-item h3 { color: var(--on-dark); font-size: 1.45rem; margin-bottom: .5rem; }
.why-item p { color: var(--on-dark-muted); font-size: .97rem; margin: 0; }
@media (max-width: 1023.98px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: none;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 2.15rem;
  left: 2.5rem; right: 2.5rem;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; padding-right: .5rem; }
.step-num {
  font-variant-numeric: lining-nums;
  display: inline-grid;
  place-items: center;
  width: 4.3rem; height: 4.3rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.process-step:hover .step-num { background: var(--sage); color: #fff; border-color: var(--sage); }
.process-step h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.process-step p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 1023.98px) {
  .process-list { grid-template-columns: 1fr; gap: 0; max-width: 40rem; margin-inline: auto; }
  .process-list::before { top: 1rem; bottom: 1rem; left: 2.15rem; right: auto; width: 1px; height: auto; }
  .process-step {
    display: grid;
    grid-template-columns: 4.3rem minmax(0, 1fr);
    column-gap: 1.5rem;
    padding: 0 0 2.25rem;
  }
  .process-step:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .process-step h3 { align-self: end; margin-top: .9rem; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid {
  columns: 3 320px;
  column-gap: 1.5rem;
}
.gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 2rem;
  display: inline-block; /* Firefox column fragmentation fix */
  width: 100%;
}
.gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery-btn img {
  width: 100%;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-btn:hover img { transform: scale(1.035); }
}
.gallery-btn:focus-visible { outline-offset: 4px; }
.gallery-caption { margin: .7rem 0 0; font-size: 1.05rem; }
@media (max-width: 700px) {
  .gallery-grid { columns: 1; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(18, 15, 12, .94);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; text-align: center; min-width: 0; }
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  max-height: calc(100dvh - 9rem);
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox-caption {
  margin-top: 1rem;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
}
.lightbox-close, .lightbox-nav {
  width: 52px; height: 52px;
  border: 1px solid rgba(241, 234, 223, .35);
  border-radius: 50%;
  background: rgba(30, 26, 22, .6);
  color: var(--on-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(241, 234, 223, .14); border-color: var(--on-dark); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding-top: 4.5rem; }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-prev { grid-row: 2; justify-self: end; }
  .lightbox-next { grid-row: 2; justify-self: start; }
  .lightbox-img { max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); }
}

/* ---------- Location ---------- */
.location { background: var(--sand); }
.location-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
.location-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #E4DCCD;
  aspect-ratio: 4 / 4.3;
  min-height: 360px;
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.82) sepia(.06);
}
.location-card {
  position: relative;
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
}
.location-card h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.location-card > p { color: var(--muted); }
.location-address {
  font-variant-numeric: lining-nums;
  margin: 1.75rem 0 2rem;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
}
.location-address .label,
.contact-list dt {
  display: block;
  font-family: var(--font-text);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.location-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 900px) {
  .location-inner { grid-template-columns: 1fr; }
  .location-map { aspect-ratio: 16 / 11; min-height: 300px; }
}
@media (max-width: 480px) {
  .location-map { aspect-ratio: 4 / 3.6; }
  .location-actions .btn { flex: 1 1 100%; }
}

/* ---------- Contact ---------- */
.contact { background: var(--dark-2); color: var(--on-dark); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.contact h2 { color: var(--on-dark); }
.contact-list { margin: 2.25rem 0 0; display: grid; gap: 1.35rem; }
.contact-list div { padding-bottom: 1.25rem; border-bottom: 1px solid rgba(241, 234, 223, .14); }
.contact-list dt { color: var(--on-dark-muted); }
.contact-list dd { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-list a { color: var(--on-dark); text-decoration-color: rgba(205, 170, 114, .6); }
.contact-list a:hover { color: #fff; text-decoration-color: var(--brass-light); }
.contact :focus-visible { outline-color: var(--brass-light); }

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.form-card :focus-visible { outline-color: var(--brass); }
.form-title { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: .25rem; }
.form-note { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }
.field { margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  color: var(--ink);
}
.req { color: var(--error); margin-left: .1rem; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid #CBBFA9;
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6F6558; opacity: 1; }
.field input:hover,
.field textarea:hover { border-color: #A99B83; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(78, 90, 62, .2);
}
/* Native validation state, shown only after the visitor has interacted */
.field input.was-touched:invalid,
.field textarea.was-touched:invalid { border-color: var(--error); }
/* Error messages created by the client validation script */
.field .error-message { font-weight: 500; }
.field .error-message::before { content: "\26A0\FE0E  "; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form-fallback-error {
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--error);
  background: #FBEDEA;
  color: #6E1F19;
  font-size: .95rem;
}
.form-fallback-error[hidden] { display: none; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--sage); }
.form-success h3 { font-size: 2rem; }
.form-success p { color: var(--muted); max-width: 26rem; margin-inline: auto; }
@media (max-width: 960px) {
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: .97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.1fr);
  gap: 2.5rem 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(241, 234, 223, .12);
}
.footer-name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--on-dark); line-height: 1.15; margin-bottom: .75rem; }
.footer-tag { max-width: 24rem; }
.footer-owner { color: var(--on-dark); margin: 0; }
.footer-heading {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.footer-nav li + li { margin-top: .45rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brass-light); }
.site-footer :focus-visible { outline-color: var(--brass-light); }
.footer-contact address { line-height: 1.85; }
.footer-map {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid var(--brass-light);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.6rem 2rem;
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation (progressive enhancement) ----------
   Content is visible by default. Only when js/main.js confirms
   IntersectionObserver support does it add .js-reveal to <html>,
   and only then do reveal targets start hidden. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .js-reveal .reveal.is-visible { opacity: 1; transform: none; }
  .hero-content > * { animation: heroIn 1s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: .08s; }
  .hero-content > :nth-child(3) { animation-delay: .16s; }
  .hero-content > :nth-child(4) { animation-delay: .24s; }
  .hero-content > :nth-child(5) { animation-delay: .32s; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-media, .hero-overlay, .lightbox, .quote-form, .services-figure, .location-map { display: none !important; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero h1, .hero-lede, .hero-points { color: #000; }
  .why, .contact, .site-footer { background: none; color: #000; }
  .why h2, .why-item h3, .why-item p, .contact h2 { color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
