/* ==========================================================================
   Data Track System — Light Theme Only
   Design system: Clean, professional white theme
   ========================================================================== */

:root {
  --red: #C1272D;
  --red-strong: #a31f24;
  --grey: #58595B;
  --grey-light: #8a8b8d;
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --surface: #ffffff;
  --text: #232324;
  --text-muted: #58595B;
  --border: #e3e3e5;
  --header-bg: rgba(255,255,255,0.92);
  --shadow: 0 10px 30px rgba(20,20,25,0.08);
  --shadow-hover: 0 18px 40px rgba(20,20,25,0.15);
  --radius: 14px;
  --font-head: "Sora", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --container: 1200px;
  --accent-contrast: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 .3em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 0.6em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

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

section { padding: clamp(32px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .3em;
}

.section-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(193,39,45,.35); }
.btn-primary:hover { background: var(--red-strong); box-shadow: 0 12px 26px rgba(193,39,45,.45); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }

/* ==================== HEADER (Field Forensic theme, light-only) ==================== */
.header-scanline {
  width: 100%; height: 2px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.55), transparent);
}
.header-scanline::before {
  content: ""; position: absolute; inset: 0; width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  animation: dts-scan 4s linear infinite;
}
@keyframes dts-scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(20,20,25,.08); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 10px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand .logo { height: 44px; width: auto; transition: transform .25s ease; }
.brand:hover .logo { transform: scale(1.03); }
.brand-caption {
  display: none;
  flex-direction: column;
  padding-left: .7rem;
  border-left: 1px solid rgba(0,0,0,0.10);
  line-height: 1.3;
}
.brand-caption span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.42);
}
.brand-caption span:first-child { color: rgba(0,0,0,0.62); font-weight: 600; }
@media (min-width: 1300px) { .brand-caption { display: flex; } }

.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .1rem; align-items: center; }
.main-nav > ul > li { padding: 0 .68rem; position: relative; }

.main-nav a.nav-link,
.main-nav button.nav-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  padding: 1.35rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  white-space: nowrap;
  transition: color .2s ease;
}
.main-nav > ul > li:first-child a.nav-link { color: rgba(0,0,0,0.92); }
.main-nav a.nav-link:hover,
.main-nav button.nav-link:hover { color: rgba(0,0,0,0.95); }

.main-nav a.nav-link::after,
.main-nav button.nav-link::after {
  content: ""; position: absolute; bottom: 8px; left: 50%; width: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, #0891b2, transparent);
  transition: width .3s ease, box-shadow .3s ease; transform: translateX(-50%); border-radius: 999px;
}
.main-nav a.nav-link:hover::after,
.has-mega.is-open button.nav-link::after,
.main-nav button.nav-link:hover::after {
  width: 90%; box-shadow: 0 0 10px rgba(8,145,178,.35);
}

.mega-caret { display: inline-flex; transition: transform .3s ease; color: rgba(0,0,0,0.35); }
.has-mega:hover .mega-caret,
.has-mega.is-open .mega-caret { transform: rotate(180deg); }

/* ---- Mega dropdown ---- */
.has-mega { position: relative; }
.mega-trigger { background: none; border: none; cursor: pointer; font: inherit; }

.mega-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 560px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20,20,25,.16), 0 4px 14px rgba(20,20,25,.06);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1), visibility .22s;
  z-index: 1200;
}
.mega-panel-sm { min-width: 460px; }
.main-nav > ul > li.has-mega:nth-child(3) .mega-panel { left: auto; right: 0; transform: translateY(8px); }
.main-nav > ul > li.has-mega:nth-child(3) .mega-panel { }

.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel,
.has-mega.is-open .mega-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.main-nav > ul > li.has-mega:nth-child(3):hover .mega-panel,
.main-nav > ul > li.has-mega:nth-child(3).is-open .mega-panel { transform: translateY(0); }

.mega-category {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .6rem .7rem; margin-bottom: .4rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mega-category-icon {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,105,161,0.10); color: #0369a1;
}
.mega-category-icon svg { width: 11px; height: 11px; }
.mega-category-label {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(0,0,0,0.42);
}

.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.mega-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .68rem .65rem; border-radius: 12px; position: relative; overflow: hidden;
}
.mega-item::before {
  content: ""; position: absolute; inset: 0; opacity: 0; border-radius: 12px;
  background: linear-gradient(135deg, rgba(8,145,178,.07), rgba(109,40,217,.05));
  transition: opacity .2s ease;
}
.mega-item:hover::before { opacity: 1; }
.mega-item:hover .mega-arrow { opacity: 1; transform: translateX(0); }
.mega-item:hover .mega-icon { transform: scale(1.08); }

