/* =========================================================
   CLD — shared styles
   Palette drawn from the CLD mark: tower/bridge olive,
   the four figures (orange, brick, peach), and the river navy.
   ========================================================= */

:root {
  --olive: #4b5d33;
  --olive-dark: #384624;
  --orange: #e2792e;
  --brick: #bd3b26;
  --peach: #eeae86;
  --navy: #1f3a52;
  --navy-dark: #16283a;
  --cream: #faf6ee;
  --cream-deep: #f1e9db;
  --ink: #2a2620;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4, .display-serif {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}

a { color: var(--brick); }
a:hover { color: var(--orange); }

p.lede {
  font-size: 1.15rem;
  color: #55503f;
  max-width: 46ch;
}

/* ---------- Navbar ---------- */
.navbar-cld {
  background: var(--navy-dark);
  padding: 0.85rem 0;
}
.navbar-cld .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
}
.navbar-cld .navbar-brand img { height: 42px; width: auto; }
.navbar-cld .nav-link {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  margin: 0 0.35rem;
}
.navbar-cld .nav-link.active,
.navbar-cld .nav-link:hover { color: #fff; }
.navbar-cld .nav-link.active { border-bottom: 2px solid var(--orange); }
.navbar-cld .btn-nav-cta {
  background: var(--orange);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}
.navbar-cld .btn-nav-cta:hover { background: var(--brick); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.hero .hero-mark {
  max-width: 340px;
  width: 100%;
}
.btn-cld-primary {
  background: var(--orange);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
}
.btn-cld-primary:hover { background: var(--brick); color: #fff; }
.btn-cld-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: transparent;
}
.btn-cld-outline:hover { background: var(--navy); color: #fff; }

/* ---------- River wave divider (echoes the logo) ---------- */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ---------- Page header band (About / Register / Events) ---------- */
.page-header {
  background: var(--olive);
  color: #fff;
  padding: 3.2rem 0 2.6rem;
}
.page-header h1 { color: #fff; margin-bottom: 0.4rem; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0; }

/* ---------- Generation dots (mirrors the four figures) ---------- */
.gen-dot {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block; margin-right: 0.5rem;
}
.gen-dot.olive { background: var(--olive); }
.gen-dot.orange { background: var(--orange); }
.gen-dot.brick { background: var(--brick); }
.gen-dot.peach { background: var(--peach); }

/* ---------- Cards ---------- */
.card-cld {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: 14px;
  padding: 1.8rem;
  height: 100%;
}
.card-cld .card-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; margin-bottom: 1rem;
}

.event-card {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}
.event-date-block {
  background: var(--navy-dark);
  color: #fff;
  padding: 0.9rem 1rem;
  min-width: 84px;
  text-align: center;
  border-radius: 12px;
}
.event-date-block .day { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; display: block; }
.event-date-block .mon { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-dark);
  color: #fff;
  padding: 3.4rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.4rem 0 1.6rem;
  font-size: 0.92rem;
}
footer.site-footer a { color: rgba(255,255,255,0.85); }
footer.site-footer h6 { color: #fff; font-family: var(--font-body); font-weight: 600; }

/* ---------- Registration form (dynamic children table) ---------- */
.form-section-label {
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--cream-deep);
}
#childrenTable thead th {
  background: var(--olive);
  color: #fff;
  font-weight: 600;
  border: none;
}
#childrenTable tbody tr:nth-child(even) { background: var(--cream-deep); }
#childrenTable td { vertical-align: middle; }
.btn-add-person {
  background: var(--olive);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}
.btn-add-person:hover { background: var(--olive-dark); color: #fff; }
.btn-remove-row {
  background: transparent;
  border: 1px solid var(--brick);
  color: var(--brick);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
}
.btn-remove-row:hover { background: var(--brick); color: #fff; }

/* Focus visibility kept intact for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hero { padding: 3rem 0 2.5rem; text-align: left; }
  .hero .hero-mark { max-width: 200px; margin-bottom: 1.5rem; }
}
