/* ============================================================
   THE CRUX — RESPONSIVE STYLES
   ============================================================ */

/* GLOBAL SAFETY */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { max-width: 100%; }
p, li, span, div, h1, h2, h3, h4, h5, h6,
.hero-sub, .prop-b, .bio-body, .solution-body, .offer-body,
.who-body, .origin-body, .stat-label, .stat-l, .cred-l,
.nl-sub, .join-sub, .cta-sub, .cta-band-sub, .footer-desc,
.ft-desc, .page-header-sub, .i-body, .event-body, .featured-body,
.includes-list li, .when-text {
  word-wrap: break-word; overflow-wrap: break-word; hyphens: auto;
}

/* HAMBURGER — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px; flex-shrink: 0; z-index: 1000;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background-color: #1B2A4A; border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* NAV DRAWER — hidden on desktop */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background-color: #F5F5F5;
  border-bottom: 1px solid #e0e4ed;
  padding: 24px 28px 32px;
  z-index: 998;
  flex-direction: column; gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #7a8698; padding: 14px 0;
  border-bottom: 1px solid #e0e4ed;
  transition: color 0.2s; text-decoration: none;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: #1B2A4A; }
.nav-drawer .drawer-cta {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 24px; background-color: #1B2A4A; color: #F5F5F5;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; border-radius: 2px; text-decoration: none;
}

/* STICKY MOBILE CTA BAR — hidden on desktop */
.mobile-cta-bar { display: none; }

/* ============================================================
   TABLET 1024px
   ============================================================ */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .hero { grid-template-columns: 1fr; padding: 130px 32px 80px; min-height: auto; }
  .hero-right { display: none; }
  .hero-left { max-width: 100%; padding-right: 0; }
  .hero h1 { font-size: clamp(3.2rem, 7vw, 5rem); }
  .what, .insights, .events, .newsletter, .origin, .who, .how,
  .value-props, .criteria, .offers, .team, .join, .featured,
  .all-insights, .cta-band { padding: 72px 32px; }
  .cards-3, .props-grid, .criteria-grid, .events-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid, .ft-grid { grid-template-columns: repeat(2, 1fr); }
  .origin, .who, .how, .newsletter, .join, .featured-card { grid-template-columns: 1fr; gap: 40px; }
  .solution { padding: 72px 32px; }
  .solution-inner { grid-template-columns: 1fr; gap: 40px; }
  .solution-meta { position: static; }
  .solution-when { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .on-belay { flex-direction: column; gap: 20px; }
  .cta-band { flex-direction: column; gap: 32px; align-items: flex-start; }
  .solution-nav { padding: 0 32px; overflow-x: auto; }
  .credentials { flex-wrap: wrap; gap: 32px; }
  .cred-item { flex: 1; min-width: 160px; border-right: none; padding: 0; }
}

/* ============================================================
   MOBILE 768px
   ============================================================ */
@media (max-width: 768px) {

  /* HAMBURGER — show on mobile */
  .hamburger { display: flex !important; }
  .nav-links { display: none !important; }
  .nav-btn { display: none !important; }
  nav { padding: 0 20px; height: 64px; }
  .nav-drawer { top: 64px; }

  /* STICKY CTA BAR */
  .mobile-cta-bar {
    display: flex !important;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 997; background-color: #1B2A4A;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px; gap: 10px;
    align-items: center; justify-content: center;
  }
  .mobile-cta-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 13px 16px; font-family: 'Barlow', sans-serif;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; border-radius: 2px; text-decoration: none; min-height: 48px;
  }
  .mobile-cta-bar .mcta-primary { background-color: #F4FF02; color: #1B2A4A; }
  .mobile-cta-bar .mcta-secondary { background-color: transparent; color: #c8d0dd; border: 1px solid rgba(255,255,255,0.2); }
  body { padding-bottom: 76px; }

  /* HERO */
  .hero { padding: 100px 20px 64px; }
  .hero-tagline { padding: 14px 20px; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .ht-text { font-size: 0.58rem; letter-spacing: 0.14em; text-align: center; white-space: normal; }
  .tbar-line { display: none; }

  /* SECTION PADDING */
  .what, .insights, .events, .origin, .who, .how,
  .value-props, .criteria, .offers, .team, .all-insights { padding: 56px 20px; }
  .newsletter, .join { padding: 56px 20px; gap: 40px; }
  .page-header { padding: 64px 20px 56px; }
  .filter-bar { padding-left: 20px; padding-right: 20px; }
  .cta-band { padding: 56px 20px; flex-direction: column; align-items: flex-start; gap: 28px; }

  /* GRIDS */
  .cards-3, .props-grid, .criteria-grid, .events-grid,
  .offers-grid, .team-grid { grid-template-columns: 1fr; }

  /* SOLUTIONS */
  .solution { padding: 56px 20px !important; }
  .solution-inner { grid-template-columns: 1fr !important; gap: 32px !important; }
  .solution-meta { position: static !important; top: auto !important; }
  .solution-when { grid-template-columns: 1fr !important; gap: 3px !important; }
  .solution-content { gap: 28px !important; }
  .solution-num { font-size: 2.8rem !important; }
  .solution-title { font-size: clamp(1.8rem, 8vw, 2.8rem) !important; }
  .includes-list { gap: 20px !important; }
  .includes-list li { font-size: 0.83rem !important; }
  .includes-desc { font-size: 0.81rem !important; }
  .when-text { font-size: 0.83rem !important; }
  .why-different-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .solution-nav { padding: 0 20px; }

  /* FOOTER */
  .ft-grid { grid-template-columns: 1fr; gap: 36px; padding: 0 20px 40px; }
  footer { padding: 56px 20px 36px; }
  .ft-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .ft-copy { white-space: nowrap; }
  .ft-legal { flex-wrap: wrap; gap: 16px; }

  /* LINKS */
  .link-arrow, .see-all { hyphens: none; word-break: keep-all; }

  /* TYPOGRAPHY */
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .page-header h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .sec-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .join-title, .nl-title, .cta-title, .cta-band-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }

  /* BUTTONS */
  .btn-navy, .btn-outline, .btn-yellow, .solution-cta { min-height: 48px; padding: 14px 24px; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-band .btn-yellow { width: 100%; justify-content: center; }

  /* FORMS */
  .nl-row, .join-row, .form-row { flex-direction: column; }
  .nl-input, .join-input, .join-select, .form-input { min-height: 48px; font-size: 16px; }
  .nl-btn, .join-btn { width: 100%; justify-content: center; min-height: 48px; }

  /* CARDS */
  .prop { padding: 36px 28px; }
  .prop-n { font-size: 2.8rem; }
  .insight-card { padding: 28px 24px 32px; }
  .bio-card { padding: 36px 28px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-image { min-height: 200px; }
  .featured-content { padding: 32px 24px; }
  .on-belay { flex-direction: column; gap: 24px; padding: 28px 24px; }

  /* CREDENTIALS */
  .credentials { flex-direction: column; gap: 28px; padding: 40px 20px; }
  .cred-item { padding: 0; border-right: none; border-bottom: 1px solid #e0e4ed; padding-bottom: 24px; }
  .cred-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ============================================================
   SMALL MOBILE 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .page-header h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .sec-title { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  .hero-sub, .page-header-sub { font-size: 0.9rem; }
  .prop-b, .bio-body, .origin-body p,
  .solution-body, .offer-body, .who-body p { font-size: 0.82rem; }
  .bio-tags { gap: 6px; }
  .bio-tag { font-size: 0.58rem; }
  .ht-text { font-size: 0.55rem; letter-spacing: 0.1em; line-height: 1.8; }
}
