/* ===== VARIABLES & RESET ===== */
:root {
  --navy: #1a365d;
  --navy-light: #234981;
  --blue: #38bdf8;
  --blue-light: #7dd3fc;
  --blue-pale: #f0f9ff;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26, 54, 93, 0.10);
  --shadow-lg: 0 8px 40px rgba(26, 54, 93, 0.15);
  --transition: 0.3s ease;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 16px 36px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/images/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.85) 0%,
    rgba(26, 54, 93, 0.65) 50%,
    rgba(56, 189, 248, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 80px;
}

.hero-logo {
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.wave-bottom,
.wave-top {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-bottom {
  bottom: -1px;
}

.wave-top {
  top: -1px;
}

.wave-bottom svg,
.wave-top svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  padding: 80px 0;
}

.section-alt {
  background: var(--blue-pale);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy .section-title {
  color: var(--white);
}

.section-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 48px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 3 / 2;
}

.about-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  text-align: center;
  padding: 16px 8px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--navy);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credentials li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-600);
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.price-card.featured {
  border-color: var(--gold);
  position: relative;
}

.price-card.featured::after {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.price-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.age-range {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.price {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--navy);
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-400);
}

.payment-note {
  color: var(--gray-600);
  margin-bottom: 48px;
}

.coaching-photo {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.coaching-photo img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ===== ESSENTIALS ===== */
.essentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.essential-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.essential-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.essential-icon {
  margin-bottom: 16px;
}

.essential-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
}

.badge-required {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.badge-optional {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

.swimwear-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 32px;
}

.swimwear-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 12px;
}

.swimwear-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swimwear-col li {
  padding-left: 20px;
  position: relative;
  color: var(--gray-600);
}

.swimwear-col li::before {
  content: "•";
  position: absolute;
  left: 4px;
}

/* ===== POLICIES ===== */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.policy-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
}

.policy-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ===== BOOKING FORM ===== */
.booking-form {
  max-width: 720px;
  margin: 0 auto;
}

fieldset {
  border: none;
  margin-bottom: 32px;
}

legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-pale);
  width: 100%;
}

.form-row {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.req {
  color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

input.error,
select.error {
  border-color: var(--danger);
}

textarea {
  resize: vertical;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.checkbox-label:has(input:checked),
.radio-label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.consent-group .checkbox-label {
  border: none;
  padding: 0;
}

.consent-group .checkbox-label:has(input:checked) {
  background: none;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
}

.form-actions {
  text-align: center;
  margin-top: 16px;
}

.form-message {
  text-align: center;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.form-message.error {
  display: block;
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(26, 54, 93, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 24px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .policies-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  .essentials-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
  }

  .swimwear-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .hero-content {
    padding: 100px 16px 60px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}
