/* ServiceScout — shared styles */

:root {
  /* Brand */
  --scout-navy: #071B2C;
  --field-black: #0B0F13;
  --brief-white: #F7FAFC;
  --signal-teal: #16D6C3;
  --advantage-orange: #FF8A3D;
  --trust-blue: #2B6FFF;

  /* Slate */
  --slate-900: #102033;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  /* Functional */
  --success: #22C55E;
  --warning: #F59E0B;
  --alert: #EF4444;
  --info: #06B6D4;

  /* Type */
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }

/* Defensive: prevent long words from forcing overflow on narrow viewports */
h1, h2, h3, h4, h5, p, li, td, a, strong, em {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Defensive: prevent grid items from overflowing their container */
[style*="display: grid"] > *, [style*="display:grid"] > * { min-width: 0; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--brief-white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: var(--trust-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--slate-900);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-teal);
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--signal-teal);
}

.dark .eyebrow { color: var(--signal-teal); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }

/* Surfaces */
.dark {
  background: var(--scout-navy);
  color: #DCE5EE;
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: #B7C4D2; }
.darker { background: var(--field-black); color: #DCE5EE; }
.darker h1, .darker h2, .darker h3 { color: #fff; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247,250,252,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--scout-navy);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--scout-navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--signal-teal);
  letter-spacing: 0.04em;
  margin-top: 3px;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-700);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--scout-navy); background: var(--slate-100); text-decoration: none; }
.site-nav a.active { color: var(--scout-navy); background: var(--slate-100); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--signal-teal);
  color: var(--scout-navy);
  border-color: var(--signal-teal);
}
.btn-primary:hover { background: #0FC1AF; border-color: #0FC1AF; box-shadow: 0 8px 24px -10px rgba(22,214,195,.6); }
.btn-orange {
  background: var(--advantage-orange);
  color: #2A1100;
  border-color: var(--advantage-orange);
}
.btn-orange:hover { background: #FF7A23; border-color: #FF7A23; box-shadow: 0 8px 24px -10px rgba(255,138,61,.6); }
.btn-ghost {
  background: transparent;
  color: var(--scout-navy);
  border-color: var(--slate-300);
}
.btn-ghost:hover { border-color: var(--slate-700); background: #fff; }
.dark .btn-ghost, .hero .btn-ghost, .darker .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover, .darker .btn-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

@media (max-width: 380px) {
  .btn-lg { padding: 16px 22px; font-size: 15px; max-width: 100%; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px;
}
@media (max-width: 380px) {
  .card { padding: 22px; }
}
.dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}

/* Signal badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-teal { background: rgba(22,214,195,.12); color: #0B8B7C; }
.dark .badge-teal { background: rgba(22,214,195,.14); color: var(--signal-teal); }
.badge-orange { background: rgba(255,138,61,.14); color: #B85A1F; }
.dark .badge-orange { background: rgba(255,138,61,.18); color: var(--advantage-orange); }
.badge-navy { background: rgba(7,27,44,.06); color: var(--scout-navy); }
.dark .badge-navy { background: rgba(255,255,255,.08); color: #fff; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Footer */
.site-footer {
  background: var(--field-black);
  color: #B7C4D2;
  padding: 80px 0 32px;
}
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.site-footer a { color: #B7C4D2; text-decoration: none; display: inline-block; padding: 4px 0; font-size: 15px; }
.site-footer a:hover { color: var(--signal-teal); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-teal);
  margin-top: 18px;
  display: inline-block;
}

/* Mono / data labels */
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 500;
}
.dark .label { color: rgba(183, 196, 210, .8); }

/* Doorframe motif */
.doorframe-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(22,214,195,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,214,195,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
}

/* Hero common */
.hero {
  position: relative;
  background: var(--scout-navy);
  color: #fff;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 22px); color: #B7C4D2; max-width: 620px; line-height: 1.55; }
.hero-inner {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
  z-index: 1;
}

/* Signal line */
.signal-line {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--signal-teal);
  margin: 0 0 22px;
}

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(22,214,195,.15);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316D6C3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

/* Two-column */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
@media (max-width: 1080px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 980px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    flex-direction: column;
    padding: 16px var(--gutter);
    gap: 4px;
  }
  .site-nav.open + .nav-cta { display: flex; padding: 0 var(--gutter) 16px; }
}

/* Section header utility */
.section-head { max-width: 720px; margin: 0 0 clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Quote / pull */
.pull {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--scout-navy);
}
.dark .pull { color: #fff; }

/* Stat */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--signal-teal);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 12px;
}
.dark .stat-label { color: rgba(183, 196, 210, .8); }
