/* ============================================================================
   Top Rock Solutions — Design System
   Token-first. Plain CSS. No frameworks.
   Brand: architectural / solid / craftsman. Charcoal + warm paper + copper.
   Motif: the logo's mountain-ridge silhouette + bold horizontal bars.

   ----------------------------------------------------------------------------
   WIDTH PARADIGM (read before adding sections)
   ----------------------------------------------------------------------------
   Rule A — One rail. Every section's content sits in ONE container: `.wrap`
            at `--maxw`. Nothing else sets its own outer max-width. This is
            why all sections share the same left edge AND right edge.
   Rule B — Structure fills the rail. Grids, splits, galleries, stat rows,
            and the hero content all span the full rail. No per-section caps.
   Rule C — Prose uses ONE measure. Running text is capped only by
            `--measure` (never an inline px value). All text blocks therefore
            line up to the same readable width.
   Rule D — Alignment lever. Default is left-aligned. Centering is opt-in per
            section via the `.center` class in markup (kept intentionally so
            alignment can be changed later without touching widths). To flip
            the whole site to centered, restyle `.center` / add it in markup.
   Rule E — Full-bleed backgrounds only. Hero/CTA backgrounds may span the
            viewport; their content never leaves the rail.
   Deliberate exceptions (self-consistent component callouts, not rail content):
   `.cta-band` text, `.footer-brand p`, `.cta-band h2` keep short centered
   measures by design.
   ============================================================================ */

