/* ==========================================================================
   CHS Irrigation & Lighting — chsirrigationandlighting.com
   Palette: Lowcountry marsh green + brass lighting amber + oyster sand
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #0e1c18;
  --ink-soft:   #16302a;
  --moss:       #1d4437;
  --palm:       #2f6b53;
  --palm-lite:  #4b8f72;
  --brass:      #b5822a;
  --glow:       #e8b04b;
  --glow-soft:  #f7dfae;
  --sand:       #f5efe4;
  --paper:      #fffdf8;
  --muted:      #5d6b66;
  --rule:       rgba(14, 28, 24, 0.12);

  /* Type */
  /* Carlito is metric-compatible with Calibri, so it falls back cleanly on
     machines that have Calibri installed. Lora carries the headings. */
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Carlito", Calibri, "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(14, 28, 24, .07);
  --shadow-md: 0 14px 40px -18px rgba(14, 28, 24, .45);
  --shadow-lg: 0 30px 70px -30px rgba(14, 28, 24, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------- reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.05rem, 1rem + .25vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}
/* A flex container that takes owner text directly turns each bold, italic or
   linked run into its own flex item. Keep those short runs' words whole. */
.trustbar li:has(> em, > strong, > a),
.eyebrow:has(> em, > strong, > a),
.hero__owner:has(> em, > strong, > a) { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  flex: none;
}
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 58ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--palm);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--gold  { --btn-bg: var(--glow); --btn-fg: #24180a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark  { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--block { width: 100%; }
.btn svg { width: 1.05em; height: 1.05em; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
/* Pages that open with a full-bleed hero: the header floats over the photo
   instead of taking room above it. Fixed rather than sticky so the hero starts
   at the very top whatever height the header ends up (it varies with the
   breakpoint and fonts; a hard-coded pull-up left a strip of page showing). */
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: .28rem; line-height: 1.1; }
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #fff;
  transition: color .3s var(--ease);
}
.brand__tag {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--glow-soft);
  transition: color .3s var(--ease);
}
.nav { display: flex; align-items: center; gap: 1.85rem; }
.nav > a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 400;
  white-space: nowrap;
  padding-block: .3rem;
  position: relative;
  transition: color .25s var(--ease);
}
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--glow); transition: right .28s var(--ease);
}
.nav > a:hover::after { right: 0; }
.nav > a[aria-current="page"]::after { right: 0; background: var(--glow); }
.header-cta { margin-left: .4rem; }
.header-cta .btn { white-space: nowrap; }

.site-header.is-stuck {
  background: rgba(255, 253, 248, .93);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--rule), 0 10px 30px -22px rgba(14,28,24,.5);
}
.site-header.is-stuck .brand__name { color: var(--ink); }
.site-header.is-stuck .brand__tag { color: var(--brass); }
.site-header.is-stuck .nav > a { color: var(--ink-soft); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 480px) {
  .brand__name { font-size: 1rem; }
  .brand__tag { font-size: .58rem; letter-spacing: .16em; }
  .brand__mark { width: 32px; height: 32px; }
}

/* Pages that don't open with a full-bleed hero: the sticky header sits in normal
   flow above a light page background, so its default light-on-transparent skin
   would be white-on-white. Give it the opaque treatment from the start.
   Declared before the .is-nav-open block below so that block still wins at the
   same specificity when the mobile drawer is open. */
.page-light .site-header {
  background: rgba(255, 253, 248, .93);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--rule), 0 10px 30px -22px rgba(14,28,24,.5);
}
.page-light .brand__name { color: var(--ink); }
.page-light .brand__tag { color: var(--brass); }
.page-light .nav > a { color: var(--ink-soft); }
.page-light .nav-toggle span { background: var(--ink); }

/* While the drawer is open the header sits on top of a near-black panel, so it
   drops its light "stuck" skin and goes back to light-on-dark. Without this the
   .is-stuck rules above win on specificity and paint ink-coloured links onto an
   ink-coloured drawer. */
