/* ============================================================================
   East Texas Area Council — etacbsa.com
   Shared site styles.

   Built the same way as camppirtle.com: hand-rolled CSS, no framework, no build
   step, and no JavaScript anywhere on the site. The navigation dropdown is a
   native <details>, the mobile menu is a checkbox, and the unit finder is a
   plain GET form that hands off to beascout.scouting.org. That means the site
   is just files — Cloudflare Pages serves it with zero third-party requests.

   The look follows beascout.scouting.org rather than this council's old site:
   bright, illustrated and aimed at a parent who has never heard of Scouting.
   Every colour lives in the :root block below, so a rebrand is one edit.
   ========================================================================== */

:root {
  /* Scouting America core */
  --navy:        #003f87;
  --navy-deep:   #012c5e;
  --navy-soft:   #e7eef8;
  --red:         #ce1126;
  --red-deep:    #a50d1e;

  /* Landscape — these match hero-scene.svg */
  --sky-1:       #a9c4e4;
  --sky-2:       #dceaf5;
  --pine:        #2e6f4e;
  --pine-deep:   #1b4733;
  --pine-soft:   #e4f0e9;
  --lake:        #1d6f8f;
  --lake-soft:   #e0eef4;

  /* Neutrals */
  --sand:        #ece3d2;
  --sand-soft:   #f7f3e9;
  --ink:         #1d2433;
  --muted:       #5a6472;
  --line:        #dfe3ea;
  --white:       #ffffff;

  /* Program accents — used on programme cards and district cards */
  --cub:         #1f6fb2;
  --scoutsbsa:   #2e6f4e;
  --venturing:   #5b3a86;
  --exploring:   #c9741c;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --maxw:        1120px;

  --shadow:      0 12px 32px rgba(0, 35, 80, .12);
  --shadow-sm:   0 2px 10px rgba(0, 35, 80, .08);
  --shadow-lg:   0 20px 50px rgba(0, 35, 80, .16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

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

.lead { font-size: 1.12rem; color: var(--muted); }
.lead-lg { font-size: clamp(1.05rem, 2vw, 1.28rem); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 .6em;
}
.eyebrow--light { color: rgba(255,255,255,.85); }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Keyboard users get an obvious focus ring on every interactive thing. */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--white);
  padding: 12px 20px; z-index: 300;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ============================ HEADER & NAV ============================
   Six top-level links plus a "More" group. The group is a native
   <details>/<summary>, which gives keyboard and screen-reader behaviour for
   free with no ARIA scaffolding and no script. */

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--white); text-decoration: none;
  font-weight: 800; flex-shrink: 0;
}
.brand:hover { color: var(--white); }

/* The council shoulder patch is artwork on an opaque white background, so it
   sits on a white badge rather than directly on the navy header — otherwise it
   reads as a stray white rectangle. Same treatment camppirtle.com gives its
   camp logo. */
.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  display: block;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub {
  font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .78;
}

.nav { display: flex; align-items: center; gap: 2px; }

.nav a,
.nav summary {
  color: var(--white);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  display: block;
  white-space: nowrap;
}
.nav > a:hover,
.nav summary:hover { background: rgba(255,255,255,.15); color: var(--white); }

.nav-group { position: relative; }
.nav-group summary { cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after {
  content: ""; display: inline-block;
  width: 0; height: 0; margin-left: 7px; vertical-align: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-group[open] summary { background: rgba(255,255,255,.15); }

.nav-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 230px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 120;
}
.nav-menu a {
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
}
.nav-menu a:hover { background: var(--navy-soft); color: var(--navy); }
.nav-menu a small {
  display: block; font-weight: 500; font-size: .76rem;
  color: var(--muted); letter-spacing: 0;
}

.nav .nav-cta {
  background: var(--red);
  color: var(--white);
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.nav .nav-cta:hover { background: var(--red-deep); color: var(--white); }

/* Mobile menu toggle — a hidden checkbox drives the panel, so no script. */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
}
.nav-toggle-label span + span { margin-top: 5px; }

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }

