/* =============================================================================
   STRUCTURAL CLARITY — Responsive & Supplemental CSS
   assets/css/main.css · v1.0.0
   ============================================================================= */

/* =============================================================================
   HAMBURGER BUTTON
   ============================================================================= */
.sc-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.sc-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #14304c;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sc-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sc-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================================
   MOBILE NAV DRAWER
   ============================================================================= */
.sc-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f4efe4;
  border-bottom: 1px solid #e1d9c7;
  box-shadow: 0 8px 24px rgba(20,48,76,0.10);
  z-index: 200;
}
.sc-mobile-nav.is-open { display: block; }

.sc-mobile-link {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #e8e0d1;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  color: #3c4654;
  transition: color .15s ease;
}
.sc-mobile-link:hover { color: #29a08a; }
.sc-mobile-link:last-child { border-bottom: none; }
.sc-mobile-cta {
  margin-top: 14px;
  text-align: center;
  border: 1.5px solid #e8923f;
  padding: 12px 20px;
  color: #14304c;
}

/* =============================================================================
   STICKY HEADER SCROLL SHADOW
   ============================================================================= */
#site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(20,48,76,0.08);
}

/* =============================================================================
   TABLET — ≤ 1024px
   ============================================================================= */
@media (max-width: 1024px) {

  .sc-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .sc-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .sc-container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* =============================================================================
   SMALL TABLET — ≤ 768px
   ============================================================================= */
@media (max-width: 768px) {

  /* Nav swap */
  .sc-hamburger { display: flex !important; }
  .sc-nav       { display: none !important; }

  /* Containers */
  .sc-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Hero H1 */
  #top h1 { font-size: 40px !important; }

  /* All H2s */
  #problem h2, #method h2, #evidence h2,
  #watch h2, #pathways h2, #investigator h2, #contact h2 {
    font-size: 32px !important;
  }

  /* Method: 2-col header → stack */
  .sc-method-header {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Method: 5-step → 3-col */
  .sc-method-process {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Evidence cards: 2 → 1 col */
  .sc-evidence-grid { grid-template-columns: 1fr !important; }

  /* Pipeline: 4 → 2 col */
  .sc-pipeline-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Videos: 3 → 1 col */
  .sc-video-grid { grid-template-columns: 1fr !important; }

  /* Pathways: 3 → 1 col */
  .sc-pathways-grid { grid-template-columns: 1fr !important; }

  /* Investigator: 2 → 1 col */
  .sc-investigator-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Problem before/after: hide arrow column */
  .sc-problem-grid {
    grid-template-columns: 1fr !important;
  }

  /* CTA rows: stack */
  .sc-cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .sc-cta-row a {
    text-align: center !important;
    justify-content: center !important;
  }

  /* Footer */
  .sc-footer-grid {
    grid-template-columns: 1fr !important;
    padding: 40px 20px 24px !important;
  }
}

/* =============================================================================
   MOBILE — ≤ 480px
   ============================================================================= */
@media (max-width: 480px) {

  #top h1        { font-size: 32px !important; }
  #contact h2    { font-size: 28px !important; }

  /* Section vertical padding */
  #problem, #method, #evidence,
  #watch, #pathways, #investigator, #contact {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  /* Method process: 2-col */
  .sc-method-process {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Pipeline: single col */
  .sc-pipeline-grid { grid-template-columns: 1fr !important; }

  /* Nav bar padding */
  #site-header .sc-container {
    padding: 16px 20px !important;
  }
}
