/* =========================================================================
   Bouchard & Son Excavation LLC
   Design system: soil-strata palette, engineered type, disciplined motion
   ========================================================================= */

:root {
  /* --- Earth palette --- */
  --soil-950: #14100C;
  --soil-900: #1C1712;
  --soil-850: #221C15;
  --soil-800: #2A231B;
  --soil-700: #3A3025;
  --soil-600: #4C4030;

  --stone-50:  #F4F0E7;
  --stone-100: #EAE4D8;
  --stone-200: #DBD3C4;
  --stone-300: #C9BEAA;

  --clay-500: #8C7B63;
  --clay-400: #A2917A;
  --clay-300: #BCae97;

  --amber-300: #F1B968;
  --amber-500: #E08A2B;
  --amber-600: #C1701C;
  --amber-700: #9C5814;

  --moss-700: #414E36;
  --moss-500: #5C6B49;

  /* --- Semantic --- */
  --bg:            var(--stone-50);
  --bg-dark:       var(--soil-900);
  --surface:       #FFFFFF;
  --ink:           var(--soil-900);
  --ink-muted:     #5B5142;
  --ink-on-dark:   var(--stone-50);
  --muted-on-dark: #B8AB95;
  --accent:        var(--amber-500);
  --accent-hover:  var(--amber-600);
  --line:          var(--stone-200);
  --line-dark:     var(--soil-700);

  /* --- Type --- */
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, monospace;

  /* --- Metrics --- */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(20, 16, 12, 0.08);
  --shadow-md: 0 18px 40px -18px rgba(20, 16, 12, 0.45);
}

/* --- Strata gradient (the signature) --- */
:root {
  --strata: repeating-linear-gradient(
    to bottom,
    var(--amber-600) 0, var(--amber-600) 2px,
    var(--soil-700)  2px, var(--soil-700) 4px,
    var(--clay-500)  4px, var(--clay-500) 6px,
    var(--moss-700)  6px, var(--moss-700) 9px,
    var(--soil-800)  9px, var(--soil-800) 13px,
    var(--clay-400) 13px, var(--clay-400) 15px,
    var(--soil-950) 15px, var(--soil-950) 20px
  );
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--soil-950);
  padding: 0.6rem 1rem; font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================================================
   Typography helpers
   ========================================================================= */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--amber-300); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  text-transform: uppercase;
}

.section-lede {
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin-top: 1.1rem;
}
.section-lede-light { color: var(--muted-on-dark); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 40rem; }

.section-dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}
.section-dark .section-title { color: var(--stone-50); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.05em; height: 1.05em; fill: currentColor; }

.btn-primary {
  background: var(--accent);
  color: var(--soil-950);
  box-shadow: 0 8px 22px -10px rgba(224, 138, 43, 0.8);
}
.btn-primary:hover { background: var(--amber-300); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--stone-50);
  border-color: rgba(244, 240, 231, 0.4);
}
.btn-ghost:hover { border-color: var(--stone-50); background: rgba(244, 240, 231, 0.08); transform: translateY(-2px); }

.btn-call {
  background: var(--soil-800);
  color: var(--stone-50);
  border-color: var(--soil-700);
  font-size: 0.98rem;
  padding: 0.55rem 1.05rem;
}
.btn-call:hover { background: var(--soil-700); }

.btn-lg { font-size: 1.18rem; padding: 0.95rem 1.8rem; }
.btn-block { width: 100%; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--stone-50); }
.brand-mark {
  display: flex; flex-direction: column; gap: 2px;
  width: 22px;
}
.brand-mark span {
  display: block; height: 4px; border-radius: 1px;
}
.brand-mark span:nth-child(1) { background: var(--amber-500); width: 100%; }
.brand-mark span:nth-child(2) { background: var(--clay-500); width: 75%; }
.brand-mark span:nth-child(3) { background: var(--moss-500); width: 55%; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.01em; text-transform: uppercase; }
.brand-sub  { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 3px; }

.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone-200);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.18s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.22s var(--ease);
}
.site-nav a:hover { color: var(--stone-50); }
.site-nav a:hover::after { width: 100%; }

