/* ==========================================================================
   Pack 1213 — site stylesheet
   No frameworks, no theme builder. Everything the site needs is in this
   one file. Sections below are ordered top-to-bottom the way they read
   on the page: variables, layout basics, header/nav, hero, content
   sections, den table, FAQ, footer, then small-screen adjustments.
   ========================================================================== */

/* ---------- 1. Colors, fonts, spacing -----------------------------------
   Change a value here and it updates everywhere it's used.               */
:root {
  --forest:      #1F3A2E;   /* dark green - header, footer, nav */
  --forest-dark: #14261D;   /* hover state for the above */
  --khaki:       #F3EEE1;   /* page background */
  --cream:       #FFFFFF;   /* card background */
  --ink:         #24261F;   /* body text */
  --red:         #B3262A;   /* buttons, links, accent stripe */
  --gold:        #C9A227;   /* accent stripe, dividers */

  /* one color per den rank - used as a left-border stripe on the dens table */
  --rank-lion:    #E3A72E;
  --rank-tiger:   #E4632F;
  --rank-wolf:    #A6192E;
  --rank-bear:    #4E8C82;
  --rank-webelos: #1B3A6B;
  --rank-aol:     #6B6B6B;

  --font-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--khaki);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.6em;
}

a { color: var(--red); }
a:hover { color: var(--forest); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; display: block; }

/* A dashed "stitched" rule used to separate sections - the one signature
   detail carried through the whole site. */
.stitch {
  border: 0;
  border-top: 2px dashed var(--gold);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- 2. Header / navigation --------------------------------------- */
header.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}
.brand img { height: 44px; width: auto; border-radius: 4px; }
.brand:hover { color: var(--gold); }

/* nav links styled like little fabric patch tabs */
.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 10px 16px 8px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-social a { color: #fff; }
.nav-social a:hover { color: var(--gold); }
.nav-social svg { width: 20px; height: 20px; fill: currentColor; }

/* Mobile menu - pure CSS checkbox toggle, no JavaScript needed */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- 3. Hero -------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest) 60%, var(--forest-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px 50px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.3em;
}
.hero p {
  font-size: 1.15rem;
  color: var(--khaki);
  margin: 0 0 1.4em;
}
.hero .btn { margin-bottom: 1.6em; }
.hero .patch img { max-height: 130px; margin: 0 auto; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--gold); color: var(--forest); }

/* ---------- 4. General content sections ------------------------------------ */
section { padding: 50px 0; }

.section-title {
  text-align: center;
  margin-bottom: 0.3em;
}
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2em;
  color: #4b4d42;
}

.about-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-body p { margin: 0 0 1em; }

.school-list {
  columns: 2;
  max-width: 560px;
  margin: 1.5em auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.school-list li {
  padding: 4px 0;
  border-bottom: 1px dotted #c9c3af;
}

/* Contact + map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.contact-card {
  background: var(--cream);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.contact-card .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.contact-card .row + .row { border-top: 1px solid #eee6d4; }
.contact-card svg { width: 26px; height: 26px; fill: var(--red); flex-shrink: 0; }
.contact-card h6 {
  margin: 0 0 2px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* ---------- 5. Den schedule table ------------------------------------------
   Each rank gets a colored left-border stripe (set via a class on the
   <tr>) instead of a full-row fill, so the table stays easy to read and
   easy to restyle - change a color once in the :root list above.        */
.den-table-wrap { overflow-x: auto; }
.den-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.den-table caption { display: none; }
.den-table th, .den-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ece6d5;
}
.den-table thead th {
  background: var(--forest);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-weight: 400;
}
.den-table tbody tr td:first-child {
  box-shadow: inset 8px 0 0 0 transparent;
  font-weight: 600;
}

.den-table tbody tr.rank-lion    td:first-child { box-shadow: inset 8px 0 0 0 var(--rank-lion); }
.den-table tbody tr.rank-tiger   td:first-child { box-shadow: inset 8px 0 0 0 var(--rank-tiger); }
.den-table tbody tr.rank-wolf    td:first-child { box-shadow: inset 8px 0 0 0 var(--rank-wolf); }
.den-table tbody tr.rank-bear    td:first-child { box-shadow: inset 8px 0 0 0 var(--rank-bear); }
.den-table tbody tr.rank-webelos td:first-child { box-shadow: inset 8px 0 0 0 var(--rank-webelos); }
.den-table tbody tr.rank-aol     td:first-child { box-shadow: inset 8px 0 0 0 var(--rank-aol); }

.den-note {
  margin-top: 20px;
  color: var(--red);
}

/* ---------- 6. FAQ ----------------------------------------------------------
   Built with native <details>/<summary> - expand/collapse works with no
   JavaScript and no external accordion library.                         */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--cream);
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--forest);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--ink);
}

/* ---------- 7. Links list ---------------------------------------------------- */
.link-list {
  max-width: 620px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.link-list li {
  background: var(--cream);
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.link-list a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.link-list a:hover { color: var(--red); }

/* ---------- 8. Calendar page ------------------------------------------------- */
.calendar-wrap {
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.calendar-wrap iframe { width: 100%; border: 0; display: block; }

/* ---------- 9. Footer ---------------------------------------------------------- */
footer.site-footer {
  background: var(--forest-dark);
  color: var(--khaki);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.9rem;
}

/* ---------- 10. Small screens -------------------------------------------------- */
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .school-list { columns: 1; }

  .hamburger { display: flex; }

  .nav-links, .nav-social { display: none; width: 100%; }
  .nav-bar { flex-wrap: wrap; }

  .nav-toggle:checked ~ .nav-links,
  .nav-toggle:checked ~ .nav-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 12px;
  }
  .nav-toggle:checked ~ .nav-social { flex-direction: row; padding-left: 16px; }
}
