/* =============================================
   Signal Strategy Group — site.css v1.0
   signalstrategygroup.com
   =============================================

   TABLE OF CONTENTS
   1.  Fonts
   2.  Reset
   3.  Custom Properties
   4.  Base
   5.  Nav
   6.  Mobile Nav
   7.  Page Layout
   8.  Sections
   9.  Amber Rule
   10. Grid Layouts
   11. Buttons
   12. Typography
   13. Cards
   14. Symptom / Credential Lists
   15. Stat Blocks
   16. Forms
   17. Footer
   18. Utilities
   19. Responsive
   ============================================= */

/* 1. FONTS
   Using Google Fonts CDN. To self-host, download WOFF2 files for
   Barlow (wght 400;600;700;800), IBM Plex Sans (ital,wght 0,400;0,500;1,400),
   and Syne (wght 400;500;600;700;800), place in /assets/fonts/, then replace
   this block with @font-face declarations pointing to those files.
   ----------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800&family=Syne:wght@400;500;600;700;800&family=IBM+Plex+Sans:ital,wght@0,400;0,500;1,400&display=swap');

/* 2. RESET
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(248,160,48,0.25); color: #1A1C18; }

/* 3. CUSTOM PROPERTIES
   ----------------------------------------------------------------- */
:root {
  /* Dark palette */
  --dark-bg:       #130D08;
  --dark-surface:  #1A1108;
  --dark-border:   #2A1E10;
  --dark-border2:  #341F0C;

  /* Light palette */
  --light-bg:      #F5F2EC;
  --light-surface: #EDEBE4;
  --light-border:  #D8D4C8;
  --light-border2: #C8C4B4;

  /* Text */
  --on-dark:        #EDE6DF;
  --on-dark-muted:  #8A7860;
  --on-dark-dim:    #7A6450;
  --on-light:       #1A1C18;
  --on-light-muted: #5C6055;
  --on-light-dim:   #9A9C94;

  /* Amber */
  --amber:     #F8A030;
  --amber-dk:  #B87820;
  --amber-lt:  #FABB68;
  --amber-a06: rgba(248,160,48,0.06);
  --amber-a12: rgba(248,160,48,0.12);

  /* Typography */
  --font-display: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-label:   'Syne', sans-serif;

  /* Layout */
  --pad-h:        max(40px, calc((100% - 1080px) / 2));
  --pad-h-narrow: max(40px, calc((100% - 680px) / 2));

  /* Grid overlay */
  --grid-bg:
    linear-gradient(rgba(248,160,48,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,160,48,0.07) 1px, transparent 1px);
}

/* 4. BASE
   ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  background: var(--dark-bg);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 5. NAV
   ----------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  background: rgba(19,13,8,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-h);
  justify-content: space-between;
}
.site-nav.scrolled,
.site-nav.menu-open {
  background: rgba(19,13,8,0.98);
  border-bottom-color: var(--dark-border);
}

.nav-logo img { height: 44px; width: auto; display: block; }
.nav-logo { line-height: 0; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-dark-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--on-dark); }
.nav-link.active {
  color: var(--on-dark);
  border-bottom-color: var(--amber);
}
.nav-cta {
  background: var(--amber) !important;
  border: 1px solid var(--amber) !important;
  border-radius: 2px;
  color: var(--on-light) !important;
  padding: 13px 28px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  border-bottom: 1px solid var(--amber) !important;
  transition: background 0.15s, border-color 0.15s !important;
}
.nav-cta:hover {
  background: var(--amber-lt) !important;
  border-color: var(--amber-lt) !important;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-dark);
  transition: transform 0.25s, opacity 0.25s, background 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--amber); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--amber); }

/* 6. MOBILE NAV
   ----------------------------------------------------------------- */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 999;
  background: rgba(19,13,8,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  flex-direction: column;
  padding: 24px max(24px, 5vw) 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  padding: 16px 0;
  border-bottom: 1px solid var(--dark-border);
  font-size: 14px;
  color: var(--on-dark);
  border-right: none;
}
.nav-mobile .nav-link.active { color: var(--amber); }
.nav-mobile-cta { margin-top: 24px; }
.nav-mobile-cta .nav-cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* 7. PAGE LAYOUT
   ----------------------------------------------------------------- */
