/* ============================================
   GLOBAL CSS — 2nd Chance CMBC
   Nav consolidated here. No per-page nav CSS.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #C41E1E;
  --red-dark:  #9E1515;
  --gold:      #C9922A;
  --gold-lt:   #FFC645;
  --black:     #0A0A0A;
  --white:     #FFFFFF;
  --off-white: #F7F1E8;
  --navy:      #0D1B2A;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:     1200px;
  --max:       1200px;
  --nav-h:     72px;
  --pill:      10px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.16);
  --shadow:    0 24px 60px rgba(0,0,0,0.16);
  --shadow-s:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-l:  0 24px 60px rgba(0,0,0,0.16);
  --muted:     rgba(10,10,10,0.55);
  --gray-light:rgba(0,0,0,0.08);
  --line:      rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ─────────────────────────────────────────────
   NAVBAR — flat, 6 items, no dropdowns
   Collapses to hamburger at 1024px
   ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.nav-logo img,
.nav-logo-img {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(201,146,42,0.22);
  display: block;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav-links li a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 11px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
/* Gold pipe separator between nav items */
.nav-links li + li::before {
  content: '|';
  color: var(--gold);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.5;
  margin-right: 2px;
  pointer-events: none;
}
/* Don't show separator before the CTA */
.nav-links li:has(.nav-cta)::before { display: none; }

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 11px; right: 11px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  width: 0;
  transition: width 0.25s ease;
}
.nav-links li a:hover { color: var(--gold); }
.nav-links li a:hover::after { width: calc(100% - 22px); }
.nav-links li a.active { color: var(--red); }
.nav-links li a.active::after { width: calc(100% - 22px); background: var(--red); }

/* Register Now CTA */
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 18px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 6px;
  box-shadow: 0 8px 24px rgba(196,30,30,0.25) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: linear-gradient(135deg, var(--red-dark), #7a1010) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(196,30,30,0.32) !important;
}

/* Success Store special link */
.nav-store {
  color: var(--black) !important;
  font-weight: 700 !important;
}
.nav-store::after { background: var(--gold) !important; }
.nav-store:hover { color: var(--gold) !important; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--black);
  border-radius: 10px;
  transition: 0.3s;
}

/* ─────────────────────────────────────────────
   CONTAINER
   ───────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; display: block;
}
/* Hero subtitle — used in all page heroes */
.hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.65; max-width: 420px; margin-bottom: 16px;
  display: block;
}

/* Single standard hero eyebrow — used in all page heroes */
.hero-eyebrow {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 10px;
  display: block;
}
.section-eyebrow.center { text-align: center; }

/* ─────────────────────────────────────────────
   PAGE HERO — standard inner-page hero
   Used on About, Resources, DFS, Contact, Volunteer
   ───────────────────────────────────────────── */
.page-hero-wrap {
  margin-top: var(--nav-h);
  position: relative;
  height: 360px;
  width: 100%;
  overflow: hidden;
}
.page-hero-wrap .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.page-hero-text {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 52%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px 40px 44px;
}
.page-hero-text h1 {
  font-family: var(--font);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
@media (max-width: 860px) {
  .page-hero-wrap { height: auto; min-height: 240px; }
  .page-hero-text { width: 65%; padding: 28px 20px 28px 24px; }
}
@media (max-width: 640px) {
  /* Stack layout — image on top at natural crop, text block below on black */
  .page-hero-wrap { height: auto; display: flex; flex-direction: column; overflow: visible; }
  .page-hero-wrap .hero-img {
    position: relative;
    inset: unset;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  .page-hero-text {
    position: relative;
    inset: unset;
    width: 100%;
    height: auto;
    background: var(--black);
    padding: 24px 20px 28px;
    justify-content: flex-start;
  }
  /* Force all hero text white on mobile — overrides any page-specific color */
  .page-hero-text h1,
  .page-hero-wrap .page-hero-text h1 { font-size: 26px; margin-bottom: 8px; color: var(--white) !important; }
  .page-hero-text .hero-sub,
  .page-hero-wrap .page-hero-text .hero-sub { font-size: 14px; color: rgba(255,255,255,0.82) !important; }
  .hero-eyebrow { font-size: 10px; }
  .hero-cta-btns { margin-top: 16px; }
  .hero-cta-btns .btn { min-width: unset; width: 100%; justify-content: center; }
  .vol-hero-btns { margin-top: 16px; }
  .vol-hero-btns .btn { min-width: unset; width: 100%; justify-content: center; }
}

.section-title {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 46px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--black); margin-bottom: 20px;
}
.section-title.center { text-align: center; }
.section-subtitle { font-size: 17px; color: var(--muted); max-width: 540px; margin-bottom: 40px; line-height: 1.65; }
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }
.body-text { font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-size: 12px; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--gold); border-radius: 8px; flex-shrink: 0; }
.eyebrow-light { color: var(--gold-lt); }
.eyebrow-light::before { background: var(--gold-lt); }

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0 28px; height: 48px; min-width: 150px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,30,30,0.3); }
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,146,42,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-card { background: var(--black); color: var(--white); border-color: var(--black); width: 100%; margin-top: auto; }
.btn-card:hover { background: var(--gold); border-color: var(--gold); color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  background: var(--gold-lt); color: var(--black);
  font-family: var(--font); font-size: 14px; font-weight: 900;
  border-radius: var(--pill); transition: all 0.25s ease; border: none; cursor: pointer;
}
.btn-gold-pill:hover { background: #ffd056; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,198,69,0.4); }

/* ─────────────────────────────────────────────
   FORMS
   ───────────────────────────────────────────── */
.form-page { padding-top: var(--nav-h); min-height: 100vh; background: var(--white); }
.form-hero { background: var(--black); padding: 60px 24px 48px; text-align: center; position: relative; overflow: hidden; }
.form-hero::before { content: ''; position: absolute; inset: 0; background: url('../hero.jpg') center/cover; opacity: 0.10; }
.form-hero > * { position: relative; }
.form-hero .section-eyebrow { color: var(--gold-lt); margin-bottom: 8px; }
.form-hero h1 { font-family: var(--font); font-size: clamp(28px, 4vw, 42px); color: var(--white); margin-bottom: 12px; }
.form-hero p { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 520px; margin: 0 auto; }
.form-wrap { max-width: 640px; margin: 0 auto; padding: 48px 24px 80px; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.06); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; font-family: var(--font); font-size: 16px; color: var(--black); background: #fafafa; border: 1.5px solid rgba(0,0,0,0.12); border-radius: var(--radius-sm); outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,146,42,0.12); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── CHECKBOXES & RADIOS — small squares with proper gap ── */
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  background: #fafafa;
  transition: all 0.18s;
  user-select: none;
}
.radio-option:hover, .checkbox-option:hover {
  border-color: var(--gold);
  background: rgba(201,146,42,0.05);
}

