/* ============================================
   Texas Access Works — styles.css
   Structural pattern adapted from the Arnold Bros Films
   scaffold (fixed header, hero, marquee, filmstrip carousel,
   scroll-reveal, responsive grid system) — reskinned for a
   security / access-control brand: cool navy + blue accent
   instead of warm cream + amber, no cursive/serif accents.
   ============================================ */

:root {
  --bg:          #F5F7FA;
  --bg-alt:      #E9EEF4;
  --dark:        #0B1623;
  --dark-alt:    #142234;
  --accent:      #2E6FE0;
  --accent-dark: #2255B3;
  --text:        #15212E;
  --text-light:  #F3F6FA;
  --text-muted:  #5B6B7D;
  --border:      rgba(21, 33, 46, 0.12);
  --border-light: rgba(243, 246, 250, 0.16);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --section-pad: clamp(64px, 10vw, 140px);
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

section { position: relative; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow-light { color: #7FB0FF; }

.accent-text { color: var(--accent); }
.accent-dot  { color: var(--accent); }

em {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-solid {
  background: var(--accent);
  color: var(--text-light);
}
.btn-solid:hover { background: var(--accent-dark); }
.btn-solid:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-solid:disabled:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}
.btn-outline:hover { background: var(--text-light); color: var(--dark); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-outline-dark:hover { background: var(--text); color: var(--bg); }

.btn-ghost-light {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-light);
}
.btn-ghost-light:hover { background: var(--border-light); }

.link-arrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: gap 0.25s ease;
}
.link-arrow:hover { gap: 16px; }

/* ── Trust line (placed near CTAs — conversion research shows a trust
   signal in view of every major CTA lifts conversion) ───────────── */

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
}
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line i { color: var(--accent); font-size: 12px; }

.trust-line.is-light { color: rgba(243, 246, 250, 0.75); }
.trust-line.is-light i { color: #7FB0FF; }

.trust-line.is-centered { justify-content: center; }

/* ── Sticky mobile call bar ───────────────────────────────────────
   Local-service searches skew heavily mobile; keeping Call/Quote one
   tap away at all times (not just in the header) is a standard
   conversion pattern for contractor/service sites. Desktop-hidden. */

.mobile-call-bar { display: none; }

@media (max-width: 600px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    gap: 10px;
    background: var(--dark);
    border-top: 1px solid var(--border-light);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-call-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .mobile-call-bar .call-btn { background: var(--accent); color: #fff; }
  .mobile-call-bar .quote-btn { background: transparent; border: 1px solid var(--border-light); color: var(--text-light); }

  body.has-mobile-call-bar { padding-bottom: 64px; }
}

/* ── Intro Splash — "Scan & Unlock" ───────────────────────
   Plays on every page load (client preference). A scan line sweeps down
   across the shield logo, then "ACCESS GRANTED" flashes in brand blue
   before the overlay irises away. Click/keypress skips (see main.js). */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  clip-path: circle(150% at 50% 50%);
  -webkit-clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1), -webkit-clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  cursor: pointer;
}
.splash.is-leaving { clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%); }
.splash.is-hidden { display: none; }

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.splash-shield-wrap {
  position: relative;
  width: min(58vw, 260px);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  animation: splash-logo-in 0.5s ease forwards;
}

.splash-logo { width: 100%; display: block; }

.splash-scanline {
  position: absolute;
  left: -6%; right: -6%;
  height: 3px;
  top: -8%;
  background: linear-gradient(90deg, transparent, #7FB0FF 20%, #fff 50%, #7FB0FF 80%, transparent);
  box-shadow: 0 0 16px 2px rgba(127, 176, 255, 0.8);
  opacity: 0;
  animation: splash-scan 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splash-logo-in {
  to { opacity: 1; transform: scale(1); }
}

@keyframes splash-scan {
  0%   { top: -8%; opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 106%; opacity: 0; }
}

.splash-status {
  opacity: 0;
  transform: translateY(6px);
  animation: splash-status-in 0.35s 1.05s ease forwards;
}

.splash-status-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7FB0FF;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.splash-status-text::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7FB0FF;
  box-shadow: 0 0 8px 2px rgba(127, 176, 255, 0.8);
  animation: splash-pulse 1s ease-in-out infinite;
}

@keyframes splash-status-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .splash, .splash-shield-wrap, .splash-scanline, .splash-status { animation: none !important; transition: none !important; }
}

