/* ============================================================
   StrongCoast.Guide — design system
   Palette: Ocean Deep #2A4E6C · Coast Coral #EC684F
            Cedar Gold #DDA033 · Sea Mist #ACC8C8 · Night Tide #1C2E3D
   Type:    Archivo Black (display) · Open Sans (body) — Google Fonts
   ============================================================ */

:root {
  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --ink: #1C2E3D;
  --muted: #566B77;
  --line: #D9E3E1;
  --deep: #2A4E6C;
  --deep-2: #1C384F;
  --deep-3: #14293C;
  --coral: #EC684F;
  --coral-dark: #D4523A;
  --coral-soft: #FBE5DF;
  --gold: #DDA033;
  --gold-soft: #F7ECD6;
  --foam: #7FA8A6;
  --foam-soft: #E4EDEC;
  --shadow: 0 2px 14px rgba(28, 46, 61, .09);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.display, h1, h2.display, .logo {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400; /* Archivo Black has one weight */
  letter-spacing: -.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 10px;
}

.section { padding: 44px 0; }
#map-section { padding-top: 34px; }
#map-section .section-head { margin-bottom: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: clamp(24px, 4vw, 32px); margin: 0; }
.section-head .more { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 26px;
  padding: 14px 0;
}
.logo { font-size: 19px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; }
.logo em { color: var(--coral); font-style: normal; }
.logo-badge { width: 40px; height: 40px; flex: none; }
.site-footer .logo-badge { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a.cta {
  background: var(--coral); color: #fff;
  padding: 8px 16px; border-radius: 8px;
}
.site-nav a.cta:hover { background: var(--coral-dark); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: block; margin-left: auto;
    background: none; border: 1.5px solid var(--line); border-radius: 8px;
    font-size: 20px; line-height: 1; padding: 6px 12px; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 22px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px dashed var(--line); }
  .site-nav a.cta { text-align: center; margin-top: 10px; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  /* photo fallback: always visible even if the video never plays */
  background:
    linear-gradient(160deg, rgba(42, 78, 108, .25), rgba(20, 41, 60, .25)),
    url("../assets/img/coast-3.jpg") center / cover no-repeat,
    linear-gradient(160deg, var(--deep) 0%, var(--deep-3) 100%);
}
.hero video, .hero .hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero .scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(236, 104, 79, .14), transparent 55%),
    linear-gradient(180deg, rgba(16, 32, 47, .38), rgba(16, 32, 47, .60));
}
.hero .inner { position: relative; padding: 34px 0 40px; }
.hero h1 { font-size: clamp(24px, 3.6vw, 38px); margin: 0 0 8px; max-width: 26ch; color: #fff; text-shadow: 0 1px 14px rgba(10, 25, 38, .5); }
.hero .eyebrow { color: #F5B79F; margin-bottom: 6px; }
.hero p.sub { color: #E2ECF1; font-size: clamp(14.5px, 1.9vw, 16.5px); max-width: 62ch; margin: 0 0 18px; text-shadow: 0 1px 10px rgba(10, 25, 38, .55); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Open Sans", sans-serif; font-size: 14px; font-weight: 700;
  padding: 10px 20px; border-radius: 9px; border: 0;
}
.btn.solid { background: var(--coral); color: #fff; }
.btn.solid:hover { background: var(--coral-dark); }
.btn.ghost { border: 2px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn.ghost:hover { border-color: #fff; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- map ---------- */
#map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
@media (max-width: 700px) { #map { height: 420px; } }
.map-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 99px; padding: 6px 15px; cursor: pointer;
}
.pill i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pill[aria-pressed="false"] { opacity: .45; }
.pill:hover { border-color: var(--foam); }
.dot-festival { background: var(--coral); }
.dot-cultural { background: var(--gold); }
.dot-fair { background: var(--foam); }

.leaflet-popup-content-wrapper { border-radius: 10px; font-family: "Open Sans", sans-serif; }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.popup-date { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); }
.popup-name { font-weight: 700; font-size: 15px; margin: 2px 0 3px; }
.popup-name a { color: var(--ink); text-decoration: none; }
.popup-name a:hover { color: var(--coral-dark); }
.popup-community { color: var(--muted); font-size: 12.5px; }

/* ---------- featured spotlight ---------- */
.spotlight {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--deep-3); color: #fff;
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.spotlight .spot-img { min-height: 260px; background-size: cover; background-position: center; }
.spotlight .spot-body { padding: 30px 34px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.spotlight .date { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.spotlight h2 { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: clamp(20px, 3vw, 28px); margin: 0; color: #fff; line-height: 1.15; }
.spotlight p { color: #C4D4DD; font-size: 14.5px; margin: 0 0 8px; }
.spotlight:hover .spot-img { opacity: .92; }
@media (max-width: 700px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight .spot-img { min-height: 180px; }
}

/* ---------- event cards & carousel ---------- */
.carousel-shell { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 82vw);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; scrollbar-width: thin;
}
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; }
.arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.arrow:hover { color: var(--ink); border-color: var(--foam); }

.event-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(28, 46, 61, .14); }
.event-card .img { height: 132px; position: relative; background-size: cover; background-position: center; }
.event-card .img .tag {
  position: absolute; left: 12px; top: 12px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .93); color: var(--ink);
  border-radius: 5px; padding: 3px 9px;
}
.grad-festival { background: linear-gradient(140deg, #35607F, #6D9DAE); }
.grad-cultural { background: linear-gradient(140deg, #8A5A3B, #D9A441); }
.grad-fair { background: linear-gradient(140deg, #3D6B58, #7FAE8F); }
.event-card .body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.event-card .date { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); font-variant-numeric: tabular-nums; }
.event-card h3 { font-size: 17px; line-height: 1.25; margin: 0; }
.event-card .community { color: var(--muted); font-size: 13px; }
.event-card .blurb { color: var(--muted); font-size: 13.5px; margin-top: 5px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 28px; align-items: center; }
.filters .group-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.filters .sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; }
.count-note { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* ---------- story cards ---------- */
.story-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.story-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(28, 46, 61, .14); }
.story-card .img { height: 160px; background-size: cover; background-position: center; }
.story-card .body { padding: 16px 18px 18px; }
.series-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.series-faces { color: var(--gold); }
.series-made { color: var(--coral); }
.series-field { color: var(--foam); }
.story-card h3 { font-size: 18px; line-height: 1.3; margin: 6px 0 6px; }
.story-card .excerpt { color: var(--muted); font-size: 14px; margin: 0; }
.story-card .meta { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.grad-story-1 { background: linear-gradient(135deg, #2A4E6C, #6D9DAE 65%, #ACC8C8); }
.grad-story-2 { background: linear-gradient(135deg, #8A5A3B, #DDA033 70%, #F0CE8A); }
.grad-story-3 { background: linear-gradient(135deg, #24455F, #3D6B58 60%, #7FAE8F); }

/* ---------- article / event detail ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 56px 22px 80px; }
.article .eyebrow { margin-bottom: 12px; }
.article h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 14px; }
.article .standfirst { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
.article .meta { color: var(--muted); font-size: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article-body { font-size: 17px; }
.article-body p { max-width: 68ch; }
.article-body h2 { font-size: 24px; margin-top: 38px; }
.article-body h3 { font-size: 19px; margin-top: 30px; }
.article-body blockquote {
  border-left: 4px solid var(--gold); margin: 26px 0; padding: 4px 0 4px 22px;
  color: var(--muted); font-size: 18px;
}
.article-body img { border-radius: 10px; }

.fact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px; margin: 26px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
}
.fact-box .fact .k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact-box .fact .v { font-weight: 700; font-size: 15.5px; }
.fact-box .fact .v a { color: var(--coral-dark); }
#event-map { height: 300px; border-radius: 10px; border: 1px solid var(--line); margin: 26px 0; z-index: 1; }

.event-hero-img {
  height: clamp(180px, 30vw, 300px);
  border-radius: var(--radius);
  background-size: cover; background-position: center;
  margin: 4px 0 26px;
}
.tbd-note {
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 9px; padding: 10px 16px; font-size: 14px; margin: 18px 0;
}

/* ---------- page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-3) 100%); color: #fff; padding: 56px 0 60px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 10px; color: #fff; }
.page-hero p { color: #CFDEE6; max-width: 62ch; margin: 0; font-size: 17px; }
.page-hero .eyebrow { color: #F5B79F; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep-3); color: #B9CBD6; margin-top: 40px; }
.site-footer .inner { padding: 52px 0 44px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: #fff; font-size: 18px; }
.site-footer p { font-size: 14px; max-width: 42ch; }
.site-footer h4 { color: #fff; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #B9CBD6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .base { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .inner { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- about page ---------- */
.family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.family-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: 10px; padding: 18px 20px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
}
.family-card:hover { border-left-color: var(--gold); }
.family-card h3 { margin: 0 0 6px; font-size: 16.5px; }
.family-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- utility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--coral); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
