/* ═══════════════════════════════════════════════════════
   Cub Scout Pack 62 · eriepack62.org · Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

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

:root {
  --navy:      #003f87;
  --navy-dark: #002a5c;
  --blue:      #0069b4;
  --gold:      #FFC72C;
  --gold-dark: #e6a800;
  --white:     #ffffff;
  --light:     #f5f7fa;
  --mid-gray:  #e8ecf0;
  --text-dark: #1a2332;
  --text-mid:  #4a5568;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,42,92,0.97);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.35); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}

.nav-badge {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

/* Real logo image — replaces text badge when images/pack62-logo.png is present */
.nav-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}

.foot-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.nav-label strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
}

.nav-label span {
  display: block;
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links > li > a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }

/* Dropdown */
.nav-links .dropdown { position: relative; }

.nav-links .dropdown > a::after {
  content: '▾';
  font-size: 11px;
  opacity: 0.65;
  margin-left: 1px;
}

/* Invisible bridge fills the gap so mouse doesn't escape the hover zone */
.nav-links .dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 16px;
  z-index: 1001;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: rgba(255,255,255,0.82) !important;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(255,199,44,0.1); color: var(--gold) !important; }

.dropdown-menu .dm-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-menu .dm-icon svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
  color: var(--navy) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background: var(--navy-dark);
  padding: 60px 24px 32px;
}

.foot-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.foot-brand { display: flex; flex-direction: column; gap: 14px; }

.foot-logo { display: flex; align-items: center; gap: 12px; }

.foot-badge {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12px;
  color: var(--navy);
  flex-shrink: 0;
}

.foot-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: white;
  line-height: 1.4;
}

.foot-brand > p {
  color: rgba(255,255,255,0.58);
  font-size: 0.87rem;
  line-height: 1.78;
  max-width: 275px;
}

.socials { display: flex; gap: 10px; }

.soc {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: all 0.2s;
}

.soc:hover { background: var(--gold); color: var(--navy); }

.foot-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: white;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.foot-col a {
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}

.foot-col a:hover { color: var(--gold); }
.foot-col .muted { color: rgba(255,255,255,0.38); font-size: 0.84rem; cursor: default; line-height: 1.5; }

.foot-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.35);
  font-size: 0.79rem;
}

.foot-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.foot-bottom a:hover { color: var(--gold); }

/* ── BUTTONS ─────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 15px 36px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,199,44,0.38);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: white;
  padding: 15px 36px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-navy:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,63,135,0.32);
}

.btn-ghost {
  background: transparent;
  color: white;
  padding: 15px 36px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.55);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 13px 30px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ── SECTION UTILITIES ───────────────────── */
.sec { padding: 88px 24px; position: relative; }
.sec-wrap { max-width: 1200px; margin: 0 auto; }

/* Section-pad used by new pages — same rhythm */
.section-pad { padding: 88px 24px; position: relative; }
.section-pad .sec-wrap,
.section-pad > .inner { max-width: 1200px; margin: 0 auto; }

/* Subtle divider between same-color adjacent sections */
.sec + .sec,
.section-pad + .section-pad,
.sec + .section-pad,
.section-pad + .sec {
  border-top: 1px solid rgba(0,0,0,0.07);
}

.sec-tag {
  display: inline-block;
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sec-h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.sec-lead {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.75;
}

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  padding: 140px 24px 72px;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.page-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0,42,92,0.94) 0%, rgba(0,70,180,0.55) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s ease forwards;
}

.page-hero h1 .accent { color: var(--gold); }

.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s ease forwards;
  line-height: 1.7;
}

.page-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s ease forwards;
}

/* ── BREADCRUMB ──────────────────────────── */
.breadcrumb {
  background: var(--light);
  padding: 12px 24px;
  border-bottom: 1px solid var(--mid-gray);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep { opacity: 0.5; }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sec { padding: 64px 24px; }
  .page-hero { padding: 120px 24px 56px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 20px 24px 32px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.open > li > a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: all;
    border-radius: 8px;
    margin-top: 4px;
    margin-left: 12px;
    display: none;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.1);
  }

  .dropdown.open .dropdown-menu { display: block; }

  .foot-top { grid-template-columns: 1fr; }
  .page-hero { padding: 110px 24px 48px; }
  .page-hero-btns { flex-direction: column; }
  .btn-gold, .btn-ghost, .btn-navy, .btn-outline-gold { justify-content: center; text-align: center; }
}