/* ── Header ──────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 22, 35, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border-light);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: var(--text-light);
}

.logo img { height: 40px; width: auto; display: block; }

.nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.nav a { position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }
.nav a.is-active { color: #7FB0FF; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-light);
}

/* ── Page Hero (interior pages) ───────────────────────── */

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding-top: 96px;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,22,35,0.88) 0%, rgba(11,22,35,0.55) 60%, rgba(11,22,35,0.35) 100%),
    linear-gradient(180deg, rgba(11,22,35,0.3) 0%, rgba(11,22,35,0.9) 100%),
    linear-gradient(120deg, #142234 0%, #0B1623 70%);
  background-size: cover;
  background-position: center;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 32px;
  width: 100%;
}

.page-hero-eyebrow {
  color: #7FB0FF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  color: var(--text-light);
  max-width: 820px;
}

.page-hero-copy {
  font-size: 17px;
  color: rgba(243, 246, 250, 0.72);
  max-width: 560px;
  margin-top: 18px;
}

/* ── Home Hero ───────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-bg-slide.is-active { opacity: 1; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,22,35,0.65) 0%, rgba(11,22,35,0.4) 55%, rgba(11,22,35,0.15) 100%),
    linear-gradient(180deg, rgba(11,22,35,0.2) 0%, rgba(11,22,35,0.5) 75%, rgba(11,22,35,0.85) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 160px 32px 120px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  color: #7FB0FF;
  border: 1px solid rgba(127, 176, 255, 0.35);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  color: var(--text-light);
  max-width: 820px;
}

.hero-copy {
  font-size: 18px;
  color: rgba(243, 246, 250, 0.72);
  max-width: 540px;
  margin: 26px 0 40px;
}

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-contact-card {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 300px;
}

.hero-contact-item {
  background: rgba(20, 34, 52, 0.65);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-light);
  backdrop-filter: blur(6px);
}
.hero-contact-item i {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(46, 111, 224, 0.25);
  color: #7FB0FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-contact-item span { display: block; font-size: 12px; color: rgba(243,246,250,0.6); margin-bottom: 2px; }
.hero-contact-item strong { font-size: 15px; font-weight: 600; }
.hero-contact-item a { color: var(--text-light); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  opacity: 0.6;
  font-size: 18px;
  z-index: 2;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ── Marquee (Brands We Work With) ────────────────────── */

.partners { padding: 40px 0 0; }

.partners-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* The colored strip holds nothing but the sliding logos now — the label
   lives above it on the page's own background instead of inside it. */
.marquee-block {
  background: var(--bg-alt);
  padding: 32px 0;
  overflow: hidden;
}

.marquee { width: 100%; overflow: hidden; }

.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  align-items: center;
  animation: scroll-left 36s linear infinite;
}

.marquee-track img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section Heads ───────────────────────────────────── */

.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  margin-bottom: 56px;
}

.section-head.is-centered { text-align: center; }
.section-head.is-centered .eyebrow { display: block; }

.section-head h2 {
  font-size: clamp(30px, 4vw, 50px);
  max-width: 780px;
}
.section-head.is-centered h2 { max-width: none; margin: 0 auto; }

.section-head p.lead {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
}
.section-head.is-centered p.lead { margin-left: auto; margin-right: auto; }

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Process ("How We Work") ──────────────────────────── */

.process { padding: var(--section-pad) 0; }

.process-steps {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step { flex: 1; min-width: 0; }

.step-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 24px;
}

.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; }

.step-connector {
  color: var(--accent);
  font-size: 18px;
  padding-top: 16px;
}

/* ── Stats band ──────────────────────────────────────── */

.stats {
  background: var(--dark);
  color: var(--text-light);
  padding: 64px 32px;
}

.stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  color: #7FB0FF;
  margin-bottom: 8px;
}

.stat-label { font-size: 14px; color: rgba(243,246,250,0.65); }

/* ── Services grid ───────────────────────────────────── */

.services { background: var(--bg-alt); padding: var(--section-pad) 0; }

.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service {
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11,22,35,0.08); }

.service a.service-link { display: block; }

.service-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-body { padding: 22px; }

.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--text-muted); font-size: 14px; }

