/* ========================================
   One World Aquatics – Shared Stylesheet
   Soft aquatic blue theme
======================================== */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #06b6d4;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --card-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
  --radius: 16px;
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ========== Header ========== */
header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.site-logo {
  height: 86px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

nav a.btn {
  background: var(--primary);
  color: white !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
}

nav a.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 132, 199, 0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 520px;
  margin: 0 auto;
}

/* ========== Layout ========== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ========== Cards (Programs list) ========== */
.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* ========== AI coaching tools ========== */
.ai-tools {
  max-width: 960px;
  margin: 0 auto 2.75rem;
}

.ai-tools h2 {
  text-align: center;
  font-size: 1.45rem;
  color: var(--primary-dark);
  margin-bottom: 0.55rem;
}

.ai-tools-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 1.6rem;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ai-tool {
  background: var(--white);
  border: 1px solid #e0f2fe;
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--card-shadow);
}

.ai-tool h3 {
  font-size: 1.02rem;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.ai-tool p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .ai-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

/* ========== Program Detail Pages ========== */
.program-hero {
  background-image: url('images/pool-hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.program-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 132, 199, 0.45);
}

.program-hero > * {
  position: relative;
  z-index: 1;
}

.program-hero .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.program-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.program-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto;
}

.program-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.program-content h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 2.2rem 0 0.8rem;
}

.program-content h2:first-child {
  margin-top: 0;
}

.program-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.program-content ul {
  margin: 1rem 0 1.5rem 1.4rem;
  color: var(--text-muted);
}

.program-content li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.75rem 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.cta-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
  box-shadow: var(--card-shadow);
}

.cta-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--primary-dark);
}

/* ========== Footer ========== */
footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: auto;
  padding-top: 3rem;
}

.footer-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-content h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-content a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.875rem;
}

.ai-banner {
  text-align: center;
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.7rem 1.25rem;
  margin: 0;
  border-bottom: 1px solid #bae6fd;
  line-height: 1.45;
}

.ai-note {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* ========== Testimonials ========== */
.testimonials {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 3.5rem 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.testimonials .subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
  border: 1px solid #e0f2fe;
  display: flex;
  flex-direction: column;
}

.testimonial-card .stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-card .quote {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card .author-info strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
}

.testimonial-card .author-info span {
  color: #64748b;
  font-size: 0.85rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-logo {
    height: 70px;
    max-width: 250px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .card {
    flex-direction: column !important;
    text-align: center;
    gap: 1rem !important;
    align-items: center !important;
  }

  .card-icon {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.25rem;
  }

  .card .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .program-hero {
    padding: 2.5rem 1rem;
  }
}