.mega-icon {
  position: relative; z-index: 1; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.mega-icon svg { width: 16px; height: 16px; }
.chip-cyan    { background: rgba(3,105,161,.10);   color: #0369a1; }
.chip-violet  { background: rgba(109,40,217,.10);  color: #6d28d9; }
.chip-emerald { background: rgba(4,120,87,.10);    color: #047857; }
.chip-blue    { background: rgba(29,78,216,.10);   color: #1d4ed8; }
.chip-amber   { background: rgba(180,83,9,.10);    color: #b45309; }
.chip-rose    { background: rgba(190,18,60,.10);   color: #be123c; }
.chip-teal    { background: rgba(15,118,110,.10);  color: #0f766e; }

.mega-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.mega-text .mega-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mega-label { font-family: "Inter", sans-serif; font-weight: 600; font-size: 13px; color: rgba(0,0,0,0.88); }
.mega-desc { font-size: 11.5px; color: rgba(0,0,0,0.42); line-height: 1.45; margin-top: .15em; }
.mega-arrow {
  flex: none; opacity: 0; transform: translateX(-4px); transition: all .2s ease; color: #0369a1;
}
.mega-arrow svg { width: 12px; height: 12px; }

.mega-buy {
  margin-top: .35rem; padding-top: .5rem; border-top: 1px solid rgba(0,0,0,0.06);
}
.mega-buy .mega-label { color: #0369a1; }

@media (prefers-reduced-motion: reduce) {
  .mega-panel, .mega-caret, .header-scanline::before { transition: none; animation: none; }
}

/* ---- Header actions / CTA ---- */
.header-actions { display: flex; align-items: center; gap: .6rem; }
.nav-login {
  font-family: "Inter", sans-serif; font-size: 13px; color: rgba(0,0,0,0.45);
  padding: .5rem .7rem; white-space: nowrap; transition: color .2s ease;
}
.nav-login:hover { color: rgba(0,0,0,0.85); }

.header-cta {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .68em 1.35em; border-radius: 999px;
  background: #0b0c0e; color: #ffffff;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 13px;
  white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-cta svg { width: 13px; height: 13px; }
.header-cta:hover { background: #C1272D; transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(193,39,45,.12); }

.hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-direction: column; gap: 5px;
  background: none; border: 1px solid rgba(0,0,0,0.10); border-radius: 10px;
  cursor: pointer; padding: 6px; transition: border-color .2s ease;
}
.hamburger:hover { border-color: rgba(0,0,0,0.22); }
.hamburger span { width: 18px; height: 1.6px; background: rgba(0,0,0,0.75); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ==================== HERO ==================== */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero canvas#binary-rain {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55;
}
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,.55), rgba(8,8,10,.85));
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 6rem 0; }
.hero-content .eyebrow { color: var(--red-strong, #E5484F); }
.hero h1 { color: #fff; }
.hero p.lead { color: #d6d6d8; font-size: 1.15rem; max-width: 560px; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* platter/seek-arm decorative animation */
.platter-anim { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.platter-anim .disc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--grey);
  background: radial-gradient(circle at 50% 50%, var(--bg-alt) 0 30%, transparent 31%);
  animation: spin 3.2s linear infinite;
}
.platter-anim .disc::before {
  content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px dashed var(--border);
}
.platter-anim .arm {
  position: absolute; bottom: 8px; right: 12px; width: 4px; height: 88px;
  background: var(--red); border-radius: 3px;
  transform-origin: bottom center;
  transform: rotate(-17deg);
  animation: seek 2.4s ease-in-out infinite;
  z-index: 3;
}
/* actuator pivot (outside the platter, like a real drive) */
.platter-anim .arm::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--bg-alt, #fff);
}
/* read/write head at the arm tip */
.platter-anim .arm::before {
  content: ""; position: absolute; top: -3px; left: 50%; margin-left: -4px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--red);
}
.platter-anim .hub { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--grey); z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes seek {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-26deg); }
}
@media (prefers-reduced-motion: reduce) {
  .platter-anim .disc, .platter-anim .arm { animation: none; }
}

/* ==================== TRUST BADGES ==================== */
.hero-cta .no-charge-badge { margin-top: 0; }
.no-charge-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  padding: .55rem 1.2rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
}
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .9rem 0 1.2rem;
}
.cert-chip {
  display: inline-block;
  padding: .4rem .9rem;
  background: var(--surface, rgba(255,255,255,.06));
  border: 1px solid var(--border, rgba(255,255,255,.18));
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted, #a9a9ac);
}

/* ==================== STATS / COUNTERS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--red);
  margin-bottom: 0.3rem;
}
.stat .label { color: var(--text-muted); font-size: .95rem; }

/* ==================== CARDS ==================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 0.8rem;
  color: var(--red);
}
.card .icon svg {
  width: 28px; height: 28px; stroke: currentColor;
}
.card h3 { margin-bottom: .3rem; }
.card a.card-link { color: var(--red); font-weight: 600; font-family: var(--font-head); font-size: .9rem; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.news-card { display: flex; flex-direction: column; }
.news-tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: .3em .8em; border-radius: 999px;
  font-family: "JetBrains Mono", var(--font-head), monospace;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: .8rem;
}
.news-date { display: block; font-size: .78rem; color: var(--text-muted); margin: .2rem 0 .6rem; font-family: var(--font-head); }
.news-card h3 { margin-bottom: .1rem; }
.news-card p { flex: 1; }
.news-empty { color: var(--text-muted); text-align: center; padding: 2rem 0; grid-column: 1 / -1; }

/* Product card images */
.card-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform .3s ease;
  /* Light mode: Remove white backgrounds with multiply blend */
  mix-blend-mode: multiply;
}


.product-card:hover .product-image {
  transform: scale(1.05);
}


/* View details button */
.view-details-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .3s ease, transform .2s ease;
  width: 100%;
}
.view-details-btn:hover {
  background: var(--red-strong);
  transform: translateY(-2px);
}

/* Featured product card */
.featured-card {
  grid-column: span 2;
  border: 2px solid var(--red);
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-strong));
}
.featured-card h3 {
  color: var(--red);
  font-weight: 700;
}
@media (max-width: 900px) {
  .featured-card {
    grid-column: span 1;
  }
}
@media (max-width: 620px) {
  .featured-card {
    grid-column: span 1;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-hover);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color .2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: var(--text);
}
.modal-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  /* Light mode: Remove white backgrounds with multiply blend */
  mix-blend-mode: multiply;
}

