/* ============================================================================
   Coral Springs Residents Association, design system
   All-blue brand (matching the fountain logo), clean sans-serif type.
   Poppins for headings, Inter for body. No coral, no serif.
   ============================================================================ */

:root {
  /* Brand blues */
  --blue-900: #0B3A57;
  --blue-800: #0F4E74;
  --blue-700: #176C9C;
  --blue-600: #1E7BB8;   /* primary brand blue */
  --blue-500: #2685D0;
  --blue-400: #5BA5DD;
  --blue-200: #B6D6EE;
  --blue-100: #D7E8F5;
  --blue-50:  #EAF3FB;

  /* Functional status only (not brand accents) */
  --ok: #3FA45B;
  --warn: #C9742B;

  /* Surfaces */
  --bg: #F4F8FC;
  --bg-alt: #EAF1F8;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.82);

  /* Ink */
  --ink: #0C2433;
  --ink-mid: #41566333;
  --ink-mid: #455a67;
  --ink-soft: #7990a0;
  --on-dark: #EAF4FC;

  /* Lines & shadow, tighter and more architectural */
  --border: #DCE4EC;
  --border-strong: #C3D0DC;
  --shadow-sm: 0 1px 2px rgba(12, 36, 51, 0.05), 0 1px 3px rgba(12, 36, 51, 0.04);
  --shadow: 0 6px 16px -8px rgba(12, 36, 51, 0.18);
  --shadow-lg: 0 16px 40px -18px rgba(12, 36, 51, 0.26);

  /* Radii, restrained for a polished, less bubbly feel */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 6px;

  /* Type */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 56px);
  --nav-h: 92px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 8vw, 104px); }
.section--tight { padding-block: clamp(38px, 6vw, 68px); }
.center { text-align: center; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 640px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-600);
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2.display, .display { font-weight: 700; }
h2.display { font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.04rem, 1.6vw, 1.18rem); color: var(--ink-mid); max-width: 62ch; }
.section-head { max-width: 64ch; margin-bottom: clamp(26px, 4vw, 46px); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.94rem; letter-spacing: 0.01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--blue-700); color: #fff; }
.btn--primary:hover { background: var(--blue-800); }
.btn--secondary { background: var(--blue-100); color: var(--blue-800); }
.btn--secondary:hover { background: var(--blue-200); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn--light { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(255,255,255,0.20); }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.ico { width: 16px; height: 16px; flex: 0 0 auto; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.94); }
.nav { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand .brand-txt { line-height: 1.05; }
.brand .brand-txt b { display: block; font-family: var(--font-head); font-size: 1.32rem; font-weight: 700; color: var(--ink); }
.brand .brand-txt span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); }
.nav-links { display: none; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 9px 14px; border-radius: var(--r-sm); font-weight: 500; font-size: 0.94rem;
  color: var(--ink-mid); transition: color .15s ease; position: relative;
}
.nav-item > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--blue-600); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-item > a:hover { color: var(--ink); }
.nav-item > a:hover::after { transform: scaleX(1); }
.nav-item > a.active { color: var(--blue-700); }
.nav-item > a.active::after { transform: scaleX(1); }
.nav-item .caret { width: 11px; height: 11px; opacity: .55; margin-left: -2px; }
.nav-drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 500; color: var(--ink-mid); }
.nav-drop a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55;
  background: var(--bg); padding: 16px var(--gutter) 40px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
}
.nav-open .mobile-menu { transform: translateX(0); }
.mobile-menu a { padding: 14px 8px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--ink); }
.mobile-menu a.sub { padding-left: 24px; font-size: 0.98rem; font-weight: 500; color: var(--ink-mid); }
.mobile-menu a.active { color: var(--blue-700); }
@media (min-width: 1040px) {
  .nav-toggle, .mobile-menu { display: none !important; }
  .nav-links { display: flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media iframe, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media iframe { pointer-events: none; border: 0; }
.hero__fallback {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #0b3a57, #176C9C 38%, #2685D0 62%, #5BA5DD 100%);
  background-size: 200% 200%; animation: drift 20s ease-in-out infinite;
}
.hero__fallback::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 70% at 12% -10%, rgba(215,232,245,.35), transparent 55%);
}
@keyframes drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,34,51,.30) 0%, rgba(8,34,51,.12) 40%, rgba(8,34,51,.80) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(40px, 8vw, 92px); width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,.3); max-width: 18ch; color: #fff; }
.hero p { margin-top: 18px; font-size: clamp(1.04rem, 2vw, 1.3rem); max-width: 52ch; color: rgba(255,255,255,.92); }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 7px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: #fff;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(63,164,91,.35); }