.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--navy); }

.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.75); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ============================ HERO ============================
   The sky is a CSS gradient and the land is one shared SVG pinned to the
   bottom, so a page can restyle the whole scene by changing two tokens. */

.hero {
  position: relative;
  background:
    url("/img/hero-scene.svg") center bottom / 100% auto no-repeat,
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 62%);
  color: var(--ink);
  padding: 72px 0 200px;
  text-align: center;
  overflow: hidden;
}
.hero--home { padding: 96px 0 240px; }
.hero--page { padding: 60px 0 150px; }

.hero h1 { color: var(--navy-deep); max-width: 20ch; margin-inline: auto; }
.hero .lead { color: #2c3d55; max-width: 62ch; margin-inline: auto; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.72);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}

/* ============================ UNIT FINDER ============================
   A plain GET form. beascout.scouting.org/search accepts ?zip=75701&radius=20
   and normalises the value itself, so this needs no script and degrades to a
   working link if anything is disabled. */

.finder {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 620px;
  margin: 26px auto 0;
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
}
.finder input[type="text"] {
  flex: 1 1 200px;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit; font-size: 1.05rem;
  padding: 10px 20px;
  color: var(--ink);
}
.finder input::placeholder { color: #93a0b2; }
.finder input:focus { outline: none; }
.finder input:focus-visible { outline: 3px solid var(--red); outline-offset: -1px; border-radius: var(--radius-pill); }
.finder .btn { flex: 0 0 auto; }

.finder-note {
  margin: 12px 0 0;
  font-size: .88rem;
  color: #3a4c66;
}
.finder-note a { color: #2c3d55; }

/* A compact variant for inside cards and page sections. */
.finder--inline {
  margin: 0;
  max-width: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 7px;
}
.finder--inline input[type="text"] { font-size: .98rem; padding: 8px 16px; }

/* ============================ SECTIONS ============================ */

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--sand { background: var(--sand-soft); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .lead { color: rgba(255,255,255,.82); }
.section--navy a { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

/* ============================ GRID ============================ */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================ CARDS ============================ */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card > *:last-child { margin-bottom: 0; }

/* Programme cards carry a coloured cap so the three doors read at a glance. */
.card--program { border-top: 6px solid var(--line); padding-top: 26px; }
.card--cub       { border-top-color: var(--cub); }
.card--scoutsbsa { border-top-color: var(--scoutsbsa); }
.card--venturing { border-top-color: var(--venturing); }
.card--exploring { border-top-color: var(--exploring); }

.card-ages {
  display: inline-block;
  font-size: .74rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5em;
}

/* Small value cards (Outdoors / Leadership / Service / Friendship). */
.value {
  text-align: center;
  padding: 26px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value .value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--pine-soft);
  font-size: 1.5rem;
}
.value h3 { font-size: 1.05rem; }
.value p { font-size: .94rem; color: var(--muted); margin-bottom: 0; }

/* ============================ JOIN STEPS ============================ */

.steps {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 44px 38px;
  box-shadow: var(--shadow-sm);
}
.steps ol {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.steps li { counter-increment: step; margin: 0; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 800; font-size: 1.05rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .35em; }
.steps p { font-size: .95rem; color: #4a5364; margin-bottom: 0; }

/* ============================ DISTRICT CARDS ============================ */

.district {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--navy);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.district h2 { font-size: 1.55rem; margin-bottom: .25em; }
.district .district-counties {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5em;
}
.district .district-cities {
  font-size: .95rem;
  color: var(--muted);
}
.district-meta {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--navy-soft);
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.district-meta p { margin: 0; }
.district-meta p + p { margin-top: .4em; }

/* ============================ DETAILS DISCLOSURE ============================ */

.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin: 18px 0;
  background: var(--white);
}
.disclosure > summary {
  cursor: pointer;
  padding: 13px 18px;
  font-weight: 700;
  font-size: .94rem;
  color: var(--navy);
  list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before {
  content: "";
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  transition: transform .15s ease;
  flex-shrink: 0;
}
.disclosure[open] > summary::before { transform: rotate(90deg); }
.disclosure > summary:hover { background: var(--navy-soft); border-radius: var(--radius-sm); }
.disclosure .disclosure-body {
  padding: 4px 18px 18px;
  font-size: .92rem;
  color: var(--muted);
}
.disclosure .disclosure-body p:last-child { margin-bottom: 0; }

/* ============================ CALLOUT BANDS ============================ */

.band {
  background: linear-gradient(135deg, var(--pine-deep), var(--lake));
  color: var(--white);
  border-radius: var(--radius);
  padding: 54px 44px;
  text-align: center;
}
.band h2 { color: var(--white); }
.band p { color: rgba(255,255,255,.88); max-width: 60ch; margin-inline: auto; }

.note {
  border-left: 4px solid var(--red);
  background: var(--sand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: .94rem;
}
.note p:last-child { margin-bottom: 0; }

/* ============================ CALENDAR EMBED ============================ */

.embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.embed iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
}

/* ============================ LINK LIST ============================ */

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li {
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.linklist li:last-child { border-bottom: 0; }
.linklist a {
  display: block;
  padding: 15px 4px;
  text-decoration: none;
  font-weight: 700;
}
.linklist a:hover { color: var(--red); }
.linklist small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: .89rem;
}

/* ============================ FOOTER ============================ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.78);
  padding: 58px 0 28px;
  font-size: .94rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--sand); text-decoration: underline; }
.site-footer h4 {
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55em; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: .86rem;
  color: rgba(255,255,255,.62);
}

/* ============================ DISTRICT RESOURCE ROW ============================
   The row of Website / Facebook / Calendar / Events / Contact links on each
   district card. Anything the council has not published yet renders as a dashed
   "not listed" chip rather than a dead link, so the gap is visible and someone
   can fill it. */

.district-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.district-links a,
.district-links span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy);
  font-size: .86rem; font-weight: 700;
  text-decoration: none;
  line-height: 1;
}
.district-links a:hover {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}
.district-links .is-missing {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
/* Icons come from the inline <svg> sprite at the top of the page body, so they
   inherit currentColor and need no icon font or external request. */
.ico {
  width: 16px; height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite { display: none; }

/* ============================ DISCLAIMER ============================ */

.disclaimer {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
}
.disclaimer p { margin: 0 0 .8em; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: rgba(255, 255, 255, .88); }
.disclaimer a { color: rgba(255, 255, 255, .88); }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr; gap: 22px; }
  .steps { padding: 32px 26px; }
}

@media (max-width: 780px) {
  .nav-toggle-label { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 8px 16px 18px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav { display: flex; }

  .site-header .container { position: relative; flex-wrap: wrap; }

  .nav a, .nav summary { padding: 12px 8px; font-size: 1rem; }

  /* On a narrow screen the dropdown becomes an inline accordion. */
  .nav-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,.08);
    min-width: 0;
    margin: 4px 0 8px;
  }
  .nav-menu a { color: var(--white); }
  .nav-menu a:hover { background: rgba(255,255,255,.14); color: var(--white); }
  .nav-menu a small { color: rgba(255,255,255,.65); }

  .nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .section { padding: 54px 0; }
  .hero { padding: 54px 0 130px; }
  .hero--home { padding: 62px 0 150px; }
  .hero--page { padding: 46px 0 110px; }

  /* The pill loses its rounding on small screens so the field and the button
     can stack without the corners fighting each other. */
  .finder {
    border-radius: var(--radius);
    padding: 12px;
  }
  .finder input[type="text"] { flex: 1 1 100%; text-align: center; }
  .finder .btn { width: 100%; }

  .card, .district { padding: 24px; }
  .band { padding: 38px 24px; }
  .embed iframe { height: 820px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
