/* =========================================
   WATER ACADEMY — Main Stylesheet
   ========================================= */

/* 1. Variables */
:root {
  --primary:        #0077B6;
  --primary-dark:   #005f91;
  --dark:           #0D3B66;
  --secondary:      #00B4D8;
  --bg:             #F6FCFF;
  --accent:         #FF9F1C;
  --accent-dark:    #e08900;
  --white:          #FFFFFF;
  --text:           #1a2744;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;
  --border:         #e2f0fb;

  --shadow-sm:      0 2px 8px rgba(0, 119, 182, 0.08);
  --shadow:         0 4px 24px rgba(0, 119, 182, 0.12);
  --shadow-lg:      0 8px 48px rgba(0, 119, 182, 0.18);
  --shadow-card:    0 2px 16px rgba(13, 59, 102, 0.08);
  --shadow-hover:   0 8px 40px rgba(0, 119, 182, 0.22);

  --radius-sm:      8px;
  --radius:         16px;
  --radius-lg:      24px;
  --radius-xl:      32px;

  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s ease;

  --section-padding: 100px 0;
  --section-padding-sm: 64px 0;
}

/* 2. Base & Reset */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }

ul { list-style: none; padding: 0; margin: 0; }

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 119, 182, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}

.section-header { margin-bottom: 56px; }
.section-header.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* 4. Buttons */
.btn-primary-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 119, 182, 0.3);
  text-decoration: none;
}

.btn-primary-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 119, 182, 0.4);
  color: var(--white);
}

.btn-accent-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #ffb833);
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 159, 28, 0.35);
  text-decoration: none;
}

.btn-accent-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 159, 28, 0.5);
  color: var(--dark);
}

.btn-outline-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 31px;
  background: transparent;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-wa:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-primary-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 31px;
  background: transparent;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-primary-wa:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* 5. Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(13, 59, 102, 0.1);
  padding: 12px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white) !important;
  text-decoration: none;
  transition: var(--transition-fast);
}

#navbar.scrolled .navbar-brand { color: var(--dark) !important; }

.brand-logo {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

#navbar.scrolled .navbar-nav .nav-link { color: var(--text) !important; }

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-nav .nav-link:hover { color: var(--white) !important; }
#navbar.scrolled .navbar-nav .nav-link:hover { color: var(--primary) !important; }

.btn-nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--accent), #ffb833);
  color: var(--dark) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255, 159, 28, 0.3);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 159, 28, 0.45);
  color: var(--dark) !important;
}

.btn-nav-cta::after { display: none !important; }

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#navbar.scrolled .navbar-toggler { border-color: var(--border); }
#navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813%2C59%2C102%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 6. Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(13,59,102,0.88) 0%, rgba(0,119,182,0.82) 60%, rgba(0,180,216,0.75) 100%),
              url('../img/hero-pool.jpg') center/cover no-repeat;
  overflow: hidden;
  color: var(--white);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,180,216,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: floatUp 8s ease-in-out infinite;
}

.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; animation-duration: 9s; }
.bubble:nth-child(2) { width: 50px; height: 50px; left: 25%; animation-delay: 2s; animation-duration: 7s; }
.bubble:nth-child(3) { width: 120px; height: 120px; left: 60%; animation-delay: 1s; animation-duration: 11s; }
.bubble:nth-child(4) { width: 40px; height: 40px; left: 80%; animation-delay: 3s; animation-duration: 8s; }
.bubble:nth-child(5) { width: 90px; height: 90px; left: 45%; animation-delay: 5s; animation-duration: 10s; }

@keyframes floatUp {
  0%   { transform: translateY(110vh) scale(0.6); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.hero-badge i { color: var(--accent); }

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-stat i { color: var(--accent); font-size: 1.1rem; }

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

.hero-image-col {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-card img {
  width: 100%;
  max-width: 460px;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
}

.hero-img-badge .badge-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.hero-img-badge .badge-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-img-badge .badge-sub { font-size: 0.75rem; color: var(--text-muted); }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  cursor: pointer;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.4; }
}

/* 7. Wave Separators */
.wave-section {
  position: relative;
  overflow: visible;
}

.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%; }

/* 8. Programs Section */
#programs { padding: var(--section-padding); background: var(--white); }

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,119,182,0.15);
}

.program-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card:hover .program-card-img img { transform: scale(1.06); }

.program-card-icon {
  position: absolute;
  bottom: -22px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
  z-index: 1;
}

.program-card-icon i { font-size: 1.1rem; color: var(--primary); }

.program-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.program-card-body {
  padding: 40px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.program-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.program-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.program-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text);
}

.program-feature i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }

/* 9. About / Why Choose Us */
#about { padding: var(--section-padding); background: var(--bg); }

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-stat-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-stat-float.stat-top { top: 32px; right: -20px; }
.about-stat-float.stat-bottom { bottom: 48px; left: -20px; }

.about-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-stat-icon i { color: var(--white); font-size: 1.3rem; }

