/* =====================================================================
   Moreno Landscape LLC — The Refinery spec build
   Editorial / landscape-architect aesthetic. Bone + charcoal + olive,
   with a clay/terracotta accent. Photography carries the color; the UI
   stays quiet. Cormorant Garamond (display) + Manrope (body).
   Shared stylesheet across all pages.
   ===================================================================== */

:root {
  /* Ink */
  --ink:        #1c1c1a;
  --ink-soft:   #3a3a34;
  --ink-muted:  #5f5c52;
  --ink-faint:  #b4ad9d;

  /* Paper / bone */
  --bone:       #f5f2ea;
  --bone-light: #faf7f0;
  --card:       #fffdf8;
  --paper:      #ebe5d7;
  --paper-edge: #dcd4c2;

  /* Earth accents */
  --olive:      #5a6149;
  --olive-deep: #424733;
  --olive-light:#7c836a;
  --clay:       #b0654a;
  --clay-deep:  #8f4f38;
  --clay-light: #c07f66;
  --sage:       #8a9079;

  /* Dark sections */
  --char-deep:  #16170f;
  --char:       #23241a;

  --hairline:      rgba(28, 28, 26, 0.12);
  --hairline-olive:rgba(90, 97, 73, 0.20);
  --shadow-sm: 0 1px 2px rgba(28,28,26,.05), 0 2px 8px rgba(28,28,26,.06);
  --shadow-md: 0 8px 18px rgba(28,28,26,.09), 0 20px 40px rgba(28,28,26,.07);
  --shadow-lg: 0 14px 32px rgba(28,28,26,.12), 0 32px 70px rgba(28,28,26,.12);

  /* Type scale */
  --text-xs:   clamp(0.74rem, 0.70rem + 0.18vw, 0.82rem);
  --text-sm:   clamp(0.86rem, 0.82rem + 0.22vw, 0.98rem);
  --text-base: clamp(1rem, 0.95rem + 0.28vw, 1.14rem);
  --text-lg:   clamp(1.14rem, 1.05rem + 0.45vw, 1.35rem);
  --text-xl:   clamp(1.3rem, 1.1rem + 0.85vw, 1.7rem);
  --display-sm:clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --display:   clamp(2.5rem, 1.6rem + 4vw, 4.6rem);
  --display-lg:clamp(3rem, 1.8rem + 5.5vw, 6rem);

  --eyebrow: 0.78rem;
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---- Reusable atoms ---------------------------------------------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-deep);
  display: inline-block;
  margin-bottom: 1.1rem;
}
.eyebrow.on-dark { color: var(--clay-light); }

/* On a photo the clay eyebrow disappears into foliage: lift it. */
.hero .eyebrow.on-dark, .page-hero .eyebrow.on-dark {
  color: #f6ede6;
  font-size: clamp(0.86rem, 0.78rem + 0.32vw, 1rem);
  letter-spacing: 0.2em;
  text-shadow: 0 1px 3px rgba(20,21,15,.7), 0 2px 16px rgba(20,21,15,.6);
}