.wave { display: block; width: 100%; height: auto; color: var(--bg); margin-top: -1px; }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%; display: flex; flex-direction: column;
}
.card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px;
  border: 1px solid var(--blue-100);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-mid); }
.card__meta { margin-top: auto; padding-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--blue-700); display: flex; align-items: center; gap: 7px; }

/* office hours card with live open/closed badge */
.hours-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 32px); max-width: 720px; margin-inline: auto; }
.hours-card__head { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hours-card__title { font-size: 1.35rem; margin-top: 6px; }
.hours-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.88rem; }
.hours-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.hours-badge.is-open { background: #e7f3ec; color: #1f7a3f; }
.hours-badge.is-open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(63,164,91,.18); }
.hours-badge.is-closed { background: var(--bg-alt); color: var(--ink-mid); }
.hours-badge.is-closed .dot { background: var(--ink-soft); }
.hours-badge__detail { font-weight: 500; opacity: .85; }
.hours-list { border-top: 1px solid var(--border); }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 0.98rem; }
.hours-row__day { color: var(--ink-mid); font-weight: 500; }
.hours-row__time { color: var(--ink); font-weight: 600; }
.hours-row.is-today { background: var(--blue-50); margin-inline: -8px; padding-inline: 12px; border-radius: var(--r-sm); border-bottom-color: transparent; }
.hours-row.is-today .hours-row__day { color: var(--blue-800); font-weight: 600; }
.hours-row.is-today .hours-row__day::after { content: "Today"; margin-left: 8px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-100); padding: 2px 7px; border-radius: var(--r-sm); vertical-align: middle; }
.hours-card__foot { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.hours-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--blue-700); }
.hours-link:hover { color: var(--blue-800); }
.hours-link .ico { color: var(--blue-600); }
.hours-tz { margin-top: 14px; font-size: 0.78rem; color: var(--ink-soft); }

