*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a2240;
  --teal: #0d7c6e;
  --teal-light: #1aab97;
  --teal-pale: #e0f5f2;
  --gold: #c9993a;
  --gold-light: #f0d38a;
  --sand: #f5f0e8;
  --sand-dark: #e8e0d0;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #4a5568;
  --text-light: #718096;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.75); text-decoration: none; margin-left: 1rem; }
.topbar a:hover { color: var(--gold-light); }
.topbar .social { display: flex; gap: 12px; }
.topbar .social a {
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; margin-left: 0;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--sand-dark);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(10,34,64,0.08);
}
.logo-wrap {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; padding: 10px 0;
}
.logo-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { line-height: 1.15; }
.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  display: block;
}
.logo-text .sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex; gap: 0; list-style: none;
}
.nav-links a {
  display: block;
  padding: 22px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--teal); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--teal); }
.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 4px;
  margin-left: 8px;
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-light) !important; color: white !important; }

/* ── HERO (home page) ── */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(13,124,110,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,153,58,0.15) 0%, transparent 50%);
}
.hero-waves {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px; opacity: 0.15;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; padding: 80px 2rem;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 30px; height: 1px; background: var(--gold);
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}
h1 em { font-style: italic; color: var(--gold-light); }
.hero-mission {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  border-left: 3px solid var(--teal-light);
  padding-left: 20px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal);
  color: white; text-decoration: none;
  padding: 14px 30px; border-radius: 4px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.35);
  color: white; text-decoration: none;
  padding: 14px 30px; border-radius: 4px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* hero stat cards */
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 20px;
  transition: background 0.2s;
}
.stat-card:hover { background: rgba(255,255,255,0.11); }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700;
  color: var(--gold-light); line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.stat-card.wide { grid-column: span 2; display: flex; align-items: center; gap: 20px; }
.stat-card.wide .stat-number { font-size: 28px; }

/* ── PAGE BANNER (subpages) ── */
.page-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 70px 2rem 90px;
}
.page-hero .hero-bg { position: absolute; inset: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 0; }

/* ── WAVE DIVIDER ── */
.wave-divider { display: block; width: 100%; line-height: 0; }

/* ── SECTIONS ── */
section { padding: 80px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after {
  content: ''; flex: 0 0 30px; height: 1px; background: var(--teal);
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--navy); line-height: 1.2; margin-bottom: 20px;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--navy); margin-bottom: 10px;
}
p { line-height: 1.75; color: var(--text-muted); }

/* ── WHO WE ARE ── */
.who-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.who-lead {
  font-size: 18px; line-height: 1.7; color: var(--text);
  font-family: 'Playfair Display', serif; font-style: italic;
  margin-bottom: 24px;
}
.truth-list { list-style: none; margin-top: 24px; }
.truth-list li {
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--sand-dark);
  font-size: 15px; color: var(--text-muted); line-height: 1.6;
  position: relative;
}
.truth-list li::before {
  content: '';
  position: absolute; left: 0; top: 22px;
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal);
}
.truth-list li:last-child { border-bottom: none; }

/* image mosaic */
.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 10px; border-radius: 12px; overflow: hidden;
}
.photo-tile {
  background: var(--navy);
  overflow: hidden; position: relative;
}
.photo-tile:first-child { grid-row: span 2; }
.photo-tile svg { width: 100%; height: 100%; }
.photo-tile .tile-label {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(10,34,64,0.82);
  color: white; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 3px;
}

/* ── SWIM TYPES ── */
.swim-types-section { background: var(--sand); }
.types-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.type-card {
  background: white; border-radius: 10px;
  padding: 32px 28px;
  border: 1px solid var(--sand-dark);
  transition: box-shadow 0.2s, transform 0.2s;
}
.type-card:hover { box-shadow: 0 12px 40px rgba(10,34,64,0.1); transform: translateY(-3px); }
.type-icon {
  width: 52px; height: 52px;
  background: var(--teal-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.type-icon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; }
.type-card p { font-size: 14px; }

/* ── HISTORY ── */
.history-section { background: var(--navy); color: white; }
.history-section h2 { color: white; }
.history-section p { color: rgba(255,255,255,0.7); }
.history-section .section-label { color: var(--gold-light); }
.history-section .section-label::after { background: var(--gold); }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.timeline { margin-top: 32px; }
.tl-item { display: flex; gap: 20px; margin-bottom: 28px; }
.tl-dot {
  flex-shrink: 0; width: 36px; height: 36px;
  border: 2px solid var(--teal-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--teal-light);
  letter-spacing: 0;
}
.tl-body { padding-top: 6px; }
.tl-body strong { display: block; color: white; font-size: 14px; margin-bottom: 4px; }
.tl-body span { font-size: 13px; color: rgba(255,255,255,0.55); }

.usms-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 32px;
}
.usms-box h3 { color: white; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 10px 16px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 0.2s;
}
.badge:hover { background: rgba(255,255,255,0.14); color: white; }
.badge.gold { border-color: var(--gold); color: var(--gold-light); background: rgba(201,153,58,0.1); }

/* ── LOCATIONS ── */
.locations-section { background: white; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.loc-card {
  border: 1px solid var(--sand-dark); border-radius: 8px; padding: 24px;
  transition: border-color 0.2s;
}
.loc-card:hover { border-color: var(--teal); }
.loc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.loc-type { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 600; background: var(--teal-pale); padding: 3px 8px; border-radius: 20px; }
.loc-card h3 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.loc-card p { font-size: 13px; }
.loc-detail { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* ── JOIN / CTA ── */
.join-section {
  background: linear-gradient(135deg, var(--teal) 0%, #0a5a50 100%);
  text-align: center; padding: 100px 2rem;
}
.join-section h2 { color: white; font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.join-section p { color: rgba(255,255,255,0.8); font-size: 17px; max-width: 560px; margin: 0 auto 40px; }
.join-section .btn-white {
  background: white; color: var(--teal);
  padding: 16px 40px; border-radius: 4px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-block; transition: transform 0.15s, box-shadow 0.15s;
}
.join-section .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.join-note { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 18px; }

/* ── EVENTS ── */
.events-section { background: var(--sand); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.event-card {
  background: white; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--sand-dark);
  display: flex; flex-direction: column;
}
.event-header { background: var(--navy); padding: 20px 24px; display: flex; gap: 16px; align-items: center; }
.event-date-box { text-align: center; flex-shrink: 0; }
.event-month { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); }
.event-day { font-family: 'Playfair Display', serif; font-size: 30px; color: white; line-height: 1; }
.event-title { color: white; font-weight: 500; font-size: 15px; }
.event-loc { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.event-body { padding: 20px 24px; flex: 1; }
.event-body p { font-size: 13px; }
.event-tag { display: inline-block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; margin-bottom: 10px; }
.tag-pool { background: #e0f5f2; color: var(--teal); }
.tag-ow { background: #dbeeff; color: #1a6aaa; }
.tag-social { background: #fff0d4; color: #8a5c00; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 60px 2rem 30px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .name { font-family: 'Playfair Display', serif; color: white; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
footer h4 { color: white; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }

/* ── HAMBURGER ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .who-grid, .history-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .photo-mosaic { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .types-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .left { display: none; }
}
