/* ===========================================================
   THE AJAC GROUP — Shared stylesheet
   Brand: Futura Bold | Teal Green #0F563B | Apricot Gold #E5B24E
   NOTE: Header is intentionally NOT sticky (client pet peeve).
   =========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --teal:        #0F563B;
  --teal-dark:   #0B4530;
  --teal-deep:   #083625;
  --gold:        #E5B24E;
  --gold-soft:   #EFCB85;
  --cream:       #FAF7F0;
  --paper:       #FFFFFF;
  --ink:         #1C2620;
  --muted:       #5C6B62;
  --line:        #E2DED3;

  /* Lead with Jost — the web font we actually LOAD (Google Fonts) — so every
     visitor renders the same family in every weight. We do NOT lead with local
     Futura: a machine with only "Futura Bold" installed renders bold headings in
     real Futura but regular body text in a fallback, causing a visible mismatch.
     To use true brand Futura sitewide later: license + self-host it as "Futura"
     and add it FIRST here. */
  --font-head: "Jost", "Futura PT", "Futura", system-ui, sans-serif;
  --font-body: "Jost", "Futura PT", "Futura", system-ui,
               -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 6px 24px rgba(8, 54, 37, 0.10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem); /* large, readable per client */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.05em;   /* airier tracking so all-caps headings breathe */
  color: var(--teal);
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(1.95rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
p  { margin: 0 0 1.1em; max-width: 68ch; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--teal  { background: var(--teal); color: #EAF1EC; }
.section--teal h2, .section--teal h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
/* the "in-between" size: bridges big headings and body text */
.lead {
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--teal-deep); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header (NON-STICKY by design) ---------- */
.site-header {
  position: static;          /* deliberately not fixed/sticky */
  background: var(--teal);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 56px; width: auto; }
.brand .brand-text {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}
.brand .brand-text small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 3px;
}
.brand:hover { text-decoration: none; }

/* ---------- Nav ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: #EAF1EC;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--gold); }
.main-nav a.active { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #12160f;   /* neutral-dark fallback — never shows as a colored bar */
  color: #fff;
  text-align: left;
}
.hero-bg {             /* photo layer (real <img>) with a slow cinematic zoom (Ken Burns) */
  position: absolute;
  inset: -3%;           /* generous bleed so no edge can ever show */
  width: 106%;
  max-width: none;      /* override the global img max-width cap — this caused the right-edge bar */
  height: 106%;
  object-fit: cover;
  object-position: center 32%;   /* bias crop upward: more house/roof, less yard */
  z-index: 0;
  animation: kenburns 30s ease-in-out infinite alternate;
}

/* Hero slideshow: gentle crossfade between slides (no sliding/popping) */
.hero-bg[data-slide] { opacity: 0; transition: opacity 1.8s ease; }
.hero-bg.is-active { opacity: 1; }
.hero::before {        /* neutral scrim (no color cast) so the headline stays readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,14,12,0.45), rgba(10,14,12,0.30));
}
.hero h1, .hero p, .hero .eyebrow, .hero .tagline-row {
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 12vw, 8rem);
  animation: heroIn 0.8s ease both;   /* gentle fade-up on page load */
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero h1 {
  color: #fff;
  max-width: 20ch;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.hero h1 .accent { color: var(--gold); }      /* two-tone headline */
.hero p { color: #DCEAE0; font-size: 1.25rem; max-width: 52ch; }
.hero .btn-row { margin-top: 1.6rem; }

/* Minimal hero (FD-style): centered, big photo, few words */
.hero--minimal { text-align: center; }
.hero--minimal .container {
  padding-block: clamp(5.5rem, 16vw, 11rem);
  display: flex; flex-direction: column; align-items: center;
}
.hero--minimal h1 { max-width: 16ch; }
.hero--minimal .hero-sub {
  color: #EAF1EC;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 40ch;
  margin: 0.4rem 0 0;
}
.hero--minimal .btn-row { justify-content: center; }
/* even lighter on the minimal hero so the home shows in full color */
.hero--minimal::before {
  background: linear-gradient(180deg, rgba(10,14,12,0.38), rgba(10,14,12,0.22));
}

/* accent tagline row with bullet separators */
.tagline-row {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--gold);
  margin: 0 0 1.6rem;
  font-weight: 700;
}
.reassure { font-size: 0.95rem; color: #9FB7A9; margin-top: 1rem; }

/* trust strip */
.trust-strip { background: var(--teal-dark); border-top: 4px solid var(--gold); }
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
}
.trust-item {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: #EAF1EC;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-item .check { color: var(--gold); font-size: 1.1rem; }

/* ---------- Two-column hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: none; }

/* ---------- Split layout (text + media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--rev .split-media { order: 2; }

/* ---------- Image placeholders (look intentional, not broken) ---------- */
.img-placeholder {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.7rem; text-align: center;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15,86,59,0.05), rgba(229,178,78,0.08));
  color: var(--muted);
}
.img-placeholder svg { width: 46px; height: 46px; color: var(--teal); opacity: 0.5; }
.img-placeholder .ph-label {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8rem; line-height: 1.4;
}
.img-placeholder--dark {
  border-color: rgba(229,178,78,0.55);
  background: rgba(255,255,255,0.04);
  color: #B9CDC1;
  aspect-ratio: 5 / 4;
}
.img-placeholder--dark svg { color: var(--gold); opacity: 0.85; }
.img-placeholder--wide { aspect-ratio: 16 / 9; }
.img-placeholder--tall { aspect-ratio: 3 / 4; }

/* ---------- Process / numbered steps ---------- */
.steps {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step {
  position: relative;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step .step-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2.4rem; line-height: 1; color: var(--gold);
  display: block; margin-bottom: 0.35rem;
}
.step h3 { margin-bottom: 0.3rem; font-size: 1.2rem; }
.step p { margin: 0; }

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  gap: 1.15rem 1.6rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
}
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 86, 59, 0.12);
}
.form-hp { position: absolute; left: -9999px; }   /* spam honeypot */
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Collapsible form panel ---------- */
.form-panel {
  max-width: 800px;
  margin-top: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.form-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.form-panel.is-collapsed .form-panel-bar { border-bottom-color: transparent; }
.form-panel-title {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--teal);
}
.form-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  color: var(--muted);
}
.form-panel-toggle:hover { color: var(--teal); }
.form-panel-toggle-icon {
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.form-panel.is-collapsed .form-panel-toggle-icon { transform: rotate(-90deg); }
.form-panel-body {
  overflow: hidden;
  max-height: 1800px;
  transition: max-height 0.35s ease;
}
.form-panel.is-collapsed .form-panel-body { max-height: 0; }
.form-panel-body .form-grid {
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.25rem 1.7rem;
}
@media (prefers-reduced-motion: reduce) {
  .form-panel-body, .form-panel-toggle-icon, .form-panel-bar { transition: none; }
}

/* ---------- Lead-capture popup (homepage / ad landing) ---------- */
.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(8, 54, 37, 0.55);
}
.lead-popup.is-open { display: flex; }
.lead-popup-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 5px solid var(--gold);
  box-shadow: 0 24px 60px rgba(8, 54, 37, 0.35);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  animation: popIn 0.28s ease both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.lead-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--muted);
}
.lead-popup-close:hover { color: var(--teal); }
.lead-popup .eyebrow { margin-bottom: 0.35rem; }
.lead-popup h2 { margin-bottom: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .lead-popup-card { animation: none; } }