:root {
  /* ---- Color ---- */
  --ink:        #161412;   /* near-black, from the logo */
  --ink-soft:   #2B2824;
  --paper:      #F4F1EC;   /* warm off-white page background */
  --paper-2:    #ECE7DE;   /* slightly deeper paper for alternating bands */
  --surface:    #FFFFFF;   /* cards */
  --stone:      #6B6A66;   /* secondary text */
  --stone-soft: #8E8B85;   /* tertiary / captions */
  --line:       #DAD4C8;   /* hairlines on paper */
  --line-dark:  #3A352F;   /* hairlines on ink */
  --copper:     #C8702A;   /* primary accent — warmth, earth, rock */
  --copper-dk:  #A85A1E;
  --copper-tint:#F6E7D8;

  /* ---- Type ---- */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ---- Scale ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.7vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.85rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.5vw, 4.2rem);

  /* ---- Space & shape ---- */
  --gut: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --maxw: 1440px;       /* the one content rail (Rule A) */
  --measure: 70ch;      /* the one prose width (Rule C) — tune here, applies everywhere */
  --radius: 4px;
  --shadow: 0 1px 2px rgba(22,20,18,.05), 0 14px 38px -18px rgba(22,20,18,.28);
  --shadow-sm: 0 1px 2px rgba(22,20,18,.06), 0 8px 20px -14px rgba(22,20,18,.22);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.prose p a, main p a { color: var(--copper-dk); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose p a:hover, main p a:hover { color: var(--copper); }
.section--ink p a { color: #E9B988; }
.section--ink p a:hover { color: #F4C9A0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { max-width: var(--measure); }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section-y); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #D8D3CB; }
.section--ink h2, .section--ink h3 { color: var(--surface); }
.lede { font-size: var(--step-1); color: var(--stone); max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; max-width: var(--measure); }
/* Wider measure for the centered intro section directly under the hero */
.wrap.center > p { max-width: 90ch; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper-dk);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 3px; background: var(--copper); display: inline-block;
}
/* Add a matching right-side dash when the eyebrow is centered */
.hero .eyebrow::after,
.center .eyebrow::after,
.eyebrow[style*="center"]::after {
  content: ""; width: 34px; height: 3px; background: var(--copper); display: inline-block;
}
.section--ink .eyebrow { color: #E6A56A; }

.section-head { margin-bottom: clamp(2rem,1.5rem + 2vw,3.25rem); }
.section-head.center { margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  --bg: var(--copper); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  letter-spacing: .01em; white-space: nowrap;
  background: var(--bg); color: var(--fg);
  padding: 1rem 1.85rem; border: 2px solid var(--bg); border-radius: var(--radius);
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--copper-dk); border-color: var(--copper-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--on-ink { background: var(--copper); color:#fff; border-color: var(--copper); }
.btn--ghost-ink { background: transparent; color:#fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-ink:hover { background:#fff; color: var(--ink); border-color:#fff; }
.btn--lg { font-size: var(--step-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,236,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 92px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 72px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 0.5rem + 1.5vw, 2.3rem); }
.nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  color: var(--ink); padding: .45rem 0; position: relative; letter-spacing: -.01em;
  white-space: nowrap;
}
.nav a:not(.btn)::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: var(--copper); transition: width .22s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { width:100%; }
.nav a:not(.btn)[aria-current="page"] { color: var(--copper-dk); }

.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.header-phone {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  white-space: nowrap; font-size: 1.05rem;
}
.header-phone span { display:block; font-family: var(--font-body); font-weight:600; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color: var(--stone); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content:""; position:absolute; left:9px; width:28px; height:2.5px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top:22px; }
.nav-toggle span::before { top:-8px; }
.nav-toggle span::after { top:8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

/* ---- Ridge motif divider ---- */
.ridge { display:block; width:100%; height: clamp(34px,5vw,68px); }
.ridge path { fill: currentColor; }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position:absolute; inset:0; z-index:-2; overflow:hidden; }
.hero__bg img { width:100%; height:100%; object-fit: cover; }
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(22,20,18,.86) 0%, rgba(22,20,18,.78) 38%, rgba(22,20,18,.97) 100%);
}
.hero__inner { padding-block: clamp(3.25rem, 2.25rem + 6vw, 7rem); text-align: center; }
.hero h1 { color:#fff; font-size: var(--step-3); }
.hero .eyebrow { color:#E9B988; justify-content: center; }
.hero p { color: rgba(255,255,255,.92); font-size: var(--step-1); max-width: var(--measure); margin: 1.25rem auto 0; }
.hero .btn-row { margin-top: 2.25rem; justify-content: center; }
.hero__trust {
  display:flex; flex-wrap:wrap; gap: 1.4rem 2.25rem; margin-top: 2.75rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.22);
  justify-content: center;
}
.hero__trust li {
  font-family: var(--font-display); font-weight:700; font-size:.95rem; color:#fff;
  display:flex; align-items:center; gap:.6rem; letter-spacing:.01em;
}
.hero__trust svg { width:20px; height:20px; flex:none; color: var(--copper); }

/* ---- Generic content ---- */
.prose h2 { margin-top: 2.6rem; }
.prose .eyebrow + h2 { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-size: var(--step-1); }
.prose p + p { margin-top: 1rem; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul.ticks { display: grid; gap: .7rem; margin-top: 1.25rem; }
.prose ul.ticks li { position: relative; padding-left: 1.9rem; max-width: var(--measure); }
.prose ul.ticks li::before {
  content:""; position:absolute; left:0; top:.42em; width: 12px; height: 12px;
  background: var(--copper);
  clip-path: polygon(0 60%, 22% 40%, 35% 52%, 60% 18%, 100% 70%, 100% 100%, 0 100%);
}
.prose strong { color: var(--ink); }

.split {
  display:grid; gap: clamp(2rem,1rem + 4vw,4.5rem);
  grid-template-columns: 1.05fr .95fr; align-items:center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width:100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__media { position: relative; }
.split__media::before {
  content:""; position:absolute; inset: 14px -14px -14px 14px; border:2px solid var(--copper);
  border-radius: var(--radius); z-index:-1;
}

/* ---- Service cards ---- */
.grid { display:grid; gap: clamp(1.1rem,.7rem + 1.5vw,1.8rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem,1rem + 1.5vw,2.25rem);
  display:flex; flex-direction:column; gap:.85rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--copper); }
.card__ico {
  width: 52px; height:52px; display:grid; place-items:center; flex:none;
  background: var(--copper-tint); border-radius: var(--radius); color: var(--copper-dk);
  margin-bottom: .4rem;
}
.card__ico svg { width:26px; height:26px; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--stone); font-size: .97rem; }
.card a.more {
  margin-top:auto; font-family:var(--font-display); font-weight:700; color: var(--copper-dk);
  display:inline-flex; align-items:center; gap:.4rem; font-size:.95rem;
}
.card a.more::after { content:"\2192"; transition: transform .18s var(--ease); }
.card:hover a.more::after { transform: translateX(4px); }
a.card { color: inherit; }

/* ---- Steps / process ---- */
.steps { display:grid; gap: clamp(1.2rem,.7rem + 2vw,2.25rem); grid-template-columns: repeat(3,1fr); counter-reset: step; }
.step { position:relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  position:absolute; top:0; left:0; font-family: var(--font-display); font-weight:800;
  font-size: 2.4rem; color: var(--copper); opacity:.34; line-height:1;
}
.step h3 { font-size: var(--step-1); margin-bottom:.4rem; }
.step p { color: var(--stone); font-size: .97rem; }
.section--ink .step p { color:#B7B2A9; }
.section--ink .step::before { color:#E6A56A; opacity:.5; }

/* ---- Gallery ---- */
.gallery { display:grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.gallery figure { position:relative; overflow:hidden; border-radius: var(--radius); }
.gallery img { width:100%; aspect-ratio:1; object-fit:cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position:absolute; left:0; right:0; bottom:0; padding:.85rem 1rem;
  font-family:var(--font-display); font-weight:700; font-size:.85rem; color:#fff;
  background: linear-gradient(180deg, transparent, rgba(22,20,18,.78));
  opacity:0; transform: translateY(8px); transition: all .25s var(--ease);
}
.gallery figure:hover figcaption { opacity:1; transform:none; }
.gallery--feature figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--feature figure:first-child img { aspect-ratio: auto; height:100%; }

/* Perfect 6x4 grid variant (no captions, lightbox cells) */
.gallery--grid { grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.gallery__cell { display:block; position:relative; overflow:hidden; border-radius: var(--radius); cursor:zoom-in; }
.gallery__cell img { width:100%; aspect-ratio:1; object-fit:cover; transition: transform .4s var(--ease); display:block; }
.gallery__cell:hover img { transform: scale(1.06); }
.gallery__cell::after {
  content:""; position:absolute; inset:0; background: rgba(22,20,18,0);
  transition: background .2s var(--ease);
}
.gallery__cell:hover::after { background: rgba(22,20,18,.12); }
@media (max-width: 1024px) { .gallery--grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .gallery--grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .gallery--grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,9,8,.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  object-fit: contain;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  font-family: var(--font-display); line-height: 1;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__close {
  top: 1rem; right: 1rem; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.6rem; display:flex; align-items:center; justify-content:center;
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__counter {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em;
}
body.lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
  .lightbox__close { width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
}

/* ---- Distributor strip ---- */
.dist { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: clamp(1.5rem,1rem + 3vw,4rem); }
.dist__item {
  font-family: var(--font-serif); font-weight:600; font-size: clamp(1.15rem,1rem + .6vw,1.6rem);
  color: var(--ink); letter-spacing:.01em; display:flex; flex-direction:column; align-items:center; gap:.2rem;
}
.dist__item span { font-family:var(--font-body); font-weight:600; font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; color: var(--stone-soft); }
.section--ink .dist__item { color: #fff; }
.section--ink .dist__item span { color: #B7B2A9; }

/* ---- Stat band ---- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.5rem,1rem + 2vw,3rem); text-align:center; }
.stat .n { font-family:var(--font-display); font-weight:800; font-size: var(--step-3); color: var(--surface); line-height:1; }
.stat .n .u { color: var(--copper); }
.stat .l { margin-top:.6rem; font-size:.92rem; color:#B7B2A9; letter-spacing:.02em; }

/* ---- CTA band ---- */
.cta-band { background: var(--paper-2); color: var(--ink); position:relative; overflow:hidden; border-bottom:1px solid var(--line); }
.cta-band .wrap { position:relative; z-index:1; display:grid; gap:1.5rem; place-items:center; text-align:center; }
.cta-band h2 { color: var(--ink); max-width: 30ch; }
.cta-band .eyebrow { margin-bottom: 0; }
.cta-band p { color: var(--stone); max-width: 70ch; margin-inline:auto; }
.cta-band .ridge-bg {
  position:absolute; left:0; right:0; bottom:-2px; color: #E0D9CC; z-index:0;
}
/* Re-skin the "on-ink" button variants when used in the now-light CTA band */
.cta-band .btn--ghost-ink {
  color: var(--ink); border-color: var(--ink); background: transparent;
}
.cta-band .btn--ghost-ink:hover {
  background: var(--ink); color:#fff; border-color: var(--ink);
}

/* ---- Quote / promise ---- */
.promise { display:grid; gap:1.4rem; }
.promise blockquote {
  font-family: var(--font-serif); font-size: var(--step-2); line-height:1.3; color: var(--ink);
  font-weight:600; font-style:italic; position:relative;
}
.section--ink .promise blockquote { color:#fff; }
.promise cite { font-style:normal; font-family:var(--font-display); font-weight:700; color: var(--copper-dk); font-size:.95rem; letter-spacing:.04em; }
.section--ink .promise cite { color:#E6A56A; }

/* ---- Contact section ---- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem + 4vw,4.5rem); align-items:start; }
.contact-info dl { display:grid; gap:1.35rem; margin-top: 1.75rem; }
.contact-info dt {
  font-family:var(--font-body); font-weight:700; font-size:.72rem; letter-spacing:.16em;
  text-transform:uppercase; color: var(--copper-dk); margin-bottom:.25rem;
}
.contact-info dd { font-family:var(--font-display); font-weight:600; font-size: var(--step-1); color: var(--ink); }
.contact-info dd a:hover { color: var(--copper-dk); }
.contact-info .small { font-size:.95rem; color: var(--stone); font-family:var(--font-body); font-weight:400; }
.section--ink .contact-info dd, .section--ink .contact-info dd a { color:#fff; }
.section--ink .contact-info dt { color:#E6A56A; }

.form { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,1rem + 2vw,2.5rem); box-shadow: var(--shadow-sm); }
.form .row { display:grid; gap:1rem; grid-template-columns:1fr 1fr; }
.field { display:flex; flex-direction:column; gap:.4rem; margin-bottom:1rem; }
.field label { font-family:var(--font-display); font-weight:600; font-size:.9rem; color: var(--ink); }
.field label .req { color: var(--copper-dk); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border:1.5px solid var(--line); border-radius: var(--radius);
  background:#fff; width:100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--copper); box-shadow: 0 0 0 4px var(--copper-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.form .note { font-size:.85rem; color: var(--stone); margin-top:.4rem; }
.form button { width:100%; margin-top:.4rem; }
.form__status { font-size:.92rem; margin-top:.85rem; min-height:1.2em; font-weight:600; }
.form__status.ok { color: #2F7D32; }
.form__status.err { color: #B23B2E; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color:#A9A49B; }
.site-footer a:hover { color:#fff; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem,1rem + 3vw,3.5rem); padding-block: clamp(3rem,2rem + 3vw,4.5rem); }
.footer-brand img { height:48px; width:auto; filter: invert(1) brightness(1.8); mix-blend-mode: screen; margin-bottom:1.1rem; }
.footer-brand p { font-size:.95rem; color:#9C978E; max-width:34ch; }
.footer-col h4 { color:#fff; font-size:1rem; margin-bottom:1.1rem; font-family:var(--font-display); letter-spacing:0; }
.footer-col ul { display:grid; gap:.6rem; }
.footer-col a, .footer-col li { font-size:.95rem; }
.footer-col .ph { font-family:var(--font-display); font-weight:700; color:#fff; font-size:1.05rem; }
.footer-col .ph small { display:block; font-family:var(--font-body); font-weight:600; font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color:#8A857C; margin-bottom:.15rem; margin-top:.7rem; }
.footer-area { font-size:.86rem; line-height:1.9; color:#8A857C; }
.footer-bottom {
  border-top:1px solid var(--line-dark); padding-block:1.6rem;
  display:flex; flex-wrap:wrap; gap:.8rem 1.5rem; align-items:center; justify-content:space-between;
  font-size:.83rem; color:#7E796F;
}
.footer-bottom a { color:#7E796F; }

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

/* ---- Skip link ---- */
.skip { position:absolute; left:-9999px; top:0; background: var(--ink); color:#fff; padding:.8rem 1.2rem; z-index:100; }
.skip:focus { left:1rem; top:1rem; }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display:block; }
  .nav, .header-phone { display:none; }
  .site-nav {
    position: fixed; inset: 92px 0 auto 0; background: var(--paper);
    border-bottom:1px solid var(--line); flex-direction:column; align-items:stretch;
    gap:0; padding: .5rem var(--gut) 1.5rem; transform: translateY(-130%);
    transition: transform .32s var(--ease); box-shadow: var(--shadow); display:flex;
    max-height: calc(100vh - 92px); overflow-y: auto;
  }
  body.nav-open .site-nav { transform:none; }
  .site-nav a:not(.btn) { padding: .95rem 0; border-bottom:1px solid var(--line); font-size:1.1rem; }
  .site-nav .btn { margin-top:1rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order:0; }
  .split__media::before { display:none; }
  .grid--3, .grid--2, .steps, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .gallery--feature figure:first-child { grid-column: span 2; grid-row: auto; }
  .gallery--feature figure:first-child img { aspect-ratio:1; }
  .form .row { grid-template-columns:1fr; }
  h1 { font-size: clamp(2.1rem,1.4rem + 4vw,3rem); }
}
@media (max-width: 480px) {
  .grid--4, .stats { grid-template-columns: 1fr; }
  .btn { width:100%; }
  .hero .btn-row { flex-direction:column; }
}