.page-wrap { padding-top: 68px; min-height: 100vh; }

/* 8. SECTIONS
   ----------------------------------------------------------------- */
.section {
  padding: 120px var(--pad-h);
  position: relative;
}
.section-narrow {
  padding: 120px var(--pad-h-narrow);
  position: relative;
}
.section-dark {
  background: var(--dark-bg);
  color: var(--on-dark);
}
.section-light {
  background: var(--light-bg);
  color: var(--on-light);
}
.section-grid {
  background-color: var(--dark-bg);
  background-image: var(--grid-bg);
  background-size: 52px 52px;
}

/* Noise texture on light sections */
.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.section-light > * { position: relative; z-index: 1; }

/* Left accent bar — used in hero sections */
.accent-bar {
  position: absolute;
  left: 0;
  top: 14%; bottom: 14%;
  width: 3px;
  background: linear-gradient(transparent, var(--amber), transparent);
  pointer-events: none;
}

/* 9. AMBER RULE
   ----------------------------------------------------------------- */
.amber-rule { height: 1px; background: var(--amber); flex-shrink: 0; }
.amber-divider { width: 40px; height: 1px; background: var(--amber); }

/* 10. GRID LAYOUTS
    ----------------------------------------------------------------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* 11. BUTTONS
    ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.btn-full { width: 100%; }

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--on-light);
}
.btn-amber:hover { background: var(--amber-lt); border-color: var(--amber-lt); }

.btn-outline-dark {
  background: var(--dark-bg);
  border-color: var(--amber);
  color: var(--amber);
}
.btn-outline-dark:hover { background: rgba(248,160,48,0.08); }

.btn-outline-light {
  background: transparent;
  border-color: var(--amber-dk);
  color: var(--amber-dk);
}
.btn-outline-light:hover { background: var(--amber-a06); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row-center { justify-content: center; }

/* 12. TYPOGRAPHY
    ----------------------------------------------------------------- */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 5.8vw, 82px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.03;
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.heading-md {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.heading-sm {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.heading-cta {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.color-dark  { color: var(--on-dark); }
.color-light { color: var(--on-light); }
.color-amber { color: var(--amber); }
.color-amber-dk { color: var(--amber-dk); }

.label-text {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.label-lg {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.body-lg { font-family: var(--font-body); font-size: 18px; line-height: 1.75; }
.body-md { font-family: var(--font-body); font-size: 16px; line-height: 1.75; }
.body-sm { font-family: var(--font-body); font-size: 14px; line-height: 1.82; }
.body-xs { font-family: var(--font-body); font-size: 13px; line-height: 1.65; }

.body-dark       { color: var(--on-dark-muted); }
.body-dark-strong{ color: var(--on-dark); }
.body-light      { color: var(--on-light-muted); }

.pullquote {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-light);
  font-style: italic;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* 13. CARDS
    ----------------------------------------------------------------- */

/* White card with corner brackets */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: 4px;
  padding: 38px;
}
.card::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  width: 14px; height: 14px;
  border-top: 1.5px solid var(--amber);
  border-left: 1.5px solid var(--amber);
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 10px; right: 10px;
  width: 14px; height: 14px;
  border-bottom: 1.5px solid var(--amber);
  border-right: 1.5px solid var(--amber);
  pointer-events: none;
}

/* Dark card */
.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-border2);
  border-radius: 4px;
  padding: 40px 42px;
}

/* Phase card — left amber border + corner brackets */
.phase-card {
  position: relative;
  background: #fff;
  border-left: 2px solid var(--amber);
  border-top: 1px solid var(--light-border);
  border-right: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
  border-radius: 0 4px 4px 0;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  width: 14px; height: 14px;
  border-top: 1.5px solid var(--amber);
  border-left: 1.5px solid var(--amber);
  pointer-events: none;
}
.phase-card::after {
  content: '';
  position: absolute;
  bottom: 10px; right: 10px;
  width: 14px; height: 14px;
  border-bottom: 1.5px solid var(--amber);
  border-right: 1.5px solid var(--amber);
  pointer-events: none;
}

/* Framework card — top amber border */
.framework-card { padding-top: 28px; border-top: 2px solid var(--amber); }

/* 14. SYMPTOM / CREDENTIAL LISTS
    ----------------------------------------------------------------- */
.symptom-list { list-style: none; }
.symptom-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--dark-border);
}
.symptom-item:last-child { border-bottom: none; }
.symptom-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 7px;
}