.header-call { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 0; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--stone-50); transition: transform 0.25s var(--ease), opacity 0.2s; margin-inline: auto; }
.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); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--soil-900);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.9rem; color: var(--stone-100); padding: 0.7rem 0;
  border-bottom: 1px solid var(--soil-800);
}
.mobile-nav .btn { margin-top: 0.9rem; border-bottom: 0; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  background: var(--soil-950);
  color: var(--stone-50);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: var(--soil-900) center/cover no-repeat;
  background-image:
    linear-gradient(160deg, rgba(20,16,12,0.2), rgba(20,16,12,0.55)),
    url("images/hero.jpg");
  transform: scale(1.08);
  will-change: transform;
}
.hero-contour {
  position: absolute; inset: -20% -10% auto auto; z-index: -2;
  width: 70%; height: 130%;
  background:
    repeating-radial-gradient(circle at 78% 30%,
      transparent 0, transparent 34px,
      rgba(241, 185, 104, 0.09) 34px, rgba(241, 185, 104, 0.09) 35px);
  -webkit-mask-image: linear-gradient(to left, black, transparent 75%);
          mask-image: linear-gradient(to left, black, transparent 75%);
  pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,16,12,0.92) 0%, rgba(20,16,12,0.72) 45%, rgba(20,16,12,0.35) 100%);
}
.hero-inner { padding-block: 3rem; max-width: 56rem; }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--amber-500); }
/* Reads as the old eyebrow, but it's inside the H1 so it carries SEO weight. */
.hero-title .hero-kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--amber-300);
  margin-bottom: 1.1rem;
}

.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 44ch;
  color: var(--stone-200);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.hero-trust {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(244,240,231,0.4);
  border-radius: 20px; display: flex; justify-content: center; padding-top: 7px;
  z-index: 2;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--amber-500); animation: scrollcue 1.6s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(9px); } }

/* =========================================================================
   Strata divider (signature)
   ========================================================================= */
.strata {
  height: 18px;
  background: var(--strata);
  background-size: 100% 20px;
}

/* =========================================================================
   Trust / stats
   ========================================================================= */
.trust { background: var(--soil-900); color: var(--stone-50); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { text-align: center; padding: 0.5rem 0.75rem; border-left: 1px solid var(--soil-700); }
.stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--amber-500);
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 0.6rem;
  display: block;
}

/* =========================================================================
   Services
   ========================================================================= */
.service-list {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--stone-300); }
.service-index {
  position: absolute; top: 1.1rem; right: 1.3rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--clay-400);
}
.service-media {
  height: 150px;
  border-radius: var(--radius);
  background: var(--soil-800);
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
/* Photos are real <img> elements (indexable, alt text) laid out exactly where the
   old CSS backgrounds sat. The wrapper div stays because ::after overlays don't
   work on replaced elements like <img>. */
.service-media img,
.about-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.service-media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(20,16,12,0.08);
  background: linear-gradient(180deg, transparent 55%, rgba(20,16,12,0.35));
}
.service-card h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.45rem; line-height: 1.02; letter-spacing: 0.005em;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--ink-muted); font-size: 0.98rem; }

.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.28s var(--ease);
}
.service-card:hover::before { transform: scaleY(1); }

.service-cta {
  background: var(--soil-900);
  color: var(--stone-50);
  border-color: var(--soil-800);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.5rem;
}
.service-cta h3 { color: var(--stone-50); }
.service-cta p { color: var(--muted-on-dark); margin-bottom: 0.6rem; }
.service-cta::before { display: none; }

/* =========================================================================
   Work / gallery
   ========================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;            /* matches an iPhone photo held sideways */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soil-800);
  border: 1px solid var(--line-dark);
}
/* Gallery photos are real <img> elements so Google Images can index them.
   The tile's aspect-ratio holds the space, so there's no layout shift. */
.gallery-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(20,16,12,0.82));
  transition: opacity 0.3s var(--ease);
}
.gallery-item figcaption {
  position: absolute; left: 1rem; bottom: 0.9rem; right: 1rem; z-index: 3;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--stone-100);
  transform: translateY(6px); opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-item img, .gallery-item { transition: transform 0.5s var(--ease); }
.gallery-item:hover { transform: scale(1.012); }

