/* ==========================================================
   Pack 226 — Catholic Cub Scouts · Bedford, TX
   Design system: "Patch & Banner" — St. Michael edition
   Palette from the parish style guide:
     Red #B00000 · Gold #FEAA16 · Grey #7C756D · Green #006E00
   (Deeper/paler steps below are tints & shades of those four.)
   ========================================================== */

:root {
  --brand: #b00000;        /* parish red — links & small accents */
  --brand-deep: #6b1519;   /* deep maroon sampled from the pack badge ring */
  --brand-soft: #990f0f;   /* shade of parish red */
  --gold: #feaa16;         /* parish gold */
  --gold-deep: #a97407;    /* shade: gold text on light bg */
  --gold-pale: #ffd685;    /* tint: gold text on red bg */
  --green: #006e00;        /* parish green */
  --dark: #171213;         /* warm near-black sampled from the pack badge field */
  --dark-deep: #100c0d;    /* shade: footer, mobile nav */
  --dark-soft: #2c2427;    /* shade: hover states */
  --grey: #7c756d;         /* parish grey: secondary text */
  --cream: #fbf5e9;
  --paper: #fffdf6;
  --ink: #2b2420;
  --line: rgba(124, 117, 109, 0.32);
  --radius: 16px;
  --shadow: 0 10px 24px -14px rgba(80, 24, 12, 0.35);
  --font-display: "Alfa Slab One", "Rockwell", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-color: rgba(254, 170, 22, 0.75); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--brand-deep); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.18rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--grey); max-width: 62ch; }