.modal h2 {
  color: var(--red);
  margin-top: 0;
}
.modal-specs {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.modal-specs p {
  margin: 0.5rem 0;
}

/* process steps */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.process-step { text-align: center; position: relative; }
.process-step .step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--red);
  color: var(--red); font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem; font-size: 1.2rem;
}

/* symptom lists */
.symptom-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.symptom-list li {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .7rem 0.9rem; color: var(--text);
}
.symptom-list li::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ==================== MARQUEE ==================== */
.marquee { overflow: hidden; position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.6rem 0; background: var(--bg-alt); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text-muted); white-space: nowrap; opacity: .8; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; overflow-x: auto; } }

/* ==================== FORMS ==================== */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; margin-bottom: .25em; }
input, select, textarea {
  width: 100%; padding: .8em .9em; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: .95rem;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: .8rem; }
.form-success {
  display: none;
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px;
  background: rgba(193,39,45,.1); border: 1px solid var(--red); color: var(--red);
  font-weight: 600;
}
.form-success.show { display: block; }

/* map */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.2); }

/* gallery */
.related-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.related-gallery img { height: 260px; width: 100%; object-fit: cover; transition: transform .4s ease; }
.related-gallery figure:hover img { transform: scale(1.06); }
.related-gallery figcaption { padding: .8rem 1rem; font-size: .85rem; color: var(--text-muted); background: var(--surface); }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 2.5rem 0 1rem; margin-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 1.8rem; }
.footer-grid h4 { font-size: 1rem; margin-bottom: 0.7rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid a:hover { color: var(--red); }
.footer-brand img { height: 32px; margin-bottom: 0.8rem; }
.social-row { display: flex; gap: .5rem; margin-top: 0.7rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.social-row a:hover { border-color: var(--red); color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  font-size: .85rem; color: var(--text-muted);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #1a1a1c, #2a1416);
  color: #fff; padding: 4rem 0 3rem;
  position: relative; overflow: hidden; isolation: isolate;
}
/* darkening overlay so text stays readable over rotating hero photos */
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,.6), rgba(8,8,10,.85));
  z-index: 0;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfcfd1; max-width: 640px; }
