/* Strong Towns Langley 2026 theme.
   Shared header, page heading and footer (used by every page), plus a warm restyle of older page content.
   Loaded after Bootstrap and style.css. Older-content rules are scoped to body.stl-theme (set in header_shared.php). */

:root {
  --teal: #2BB08E; --teal-deep: #1E8A6F; --teal-ink: #146650; --mint: #E3F6EF;
  --sun: #FFC53D; --sun-deep: #E0A51C; --sun-tint: #FFF5D6;
  --coral: #FF7A5C; --coral-deep: #E05C3F; --coral-tint: #FFE9E3;
  --sky: #4DB6EC; --sky-tint: #E2F4FD;
  --navy: #1D3557; --muted: #5C6B80; --line: #E8ECF2;
  --head: 'Montserrat', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif; --hand: 'Caveat', cursive;

  /* older style.css tokens, warmed to match */
  --primary-color: #2BB08E; --secondary-color: #FFC53D; --dark-color: #1D3557; --light-color: #EEF8F4; --accent-color: #FF7A5C;

  /* Bootstrap 5.2 */
  --bs-body-font-family: var(--body); --bs-body-color: var(--navy);
  --bs-link-color: var(--teal-deep); --bs-link-hover-color: var(--teal-ink);
  --bs-primary: #2BB08E; --bs-primary-rgb: 43, 176, 142;
}

