/* ============================================================
   Cub Scout Pack 1125 — "Leaders and Trailblazers", Dumfries VA
   Static theme. Mobile-first, no frameworks, no build step.
   Palette: navy #003366 · gold #FFCC00 · red #CE1126 (accents)
            forest #0A4F39 · cream #FFFEF7
   Type: Montserrat (headings), Inter (body) via Google Fonts
   ============================================================ */

:root {
  --navy: #003366;
  --navy-deep: #002244;
  --gold: #FFCC00;
  --gold-dark: #e0b400;
  --gold-soft: #fff3c4;
  --red: #CE1126;
  --forest: #0A4F39;
  --forest-soft: #e7f0eb;
  --cream: #FFFEF7;
  --white: #ffffff;
  --ink: #22303f;
  --muted: #5f6b78;
  --line: #e8dfc9;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(0, 51, 102, .35);
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: 2rem; font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--navy); }
a:hover { color: var(--forest); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: #fff;
}
.brand-badge {
  flex: none;
  min-width: 52px; height: 46px;
  padding: 0 .5rem;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 900; font-size: 1rem;
}
.brand-name {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; line-height: 1.25;
}
.brand-sub {
  display: block;
  font-size: .72rem; color: var(--gold); letter-spacing: .04em;
}

.nav-toggle {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .35);
  color: #fff;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  padding: .35rem .6rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
}
.site-nav.open ul { display: flex; }
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255, 204, 0, .12);
  color: var(--gold);
}

/* ---------- Hero (home page) ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero::after {
  content: ""; display: block;
  width: 120px; height: 4px;
  background: var(--gold);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: .3em; }
.hero .tagline {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: .8em;
}
.hero p.lede { max-width: 640px; margin: 0 auto 1.6em; color: #dbe6f2; }
.hero .cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Slim navy band for interior pages */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #dbe6f2; margin-bottom: 0; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 2.75rem 0; }
.section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.section-head p { color: var(--muted); }
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest);
  margin-bottom: .6em;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.8rem; }

/* Pillar cards: colored top border per pillar */
.pillars .card { border-top: 6px solid var(--gold); }
.pillars .card:nth-child(2) { border-top-color: var(--navy); }
.pillars .card:nth-child(3) { border-top-color: var(--forest); }
.pillars .card:nth-child(4) { border-top-color: var(--red); }

/* Quick-info cards */
.info-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.info-card { text-align: center; }
.info-card .label {
  font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--forest);
}
.info-card .value {
  font-size: 1.05rem; font-weight: 600; color: var(--navy); margin: .3em 0 0;
}