.site-header.is-nav-open,
.page-light .site-header.is-nav-open,
.site-header.is-stuck.is-nav-open {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-nav-open .brand__name,
.page-light .site-header.is-nav-open .brand__name { color: #fff; }
.site-header.is-nav-open .brand__tag,
.page-light .site-header.is-nav-open .brand__tag { color: var(--glow-soft); }
.site-header.is-nav-open .nav-toggle span,
.page-light .site-header.is-nav-open .nav-toggle span { background: #fff; }

/* The inline nav needs ~920px of content width at full spacing (brand + six
   links + CTA), i.e. a ~1035px viewport once gutters and a classic scrollbar
   are counted. Below 1100px it tightens its gaps, and at 1000px it gives way
   to the drawer. If a nav item is added or renamed, re-measure and move these
   breakpoints (and the matchMedia in main.js) rather than letting labels wrap. */
@media (min-width: 1001px) and (max-width: 1100px) {
  .site-header__inner { gap: 1.25rem; }
  .nav { gap: 1.3rem; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem var(--gutter) 2.25rem;
    background: #0b1613;
    transform: translateY(-102%);
    transition: transform .45s var(--ease);
    z-index: -1;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  }
  .nav.is-open { transform: translateY(0); }

  /* Direct children only — the CTA is wrapped in .header-cta and must keep
     its .btn styling. Specificity has to beat `.site-header.is-stuck .nav > a`. */
  .site-header .nav > a,
  .page-light .site-header .nav > a,
  .site-header.is-stuck .nav > a {
    color: #fff;
    font-size: 1.3rem;
    font-family: var(--display);
    font-weight: 500;
    padding-block: .95rem;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .site-header .nav > a[aria-current="page"] { color: var(--glow); }
  .nav > a::after { display: none; }
  .header-cta { margin-top: 1.75rem; }
  .header-cta .btn { width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-top: 6rem; /* clears the fixed header */
  min-height: min(94svh, 900px);
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,18,15,.72) 0%, rgba(8,18,15,.22) 34%, rgba(8,18,15,.62) 72%, rgba(8,18,15,.92) 100%),
    radial-gradient(120% 80% at 78% 42%, rgba(232,176,75,.20), transparent 60%);
}
.hero__inner { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero__lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: rgba(255,255,255,.88); max-width: 52ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__owner {
  margin-top: 2.6rem;
  display: flex; align-items: center; gap: .8rem;
  font-size: .92rem; color: rgba(255,255,255,.78);
}
.hero__owner::before { content: ""; width: 34px; height: 1px; background: var(--glow); flex: none; }

/* ------------------------------------------------------------ trustbar */
.trustbar { background: var(--ink); color: rgba(255,255,255,.9); }
.trustbar ul {
  list-style: none; margin: 0; padding: 1.4rem 0;
  display: grid; gap: .9rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.trustbar li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; }
.trustbar svg { width: 20px; height: 20px; color: var(--glow); flex: none; }

/* ------------------------------------------------------------ services */
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.services { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.service {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-soft);
  color: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.service__media { position: relative; aspect-ratio: 16 / 10; }
.service__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__media img { transform: scale(1.045); }
.service__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,28,24,0) 40%, rgba(14,28,24,.85) 100%);
}
.service__title {
  position: absolute; left: 1.7rem; right: 1.7rem; bottom: 1.2rem; z-index: 1;
  margin: 0; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.service__body { padding: 1.75rem 1.7rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }
.service__body > p { color: rgba(255,255,255,.78); margin: 0; }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.service li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: rgba(255,255,255,.9); }
.service li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 0 4px rgba(232,176,75,.18);
}
.service--irrigation li::before { background: var(--palm-lite); box-shadow: 0 0 0 4px rgba(75,143,114,.2); }

/* ----------------------------------------------------------------- why */
.why { background: var(--sand); }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--palm), var(--moss));
  color: var(--glow-soft);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------- process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--brass);
}
.steps li::after {
  content: ""; position: absolute; top: 2.55rem; left: 0; right: 1.5rem; height: 1px; background: var(--rule);
}
@media (min-width: 1000px) { .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.25rem; } }
.steps h3 { font-size: 1.12rem; margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ------------------------------------------------------------- gallery */
.gallery { background: var(--ink); color: #fff; }
.gallery .eyebrow { color: var(--glow); }
.gallery .lede { color: rgba(255,255,255,.72); }
.gallery h2 { color: #fff; }
.gallery__grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.shot {
  position: relative; margin: 0; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: var(--ink-soft); aspect-ratio: 4 / 3;
}
@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .shot:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (min-width: 980px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 215px); }
  .shot, .shot:nth-child(1) { aspect-ratio: auto; }
  .shot:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .shot:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
  .shot:nth-child(3) { grid-column: 3;          grid-row: 2; }
  .shot:nth-child(4) { grid-column: 4;          grid-row: 2; }
  .shot:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
  .shot:nth-child(6) { grid-column: 3 / span 2; grid-row: 3; }
  .gallery__grid .shot:nth-child(5):last-child { grid-column: 1 / -1; }
  .shot:nth-child(n+7) { grid-column: span 2; }
  .gallery__grid .shot:nth-child(2n+7):last-child { grid-column: 1 / -1; grid-row: span 2; }
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.1rem .95rem;
  background: linear-gradient(180deg, transparent, rgba(8,18,15,.9));
  font-size: .87rem; color: #fff; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.gallery__note { margin-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.5); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(6,14,12,.93);
  padding: clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 84svh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__caption { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 1rem; text-align: center; }

/* --------------------------------------------------------------- areas */
.areas { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.areas__media { position: absolute; inset: 0; z-index: -2; }
.areas__media img { width: 100%; height: 100%; object-fit: cover; }
.areas::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,18,15,.94) 25%, rgba(8,18,15,.66) 70%, rgba(8,18,15,.4));
}
.areas h2 { color: #fff; }
.areas .lede { color: rgba(255,255,255,.78); }
.areas__grid { display: grid; gap: 3rem; grid-template-columns: minmax(280px, .85fr) 1.15fr; align-items: start; }
@media (max-width: 860px) { .areas__grid { grid-template-columns: 1fr; gap: 2rem; } }
.areas__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.areas__list li { font-size: .95rem; color: rgba(255,255,255,.9); padding-left: 1.4rem; position: relative; }
.areas__list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--glow);
}
.areas__note { margin-top: 1.8rem; font-size: .9rem; color: rgba(255,255,255,.65); }