/* in-page anchors land below the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- header */
.stl-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.stl-header { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-family: var(--body); }
.stl-header .stl-wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.stl-header a { text-decoration: none; }
.stl-brand { display: flex; align-items: center; gap: 12px; color: var(--navy) !important; }
.stl-brand img { width: 40px; height: 40px; }
.stl-brand span { font: 700 18px/1 var(--head); letter-spacing: .05em; white-space: nowrap; }
.stl-nav { display: flex; gap: 26px; margin-left: auto; font: 700 16px var(--body); }
.stl-nav a { color: var(--muted); padding: 4px 0; border-bottom: 3px solid transparent; }
.stl-nav a:hover { color: var(--teal-deep); }
.stl-nav a[aria-current="page"] { color: var(--navy); border-color: var(--sun); }
.stl-btn { display: inline-flex; align-items: center; gap: 8px; font: 800 15px/1.2 var(--body); padding: 10px 20px; border-radius: 999px; transition: transform .15s; white-space: nowrap; }
.stl-btn:hover { transform: translateY(-2px); }
.stl-sun { background: var(--sun); color: var(--navy) !important; }
.stl-coral { background: var(--coral); color: #fff !important; }
.stl-teal { background: var(--teal); color: #fff !important; }
.stl-menu { display: none; position: relative; margin-left: auto; }
.stl-menu summary { list-style: none; cursor: pointer; font: 800 15px var(--body); padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--line); color: var(--navy); }
.stl-menu summary::-webkit-details-marker { display: none; }
.stl-menu div { position: absolute; right: 0; top: 52px; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 20px 40px -16px rgba(29,53,87,.35); display: grid; min-width: 220px; }
.stl-menu div a { padding: 10px 14px; border-radius: 12px; font-weight: 700; color: var(--navy); }
.stl-menu div a:hover { background: var(--mint); }

/* ---------------------------------------------------------------- page heading */
.stl-pagehead { position: relative; overflow: hidden; padding: 44px 0 36px; font-family: var(--body); background: #fff; }
.stl-pagehead.is-compact { padding: 26px 0 18px; }
.stl-pagehead.is-crumbs { padding: 18px 0 2px; }
.stl-pagehead.is-crumbs .stl-crumbs { margin-bottom: 0; }
.stl-crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font: 700 14px var(--body); }
.stl-crumbs a { color: var(--teal-deep); background: var(--mint); padding: 5px 14px; border-radius: 999px; text-decoration: none; }
.stl-crumbs a:hover { background: #CDEFE2; }
.stl-crumbs .parent-link { opacity: 0; transition: opacity .3s; }
.stl-crumbs .parent-link.show { opacity: 1; }
.stl-pagehead h1 { font: 800 clamp(30px, 4.4vw, 54px)/1.08 var(--head); letter-spacing: -.02em; color: var(--navy); margin: 0; max-width: 22ch; }
.stl-pagehead.is-compact h1 { font-size: clamp(26px, 3vw, 38px); max-width: none; }
.stl-pagehead h1 span { background: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 92%, transparent 92%); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.stl-pagehead p { color: var(--muted); font-size: 19px; max-width: 62ch; margin: 14px 0 0; }
.stl-leaf { position: absolute; pointer-events: none; }

/* ---------------------------------------------------------------- footer */
.stl-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font: 400 16px/1.6 var(--body); background: #fff; margin-top: 48px; }
.stl-footer a { color: inherit; text-decoration: none; }
.stl-footer a:hover { color: var(--teal-deep); }
.stl-footer .stl-cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.stl-footer h4 { font: 800 15px var(--body); color: var(--navy); margin: 0 0 10px; }
.stl-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.stl-footer p { margin: 14px 0 0; }
.stl-footer .stl-strong { color: var(--teal-deep); font-weight: 700; }
.stl-fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

@media (max-width: 1100px) {
  .stl-nav, .stl-header .stl-sun { display: none; }
  .stl-menu { display: block; }
}
@media (max-width: 900px) {
  .stl-footer .stl-cols { grid-template-columns: 1fr 1fr; }
  .stl-leaf { display: none; }
}
@media (max-width: 520px) {
  .stl-wrap { padding: 0 16px; }
  .stl-header .stl-wrap { gap: 10px; height: 70px; }
  .stl-brand { gap: 10px; }
  .stl-brand img { width: 36px; height: 36px; }
  .stl-brand span { font-size: 13.5px; letter-spacing: .03em; white-space: normal; max-width: 9.3em; line-height: 1.15; }
  .stl-menu summary { padding: 8px 14px; }
  .stl-header .stl-coral { padding: 9px 14px; }
}

/* ---------------------------------------------------------------- WhatsApp Launchpad button (includes/launchpad_join.php) */
button.stl-btn { border: 0; cursor: pointer; }
.stl-launchpad { display: grid; gap: 14px; justify-items: start; margin: 0; }
.stl-launchpad-check p { margin: 0 0 8px; color: var(--muted); font: 600 15px var(--body); }

/* ---------------------------------------------------------------- live events block (includes/events_block.php) */
.stl-plain { background: #fff; color: var(--navy) !important; box-shadow: inset 0 0 0 2px var(--line); }
.stl-events { font-family: var(--body); color: var(--navy); }
.stl-events h3 { font: 800 20px/1.25 var(--head); margin: 0; color: var(--navy); }
.stl-events p { margin: 0; }
.stl-events a { text-decoration: none; }
.stl-tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stl-ticket { display: grid; grid-template-columns: 96px 1fr; background: #fff; border-radius: 22px; box-shadow: 0 0 0 2px var(--line); overflow: hidden; }
.stl-ticket-date { background: var(--c); color: #fff; display: grid; place-content: center; text-align: center; border-right: 3px dashed #fff; }
.stl-ticket-date small { font: 800 13px var(--body); letter-spacing: .1em; text-transform: uppercase; }
.stl-ticket-date b { font: 800 40px/1 var(--head); }
.stl-ticket-info { padding: 20px 22px; display: grid; gap: 4px; }
.stl-ticket-info p { color: var(--muted); font-size: 16px; }
.stl-ticket-info a { font-weight: 800; color: var(--teal-deep); font-size: 16px; margin-top: 4px; }
.stl-quiet { background: var(--sun-tint); border: 3px dashed #FFE08A; border-radius: 26px; padding: 32px 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.stl-quiet h3 { font-size: 24px; }
.stl-quiet p { color: var(--muted); margin-top: 6px; font-size: 18px; }
.stl-quiet-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.stl-quiet .stl-btn { font-size: 16px; padding: 13px 24px; }
.stl-recent { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 28px; justify-content: center; }
.stl-recent > span { font: 700 26px var(--hand); color: var(--coral); }
.stl-recent a { display: flex; gap: 12px; align-items: center; color: var(--navy); }
.stl-recent img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sun); }
.stl-recent b { display: block; font: 800 16px/1.2 var(--body); }
.stl-recent small { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .stl-tickets, .stl-quiet { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- older page content */
body.stl-theme { font-family: var(--body); color: var(--navy); font-size: 17px; background: #fff; }
body.stl-theme h1, body.stl-theme h2, body.stl-theme h3, body.stl-theme h4, body.stl-theme h5, body.stl-theme h6,
body.stl-theme .section-title, body.stl-theme .sub-section-title, body.stl-theme .roadmap-title { font-family: var(--head); letter-spacing: -.01em; }
body.stl-theme .section-title { font-weight: 800; font-size: clamp(28px, 3vw, 40px); }
body.stl-theme .section-title:after { background: var(--sun); height: 6px; width: 72px; border-radius: 3px; }
body.stl-theme .page-content-min { padding-top: 8px; }
body.stl-theme a { text-underline-offset: 3px; }

body.stl-theme .btn { border-radius: 999px; font-family: var(--body); font-weight: 800; }
body.stl-theme .btn-primary, body.stl-theme .btn-success {
  --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--teal-deep); --bs-btn-hover-border-color: var(--teal-deep); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--teal-deep); --bs-btn-active-border-color: var(--teal-deep);
}
body.stl-theme .btn-outline-primary, body.stl-theme .btn-outline-success {
  --bs-btn-color: var(--teal-deep); --bs-btn-border-color: var(--teal);
  --bs-btn-hover-bg: var(--teal); --bs-btn-hover-border-color: var(--teal); --bs-btn-hover-color: #fff;
}
body.stl-theme .btn-warning { --bs-btn-bg: var(--sun); --bs-btn-border-color: var(--sun); --bs-btn-hover-bg: var(--sun-deep); --bs-btn-hover-border-color: var(--sun-deep); }
body.stl-theme .btn-danger { --bs-btn-bg: var(--coral); --bs-btn-border-color: var(--coral); --bs-btn-hover-bg: var(--coral-deep); --bs-btn-hover-border-color: var(--coral-deep); }
body.stl-theme .badge.bg-primary { background: var(--teal) !important; }
body.stl-theme .badge.bg-warning { background: var(--sun) !important; color: var(--navy) !important; }
body.stl-theme .text-primary { color: var(--teal-deep) !important; }
body.stl-theme .bg-primary { background-color: var(--teal) !important; }

body.stl-theme .card { border-radius: 22px; border: 2px solid var(--line); }
body.stl-theme .card > .card-img-top:first-child { border-radius: 20px 20px 0 0; }
body.stl-theme .shadow-sm { box-shadow: 0 10px 24px -18px rgba(29,53,87,.35) !important; }
body.stl-theme .alert { border-radius: 18px; border-width: 2px; }
body.stl-theme .alert-info { background: var(--sky-tint); border-color: #C6E7F8; color: var(--navy); }
body.stl-theme .alert-success { background: var(--mint); border-color: #C3EADB; color: var(--navy); }
body.stl-theme .alert-warning { background: var(--sun-tint); border-color: #FFE08A; color: var(--navy); }
body.stl-theme .modal-content { border-radius: 26px; border: 0; }

body.stl-theme .donate-button {
  background: var(--coral) !important; color: #fff !important; border: 0 !important; font-family: var(--body) !important;
  font-weight: 800 !important; padding: 9px 20px !important; border-radius: 999px !important; box-shadow: none !important;
}
body.stl-theme .custom-btn { border-radius: 999px; background: var(--teal); font-family: var(--body); font-weight: 800; }
body.stl-theme .custom-btn:hover { background: var(--teal-deep); }