/* Text-only page hero: no photograph behind the heading. */
.page-hero.page-hero--plain { min-height: 0; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--paper-edge); }
.page-hero.page-hero--plain::after { display: none; }
.page-hero.page-hero--plain .page-hero-inner { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero.page-hero--plain h1 { color: var(--ink); max-width: 20ch; }
.page-hero.page-hero--plain .eyebrow { color: var(--clay-deep); text-shadow: none; font-size: var(--eyebrow); letter-spacing: 0.22em; }

.section { padding: clamp(4rem, 9vw, 8.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--dark { background: var(--char-deep); color: var(--bone); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--bone-light); }
.section--olive { background: var(--olive-deep); color: var(--bone); }
.section--olive h1, .section--olive h2, .section--olive h3 { color: var(--bone-light); }
.section--paper { background: var(--paper); }

.lead { font-size: var(--text-lg); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-muted); }
.on-dark .muted, .section--dark .muted, .section--olive .muted { color: rgba(245,242,234,0.72); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: "Manrope", sans-serif;
  font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.95em 1.8em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--clay-deep); color: #fff; }
.btn-primary:hover { background: #7a4230; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--bone); border-color: rgba(245,242,234,0.4); }
.btn-ghost.on-dark:hover { border-color: var(--bone); background: rgba(245,242,234,0.08); }

.arrow::after { content: "→"; transition: transform .25s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,242,234,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; }
.brand .mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.brand .mark b { color: var(--olive); font-weight: 600; }
.brand .sub {
  font-family: "Manrope", sans-serif; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-muted);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.3rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0.01em; transition: color .2s var(--ease); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--olive); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1.5px; background: var(--clay);
}
.nav-cta { background: var(--olive); color: #fff !important; padding: 0.6em 1.2em; border-radius: var(--radius); }
.nav-cta:hover { background: var(--olive-deep); }
.nav-phone { font-weight: 600; color: var(--ink) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

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

.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: var(--bone); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,15,.42) 0%, rgba(20,21,15,.20) 40%, rgba(20,21,15,.80) 100%);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: 6rem; }
.hero h1 { color: #fff; font-size: var(--display-lg); max-width: 16ch; font-weight: 500; }
.hero .hero-sub { font-size: var(--text-lg); max-width: 50ch; color: rgba(245,242,234,0.9); margin-top: 0.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.page-hero {
  position: relative; min-height: 56vh; display: flex; align-items: flex-end;
  color: var(--bone); overflow: hidden;
}
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,21,15,.25), rgba(20,21,15,.72)); }
.page-hero .hero-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.page-hero-inner { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); padding-top: 5rem; }
.page-hero h1 { color: #fff; font-size: var(--display); max-width: 18ch; }
/* About hero: let "Every job, every season." hold one line from tablet up */
@media (min-width: 840px) { .page-hero h1.wide { max-width: 26ch; text-wrap: balance; } }

/* ---- Stat strip -------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border-block: 1px solid var(--hairline); }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--bone); padding: clamp(1.6rem,4vw,2.6rem) 1.2rem; text-align: center; }
.stat .num { font-family: "Cormorant Garamond", serif; font-size: clamp(2.2rem,4vw,3.2rem); color: var(--olive); line-height: 1; }
.stat .lbl { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 0.5rem; }

/* ---- Split / alternating bands ----------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; height: clamp(320px, 46vw, 580px); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split-body h2 { font-size: var(--display-sm); }

/* ---- Section heading block --------------------------------------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--display-sm); }

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

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--hairline-olive); }
/* a lone card on the final row centres rather than hanging left */
.svc-grid > .svc-card:last-child:nth-child(3n+1) { grid-column: 2; }
.svc-card .ic { width: 38px; height: 38px; color: var(--olive); margin-bottom: 1rem; }
.svc-card h3 { font-size: var(--text-xl); margin-bottom: 0.4rem; }
.svc-card p { font-size: var(--text-sm); color: var(--ink-muted); margin: 0; }

/* feature list services (services page) */
.svc-detail { display: grid; grid-template-columns: 1fr; gap: 0; }
.svc-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem,4vw,4rem); align-items: center; padding: clamp(2.5rem,5vw,4.5rem) 0; border-top: 1px solid var(--hairline); }
.svc-row:last-child { border-bottom: 1px solid var(--hairline); }
.svc-row.reverse .svc-row-media { order: 2; }
.svc-row-media img { width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover; border-radius: var(--radius); }
.svc-row h2, .svc-row h3 { font-size: var(--text-xl); }
.svc-row .tag { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay-deep); font-weight: 600; }
.svc-row ul { list-style: none; padding: 0; margin: 1rem 0 0; columns: 2; column-gap: 1.5rem; }
.svc-row li { font-size: var(--text-sm); color: var(--ink-soft); padding-left: 1.2em; position: relative; margin-bottom: 0.4rem; break-inside: avoid; }
.svc-row li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--olive); border-radius: 50%; }