.about-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.about-content { padding-left: 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:hover { box-shadow: var(--shadow); border-color: rgba(0,119,182,0.15); }

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-list { display: flex; flex-direction: column; gap: 14px; }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 119, 182, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon i { color: var(--primary); font-size: 1rem; }

.feature-text h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* 10. How It Works — Timeline */
#how-it-works { padding: var(--section-padding); background: var(--white); }

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
  opacity: 0.25;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  width: 44%;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-content:hover { box-shadow: var(--shadow); border-color: rgba(0,119,182,0.15); }

.timeline-item:nth-child(odd) .timeline-content { margin-right: auto; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; }

.timeline-spacer    { width: 44%; flex-shrink: 0; }
.timeline-connector { width: 12%; display: flex; justify-content: center; }

.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 119, 182, 0.35);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot i { color: var(--white); font-size: 1.3rem; }

.timeline-step {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* 11. Gallery */
#gallery { padding: var(--section-padding); background: var(--bg); }

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,59,102,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay i { color: var(--white); font-size: 1.5rem; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* 12. Testimonials */
#testimonials { padding: var(--section-padding); background: var(--white); }

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0;
}

.testimonial-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 12px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow); border-color: rgba(0,119,182,0.15); }

.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars i { color: var(--accent); font-size: 0.9rem; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.slider-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.slider-dots { display: flex; gap: 8px; }

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  padding: 0;
}

.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* 13. FAQ */
#faq { padding: var(--section-padding); background: var(--bg); }

.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-accordion .accordion-button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--dark);
  background: var(--white);
  padding: 20px 24px;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: rgba(0,119,182,0.03);
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230077B6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 24px 20px;
}

/* 14. CTA Banner */
#cta { padding: 80px 0; }

.cta-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-contact-info {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

.cta-contact-item i { color: var(--accent); }

/* 15. Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
  color: rgba(255,255,255,0.6);
}

.footer-social { display: flex; gap: 10px; }

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-social-link:hover { background: var(--primary); color: var(--white); }

.footer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a i { font-size: 0.7rem; color: var(--accent); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-items { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-contact-item a:hover { color: var(--secondary); }

.footer-contact-item i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-cards {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-card-badge {
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
}

.footer-bottom-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* 16. Page Hero (inner pages) */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,180,216,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
}

.breadcrumb-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.breadcrumb-wa a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb-wa a:hover { color: var(--white); }
.breadcrumb-wa i { font-size: 0.6rem; }

/* 17. Schedule Table */
.schedule-section { padding: var(--section-padding); }

.pool-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pool-tab {
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pool-tab:hover { border-color: var(--primary); color: var(--primary); }
.pool-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.schedule-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.schedule-table thead tr {
  background: var(--dark);
  color: var(--white);
}

.schedule-table thead th {
  padding: 16px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  white-space: nowrap;
}

.schedule-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.schedule-table tbody tr:last-child { border-bottom: none; }
.schedule-table tbody tr:hover { background: rgba(0,119,182,0.03); }

.schedule-table td {
  padding: 14px 20px;
  vertical-align: middle;
}

.schedule-day-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dark);
  white-space: nowrap;
}

.schedule-time {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
  white-space: nowrap;
}

.schedule-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.avail-available { background: rgba(6, 214, 160, 0.1); color: #028a60; }
.avail-few       { background: rgba(255, 159, 28, 0.12); color: #b36a00; }
.avail-full      { background: rgba(239, 68, 68, 0.1); color: #c53030; }

.schedule-note {
  background: rgba(0,119,182,0.05);
  border: 1px solid rgba(0,119,182,0.12);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.schedule-note i { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* 18. Contact Page */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-label-wa {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-control-wa {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition-fast);
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-control-wa:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,119,182,0.08);
}

.form-control-wa::placeholder { color: var(--text-light); }

textarea.form-control-wa { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-info-card:hover { box-shadow: var(--shadow); }

.contact-pool-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
}

.map-embed iframe {
  display: block;
  border: none;
  border-radius: var(--radius-sm);
}

/* 19. Aqua Fitness Page specifics */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,119,182,0.08), rgba(0,180,216,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.benefit-icon i { font-size: 1.5rem; color: var(--primary); }
.benefit-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.benefit-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.class-type-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

.class-type-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.class-type-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.class-type-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.class-type-icon i { font-size: 1.4rem; color: var(--white); }

.class-type-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.class-type-intensity { font-size: 0.8rem; color: var(--text-muted); }
.class-type-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }

.intensity-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.intensity-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.intensity-low .intensity-fill { width: 33%; }
.intensity-medium .intensity-fill { width: 66%; }
.intensity-high .intensity-fill { width: 95%; }

/* 20. Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* 21. Cards layout utilities */
.section-bg-white { background: var(--white); }
.section-bg-light { background: var(--bg); }

.mt-section { margin-top: 80px; }

/* 22. Progress / loading for schedule */
.schedule-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.spinner-wa {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

/* 23. Hours table */
.hours-table {
  width: 100%;
  font-size: 0.9rem;
}

.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 10px 0; }
.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { font-weight: 600; color: var(--dark); text-align: right; }

/* 24. Combined Schedule Tabs */
.combined-schedule-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.combined-tab {
  padding: 12px 28px;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 0;
}

.combined-tab:hover { color: var(--primary); }

.combined-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 25. Price chip */
.price-chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}