/* --------------------------------------------------------------- about */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.05fr .95fr; align-items: center; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .about__media img { aspect-ratio: 16 / 10; } }
.about__badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(255,253,248,.94); color: var(--ink);
  padding: .85rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow-sm);
  font-size: .85rem; line-height: 1.35;
}
.about__badge strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.signature {
  font-family: var(--display); font-size: 1.35rem; font-style: italic;
  color: var(--moss); margin-top: 1.6rem;
}

/* ----------------------------------------------------------------- faq */
.faq { background: var(--sand); }
.faq__list { max-width: 62rem; margin-inline: auto; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 3rem 1.35rem 0; position: relative;
  font-family: var(--display); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px;
  border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 72ch; }

/* ------------------------------------------------------------- contact */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--glow); }
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: .95fr 1.05fr; align-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__lede { color: rgba(255,255,255,.78); }
.contact__details { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.contact__details li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__details svg { width: 22px; height: 22px; color: var(--glow); flex: none; margin-top: .18rem; }
.contact__details a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(232,176,75,.55); }
.contact__details a:hover { border-bottom-color: var(--glow); }
.contact__details span { display: block; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .2rem; }

.form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .45rem; }
.field--split { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field--split { grid-template-columns: 1fr; } }
.form label { font-size: .85rem; font-weight: 700; letter-spacing: .03em; color: rgba(255,255,255,.85); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem;
  color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form textarea { resize: vertical; min-height: 118px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.38); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--glow); background: rgba(255,255,255,.12); }
/* The native popup is drawn by the OS. Set BOTH colours or a dark-mode
   phone renders near-black option text on a near-black sheet. */