/* ---------- Coming-up strip ---------- */
.strip { background: var(--gold); color: var(--navy); padding: 1.75rem 0; }
.strip h2 { color: var(--navy); margin-bottom: .6em; font-size: 1.3rem; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.strip li { font-weight: 600; }
.strip li strong { font-weight: 800; }

/* ---------- Steps (join page) ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  position: relative; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.25rem; top: 1.25rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-weight: 900;
  display: grid; place-items: center; font-size: 1.2rem;
}

/* ---------- Leader / link lists ---------- */
.leader-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.leader-list li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.leader-list .role {
  display: block; font-family: var(--font-head); font-weight: 800;
  color: var(--navy); font-size: 1rem;
}
.leader-list .who { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.ph {
  aspect-ratio: 4 / 3;
  background: #d8d4c8;
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--muted); font-weight: 600; font-size: .9rem;
  border: 2px dashed #b9b2a0;
  text-align: center; padding: .5rem;
}
figure { margin: 0; }
figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Calendar ---------- */
.cal-frame {
  width: 100%; height: 600px; border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow); background: #fff;
}

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card h2 { color: var(--gold); }
.contact-card a { color: var(--gold); font-weight: 700; }
.contact-card p { color: #dbe6f2; }
.contact-card .big-email { font-size: 1.35rem; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: #cfe0f2;
  padding: 2rem 0; margin-top: 3rem;
}
.site-footer p { margin: 0 0 .4em; font-size: .9rem; text-align: center; }
.site-footer a { color: var(--gold); }
.footer-note { color: #8fa8c4 !important; font-size: .8rem !important; }

/* ---------- Pack branding images (cropped from the official Pack 1125 flyer) ---------- */
.hero-logo {
  display: block;
  width: min(320px, 70vw);
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.section-logo {
  display: block;
  width: min(280px, 65vw);
  margin: 0 0 1.25rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.den-badge {
  display: block;
  width: 120px;
  margin: 0 auto .75rem;
}
.den-badge-inline {
  width: 84px;
  margin: .75rem auto 0;
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.notice {
  background: var(--gold-soft);
  border-left: 5px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 3.2rem; }
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; flex-direction: row; background: transparent; }
  .site-nav a { border-top: 0; padding: .5rem .8rem; border-radius: 8px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .strip ul { grid-template-columns: repeat(3, 1fr); text-align: center; }
}

@media (min-width: 1024px) {
  .pillars.cards { grid-template-columns: repeat(4, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Accessibility: skip link (visible on keyboard focus only) ---------- */
.skip-link {
  position: absolute; left: .5rem; top: -3rem; z-index: 100;
  background: var(--gold); color: var(--navy-deep);
  padding: .6rem 1rem; font-weight: 700; text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus { top: .5rem; }

/* ---------- Footer page links ---------- */
.footer-nav ul {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem;
}
.footer-nav a { color: #cfe0f2; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; }

/* ---------- FAQ accordion (native <details>, no JavaScript) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--gold); border-radius: var(--radius);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 2.75rem 1rem 1.25rem; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--forest);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 1.25rem 1.1rem; }

/* ---------- Long-form text (privacy page) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- Calendar fallback note ---------- */
.cal-fallback { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .75rem; }

/* ---------- Small print ---------- */
.fine-print { font-size: .85rem; color: var(--muted); }

/* ---------- Row of buttons that wraps cleanly on phones ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Open volunteer role in the leader list ---------- */
.leader-list .open-role { border-style: dashed; border-color: var(--gold-dark); background: var(--gold-soft); }
.leader-list .open-role .who { color: var(--ink); }

/* ---------- Gallery feature photos ---------- */
.gallery-feature { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.gallery-feature figure { margin: 0; }
.gallery-feature img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
}
@media (min-width: 720px) { .gallery-feature { max-width: 760px; } }
@media (min-width: 720px) { .gallery-feature.wide { max-width: none; } }

/* ---------- Readability & mobile fixes (Oct 2026 audit) ---------- */
/* Minimum ~13px for small labels; WCAG AA contrast for placeholder text. */
.brand-sub { font-size: .82rem; }
.kicker, .info-card .label { font-size: .8125rem; }
.footer-note { font-size: .85rem !important; }
.ph { color: #3d4652; }

/* At-a-glance cards: 2 columns on tablets, 4 on desktop; long emails wrap instead of
   pushing the page wider than the screen. */
.info-card .value { overflow-wrap: anywhere; }
@media (min-width: 720px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Comfortable tap targets (44x44px) on phones. */
.nav-toggle { min-width: 44px; min-height: 44px; }
.footer-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .35rem; }
.footer-nav ul { gap: 0 .5rem; }

/* Footer link to the site's source on GitHub. */
.footer-github a { color: #cfe0f2; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.footer-github a:hover { color: var(--gold); }
.footer-github svg { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* ---------- Consistent page banners ----------
   Same banner height on every inner page (the home page uses the larger .hero on purpose).
   Content is centered vertically so a one-line subtitle doesn't make the title jump. */
.page-head { display: flex; align-items: center; min-height: 15.5rem; }
.page-head > .wrap { width: 100%; }
@media (min-width: 720px) { .page-head { min-height: 12.5rem; } }

/* ---------- Gallery: "send us photos" note (was an inline style; CSP blocks inline styles) ---------- */
.photo-note { color: var(--muted); font-size: .9rem; }