.credential-list { list-style: none; }
.credential-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.credential-item:last-child { margin-bottom: 0; }
.credential-check {
  width: 17px; height: 17px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--amber-a12);
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.credential-check::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber-dk);
}

/* 15. STAT BLOCKS
    ----------------------------------------------------------------- */
.stat-block { border-left: 2.5px solid var(--amber); padding-left: 22px; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 800;
  color: var(--on-light);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

/* 16. FORMS
    ----------------------------------------------------------------- */
.form-wrap { max-width: 560px; }

.form-group { margin-bottom: 20px; }
.form-group-last { margin-bottom: 34px; }

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--on-light-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.72;
  color: var(--on-light);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--amber-dk);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--on-light-dim); }
.form-textarea { resize: vertical; }

.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--amber-dk);
  font-size: 11px;
  font-weight: 700;
}
select option { background: #F5F2EC; color: #1A1C18; }

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 100px 40px;
}
.form-success.visible { display: flex; }

/* 17. FOOTER
    ----------------------------------------------------------------- */
.site-footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 32px var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-logo img { height: 36px; width: auto; display: block; }
.footer-logo { line-height: 0; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-link {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.72;
  color: var(--on-dark-muted);
  background: none;
  border: none;
  padding: 0;
}
.footer-link:hover { color: var(--on-dark); }
.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.72;
  color: var(--on-dark-dim);
}

/* 18. UTILITIES
    ----------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-38 { margin-top: 38px; }
.mt-46 { margin-top: 46px; }
.mt-52 { margin-top: 52px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }
.mt-72 { margin-top: 72px; }
.mb-6  { margin-bottom: 6px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mb-22 { margin-bottom: 22px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.mb-38 { margin-bottom: 38px; }
.mb-40 { margin-bottom: 40px; }
.mb-46 { margin-bottom: 46px; }
.mb-56 { margin-bottom: 56px; }
.mb-64 { margin-bottom: 64px; }
.mb-72 { margin-bottom: 72px; }
.mw-480 { max-width: 480px; }
.mw-520 { max-width: 520px; }
.mw-560 { max-width: 560px; }
.mw-600 { max-width: 600px; }
.mw-680 { max-width: 680px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 19. RESPONSIVE
    ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .cols-2 { grid-template-columns: 1fr; gap: 44px; }
  .cols-3 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cols-4 { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 680px) {
  .nav-desktop { display: none !important; }
  .nav-hamburger { display: flex !important; }

  .section,
  .section-narrow {
    padding-top:    clamp(72px, 12vw, 120px);
    padding-bottom: clamp(72px, 12vw, 120px);
    padding-left:   max(24px, 5vw);
    padding-right:  max(24px, 5vw);
  }
  .heading-xl { font-size: clamp(40px, 10vw, 64px); }
}
@media (max-width: 520px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .card-dark { padding: 28px 24px; }
  .card      { padding: 28px 24px; }
  .phase-card{ padding: 28px 24px; }
  .btn-row   { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}
