/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ocean:   #0A3D6B;
  --water:   #00B4D8;
  --foam:    #F0F8FF;
  --sand:    #E9C46A;
  --dark:    #1A1A2E;
  --white:   #FFFFFF;
  --text:    #2D2D2D;
  --muted:   #667788;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.10);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--water);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--ocean); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-large { padding: 18px 44px; font-size: 1.1rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ocean);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}
.logo span { color: var(--sand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--sand); }

.btn-nav {
  background: var(--water) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
}
.btn-nav:hover { background: var(--sand) !important; color: var(--ocean) !important; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--ocean) 0%, #005f8e 60%, var(--water) 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(0,180,216,0.18) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  padding-bottom: 100px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--sand);
  -webkit-text-stroke: 2px var(--sand);
}

.hero-sub {
  color: rgba(255,255,255,0.80);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 3;
}
.hero-wave svg { width: 100%; height: 100%; }
.wave-path {
  fill: var(--white);
  animation: waveMove 6s ease-in-out infinite alternate;
  transform-origin: center bottom;
}
.wave-2 {
  fill: rgba(0,180,216,0.3);
  animation: waveMove 4s ease-in-out infinite alternate-reverse;
}
@keyframes waveMove {
  0%   { d: path("M0,60 C240,120 480,0 720,60 C960,120 1200,0 1440,60 L1440,120 L0,120 Z"); }
  100% { d: path("M0,40 C240,100 480,20 720,80 C960,20 1200,100 1440,40 L1440,120 L0,120 Z"); }
}

/* ===== STATS ===== */
.stats {
  background: var(--ocean);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item { padding: 16px; }
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--sand);
  line-height: 1;
}
.stat-label {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTION COMMONS ===== */
.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--water);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ocean);
  line-height: 1.1;
  margin-bottom: 48px;
}

/* ===== PROGRAMS ===== */
.programs { padding: 96px 0; background: var(--foam); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid transparent;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.card-featured { border-top-color: var(--water); background: var(--ocean); color: var(--white); }
.card-featured h3, .card-featured p { color: rgba(255,255,255,0.9); }

.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; color: var(--ocean); }
.card-featured h3 { color: var(--sand); }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.card-tag {
  display: inline-block;
  background: var(--foam);
  color: var(--water);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-featured .card-tag { background: rgba(255,255,255,0.15); color: var(--sand); }

/* ===== WHY US ===== */
.why-us { padding: 96px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-list { margin: 28px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.why-list li { display: flex; align-items: center; gap: 12px; font-size: 0.97rem; }
.check { color: var(--water); font-size: 1.1rem; flex-shrink: 0; }

/* Pool visual */
.pool-graphic {
  position: relative;
  background: linear-gradient(180deg, #a8e4f0 0%, #00B4D8 100%);
  border-radius: 24px;
  height: 320px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 20px;
}
.lane {
  height: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}
.swimmer {
  position: absolute;
  font-size: 2.5rem;
  bottom: 30px;
  left: 10%;
  animation: swim 4s ease-in-out infinite alternate;
}
@keyframes swim {
  0%   { left: 10%; transform: scaleX(1); }
  100% { left: 70%; transform: scaleX(1); }
}

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 96px 0; background: var(--foam); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--water);
}
.testi-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testi-card strong { color: var(--ocean); font-size: 0.88rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--ocean), var(--water));
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 36px; }
.cta-banner .btn-primary { background: var(--sand); color: var(--ocean); }
.cta-banner .btn-primary:hover { background: var(--white); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 60px 24px 24px; color: rgba(255,255,255,0.7); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer ul { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.footer a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: var(--sand); }
.footer p { font-size: 0.9rem; line-height: 1.7; margin-top: 4px; }
.footer strong { color: var(--white); }
.footer-copy { text-align: center; font-size: 0.8rem; opacity: 0.4; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* ===== FORM PAGES ===== */
.page-hero {
  background: linear-gradient(135deg, var(--ocean), var(--water));
  padding: 80px 24px 60px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 800; }
.page-hero p { opacity: 0.8; margin-top: 8px; }

.form-section { padding: 80px 24px; background: var(--foam); }
.form-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}
.form-box h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; color: var(--ocean); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ocean); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d0dce8;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--water);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 14px; border: none; cursor: pointer; font-size: 1rem; font-family: 'Inter', sans-serif; }

/* ===== AUTH PAGES ===== */
.auth-section {
  min-height: calc(100vh - 68px);
  background: linear-gradient(135deg, var(--ocean) 0%, #005f8e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-box {
  background: var(--white);
  border-radius: 20px;
  padding: 52px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.auth-box .logo { display: block; text-align: center; font-size: 2rem; margin-bottom: 8px; }
.auth-box p.auth-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.auth-tabs { display: flex; margin-bottom: 32px; border-bottom: 2px solid var(--foam); }
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.active { color: var(--water); border-bottom-color: var(--water); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form .form-submit { margin-top: 8px; }
.auth-link { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.auth-link a { color: var(--water); font-weight: 600; }

/* ===== ABOUT PAGE ===== */
.about-section { padding: 80px 24px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1160px; margin: 0 auto; }
.about-text h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; color: var(--ocean); margin-bottom: 16px; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.trainer-card { background: var(--white); border-radius: var(--radius); padding: 32px 20px; text-align: center; box-shadow: var(--shadow); }
.trainer-avatar { font-size: 4rem; margin-bottom: 12px; }
.trainer-card h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; color: var(--ocean); }
.trainer-card span { font-size: 0.82rem; color: var(--water); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--ocean);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .navbar { position: relative; }

  .hero { min-height: 70vh; padding-top: 40px; }
  .hero-title { font-size: 3.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
  .pool-graphic { height: 200px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-box { padding: 36px 24px; }
  .form-box { padding: 32px 24px; }
}