/* --- Before/after slider tile ---
   Tile background = the "after" photo. .ba-before sits on top, clipped to --pos.
   Vertical page scrolling still works over the tile (touch-action: pan-y);
   only the handle claims the gesture outright. --- */
.gallery-ba {
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.gallery-ba:hover { transform: none; }   /* no zoom — it would fight the drag */
.gallery-ba .ba-after  { z-index: 0; }
.gallery-ba .ba-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.gallery-ba img { pointer-events: none; }  /* let the drag hit the tile, not the image */
.gallery-ba figcaption { transform: none; opacity: 1; }  /* always legible; there's no hover on touch */

.ba-divider {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--pos, 50%); width: 2px; margin-left: -1px;
  background: var(--stone-50);
  box-shadow: 0 0 0 1px rgba(20, 16, 12, 0.35);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--stone-50);
  background: rgba(20, 16, 12, 0.55);
  color: var(--stone-50);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: -0.08em;
  cursor: ew-resize;
  touch-action: none;
  box-shadow: var(--shadow-sm);
}
.ba-handle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.ba-tag {
  position: absolute; z-index: 4; top: 0.85rem;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-100);
  background: rgba(20, 16, 12, 0.62);
  border: 1px solid rgba(234, 228, 216, 0.24);
  padding: 0.26rem 0.5rem;
  border-radius: 4px;
}
.ba-tag-before { left: 0.85rem; }
.ba-tag-after  { right: 0.85rem; }

/* =========================================================================
   About
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media {
  min-height: 440px;
  border-radius: var(--radius-lg);
  background: var(--soil-800);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.about-body p { color: var(--ink-muted); margin-top: 1.1rem; max-width: 52ch; }
.about-body .section-title { margin-top: 0.4rem; }
.about-points {
  list-style: none; padding: 0; margin: 1.6rem 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.5rem;
}
.about-points li {
  position: relative; padding-left: 1.7rem;
  font-weight: 500; color: var(--ink);
}
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}

/* =========================================================================
   Reviews
   ========================================================================= */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.review {
  background: var(--soil-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.review .stars { color: var(--amber-500); letter-spacing: 0.2em; font-size: 1.05rem; margin-bottom: 1rem; }
.review p { color: var(--stone-100); font-size: 1.1rem; line-height: 1.6; }
.review footer { display: flex; flex-direction: column; margin-top: 1.4rem; gap: 2px; }
.review-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.1rem; color: var(--stone-50); }
.review-loc { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }

/* =========================================================================
   Quote / contact
   ========================================================================= */
.quote-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-500); }
.contact-list a, .contact-list span:not(.contact-label) { font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.contact-list a { transition: color 0.18s var(--ease); }
.contact-list a:hover { color: var(--accent-hover); }

.quote-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 138, 43, 0.18);
}
.form-note { font-size: 0.82rem; color: var(--clay-500); text-align: center; margin-top: 0.9rem; }

/* Honeypot — pushed off-screen rather than display:none, which some bots detect
   and skip. A filled-in _gotcha field means it wasn't a human. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--soil-950); color: var(--stone-200); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--soil-800);
}
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: var(--stone-50); line-height: 1.05; }
.footer-tag { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted-on-dark); margin-top: 0.4rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a, .footer-contact a, .footer-contact span {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--stone-200);
  transition: color 0.18s var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--amber-300); }
.footer-contact { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-block: 1.5rem 2rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--clay-500);
}

/* =========================================================================
   Mobile sticky bar
   ========================================================================= */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 0.6rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(20,16,12,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
}
.mobile-bar .btn { flex: 1; }

/* =========================================================================
   Reveal animations
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children within a grid */
.service-card.reveal:nth-child(2) { transition-delay: 0.06s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.12s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.18s; }
.gallery-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.gallery-item.reveal:nth-child(3) { transition-delay: 0.16s; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 300px; order: 2; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-nav, .header-call { display: none; }
  .nav-toggle { display: flex; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .stat:nth-child(3) { border-left: 0; }
  .review-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  .mobile-bar ~ * { } /* keep footer clear handled by body padding */
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
  .scroll-cue span { animation: none; }
}