/* Hide native input, replace with custom indicator */
.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  margin: 0;
  position: relative;
  transition: all 0.15s;
}
.radio-option input[type="radio"] {
  border-radius: 50%;
}

/* Checked state — gold fill with white checkmark/dot */
.radio-option input[type="radio"]:checked,
.checkbox-option input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-option input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--black);
}

/* Checked container highlight */
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,146,42,0.08);
  font-weight: 600;
}

/* Shift-check style (volunteer form) */
.shift-check {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  padding: 8px 0;
  line-height: 1.4;
}
.shift-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.shift-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  margin: 0;
  position: relative;
  transition: all 0.15s;
}
.shift-check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.shift-check input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.shift-check:hover { color: var(--gold); }

.form-required { color: var(--gold); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 28px 0; }
.form-section-label { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block; }
.btn-submit { width: 100%; background: var(--gold); color: var(--black); border: 2px solid var(--gold); padding: 16px; font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.22s; margin-top: 8px; }
.btn-submit:hover:not(:disabled) { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,146,42,0.35); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-msg { display: none; padding: 14px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-top: 16px; text-align: center; }
.form-msg.success { display: block; background: rgba(22,160,89,0.08); color: #1a7a45; border: 1px solid rgba(22,160,89,0.2); }
.form-msg.error { display: block; background: rgba(196,30,30,0.08); color: var(--red); border: 1px solid rgba(196,30,30,0.2); }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer { background: var(--black); color: var(--white); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.35fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.16); color: var(--gold-lt); transition: 0.2s; }
.footer-social a:hover { border-color: var(--gold-lt); background: rgba(255,198,69,0.1); }
.footer-nav h4, .footer-col h4, .footer-contact h4 { color: var(--gold-lt); font-family: var(--font); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-nav ul li, .footer-col li { margin-bottom: 8px; }
.footer-nav ul li a, .footer-col li a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.18s; }
.footer-nav ul li a:hover, .footer-col li a:hover { color: var(--gold-lt); }
.footer-col p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.75; margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold-lt); }
.footer-contact p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.footer-contact a { color: var(--gold-lt); }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Show hamburger — 6-item nav needs early collapse */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 22px 28px;
    gap: 2px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: flex; justify-content: flex-start;
    height: 50px; font-size: 16px; padding: 0 14px;
    border-radius: var(--radius-sm);
  }
  /* Gold pipe separator between nav items */
.nav-links li + li::before {
  content: '|';
  color: var(--gold);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.5;
  margin-right: 2px;
  pointer-events: none;
}
/* Don't show separator before the CTA */
.nav-links li:has(.nav-cta)::before { display: none; }

.nav-links li a::after { display: none; }
  .nav-cta {
    justify-content: center !important;
    margin-left: 0 !important;
    width: 100%;
    height: 50px !important;
    border-radius: var(--radius-sm) !important;
  }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .form-card { padding: 28px 20px; }
  .section-pad { padding: 28px 0; }
  .section-pad-sm { padding: 18px 0; }
  .section-pad-lg { padding: 36px 0; }
  .container { padding: 0 16px; }
}