/* ---- Portfolio grid (asymmetric) --------------------------------- */

.folio { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.6rem, 1.4vw, 1.1rem); grid-auto-flow: dense; }
.folio-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.folio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.folio-item:hover img { transform: scale(1.05); }
.folio-item::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(20,21,15,.78)); opacity: 0; transition: opacity .35s var(--ease); }
.folio-item:hover::after { opacity: 1; }
.folio-cap { position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2; color: #fff; opacity: 0; transform: translateY(8px); transition: .35s var(--ease); }
.folio-item:hover .folio-cap { opacity: 1; transform: translateY(0); }
.folio-cap .t { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; line-height: 1.15; }
.folio-cap .s { display: block; margin-top: 0.3rem; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.span-3 { grid-column: span 3; aspect-ratio: 4/3; }
.span-2 { grid-column: span 2; aspect-ratio: 3/4; }
.span-4 { grid-column: span 4; aspect-ratio: 16/9; }
.span-6 { grid-column: span 6; aspect-ratio: 21/9; }

/* filter pills */
.folio-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.pill { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.55em 1.1em; border-radius: 50px; border: 1px solid var(--hairline); background: transparent; color: var(--ink-muted); cursor: pointer; transition: .2s var(--ease); }
.pill:hover { border-color: var(--olive); color: var(--olive); }
.pill.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.folio-item.hide { display: none; }

/* ---- Testimonials ------------------------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.quote { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 2rem; }
.quote .stars { color: var(--clay); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 0.8rem; }
.quote p { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; line-height: 1.45; color: var(--ink); }
.quote .who { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); margin-top: 1rem; }
.quote .who span { display:block; font-weight: 400; color: var(--ink-muted); font-size: var(--text-xs); }

/* ---- Process steps ---------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2.5rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-family:"Cormorant Garamond",serif; font-size: 2.6rem; color: var(--clay); position:absolute; top:-0.4rem; left:0; line-height:1; }
.step h3 { font-size: var(--text-lg); margin-top: 0.3rem; }
.step p { font-size: var(--text-sm); color: var(--ink-muted); }
.section--dark .step p, .section--olive .step p { color: rgba(245,242,234,0.75); }

/* ---- Service area chips ----------------------------------------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.area-chips span { font-size: var(--text-sm); padding: 0.45em 1em; border: 1px solid rgba(245,242,234,0.35); border-radius: 50px; color: var(--bone); }

/* ---- CTA band --------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--display-sm); color: var(--bone-light); max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 1rem auto 2rem; color: rgba(245,242,234,0.8); }

/* ---- Forms ------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font-family: "Manrope", sans-serif; font-size: var(--text-base); color: var(--ink);
  padding: 0.85em 1em; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--card); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---- Contact rows ----------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.contact-list .ic { color: var(--olive); width: 22px; flex: none; margin-top: 3px; }
.contact-list .k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); }
.contact-list .v { font-size: var(--text-lg); color: var(--ink); }

/* ---- Footer ----------------------------------------------------- */
.site-footer { background: var(--char-deep); color: rgba(245,242,234,0.75); padding: clamp(3rem,6vw,5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(245,242,234,0.12); }
.footer-grid h2, .footer-grid h4, .footer-grid .footer-h { color: var(--bone-light); font-family:"Manrope",sans-serif; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.footer-grid a { color: rgba(245,242,234,0.72); font-size: var(--text-sm); display: block; padding: 0.25rem 0; transition: color .2s; }
.footer-grid a:hover { color: var(--clay-light); }
.footer-brand .mark { font-family:"Cormorant Garamond",serif; font-size: 1.7rem; color: var(--bone-light); }
.footer-brand p { font-size: var(--text-sm); max-width: 32ch; margin-top: 0.8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: var(--text-xs); color: rgba(245,242,234,0.5); }
.footer-bottom .refinery { color: rgba(245,242,234,0.55); }
.footer-bottom .refinery b { color: var(--clay-light); font-weight: 600; }

/* ---- Spec / preview banner -------------------------------------- */
.spec-banner {
  background: var(--clay-deep); color: #fff; text-align: center;
  font-size: var(--text-xs); letter-spacing: 0.06em; padding: 0.55rem 1rem;
}
.spec-banner b { font-weight: 700; }
.spec-banner a { text-decoration: underline; }

/* ---- Reveal on scroll ------------------------------------------- */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 960px) {
  .nav { position: relative; }
  .nav-links { position: fixed; top: 100%; left: 0; right: 0; bottom: auto; visibility: hidden; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bone-light); border-bottom: 1px solid var(--hairline); padding: 1rem var(--gutter) 1.5rem; transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md); }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--hairline); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .split, .svc-row, .svc-row.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .svc-row.reverse .svc-row-media { order: 0; }
  .svc-grid, .quotes, .steps { grid-template-columns: 1fr 1fr; }
  .svc-grid > .svc-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .svc-grid > .svc-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 3; aspect-ratio: 4/3; }
  .span-6 { grid-column: span 6; aspect-ratio: 16/9; }
  .svc-row ul { columns: 1; }
}
@media (max-width: 560px) {
  .svc-grid, .quotes, .steps, .form-grid { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 6; aspect-ratio: 4/3; }
  .hero { min-height: 88vh; }
}