/* ---------- Map embed ---------- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Accordion (expandable services) ---------- */
.accordion { max-width: 720px; }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.18); }
.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: #fff;
}
.accordion-trigger:hover { color: var(--gold); }
.accordion-icon {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  flex: none;
  transition: transform 0.2s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(90deg); }
/* light variant for FAQ on a cream/white section */
.accordion--light .accordion-item { border-bottom: 1px solid var(--line); }
.accordion--light .accordion-trigger { color: var(--teal); }
.accordion--light .accordion-trigger:hover { color: var(--teal-dark); }
.accordion--light .accordion-panel { color: var(--ink); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: #DCEAE0;
}
.accordion-panel p { margin: 0; padding: 0 0 1.15rem; max-width: 60ch; }

/* ---------- Services: flat 2x2, no boxes (thin dividers only) ---------- */
.grid.grid--services {
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
}
@media (max-width: 700px) { .grid.grid--services { grid-template-columns: 1fr; } }

/* strip the "card" look: no fill, no outline, no shadow — just a hairline rule */
.grid--services .card {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1.6rem 0 1.9rem;
}
.grid--services .card:hover { transform: none; box-shadow: none; }
.grid--services .card h3 { color: var(--teal); }

/* ---------- Service card media ---------- */
.card .img-placeholder { margin-bottom: 1.1rem; aspect-ratio: 3 / 2; }
.img-placeholder--compact { gap: 0; padding: 1rem; }
.img-placeholder--compact .ph-label { display: none; }

