/* ===========================
   Scouting Color Palette
   from ~/Library/Colors/Scouts.clr
   =========================== */
:root {
  --scouting-red: #CE1126;
  --scouting-blue: #003F87;
  --scouting-dark-blue: #003366;
  --scouting-tan: #D6CEBD;
  --scouting-light-tan: #E9E9E4;
  --scouting-warm-gray: #515354;
  --scouting-pale-gray: #858787;
  --scouting-dark-gray: #232528;
  --scouting-dark-tan: #AD9D7B;
  --scouting-pale-blue: #9AB3D5;
  --cubscouts-gold: #FFCE04;
  --scouts-olive: #243E2C;
  --white: #FFFFFF;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--scouting-dark-gray);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  background: var(--scouting-dark-blue);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  padding: 1rem 0;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--white);
}

.site-title span {
  color: var(--cubscouts-gold);
}

/* Hamburger menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.site-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  padding: 1.2rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-bottom-color: var(--cubscouts-gold);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--scouting-dark-blue) 0%, var(--scouting-blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--cubscouts-gold);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--scouting-red);
  color: var(--white);
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.hero-cta:hover {
  background: #a80d1e;
  color: var(--white);
  transform: translateY(-1px);
}

/* ===========================
   Content
   =========================== */
.content-wrap {
  flex: 1;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--scouting-dark-blue);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--scouting-red);
}

.content h2 {
  font-size: 1.5rem;
  color: var(--scouting-dark-blue);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content h3 {
  font-size: 1.2rem;
  color: var(--scouting-blue);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content p {
  margin-bottom: 1rem;
}

.content ul, .content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.35rem;
}

.content blockquote {
  border-left: 4px solid var(--scouting-red);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--scouting-light-tan);
  color: var(--scouting-warm-gray);
  font-style: italic;
}

/* ===========================
   Info Cards (home page)
   =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.card {
  background: var(--scouting-light-tan);
  border-radius: 6px;
  padding: 1.75rem;
  border-top: 4px solid var(--scouting-red);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--scouting-dark-blue);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--scouting-warm-gray);
  font-size: 0.95rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--scouting-dark-gray);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--cubscouts-gold);
}

.site-footer a:hover {
  color: var(--white);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--scouting-dark-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 3.5rem 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .container {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1.5rem 1rem;
  }
}