/* ---- Before / after ---------------------------------------------- */

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 3.5vw, 3rem); align-items: start; }
.ba-item { display: grid; gap: 1rem; }
.ba-item img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.ba-caption { max-width: 46ch; }
.ba-caption .t { font-family: "Cormorant Garamond", serif; font-size: var(--text-xl); line-height: 1.15; display: block; }
.ba-caption .d { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 0.35rem; display: block; }

@media (max-width: 760px) {
  /* the pergola and fire pit sit right of centre; keep them in frame when the hero crops hard */
  .hero .hero-img { object-position: 62% center; }
  .ba-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* footer social link */
.site-footer a.social { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-footer a.social svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.85; }

/* ---- Accessibility ------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--olive); color: var(--bone);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 3px;
}
.site-footer .refinery a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .folio-item:hover img { transform: none; }
}

/* ---- Legal pages --------------------------------------------------- */
.legal-body h2 { font-size: var(--text-xl); margin: 2.4rem 0 0.7rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal-body ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.legal-body li { color: var(--ink-soft); margin-bottom: 0.45rem; }
.legal-body a { color: var(--clay-deep); }

/* ---- Visually hidden (screen-reader only) ------------------------- */

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Linked trust claims keep the label look, but read as links. */
.stat .lbl a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(111, 108, 97, 0.45);
  text-underline-offset: 0.28em;
}
.stat .lbl a:hover,
.stat .lbl a:focus-visible { color: var(--olive); text-decoration-color: currentColor; }

/* ---- Audit fixes, Sept 13 2026 ------------------------------------ */
.section--olive .eyebrow.on-dark { color: var(--bone); }
.section--olive :focus-visible, .spec-banner :focus-visible { outline-color: var(--bone); }
.site-footer a { overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.folio-item:focus-within .folio-cap { opacity: 1; transform: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--olive); outline-offset: 2px;
}
.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;
}
@media (max-width: 560px) {
  .stats, .stats.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- One review, pulled high (Faith's call, Sept 13) ---------------- */
.pullquote { max-width: 58ch; margin: 0 auto; text-align: center; }
.pullquote blockquote {
  font-family: "Cormorant Garamond", serif; font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.35; color: var(--ink); margin: 0; text-wrap: balance;
}
.pullquote figcaption { margin-top: 1.1rem; font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }
.pullquote figcaption span { display: block; font-weight: 400; color: var(--ink-muted); font-size: var(--text-xs); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.req { color: var(--clay-deep); margin-left: 0.25em; }
.req-note { font-size: var(--text-xs); color: var(--ink-muted); margin-top: 0.9rem; }
