/* Troop 40 — palette pulled from the troop logo */
:root {
  --red: #d7262e;        /* lettering & thermometer */
  --red-dark: #b01e25;
  --pine: #1f4a2c;       /* evergreen trees */
  --pine-light: #2f6a3f;
  --sky: #8fdcdc;        /* tent */
  --sky-soft: #eaf7f7;
  --ink: #1b1b1b;        /* arrowhead outline */
  --muted: #5b6460;
  --bg: #ffffff;
  --line: #e5ebe8;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pine-light); }

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

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.8rem; color: var(--muted); }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--sky-soft); }
.nav a[aria-current="page"] { background: var(--pine); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky-soft) 0%, #fff 100%);
  padding: 72px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--pine);
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-logo { justify-self: center; max-width: 300px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { color: var(--pine); border: 2px solid var(--pine); margin-left: 8px; }
.btn-ghost:hover { background: var(--pine); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { font-size: 1.8rem; color: var(--pine); margin: 0 0 8px; }
.section-intro { color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.no-top-pad { padding-top: 0; }

/* Follows .section-intro; negative top margin tightens the gap to ~12px */
.meeting-info { color: var(--muted); margin: -24px 0 36px; max-width: 40em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sky-soft);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.feature {
  background: var(--pine);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.feature h2 { margin: 0 0 10px; font-size: 1.7rem; }
.feature p { margin: 0; color: #d6e6db; max-width: 38em; }
.feature .eyebrow { color: var(--sky); margin: 0 0 12px; }
.feature .btn-primary { white-space: nowrap; }

.values { background: #fafcfb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 32px; }
.values li { padding-left: 28px; position: relative; }
.values li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red);
}

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--sky-soft); padding: 52px 0 40px; }
.page-header h1 { margin: 0 0 6px; color: var(--pine); font-size: 2.2rem; }
.page-header p { margin: 0; color: var(--muted); }

/* ---------- Events ---------- */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.date {
  text-align: center;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  padding: 8px 0;
  line-height: 1.1;
}
.date .m { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.date .d { display: block; font-size: 1.6rem; font-weight: 800; }
.event h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.event .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 6px; }
.event p { margin: 0; }

.tba {
  margin: 0;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

/* Troop 40 in the News: date box shows month + year */
.in-the-news .event .date { background: var(--ink); }
.date .y { display: block; font-size: 1.1rem; font-weight: 800; padding: 4px 0; }
.eagle-projects { margin: 0 0 6px; padding-left: 1.2em; }
.eagle-projects li { margin-bottom: 2px; }
.event .read-more { margin-top: 8px; font-weight: 600; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
}
.contact-card img { width: 120px; margin: 0 auto 20px; }
.contact-card h2 { margin: 0 0 10px; color: var(--pine); }
.contact-card p { color: var(--muted); margin: 0 0 26px; }
.email { display: block; margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
.social { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.social h3 { margin: 0 0 8px; color: var(--pine); font-size: 1.2rem; }
.contact-card .social p { margin: 0 0 20px; }
.btn-facebook { color: var(--pine); border: 2px solid var(--pine); }
.btn-facebook:hover { background: var(--pine); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--red);
  background: var(--ink);
  color: #c9cfcc;
  padding: 28px 0;
  font-size: 0.9rem;
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .container { flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
  .hero { padding: 48px 0; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-logo { max-width: 200px; grid-row: 1; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .feature { grid-template-columns: 1fr; padding: 32px; }
}