.service-more {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Services page: fuller detail cards, same grid family, extra copy */
.service-detail { padding: 22px; }
.service-detail .service-media { aspect-ratio: 16 / 10; }
.service-detail h3 { font-size: 20px; margin: 16px 0 10px; }
.service-detail p { color: var(--text-muted); font-size: 15px; }
.service-detail-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

/* ── Why Choose Us ──────────────────────────────────────
   Three points flanking a large brand shield on each side — all 6 reasons
   visible at once, no interaction required. The shield is a vector icon
   (not the raster logo, which is only 190×93px and would blur blown up
   this large) so it stays crisp at any size. */

.why-us {
  padding: var(--section-pad) 32px;
}

.why-flank {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 56px;
}

.why-flank-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.why-flank-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.why-flank-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(46, 111, 224, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.why-flank-item h3 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.why-flank-item p { font-size: 14px; color: var(--text-muted); }

/* Logo "seal" — the actual brand mark in a circular card with soft
   concentric rings for presence. Logo source is only 190×93px, so it's
   scaled DOWN to fit the card (always sharp) rather than blown up large
   like a watermark would require. */

.why-badge {
  position: relative;
  width: 260px; height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-badge-ring {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(46, 111, 224, 0.16);
}
.why-badge-ring-2 {
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border-color: rgba(46, 111, 224, 0.08);
}

.why-badge-card {
  position: relative;
  z-index: 1;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(21, 33, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.why-badge-logo { width: 100%; height: auto; display: block; }

/* "REC" indicator — the badge reads like a camera lens, so give it a
   live status light. Echoes the old site's hero HUD (a "Rec" readout with
   a red dot) without copying it outright. */
.why-badge-rec {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.why-badge-rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E8392F;
  animation: badge-rec-blink 1.8s ease-in-out infinite;
}

.why-badge-rec-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E8392F;
  opacity: 0.85;
}

@keyframes badge-rec-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 57, 47, 0.45); }
  50% { opacity: 0.3; box-shadow: 0 0 8px 3px rgba(232, 57, 47, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .why-badge-rec-dot { animation: none; }
}

/* ── Our Products ──────────────────────────────────────── */

.products { background: var(--bg-alt); padding: var(--section-pad) 0; }

.products-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11, 22, 35, 0.08); }

.product-media {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 12px 18px;
  color: var(--text);
}

/* ── Testimonials (standalone cards, used on contact + home) ── */

.testimonials { padding: var(--section-pad) 0; background: var(--bg); }

.testimonials-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 28px;
}

.testimonial-stars { color: var(--accent); font-size: 14px; margin-bottom: 14px; }
.testimonial-card p.quote { font-size: 15px; color: var(--text); margin-bottom: 18px; }
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ── Gallery (Projects page) ──────────────────────────── */

.gallery { padding: var(--section-pad) 0; }

.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 22, 35, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img { max-width: 100%; max-height: 86vh; border-radius: 4px; }
.gallery-lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: var(--text-light);
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

/* ── Mission / About Story (dark) ─────────────────────── */

.mission {
  background: var(--dark);
  color: var(--text-light);
  padding: var(--section-pad) 32px;
}

.mission-inner { max-width: 760px; margin: 0 auto; }
.mission .section-head { padding: 0; margin-bottom: 40px; }

.mission-statement {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  margin-bottom: 28px;
}

.mission-body { display: flex; flex-direction: column; gap: 20px; }
.mission-body p { color: rgba(243, 246, 250, 0.7); font-size: 16px; }
.mission-body .btn { align-self: flex-start; margin-top: 10px; }

/* ── Before/After slider ──────────────────────────────── */