.small { font-size: 0.9rem; color: #6e6760; }

/* Pennant eyebrow — parish green */
.pennant {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 26px 6px 14px;
  margin-bottom: 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
}
.on-brand .pennant { background: var(--gold); color: #4a2000; }

/* Fleur divider */
.fleur {
  display: flex; align-items: center; gap: 16px;
  color: var(--gold-deep);
  margin: 0 auto;
  max-width: 420px;
  font-size: 1.3rem;
}
.fleur::before, .fleur::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Header ---------- */
.ribbon {
  background: var(--gold);
  color: #3c2500;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.03em;
}
.ribbon a { color: #3c2500; text-decoration-color: rgba(60,37,0,0.5); }

header.site {
  background: var(--dark);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.navbar { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.brand-name { font-family: var(--font-display); color: #fff; font-size: 1.25rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-pale); }

nav.main { margin-left: auto; }
nav.main ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
nav.main a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: #efe8e2; text-decoration: none; font-weight: 700; font-size: 0.96rem;
}
nav.main a:hover { background: var(--dark-soft); color: #fff; }
nav.main a[aria-current="page"] { color: var(--gold-pale); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
nav.main a.cta {
  background: var(--gold); color: #3c2500; margin-left: 8px;
}
nav.main a.cta:hover { background: var(--gold-pale); }

.menu-btn {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--gold); color: var(--gold-pale);
  font: 700 0.9rem var(--font-body); letter-spacing: 0.08em;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
}

@media (max-width: 880px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--dark-deep); margin: 0; padding: 10px 22px 18px; box-shadow: 0 14px 20px rgba(0,0,0,0.3); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; }
  nav.main a { padding: 12px 10px; font-size: 1.05rem; }
  nav.main a.cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(254, 170, 22, 0.15), transparent 46%),
    var(--cream);
  border-bottom: 4px solid var(--gold);
}
.hero .sunburst {
  position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg, rgba(254,170,22,0.07) 0deg 5deg, transparent 5deg 12deg);
  -webkit-mask-image: radial-gradient(circle at 76% 45%, black 0 30%, transparent 62%);
          mask-image: radial-gradient(circle at 76% 45%, black 0 30%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 40px; align-items: center;
  padding: 64px 0 70px;
}
.hero-emblem { width: min(360px, 80%); margin: 0 auto; filter: drop-shadow(0 18px 26px rgba(70, 18, 10, 0.3)); border-radius: 50%; }
.hero h1 { max-width: 14ch; }
.hero .tagline { font-size: 1.22rem; color: var(--grey); max-width: 52ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; font-size: 1rem;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #3c2500; box-shadow: var(--shadow); }
.btn-gold:hover { background: var(--gold-pale); color: #3c2500; }
.btn-line { border: 2px solid var(--brand); color: var(--brand); }
.btn-line:hover { background: var(--brand); color: #fff; }
.on-brand .btn-line { border-color: var(--gold-pale); color: var(--gold-pale); }
.on-brand .btn-line:hover { background: var(--gold-pale); color: #4a2000; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 48px; text-align: center; }
  .hero h1, .hero .tagline { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .hero-emblem { order: -1; width: min(240px, 62%); }
}

/* Ministry lockup (St. Michael crest + name) */
.ministry-of {
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green); margin: 0 0 8px;
}
.stm-lockup {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 20px; text-decoration: none;
}
.stm-lockup img { width: 74px; height: auto; filter: drop-shadow(0 3px 6px rgba(70,18,10,0.25)); }
.stm-name {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--gold-deep); font-size: 1.45rem; line-height: 1.05; text-align: left;
}
.stm-name small {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.2em; color: var(--grey); margin-top: 5px;
}
.stm-lockup:hover .stm-name { color: var(--brand); }

/* ---------- Sections ---------- */
section.band { padding: 64px 0; }
section.band.tight { padding: 46px 0; }
.on-brand { background: var(--dark); color: #eae3dc; }
.on-brand h2, .on-brand h3 { color: #fff; }
.on-brand .lede, .on-brand p { color: #e2dad2; }
.on-brand a { color: var(--gold-pale); }
.on-deep { background: var(--dark-deep); }

/* Signature: the 22:6 verse band — deep maroon like the badge ring */
.verse-band { position: relative; overflow: hidden; background: var(--brand-deep); }
.verse-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.verse-num {
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 12vw, 8.5rem);
  line-height: 0.95;
  color: var(--gold);
  text-shadow: 0 4px 0 rgba(0,0,0,0.3);
}
.verse-num small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-pale); text-shadow: none; margin-top: 10px; }
.verse-quote { font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.5; color: #fff; max-width: 30ch; margin: 0 0 14px; }
.verse-quote em { color: var(--gold-pale); font-style: normal; }
@media (max-width: 720px) {
  .verse-grid { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .verse-quote { margin: 0 auto 14px; }
}

/* Patch cards */
.card-grid { display: grid; gap: 22px; margin-top: 30px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .cols-3 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr; } }

.patch {
  position: relative;
  background: var(--paper);
  border: 3px solid rgba(124, 117, 109, 0.3);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
}
.patch::before {
  content: "";
  position: absolute; inset: 7px;
  border: 2px dashed rgba(169, 116, 7, 0.5);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}
.patch h3 { margin-top: 0; }
.patch ul { margin: 0; padding-left: 1.2em; }
.patch li { margin-bottom: 6px; }
.patch .badge {
  display: inline-block; font-size: 1.5rem; line-height: 1;
  margin-bottom: 12px; color: var(--gold-deep);
}
.on-brand .patch { background: rgba(255, 253, 246, 0.06); border-color: rgba(255, 214, 133, 0.4); box-shadow: none; }
.on-brand .patch::before { border-color: rgba(255, 214, 133, 0.4); }
.on-brand .patch h3 { color: var(--gold-pale); }

/* Info strip (who / when / where) */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .info-strip { grid-template-columns: 1fr; } }
.info-strip .patch p { margin-bottom: 4px; }
.kicker { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 6px; }

/* Oath & Law */
.oath-quote {
  font-size: 1.15rem; line-height: 1.8;
  border-left: 4px solid var(--gold);
  padding-left: 20px; margin: 0;
  color: var(--ink);
}
.law-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.law-chips button {
  background: var(--dark); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  padding: 7px 14px; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
}
.law-chips button:hover { background: var(--dark-soft); }
.law-chips button:active { transform: translateY(1px); }
.law-chips button.active { background: var(--gold); color: #3c2500; }
.law-def {
  margin-top: 18px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  min-height: 3.4em;
}
.law-def strong { color: var(--brand-deep); }

/* Steps (Join page) */
.steps { counter-reset: step; display: grid; gap: 20px; margin-top: 26px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 1.5rem;
  color: #3c2500; background: var(--gold);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 var(--gold-deep);
}
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 6px; }

/* Den table */
.den-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.den-table th, .den-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.den-table th { background: var(--dark); color: var(--gold-pale); font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; }
.den-table tr:last-child td { border-bottom: none; }

/* Calendar */
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 980px) { .month-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .month-grid { grid-template-columns: 1fr; } }
.month { padding-top: 20px; }
.month h3 { font-size: 1.3rem; border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: 4px; margin-bottom: 12px; }
.month ul { list-style: none; margin: 0; padding: 0; position: relative; }
.month li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 7px 10px; margin-bottom: 6px; border-radius: 8px; font-size: 0.98rem; }
.month li:last-child { margin-bottom: 0; }
.month .d { font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
/* Event categories — colored like the pack's Excel calendar */
.ev-pack { background: #f8ecbb; }     .ev-pack .d { color: #6d5a12; }
.ev-district { background: #d8e6ef; } .ev-district .d { color: #156082; }
.ev-parish { background: #f3dcd7; }   .ev-parish .d { color: #8f2f22; }
.ev-extra { background: #ddefdb; }    .ev-extra .d { color: #196b24; }
.key { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 6px; margin: 0 4px 4px 0; }
.key.ev-pack { color: #6d5a12; } .key.ev-district { color: #156082; }
.key.ev-parish { color: #8f2f22; } .key.ev-extra { color: #196b24; }

/* Emblem cards (faith page) */
.emblem { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; }
.emblem .medal-img { width: 104px; height: auto; filter: drop-shadow(0 6px 10px rgba(70,18,10,0.28)); }
@media (max-width: 480px) { .emblem { grid-template-columns: 84px 1fr; } .emblem .medal-img { width: 84px; } }

/* Quote block */
.mission {
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 6px solid var(--gold);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  font-size: 1.12rem;
  margin: 26px 0 0;
}
.mission cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--gold-deep); font-size: 0.92rem; }

/* Resource list */
.res-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.res-list li { background: var(--paper); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.res-list strong { display: block; color: var(--brand-deep); }

/* CTA banner */
.cta-banner { text-align: center; }

/* ---------- Footer ---------- */
footer.site { background: var(--dark-deep); color: #d8d0c9; padding: 50px 0 30px; border-top: 4px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site h3 { color: var(--gold-pale); font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
footer.site a { color: #fff; text-decoration-color: rgba(255,214,133,0.6); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.foot-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.82rem; color: #a19790; }

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.maxw { max-width: 70ch; }
.maxw.center { margin-left: auto; margin-right: auto; }
