:root {
  --accent: #172cb5;
  --accent-dark: #0f1f86;
  --navy: #000f6f;
  --red: #c21919;
  --page-bg: #1e73be;
  --text: #3c4858;
  --heading: #2a2a2a;
  --muted: #6b7280;
  --card: #ffffff;
  --radius: 6px;
  --shadow: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
}

h1, h2, h3, h4 {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 .75rem;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--accent); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding: 12px 0;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none;
  font-family: "Roboto Slab", Georgia, serif; font-size: 1.125rem; font-weight: 700;
}
.brand:hover { color: #fff; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; }
.nav-link {
  color: #fff; text-decoration: none; font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .75rem; border-radius: 4px;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.nav-link svg { width: 14px; height: 14px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(70vh, 620px);
  display: flex; align-items: center;
  padding: 120px 0 140px;
  background: #222 center / cover no-repeat;
  color: #fff; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 6vw, 3.75rem); margin-bottom: 1rem; }
.hero p { max-width: 760px; margin: 0 auto; font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 400; }
.hero--home { background-image: url("img/group-camping.jpg"); }
.hero--faq { background-image: url("img/matterhorn.jpg"); min-height: min(45vh, 420px); }

/* ---------- Raised content card ---------- */
.main-raised {
  position: relative; z-index: 2;
  background: var(--card);
  margin: -80px 16px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 1172px) {
  .main-raised { max-width: 1140px; margin-left: auto; margin-right: auto; }
}

section { padding: 64px 0; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.section-lead {
  text-align: center; max-width: 760px; margin: 0 auto 3rem;
  color: var(--muted); font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature { text-align: center; }
.feature .icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  color: var(--accent);
}
.feature .icon svg { width: 48px; height: 48px; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin: 0; }
.feature cite { display: block; font-style: normal; font-weight: 500; margin-top: .25rem; }
.feature a.feature-link { text-decoration: none; }
.feature a.feature-link:hover h3 { color: var(--accent); }

.btn {
  display: inline-block; margin-top: .75rem;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em;
  padding: .7rem 1.4rem; border-radius: 3px;
  box-shadow: 0 2px 2px 0 rgba(23, 44, 181, .14), 0 3px 1px -2px rgba(23, 44, 181, .2), 0 1px 5px 0 rgba(23, 44, 181, .12);
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Programs ---------- */
.programs { background: #f6f7fb; }
.program-grid {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.program { text-align: center; }
.program img { height: 180px; width: auto; margin: 0 auto 1rem; object-fit: contain; }
.program h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.program .ages { margin: 0 0 .5rem; font-weight: 500; }
.patrols { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.patrols li { padding: .1rem 0; }

/* ---------- Meeting / contact cover ---------- */
.cover {
  position: relative;
  background: #333 center / cover no-repeat;
  background-image: url("img/mountains-1024.jpg");
  background-image: image-set(url("img/mountains-1024.jpg") 1x, url("img/mountains-2048.jpg") 2x);
  padding: 80px 0;
}
.cover-panel {
  background: rgba(255, 255, 255, .93);
  border-radius: var(--radius);
  max-width: 620px; margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.cover-panel h2 { font-size: 1.5rem; }
.meeting { color: var(--red); font-weight: 500; font-size: 1.1rem; margin: .25rem 0; }
.contact { color: var(--navy); margin-top: 1.5rem; }
.contact p { margin: .15rem 0; }
.contact .role { font-weight: 500; }
.contact a { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.links { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e3e5ee; }
.links p { margin: .35rem 0; }

/* ---------- Advancement graphic ---------- */
.advancement { padding: 48px 0; }
.advancement img { margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-intro { text-align: center; color: var(--muted); margin: 0 auto 2.5rem; max-width: 680px; }
.faq details {
  border: 1px solid #e3e5ee; border-radius: var(--radius);
  margin-bottom: .75rem; background: #fff;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font-family: "Roboto Slab", Georgia, serif; font-weight: 700; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq .answer { padding: 0 1.25rem 1.25rem; }
.faq .answer p:first-child { margin-top: 0; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-closing { text-align: center; margin: 2.5rem auto 0; max-width: 680px; font-weight: 400; }
.back-link { text-align: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #3c4858; color: #d6d9df;
  margin-top: 64px; padding: 2rem 0;
  font-size: .9rem; text-align: center;
}
.site-footer a { color: #fff; }
.site-footer p { margin: .25rem 0; }

@media (max-width: 600px) {
  .site-header .container { justify-content: center; }
  .brand span { font-size: 1rem; }
  .hero { padding-top: 150px; }
  section { padding: 48px 0; }
  .cover { padding: 48px 0; }
}
