/* =====================================================================
   Martinez Concrete LLC — styles.css
   Brand palette pulled from the company logo (purple + orange on black).
   Tweak the variables in :root to re-skin the whole site at once.
   ===================================================================== */

:root {
  /* Brand */
  --orange:        #f47a1f;
  --orange-bright: #ff8c2b;
  --purple:        #8e2da8;
  --purple-bright: #a93cc6;

  /* Neutrals / "concrete" */
  --ink:        #0e0e11;   /* page background */
  --ink-2:      #08080a;   /* darker bands */
  --surface:    #17171c;   /* cards */
  --surface-2:  #1f1f26;   /* hover / inputs */
  --line:       #2c2c34;   /* borders */
  --concrete:   #d7d3cc;   /* light section bg */

  --text:       #f4f2ef;
  --muted:      #a9a6a1;
  --muted-dark: #6f6c68;

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 96px;

  /* Logo: big + spilling below the bar at the top of the page, shrinking
     into the bar once the header turns sticky (see .site-header.scrolled).
     --logo-spill is a negative margin so the oversized logo keeps a compact
     flex footprint and overflows DOWNWARD into the hero instead of upward. */
  --logo-h: 150px;
  --logo-spill: -86px;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
  --shadow-orange: 0 14px 34px -12px rgba(244, 122, 31, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

/* Light theme */
html.light-theme {
  --ink:        #ffffff;
  --ink-2:      #f8f8f8;
  --surface:    #f0f0f0;
  --surface-2:  #e8e8e8;
  --line:       #d5d5d5;
  --concrete:   #4a4a4a;
  --text:       #1a1a1a;
  --muted:      #666666;
  --muted-dark: #888888;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 14px 34px -12px rgba(244, 122, 31, 0.25);
}

html.light-theme .skip-link { background: var(--orange); color: #fff; }
html.light-theme .service-icon { background: rgba(244,122,31,.15); }
html.light-theme .contact-ico { background: rgba(244,122,31,.12); }
html.light-theme .stats-strip { filter: brightness(1.1); }
html.light-theme .about-img-main { filter: grayscale(0%); }
html.light-theme .lightbox { background: rgba(245, 245, 245, .96); }
html.light-theme .lb-figure img { filter: brightness(1.05); }

/* Keep header and nav visible in light mode */
html.light-theme .site-header:not(.scrolled) .nav-link { color: #fff; }
html.light-theme .site-header:not(.scrolled) .nav-link:hover { color: var(--orange); }
html.light-theme[data-hero-tone="light-image"] .site-header:not(.scrolled) .nav-link,
html[data-hero-tone="light-image"] .site-header:not(.scrolled) .nav-link { color: #1a1a1a; }
html.light-theme[data-hero-tone="light-image"] .site-header:not(.scrolled) .nav-link:hover,
html[data-hero-tone="light-image"] .site-header:not(.scrolled) .nav-link:hover { color: var(--orange); }
html.light-theme[data-hero-tone="light-image"] .site-header:not(.scrolled) .nav-toggle span,
html[data-hero-tone="light-image"] .site-header:not(.scrolled) .nav-toggle span { background: #1a1a1a; }
html[data-hero-tone="dark-image"] .site-header:not(.scrolled) .nav-link { color: #fff; }
html[data-hero-tone="dark-image"] .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
html.light-theme .site-header.scrolled { background: rgba(255, 255, 255, 0.95); }
html.light-theme .site-header.scrolled .nav-link { color: #1a1a1a; }
html.light-theme .site-header.scrolled .nav-link:hover { color: var(--orange); }
html.light-theme .site-header.scrolled .brand-logo { filter: brightness(0.9); }
html.light-theme .header-cta { color: #1a1a1a; }
html.light-theme .site-header.scrolled .header-cta { color: #1a1a1a; }

/* Keep hero section text white in light mode */
html.light-theme .hero-eyebrow { color: var(--orange-bright); }
html.light-theme .hero-title { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
html.light-theme .hero-title .accent { color: var(--orange); }
html.light-theme .hero-sub { color: #e6e3df; }
html.light-theme .hero-badges { color: #d8d5d0; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ----------------------------- Typography ----------------------------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--orange); vertical-align: middle; margin-right: 10px; }

.section-lead { color: var(--muted); max-width: 60ch; margin-top: 14px; font-size: 1.05rem; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.97rem; letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange); color: #1a1205; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(244,122,31,.7); }

.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }

/* ============================ HEADER ============================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .35s, box-shadow .35s, height .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 12, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -16px rgba(0,0,0,.9);
  height: 78px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }

.brand { display: inline-flex; align-items: flex-start; }
.brand-logo {
  height: var(--logo-h); width: auto; display: block;
  margin-bottom: var(--logo-spill);
  filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.55));
  transition: height .35s var(--ease), margin-bottom .35s var(--ease);
}
/* Sticky state: logo shrinks and "falls into" the bar */
.site-header.scrolled { --logo-h: 60px; --logo-spill: 0px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: block; padding: 10px 16px;
  font-weight: 600; font-size: 0.97rem; color: var(--text);
  transition: color .2s; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--orange); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

.header-cta { padding: 11px 20px; }
.nav-cta-mobile { display: none; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(244, 122, 31, 0.1); color: var(--orange);
  transition: background .3s, color .3s;
  margin-left: 12px;
}
.theme-toggle:hover { background: rgba(244, 122, 31, 0.2); }
.theme-icon-light { display: none; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-dark { display: block; stroke: currentColor; stroke-width: 2; fill: currentColor; stroke-linejoin: round; }
html.light-theme .theme-icon-light { display: block; }
html.light-theme .theme-icon-dark { display: none; }
html.light-theme .theme-toggle { background: rgba(0, 0, 0, 0.05); color: var(--orange); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 120; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--header-h); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../assets/images/371494564_275337931919735_4493036290715063502_n.jpg") center 35% / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.7) 42%, rgba(8,8,10,.35) 100%),
    linear-gradient(0deg, rgba(8,8,10,.95) 2%, rgba(8,8,10,0) 45%);
}
.hero[data-hero-tone="dark-image"] .hero-title,
html.light-theme .hero[data-hero-tone="dark-image"] .hero-title {
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero[data-hero-tone="dark-image"] .hero-sub,
.hero[data-hero-tone="dark-image"] .hero-badges,
html.light-theme .hero[data-hero-tone="dark-image"] .hero-sub,
html.light-theme .hero[data-hero-tone="dark-image"] .hero-badges {
  color: #e6e3df;
}
.hero[data-hero-tone="light-image"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.68) 42%, rgba(255,255,255,.25) 100%),
    linear-gradient(0deg, rgba(255,255,255,.78) 2%, rgba(255,255,255,0) 45%);
}
.hero[data-hero-tone="light-image"] .hero-title,
html.light-theme .hero[data-hero-tone="light-image"] .hero-title {
  color: #141414;
  text-shadow: 0 2px 22px rgba(255,255,255,.5);
}
.hero[data-hero-tone="light-image"] .hero-sub,
html.light-theme .hero[data-hero-tone="light-image"] .hero-sub,
.hero[data-hero-tone="light-image"] .hero-badges,
html.light-theme .hero[data-hero-tone="light-image"] .hero-badges {
  color: #2b2b2b;
}
.hero[data-hero-tone="light-image"] .btn-ghost,
html.light-theme .hero[data-hero-tone="light-image"] .btn-ghost {
  color: #141414;
  border-color: rgba(0,0,0,.35);
  background: rgba(255,255,255,.42);
}
.hero-content { position: relative; max-width: 800px; padding-block: 60px; }
.hero-eyebrow {
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--orange-bright); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.7rem, 8vw, 5.6rem); line-height: 0.96; letter-spacing: 1px;
  text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero-title .accent { color: var(--orange); }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e6e3df; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: #d8d5d0; font-weight: 600; font-size: .95rem; }
.hero-badges li { white-space: nowrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--orange); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* ============================ SECTIONS ============================ */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; scroll-margin-top: -80px; }
.section-head { max-width: 760px; margin-bottom: 54px; }

/* Services */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.service-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--orange); background: var(--surface-2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 14px; margin-bottom: 22px;
  background: rgba(244,122,31,.12); color: var(--orange);
  transition: background .3s, color .3s, transform .3s;
}
.service-card:hover .service-icon { background: var(--orange); color: #1a1205; transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 10px; letter-spacing: .3px; }
.service-card p { color: var(--muted); font-size: 0.98rem; }

/* Stats strip */
.stats-strip {
  background: linear-gradient(90deg, var(--purple) 0%, #6c1f80 50%, var(--orange) 160%);
  padding-block: 46px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; color: #fff; }
.stat-label { display: block; margin-top: 8px; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.9); }

/* ============================ WORK / GALLERY ============================ */
.work { background: var(--ink-2); }

.slideshow {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 46px; background: #000;
}
.slides { position: relative; aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .slides { aspect-ratio: 4 / 3; } }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease);
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 50px 28px 22px; color: #fff; font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(0deg, rgba(0,0,0,.78), transparent);
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; transition: background .25s, transform .25s;
}
.slide-btn:hover { background: var(--orange); transform: translateY(-50%) scale(1.08); }
.slide-prev { left: 16px; } .slide-next { right: 16px; }
.slide-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .25s, transform .25s; }
.slide-dots button.is-active { background: var(--orange); transform: scale(1.3); }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  transition: all .25s;
}
.filter-btn:hover { color: #fff; border-color: var(--muted-dark); }
.filter-btn.is-active { background: var(--orange); color: #1a1205; border-color: var(--orange); }

.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 200px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm); padding: 0;
  border: 1px solid var(--line); transition: opacity .4s, transform .4s; display: block;
}
/* Let a few feature tiles span larger for a dynamic layout */
.gallery-item:nth-child(1), .gallery-item:nth-child(10) { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-item::after {
  content: "🔍"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: rgba(14,14,17,.55); opacity: 0; transition: opacity .3s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-tag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(8,8,10,.78); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(3px);
}
.gallery-item.is-hidden { display: none; }

/* ============================ ABOUT ============================ */
.about { background: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }

.about-media { position: relative; }
.about-img-main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); filter: grayscale(8%); }
.about-img-sub {
  position: absolute; right: -22px; bottom: -34px; width: 44%;
  border-radius: var(--radius); border: 5px solid var(--ink); box-shadow: var(--shadow);
  object-fit: cover;
}
.about-badge {
  position: absolute; left: -18px; top: -18px;
  background: var(--orange); color: #1a1205; border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-orange);
}
.about-badge-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.about-badge-text { font-weight: 700; font-size: .82rem; line-height: 1.15; text-transform: uppercase; }

.about-copy p { color: var(--muted); margin-top: 16px; }
.about-copy p strong { color: var(--text); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 28px 0 32px; }
.about-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.about-points svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--orange); }

/* ============================ CONTACT ============================ */
.contact { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 5vw, 70px); align-items: start; }

.contact-list { margin-top: 30px; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px;
  background: rgba(244,122,31,.12); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dark); font-weight: 700; }
.contact-list a:hover { color: var(--orange); }

.contact-social {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 30px;
  font-weight: 600; color: var(--muted); transition: color .2s;
}
.contact-social:hover { color: var(--orange); }
.contact-social svg { color: var(--orange); }
.contact-social-facebook svg { color: #1877f2; }
.contact-social-facebook:hover svg { color: #0a66c2; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--ink); border: 1.5px solid var(--line); color: var(--text);
  font-family: inherit; font-size: .98rem; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: var(--surface-2);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a9a6a1' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.form-note { font-size: .85rem; color: var(--muted-dark); margin-top: 14px; text-align: center; }
.form-note a { color: var(--orange); font-weight: 600; }
.form-status { margin-top: 14px; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.success { color: #4ccb6a; }
.form-status.error { color: #ff6b5e; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer-logo { height: 72px; width: auto; margin-bottom: 20px; filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.55)); }
.footer-brand p { color: var(--muted); max-width: 42ch; font-size: .95rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 6px; }
.footer-nav a, .footer-contact a, .footer-contact span { color: var(--muted); font-size: .96rem; transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted-dark); font-size: .85rem; }

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,8,.94); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { max-width: 90vw; max-height: 86vh; }
.lb-figure img { max-width: 90vw; max-height: 86vh; width: auto; border-radius: 8px; box-shadow: var(--shadow); transform: scale(.96); transition: transform .3s var(--ease); }
.lightbox.open .lb-figure img { transform: scale(1); }
.lb-close { position: absolute; top: 20px; right: 26px; font-size: 2.4rem; line-height: 1; color: #fff; width: 48px; height: 48px; }
.lb-close:hover { color: var(--orange); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.6rem; color: #fff;
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .25s;
}
.lb-nav:hover { background: var(--orange); color: #1a1205; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }

/* ============================ SCROLL REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Stagger children within a grid */
.service-grid .reveal:nth-child(2) { transition-delay: .07s; }
.service-grid .reveal:nth-child(3) { transition-delay: .14s; }
.service-grid .reveal:nth-child(4) { transition-delay: .21s; }
.service-grid .reveal:nth-child(5) { transition-delay: .28s; }
.service-grid .reveal:nth-child(6) { transition-delay: .35s; }
.stats-grid .reveal:nth-child(2) { transition-delay: .1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: .2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: .3s; }

/* Hero load-in (independent of scroll observer) */
.hero .reveal { transform: translateY(26px); }
.hero.loaded .reveal { opacity: 1; transform: none; }
.hero.loaded .reveal[data-reveal="1"] { transition-delay: .15s; }
.hero.loaded .reveal[data-reveal="2"] { transition-delay: .30s; }
.hero.loaded .reveal[data-reveal="3"] { transition-delay: .48s; }
.hero.loaded .reveal[data-reveal="4"] { transition-delay: .64s; }
.hero.loaded .reveal[data-reveal="5"] { transition-delay: .80s; }

/* ============================ RESPONSIVE ============================ */

/* Intermediate: logo scales down, phone button hides, nav tightens.
   Covers the gap between full desktop and the hamburger breakpoint. */
@media (max-width: 1060px) {
  :root { --logo-h: 80px; --logo-spill: 0px; }
  .header-cta { display: none; }
  .nav-link { padding: 10px 10px; }
  .nav-link::after { left: 10px; right: 10px; }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin-inline: auto; margin-bottom: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 100px; }
  /* Mobile: header is NOT sticky — the big centered logo scrolls away
     with the page. (No shrink-into-bar; that's a desktop behavior.) */
  .site-header { position: absolute; }
  .site-header.scrolled {
    background: transparent; backdrop-filter: none;
    box-shadow: none; border-bottom-color: transparent;
    height: var(--header-h);
  }
  .header-inner { justify-content: center; }
  /* Hamburger left, theme toggle right, logo centered */
  .nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding-inline: 16px; pointer-events: none; }
  .nav-toggle { pointer-events: auto; }
  .theme-toggle { margin-left: 0; pointer-events: auto; }
  .nav-menu { pointer-events: auto; }
  .brand { align-items: center; }
  .brand-logo,
  .site-header.scrolled .brand-logo { height: 74px; margin-bottom: 0; }
  /* Pull hero content up under the logo (no centered void below it);
     the crew photo fills the space at the bottom instead. */
  .hero { align-items: flex-start; }
  .hero-content { padding-block: 22px 52px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    background: var(--ink-2); border-left: 1px solid var(--line);
    padding: 40px 32px; transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.8);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1.25rem; padding: 12px 0; }
  html[data-hero-tone="light-image"] .site-header:not(.scrolled) .nav-menu .nav-link,
  html[data-hero-tone="dark-image"] .site-header:not(.scrolled) .nav-menu .nav-link {
    color: var(--text);
  }
  html.light-theme .site-header:not(.scrolled) .nav-menu .nav-link {
    color: #1a1a1a;
  }
  .nav-menu .nav-link:hover,
  html.light-theme .site-header:not(.scrolled) .nav-menu .nav-link:hover {
    color: var(--orange);
  }
  .nav-link::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .gallery { grid-auto-rows: 170px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-item:nth-child(1), .gallery-item:nth-child(10) { grid-row: span 1; }
  .about-points { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero-badges { gap: 10px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================ MOTION PREFERENCES ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg { animation: none; transform: none; }
}
