/* =========================================
   SPLASH & DASH MOBILE SWIM LESSONS
   FULL REBUILD - SHARED SITE STYLES
========================================= */

:root {
  --blue: #0a4277;
  --blue-2: #1360a1;
  --light-blue: #eef7ff;
  --orange: #ff8c24;
  --orange-dark: #f27800;
  --text: #18364d;
  --text-soft: #5f7283;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(10, 66, 119, 0.10);
  --shadow-strong: 0 18px 40px rgba(10, 66, 119, 0.16);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --site-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

.container {
  width: min(var(--site-width), 92%);
  margin: 0 auto;
}

.narrow {
  width: min(820px, 92%);
  margin: 0 auto;
}

.section {
  padding: 84px 20px;
}

.center {
  text-align: center;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 18px 20px;
}

.nav-wrap {
  width: min(var(--site-width), 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
}

.logo {
  width: 105px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
  padding: 14px 24px;
  box-shadow: 0 10px 20px rgba(255, 140, 36, 0.20);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 12px 22px;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--blue);
}

.btn-blue {
  background: var(--blue);
  color: #ffffff;
  padding: 14px 24px;
}

.btn-blue:hover {
  background: var(--blue-2);
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */

.hero,
.subpage-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img,
.subpage-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 44, 79, 0.28), rgba(8, 44, 79, 0.58));
  z-index: 1;
}

.hero-content,
.subpage-hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-align: center;
  width: min(920px, 92%);
}

.hero-content {
  padding: 175px 20px 155px;
}

.subpage-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-hero-content {
  padding: 155px 20px 115px;
}

.hero-logo {
  width: 150px;
  margin: 0 auto 18px;
}

.hero h1,
.subpage-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-sub,
.subpage-hero p {
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-tagline {
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.hero-phone {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffd6b2;
  margin-bottom: 18px;
}

.service-area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-weight: 700;
}

.service-area .dot {
  color: var(--orange);
  font-size: 1.15rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 4;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 135px;
}

/* =========================
   SHARED SECTIONS
========================= */

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--blue);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.soft-bg {
  background:
    linear-gradient(rgba(247, 252, 255, 0.95), rgba(247, 252, 255, 0.95)),
    url("assets/pool-bg.jpeg") center/cover no-repeat;
}

.white-bg {
  background: #ffffff;
}

/* =========================
   CARDS
========================= */

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.info-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 66, 119, 0.06);
}

.quick-program-card {
  text-align: center;
  padding: 28px 22px;
}

.quick-program-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 auto 16px;
}

.quick-program-card h3 {
  color: var(--blue);
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.quick-program-card p {
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* =========================
   HOW IT WORKS
========================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px 22px;
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: var(--orange);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.step-card h3 {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.step-card p {
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* =========================
   COACH SECTION
========================= */

.coach-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 44px;
  align-items: center;
}

.coach-photo {
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
}

.coach-copy h2 {
  color: var(--blue);
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 14px;
}

.coach-copy p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.coach-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}

.coach-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text);
}

.coach-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: 800;
}

/* =========================
   WHY CHOOSE US
========================= */

.why-card {
  padding: 28px 24px;
  text-align: center;
}

.why-card h3 {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.why-card p {
  color: var(--text-soft);
  font-size: 0.97rem;
}

/* =========================
   PROGRAMS PAGE
========================= */

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.program-card {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 66, 119, 0.06);
}

.program-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.program-content {
  padding: 26px 24px 28px;
}

.program-content h3 {
  color: var(--blue);
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.program-age {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 14px;
}

.program-content p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.program-content ul {
  padding-left: 18px;
  margin-bottom: 20px;
}

.program-content li {
  color: var(--text);
  margin-bottom: 8px;
}

/* =========================
   CTA
========================= */

.cta-box {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #ffffff;
  border-radius: 30px;
  text-align: center;
  padding: 44px 28px;
  box-shadow: var(--shadow-strong);
}

.cta-box h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 10px;
}

.cta-box p {
  max-width: 700px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,0.92);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: var(--blue);
  color: #ffffff;
  text-align: center;
  padding: 46px 20px;
}

.footer-logo {
  width: 115px;
  margin: 0 auto 16px;
}

.footer-tagline {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.04rem;
}

.footer-service-area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-service-area .dot {
  color: var(--orange);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffffff;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffd0a8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
  .card-grid-4,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .coach-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .coach-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .main-nav {
    justify-content: center;
    gap: 14px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 190px;
    padding-bottom: 135px;
  }

  .subpage-hero {
    min-height: 460px;
  }

  .subpage-hero-content {
    padding-top: 180px;
    padding-bottom: 100px;
  }

  .section {
    padding: 72px 18px;
  }
}

@media (max-width: 640px) {
  .card-grid-4,
  .card-grid-3,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 132px;
  }

  .hero h1,
  .subpage-hero h1 {
    font-size: 2.2rem;
  }
}
