/* ============================================================
   SAMP additions — link AFTER css/main.css on every page.
   Self-contained: overrides only what it must, adds styles for
   the two new homepage sections (capabilities, FAQ) and the
   hero overlay/seam. Safe to merge into main.css later.

   ONE TUNABLE: --seam-color must equal your page background.
   Adjust the hex below if your void isn't ~#05070d.
   ============================================================ */

:root {
  --seam-color: #05070d; /* ← match to body background */
}

/* ------------------------------------------------------------
   1. HERO VIDEO — show the full frame, no crop.
   The section now sizes to the video's own aspect ratio instead
   of a fixed height that clips the bottom of the frame.
   ------------------------------------------------------------ */
.hero.hero-video {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
}
.hero-video .hero-bg--video {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: auto !important;
}
.hero-video .hero-bg--video video {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: fill; /* height:auto keeps native ratio; nothing is clipped */
}

/* ------------------------------------------------------------
   2. THE SEAM — full video stays visible; its lower third
   dissolves into the page background so the next section
   reads as a continuation, not a cut.
   ------------------------------------------------------------ */
.hero-seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px; /* -1px kills subpixel hairlines between sections */
  height: clamp(120px, 24vh, 280px);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 13, 0) 0%,
    var(--seam-color) 88%,
    var(--seam-color) 100%
  );
  pointer-events: none;
  z-index: 2;
}
/* the section after the hero should butt straight up against it */
.hero-copy { border-top: 0; margin-top: 0; }

/* ------------------------------------------------------------
   3. HERO OVERLAY — one quiet line that answers "what is this?"
   plus the CTA, sitting inside the seam fade so it's readable.
   ------------------------------------------------------------ */
.hero-overlay {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 7vh, 4.5rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: min(92%, 720px);
  text-align: center;
}
.hero-overlay .hero-bridge-cta {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}
.hero-eyebrow {
  margin: 0;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 230, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

/* On small screens the video frame is short — let the overlay
   flow beneath it on the same dark ground instead of covering it. */
@media (max-width: 640px) {
  .hero-overlay {
    position: static;
    transform: none;
    width: auto;
    padding: 1.1rem 1rem 0.2rem;
    background: var(--seam-color);
  }
  .hero-seam { height: clamp(70px, 18vw, 120px); }
}

/* ------------------------------------------------------------
   4. CALM THE CTAs — kill pulses, shimmers, bounces on the
   header button and the hero button. One restrained hover.
   ------------------------------------------------------------ */
[data-cta="header"],
[data-cta="hero-video"],
.hero-bridge-cta,
[data-cta="header"]::before,
[data-cta="header"]::after,
.hero-bridge-cta::before,
.hero-bridge-cta::after {
  animation: none !important;
}
[data-cta="header"],
.hero-bridge-cta {
  transform: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}
[data-cta="header"]:hover,
.hero-bridge-cta:hover {
  transform: translateY(-1px) !important;
}

/* ------------------------------------------------------------
   5. CAPABILITIES GRID (new section #capabilities)
   Inherits the glass look from .glass-card; this only lays it out.
   ------------------------------------------------------------ */
.cap-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.cap-grid li { padding: 1.25rem 1.35rem; }
.cap-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.cap-grid p {
  margin: 0;
  font-size: 0.93rem;
  opacity: 0.82;
  line-height: 1.55;
}

/* ------------------------------------------------------------
   6. FAQ (new section #faq) — native <details>, zero JS.
   ------------------------------------------------------------ */
.faq-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.15rem;
  line-height: 1.6;
  opacity: 0.86;
}
.faq-item a { text-decoration: underline; }

/* ------------------------------------------------------------
   7. QUALITY FLOOR — skip link + reduced motion.
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--seam-color);
  color: #fff;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   2026-07-08 pass — mobile nav, CTA highlight fix, centering.
   ============================================================ */

/* ------------------------------------------------------------
   8. TAP/CLICK HIGHLIGHT — no gray tap flash on touch devices,
   and no heavy under-glow beneath the Book a Call buttons on
   mobile (desktop bevels/glow unchanged).
   ------------------------------------------------------------ */
a, button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 880px) {
  .btn,
  .btn:hover {
    transform: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 3px 10px rgba(0, 0, 0, 0.35);
  }
  .btn:active {
    transform: none;
    box-shadow: inset 0 2px 6px rgba(2, 40, 48, 0.45);
  }
}

/* ------------------------------------------------------------
   9. MOBILE NAVIGATION — hamburger toggle + dropdown panel.
   Desktop (>880px) keeps the inline nav; the toggle is hidden.
   ------------------------------------------------------------ */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px -6px -10px 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 880px) {
  .header-inner { gap: 14px; }
  [data-cta="header"] { margin-left: auto; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 0 12px;
    flex-direction: column;
    gap: 0;
    text-align: center;
    background: rgba(4, 7, 12, 0.96);
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8);
  }
  @supports (backdrop-filter: blur(14px)) {
    .site-nav {
      -webkit-backdrop-filter: blur(14px) saturate(1.2);
      backdrop-filter: blur(14px) saturate(1.2);
      background: rgba(4, 7, 12, 0.9);
    }
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 13px 28px; font-size: 1.05rem; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ------------------------------------------------------------
   10. CENTERED PAGES — content reads centered on desktop and
   mobile. Constrained blocks get auto margins; long-form body
   copy (legal pages, testimonials, FAQ answers) stays
   left-aligned inside the centered column for readability.
   ------------------------------------------------------------ */
main { text-align: center; }
.hero-inner,
.section-lead,
.hero-sub,
.trust-line,
.muted-line,
.q-helper,
.film-slot,
.faq { margin-left: auto; margin-right: auto; }
.ornament { justify-content: center; }
.hero-actions { justify-content: center; }
.testimonial blockquote,
.testimonial figcaption,
.faq-item p,
.faq-item summary,
.prose p,
.prose ul,
.prose ol,
.prose li { text-align: left; }

/* ------------------------------------------------------------
   11. MOBILE FLOOR — nothing scrolls sideways.
   ------------------------------------------------------------ */
html, body { overflow-x: hidden; }