/* ---------- Credentials / affiliations strip ---------- */
.credentials {
  display: flex; flex-wrap: wrap;
  gap: 1rem 1.2rem; justify-content: center;
}
.cred {
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 0.85rem; color: var(--teal);
}
.cred .cred-dot { color: var(--gold); font-size: 1.1rem; line-height: 1; }
.cred:hover { border-color: var(--gold); text-decoration: none; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.quote-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.quote-card .qmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem; line-height: 0.6;
  color: var(--gold); display: block; margin-bottom: 0.6rem;
}
.quote-card blockquote { margin: 0 0 1rem; font-size: 1.05rem; color: var(--ink); }
.quote-card .qby {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.85rem; color: var(--muted);
}
.placeholder-note { color: var(--muted); font-style: italic; font-size: 0.95rem; }

/* ---------- Reviews / testimonials ---------- */
.reviews-widget { margin-top: 2rem; }
.reviews-widget:empty { display: none; }   /* stays hidden until the embed is added */
.review-cta {
  max-width: 640px;
  margin: 2.2rem auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.review-cta p { margin: 0 0 1.1rem; }

/* ---------- Brand chevron motif: scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 32px;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  animation: cueBob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 30px; height: 18px; display: block; }
.scroll-cue:hover { color: var(--gold-soft); }
@keyframes cueBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 0.4; }
}

/* ---------- Ethos statement (a calm breath) ---------- */
.ethos { background: var(--cream); text-align: center; }
.ethos-mark { display: block; width: 36px; height: 22px; color: var(--gold); margin: 0 auto 1.2rem; }
.ethos-text {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: none;
  color: var(--teal);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 22ch;
  margin: 0 auto 0.9rem;
}
.ethos-sub {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  max-width: none;   /* override base p max-width so it centers across full width */
}

/* ---------- Featured project cards (gallery) ---------- */
.project-card .project-caption {
  padding-top: 0.85rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.project-card .project-name {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.03em;
  color: #fff; font-size: 1.1rem;
}
.project-card .project-loc {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold); font-size: 0.78rem;
}

/* ---------- Real photos filling slots ---------- */
.project-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

/* ---------- Motion: hover lift + gallery zoom ---------- */
.card, .step {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(8, 54, 37, 0.16);
}
.project-card { overflow: hidden; border-radius: var(--radius); }
.project-photo { transition: transform 0.6s ease; }
.project-card:hover .project-photo { transform: scale(1.06); }
.about-photo { transition: transform 0.6s ease; }
.about-photo:hover { transform: scale(1.03); }

/* Logo displayed in the Our Story media slot (contained, never cropped) */
.about-logo {
  display: block;
  width: min(88%, 420px);
  margin-inline: auto;
}

/* ---------- Gallery photo grid ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { overflow: hidden; border-radius: var(--radius); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  transform: translateZ(0);        /* promote to GPU layer up front = crisp downscale from first paint */
  backface-visibility: hidden;
}
.gallery-item:hover img { transform: scale(1.05) translateZ(0); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero .container,
  .scroll-cue { animation: none; }
  .card, .step, .project-photo, .about-photo { transition: none; }
  .card:hover, .step:hover { transform: none; }
  .project-card:hover .project-photo,
  .about-photo:hover { transform: none; }
  .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}

@media (max-width: 860px) {
  .hero-grid,
  .split { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card .tick { color: var(--gold); }

/* ---------- Service list ---------- */
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.service-list li::before {
  content: "▸";
  color: var(--gold);
  position: absolute;
  left: 0;
}

/* ---------- Info strip (hours / area) ---------- */
.info-strip { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-strip h3 { color: var(--gold); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #C9D8CE;
  padding-block: 3rem 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--gold); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.social-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8FA89A;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    border-bottom: 4px solid var(--gold);
    z-index: 20;
  }
  .site-header .container { position: relative; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .main-nav li { padding: 0 var(--gutter); }
  .main-nav a { display: block; padding: 0.75rem 0; }
}