/* compact stat strip (understated, not a hero block) */
.statbar-section { padding-block: clamp(22px, 3.5vw, 34px); border-bottom: 1px solid var(--border); }
.statbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px clamp(20px, 5vw, 56px); }
.statbar__item { display: inline-flex; align-items: baseline; gap: 8px; }
.statbar__item b { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--blue-700); line-height: 1; letter-spacing: -0.01em; }
.statbar__item span { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
@media (min-width: 640px) {
  .statbar__item:not(:last-child) { padding-right: clamp(20px, 5vw, 56px); border-right: 1px solid var(--border); }
}

/* badges / pills */
.pill { display: inline-block; padding: 4px 10px; border-radius: var(--r-sm); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.pill--notice, .pill--seasonal, .pill--community, .pill--family, .pill--maintenance, .pill--event,
.pill--rules, .pill--form, .pill--fees, .pill--careers { background: var(--blue-100); color: var(--blue-800); }

/* ---------- split / feature ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--media-right .split__media { order: 2; } }
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--blue-100); border: 1px solid var(--border); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 16px; }
.check { margin-top: 20px; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-mid); }
.check li svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--blue-600); margin-top: 2px; }

/* event rows */
.event { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--border); }
.event:last-child { border-bottom: 1px solid var(--border); }
.event__date { text-align: center; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); border-radius: var(--r-md); padding: 10px 14px; min-width: 64px; }
.event__date b { display: block; font-size: 1.5rem; font-family: var(--font-head); font-weight: 700; line-height: 1; }
.event__date span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.event__body h3 { font-size: 1.16rem; margin-bottom: 4px; }
.event__body .meta { color: var(--ink-soft); font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.event__body p { color: var(--ink-mid); }

/* ---------- accordion ---------- */
.acc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.acc__q { width: 100%; text-align: left; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc__q .plus { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.acc__q .plus::before, .acc__q .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--blue-700); border-radius: 2px; }
.acc__q .plus::before { width: 13px; height: 2.5px; }
.acc__q .plus::after { width: 2.5px; height: 13px; transition: transform .25s ease; }
.acc.open .plus::after { transform: rotate(90deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc__a > div { padding: 0 22px 20px; color: var(--ink-mid); }
.acc__a ul { display: grid; gap: 8px; }
.acc__a li { display: flex; gap: 10px; align-items: flex-start; }
.acc__a li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); margin-top: 9px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 15px; border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong); background: var(--white); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(38,133,208,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-success { background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-800); padding: 18px 20px; border-radius: var(--r-md); font-weight: 500; }

/* contact info list */
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .ico-box { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.info-row .ico-box svg { width: 22px; height: 22px; }
.info-row b { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 2px; }
.info-row span, .info-row a { font-size: 1.04rem; font-weight: 600; }
.info-row a:hover { color: var(--blue-700); }

/* ---------- banners / cta ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--blue-800); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 6vw, 56px); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.05); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 12px; position: relative; }
.cta-band p { max-width: 54ch; color: rgba(255,255,255,.9); margin-bottom: 24px; position: relative; }
.cta-band .hero__actions { margin-top: 0; }

.callout { background: var(--blue-50); border-radius: var(--r-md); padding: clamp(20px,3vw,28px); border: 1px solid var(--blue-100); }
.callout h3 { color: var(--blue-800); margin-bottom: 6px; }

/* page hero (interior pages) */
.page-hero { background: linear-gradient(165deg, var(--blue-900), var(--blue-700) 78%); color: #fff; padding-block: clamp(46px, 7vw, 84px); position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 92% 6%, rgba(182,214,238,.16), transparent 60%); }
.page-hero .eyebrow { color: var(--blue-100); }
.page-hero h1 { position: relative; color: #fff; }
.page-hero p { margin-top: 14px; max-width: 60ch; color: rgba(255,255,255,.9); position: relative; font-size: 1.08rem; }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 28px; }
.tabs button { padding: 9px 20px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-mid); }
.tabs button.active { background: var(--white); color: var(--blue-700); box-shadow: var(--shadow-sm); }
.tabpane { display: none; }
.tabpane.active { display: grid; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-grid figure { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: var(--blue-100); border: 1px solid var(--border); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; color: #fff; font-weight: 600; font-size: 0.9rem; background: linear-gradient(transparent, rgba(8,34,51,.7)); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(234,244,252,.82); padding-block: clamp(46px, 7vw, 76px) 26px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer .brand .brand-txt b { color: #fff; }
.site-footer .brand img { background: #fff; padding: 4px; border-radius: var(--r-sm); }
.footer-about p { margin-top: 16px; max-width: 40ch; color: rgba(234,244,252,.66); font-size: 0.95rem; }
.footer-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(234,244,252,.5); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: rgba(234,244,252,.82); font-weight: 500; }
.footer-col a:hover { color: var(--blue-200); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.85rem; color: rgba(234,244,252,.5); }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.social-links a:hover { background: var(--blue-600); }
.social-links svg { width: 20px; height: 20px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__fallback { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- misc ---------- */
.bg-bg { background: var(--bg); }
.bg-white { background: var(--white); }
.bg-alt { background: var(--bg-alt); }
.divider { height: 1px; background: var(--border); border: none; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.noscript-banner { background: var(--blue-700); color: #fff; text-align: center; padding: 10px; font-weight: 600; }
.notice-banner { background: var(--blue-800); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 0.92rem; }
.prose p { color: var(--ink-mid); margin-bottom: 16px; font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* dashboard (hidden) */
.dash-gate { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.dash-gate .card { max-width: 380px; width: 100%; }
.dash-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .dash-grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
.metric { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.metric b { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--blue-700); display: block; line-height: 1; }
.metric span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.bar-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.bar-track { background: var(--bg-alt); border-radius: var(--r-pill); height: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); border-radius: var(--r-pill); }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.dash-chart .col { flex: 1; background: var(--blue-100); border-radius: 6px 6px 0 0; min-height: 4px; transition: height .4s ease; }
.dash-chart .col:hover { background: var(--blue-400); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