.before-after {
  max-width: 760px;
  margin: 48px auto 0;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after .after-img { clip-path: inset(0 0 0 50%); }
.before-after-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent);
  cursor: ew-resize;
}
.before-after-handle::after {
  content: '\2194';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.before-after-tag {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(11,22,35,0.7);
  color: var(--text-light);
  padding: 5px 10px;
  border-radius: 3px;
}
.before-after-tag.tag-before { left: 14px; }
.before-after-tag.tag-after { right: 14px; }

/* ── FAQ accordion ─────────────────────────────────────── */

.faq { padding: var(--section-pad) 0; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-question i { color: var(--accent); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.is-open .faq-question i { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p { color: var(--text-muted); font-size: 15px; padding-bottom: 24px; max-width: 680px; }

.faq-emergency {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 0 32px;
}
.faq-emergency-card {
  background: var(--dark);
  color: var(--text-light);
  border-radius: 8px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.faq-emergency-card i { color: #7FB0FF; font-size: 22px; }
.faq-emergency-card strong { font-size: 18px; }
.faq-emergency-card span { display: block; font-size: 13px; color: rgba(243,246,250,0.6); }

/* ── Contact ─────────────────────────────────────────── */

.contact { background: var(--bg-alt); padding: var(--section-pad) 0; }

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-copy h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.contact-copy p.lead { color: var(--text-muted); margin-bottom: 32px; }

.contact-details { margin-bottom: 32px; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
}
.contact-details i {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(46,111,224,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-details a { transition: color 0.2s ease; }
.contact-details a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; min-width: 0; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(21, 33, 46, 0.45); }

.contact-form textarea { resize: vertical; }

.services-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
}
.services-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}
.services-check-grid input[type="checkbox"] { width: auto; accent-color: var(--accent); }

.form-file {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 13px 15px;
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
}

.form-status {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  min-height: 18px;
}
.form-status.is-success { color: #1E7A3C; }
.form-status.is-error   { color: #B3291D; }

/* ── Footer ──────────────────────────────────────────── */

.site-footer { background: var(--dark); color: var(--text-light); }

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo { margin-bottom: 18px; }
.footer-tagline { font-size: 14px; color: rgba(243, 246, 250, 0.6); line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7FB0FF;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(243, 246, 250, 0.75); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text-light); }
.footer-col address { font-style: normal; font-size: 14px; color: rgba(243, 246, 250, 0.75); line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 32px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(243, 246, 250, 0.45);
}
.footer-bottom a { text-decoration: underline; }
.footer-legal { display: flex; gap: 20px; }

/* ── Scroll Reveal ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-contact-card { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 22px;
    color: var(--text-light);
    z-index: 99;
  }

  .process-steps { flex-direction: column; }
  .step-connector { display: none; }

  .why-flank { grid-template-columns: 1fr; gap: 40px; }
  .why-badge { width: 200px; height: 200px; }
  .why-badge-ring-2 { width: calc(100% + 28px); height: calc(100% + 28px); }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }

  .products-grid { grid-template-columns: repeat(3, 1fr); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .gallery-grid { columns: 2; }

  .stats-grid { grid-template-columns: 1fr; gap: 28px; }

  .contact-inner { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hero-actions .btn { flex: 1; }
  .services-check-grid { grid-template-columns: 1fr; }


  .products-grid { grid-template-columns: 1fr 1fr; }

  .why-badge { width: 150px; height: 150px; }
  .why-badge-card { padding: 16px; }
  .why-badge-ring-2 { width: calc(100% + 20px); height: calc(100% + 20px); }
  .why-badge-rec { top: 10px; right: 10px; }
  .why-badge-rec-label { display: none; }

  /* ── Hero: video banner above text (mobile only) ──────────────────
     A 16:9 video can't fill an edge-to-edge box nearly 2x taller than wide
     without heavy cropping (object-fit:cover) or dead letterbox space
     (contain) — that's what full-bleed overlay-on-video was fighting on a
     narrow phone. Decoupling them instead: the video becomes its own
     16:9 banner at the top (its box now matches its own aspect ratio, so
     effectively no crop), and the headline/copy/CTAs flow in normal
     document flow below it on the hero's own dark background — no longer
     squeezed to fit "above a fold" that doesn't need to exist once video
     and text aren't competing for the same space. Desktop is untouched
     (still the full-bleed overlay treatment). */
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; }
  .hero-video, .hero-bg-slide { position: absolute; inset: 0; }
  .hero-scrim { display: none; }
  /* Left-aligned text makes sense on desktop (a wide hero with room beside
     it), but reads unbalanced in this narrower stacked mobile layout —
     the eyebrow pill in particular looks stranded on the left with a big
     empty gap on the right. Center the whole block instead. */
  .hero-inner { padding: 32px 24px 48px; text-align: center; }
  .hero-eyebrow { display: inline-flex; }
  .hero h1 { max-width: none; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .gallery-grid { columns: 1; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