.breadcrumb { font-size: .85rem; color: var(--red-strong, #E5484F); margin-bottom: .5rem; }

/* two-col content */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }

/* mobile nav overlay (Field Forensic theme, light-only) */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1100;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mobile-nav-head .logo { height: 36px; }
.mobile-nav-close {
  background: none; border: 1px solid rgba(0,0,0,0.10); border-radius: 10px;
  width: 36px; height: 36px; font-size: 1.3rem; line-height: 1; cursor: pointer; color: rgba(0,0,0,0.7);
}
.mobile-nav-actions { display: flex; align-items: center; gap: .8rem; padding: 1rem 20px 0; }
.mobile-nav-actions .header-cta { flex: 1; justify-content: center; }
.mobile-nav ul { list-style: none; padding: .75rem 14px 2rem; margin: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(0,0,0,0.06); }
.mobile-nav > ul > li:last-child { border-bottom: none; }
.mobile-nav > ul > li > a {
  display: flex; align-items: center; gap: .6rem;
  padding: .95em .5em; font-family: "Inter", sans-serif; font-weight: 600; font-size: 14.5px;
  color: rgba(0,0,0,0.85); border-radius: 10px; transition: background .2s ease;
}
.mobile-nav > ul > li > a:hover { background: rgba(0,0,0,0.03); }
.mobile-nav .nav-login-mobile { color: rgba(0,0,0,0.5); font-weight: 500; }

.mobile-nav .sub-list { padding-left: .3rem; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-nav .sub-list.open { max-height: 640px; }
.mobile-nav .sub-list li { border-bottom: none !important; }
.mobile-nav .sub-list a {
  display: flex; align-items: center; gap: .65rem;
  padding: .62em .5em .62em 1.1em; font-family: "Inter", sans-serif; font-weight: 500; font-size: 13px;
  color: rgba(0,0,0,0.55); border-radius: 10px; transition: color .2s ease, background .2s ease;
}
.mobile-nav .sub-list a:hover { color: rgba(0,0,0,0.9); background: rgba(0,0,0,0.03); }
.mnav-icon {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.mnav-icon svg { width: 13px; height: 13px; }

.mobile-nav .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; font-family: "Inter", sans-serif; font-weight: 600;
  padding: .95em .5em; cursor: pointer; color: rgba(0,0,0,0.85); font-size: 14.5px; border-radius: 10px;
}
.mobile-nav .sub-toggle:hover { background: rgba(0,0,0,0.03); }
.mobile-nav .sub-toggle .chevron { width: 16px; height: 16px; flex: none; color: rgba(0,0,0,0.35); transition: transform .25s ease; }
.mobile-nav .sub-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); color: #0891b2; }
.mobile-nav .cta-row { padding: 1.5rem 0; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav .sub-list { transition: none; }
  .mobile-nav .sub-toggle .chevron { transition: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1320px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .symptom-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .related-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .symptom-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .related-gallery { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; }
}

/* ==================== CTA BANNER (was inline styles) ==================== */
.cta-banner {
  background: linear-gradient(135deg, var(--red), var(--red-strong));
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-banner-text { max-width: 560px; }
.cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==================== MOBILE POLISH ==================== */
html, body { overflow-x: clip; }

@media (max-width: 760px) {
  .site-header .header-cta { display: none; } /* mobile-nav overlay has its own CTA */
  .brand .logo { height: 38px; }
  .nav-wrap { padding: 10px 16px; gap: .8rem; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .hero { min-height: 74vh; }
  .hero-content { padding: 3.5rem 0; }
  .hero p.lead { font-size: 1.02rem; }
  .page-hero { padding: 2.6rem 0 2.2rem; }
  .two-col { gap: 1.6rem; }
  .form-card { padding: 1.3rem; }
  .cta-banner { padding: 1.6rem 1.3rem; border-radius: 18px; }
  .cta-banner-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .related-gallery img { height: 210px; }
  .map-embed iframe { height: 260px; }
  .modal-content { padding: 1.3rem; max-height: 86vh; }
  .footer-grid { gap: 1.4rem; }
}
@media (max-width: 380px) {
  h1 { font-size: 1.7rem; }
  .btn { padding: .8em 1.3em; font-size: .9rem; }
}

/* footer conditions note (No Recovery = No Charges*) */
.conditions-note {
  font-size: .78rem;
  color: var(--text-muted);
  opacity: .85;
  margin: 1.4rem 0 0;
  line-height: 1.5;
}
