:root{
  /* Scouts BSA palette */
  --sand: #D6CEBD;
  --red:  #CE1126;
  --green:#243E2C;
  --navy: #003F87;
  --gray: #515354;

  /* Roles */
  --bg: var(--sand);
  --text: #171717;
  --muted: var(--gray);

  --primary: var(--navy);
  --secondary: var(--green);
  --accent: var(--red);

  --card: rgba(255,255,255,.70);
  --card2: rgba(255,255,255,.55);
  --border: rgba(0,0,0,.12);

  --radius: 18px;
  --max: 1100px;
  --shadow: 0 10px 24px rgba(0,0,0,.12);
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 10;
  background: rgba(214,206,189,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  color: var(--primary);
  font-weight: 900;
  letter-spacing: .2px;
  text-decoration: none;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 14px;
}

.nav a{
  color: var(--secondary);
  text-decoration:none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover{
  background: rgba(0,63,135,.10);
  color: var(--primary);
}

/* Hero */
.hero{
  padding: 54px 0 28px;
}

.kicker{
  margin:0 0 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero h1{
  margin:0 0 10px;
  color: var(--primary);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}

.subhead{
  margin:0 0 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 70ch;
}

/* Buttons */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration:none;
  cursor:pointer;
  box-shadow: var(--shadow);
}

.button:hover{ filter: brightness(1.05); }

.button.accent{ background: var(--accent); }
.button.ghost{
  background: transparent;
  color: var(--primary);
  border-color: rgba(0,63,135,.35);
  box-shadow: none;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sections */
.section{
  padding: 36px 0;
}

.section.alt{
  background: rgba(255,255,255,.25);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2{
  color: var(--secondary);
  margin: 0 0 10px;
  letter-spacing: .2px;
}

p{ line-height: 1.55; }

.muted{ color: var(--muted); }

/* Cards / grids */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3{
  margin: 0 0 8px;
  color: var(--primary);
}

.card p{ margin: 0 0 12px; color: var(--muted); }

.link{
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.link:hover{ text-decoration: underline; }

/* Footer */
.site-footer{
  padding: 26px 0;
  border-top: 1px solid var(--border);
  margin-top: 26px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

/* =====================================================
   SHARED SITE HEADER (MERGED – SAFE OVERRIDES ONLY)
   ===================================================== */

/* Scope EVERYTHING to .site-header so nothing else changes */
.site-header{
  background: #003F87;
  border-bottom: 4px solid #CE1126;
  color: #ffffff;
}

/* Header layout */
.site-header .header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
}

/* Brand (logo + text) */
.site-header .brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

/* Logo – FIXED SIZE so global img rules can't break it */
.site-header .brand-logo{
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
}

/* Brand text */
.site-header .brand-text{
  white-space: nowrap;
}

/* Navigation */
.site-header .nav{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header .nav a{
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.site-header .nav a:hover{
  filter: brightness(1.08);
}

.site-header .nav a[aria-current="page"]{
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================
   MOBILE OPTIMIZATIONS
   ========================= */

@media (max-width: 720px) {
  .site-header .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0 14px;
  }

  .site-header .nav{
    width: 100%;
    gap: 10px;
  }

  .site-header .nav a{
    padding: 10px 12px; /* bigger tap targets */
  }

  .site-header .brand-text{
    font-size: 1rem;
  }
}

.hero-img{
  width: min(900px, 100%);
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: block;
}