.form select option { color: #12211d; background-color: #fffdf8; }
.form__note { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }
.form__status { font-size: .9rem; color: var(--glow-soft); margin: 0; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- footer */
.site-footer { background: #0a1512; color: rgba(255,255,255,.6); padding-block: 3rem 2rem; font-size: .88rem; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand__name { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer nav a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer nav a:hover { color: var(--glow); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.5rem; }
.site-footer a { color: rgba(255,255,255,.72); }

/* ------------------------------------------------------------- reveals */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

[hidden] { display: none !important; }

/* ==========================================================================
   Multi-page components
   ========================================================================== */

.section--first { padding-top: clamp(4rem, 8vw, 6.5rem); }

/* ------------------------------------------------------- interior heroes */
.page-hero {
  position: relative;
  padding-top: 6rem; /* clears the fixed header */
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  min-height: min(62svh, 560px);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,18,15,.78) 0%, rgba(8,18,15,.44) 38%, rgba(8,18,15,.86) 100%);
}
.page-hero--dark::after {
  background: linear-gradient(180deg, rgba(8,18,15,.8) 0%, rgba(8,18,15,.55) 40%, rgba(8,18,15,.92) 100%);
}
.page-hero__inner { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-hero .eyebrow { color: var(--glow); }
.page-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
.page-hero__lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem);
  color: rgba(255,255,255,.85);
  max-width: 56ch;
  margin-bottom: 1.9rem;
}

/* ------------------------------------------------------------- CTA band */
.cta-band { background: linear-gradient(120deg, var(--moss), var(--ink)); color: #fff; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}
.cta-band h2 { color: #fff; margin-bottom: .35em; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; margin: 0; }
.cta-band .btn { flex: none; }

/* --------------------------------------------------------- split blocks */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* -------------------------------------------------------- tick lists */
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 1.1rem; height: .6rem;
  border-left: 2px solid var(--palm);
  border-bottom: 2px solid var(--palm);
  transform: rotate(-45deg);
}
.ticks--plain li::before {
  width: 7px; height: 7px; border: 0; border-radius: 50%;
  background: var(--brass); transform: none; top: .62em;
}
.ticks--plain { margin-top: 1rem; gap: .55rem; }

/* --------------------------------------------------------- area columns */
.areas-columns { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.areas-columns h2 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); padding-bottom: .7rem; border-bottom: 2px solid var(--rule); }

.callout {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}
.callout h3 { margin-bottom: .4em; }
.callout p { color: var(--muted); max-width: 52ch; margin-inline: auto; margin-bottom: 1.5rem; }

/* ----------------------------------------------------------- variations */
.cards--three { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.cards--three .card h3 { margin-bottom: .5em; }
.steps--three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 1000px) { .steps--three { grid-template-columns: none; } }

.section-more { margin-top: clamp(2rem, 4vw, 3rem); }
.section-more a {
  font-weight: 700; text-decoration: none; color: var(--moss);
  border-bottom: 2px solid rgba(47,107,83,.3); padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.section-more a:hover { border-bottom-color: var(--palm); }
.section-more--light a { color: var(--glow); border-bottom-color: rgba(232,176,75,.35); }
.section-more--light a:hover { border-bottom-color: var(--glow); }

.gallery--page { padding-top: clamp(4rem, 8vw, 6.5rem); }
.gallery--page h1 { color: #fff; }
.gallery__grid--preview { grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery__grid--preview { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .gallery__grid--preview .shot { aspect-ratio: 4 / 3; grid-column: auto; grid-row: auto; } }

/* The home page's service cards link through to the detail pages. */
a.service__media { display: block; text-decoration: none; color: inherit; }

.notfound__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.notfound { min-height: 60svh; }

.contact__details a { color: inherit; }

/* ----------------------------------------- simple pages (content/custom/) */
/* One text column of about 68 characters. Its parts are plain blocks, not
   flex or grid items, so a long unbroken word wraps by the body rule. */
.prose-lead, .prose { max-width: 68ch; }
.prose-lead { margin-bottom: clamp(2rem, 4vw, 3rem); }
.prose-lead img, .prose figure img { width: 100%; border-radius: var(--radius-lg); }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); margin: 2em 0 .55em; }
.prose .ticks { margin: 0 0 1.1em; }
.prose figure { margin: 2.25rem 0; }
.prose figcaption { margin-top: .65rem; font-size: .92rem; color: var(--muted); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
