/* Swim2You — palette (WCAG AA-checked against its paired backgrounds)
   --ink       #0B2340  on --white / --foam  : 14.9:1 / 13.7:1
   --deep      #075C7A  on --white           : 5.7:1
   --teal      #0E7C86  on --white           : 4.6:1
   --white     #FFFFFF  on --deep / --ink    : 5.7:1 / 14.9:1
   --sun       #FFB703  on --ink (buttons)   : text uses --ink, 9.9:1
*/
:root {
  --ink: #0b2340;
  --deep: #075c7a;
  --teal: #0e7c86;
  --aqua: #17a5b8;
  --sky: #cdeef2;
  --foam: #f2fbfc;
  --white: #ffffff;
  --sun: #ffb703;
  --sun-ink: #4a2e00;
  --shadow: 0 12px 30px -12px rgba(7, 43, 66, 0.35);
  --radius: 18px;
  --max: 1160px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.15rem;
  color: #2c4a63;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--sun);
  color: var(--sun-ink);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px -12px rgba(7, 43, 66, 0.45);
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border-color: var(--deep);
  color: var(--deep);
}

.btn-outline:hover {
  background: var(--foam);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--sky);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--deep);
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--deep) 55%, var(--teal) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 120px;
}

.hero-copy .lede {
  color: #dcf3f6;
}

.hero h1 {
  color: var(--white);
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 110px;
}

.hero-stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  color: var(--sun);
}

.hero-stats span {
  font-size: 0.85rem;
  color: #cdeef2;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-waves svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Section shell ---------- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.bg-foam {
  background: var(--foam);
}

/* ---------- Programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.program-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--foam);
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-icon svg {
  width: 32px;
  height: 32px;
}

.program-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: #2c4a63;
}

.program-card li {
  margin-bottom: 6px;
}

.program-tag {
  align-self: flex-start;
  background: var(--sky);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}

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

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

.coach-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(160deg, var(--teal), var(--deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.coach-role {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.coach-bio {
  color: #2c4a63;
  font-size: 0.95rem;
}

/* ---------- Schedule ---------- */
.schedule-wrap {
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
}

table.schedule caption {
  text-align: left;
  padding: 20px 24px 0;
  font-weight: 700;
  color: var(--deep);
}

table.schedule th,
table.schedule td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sky);
  font-size: 0.95rem;
}

table.schedule thead th {
  background: var(--deep);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

table.schedule tbody tr:last-child td {
  border-bottom: none;
}

table.schedule tbody tr:nth-child(even) {
  background: var(--foam);
}

.schedule-note {
  padding: 18px 24px;
  font-size: 0.9rem;
  color: #2c4a63;
  border-top: 1px solid var(--sky);
}

/* ---------- Contact / CTA ---------- */
.cta {
  background: linear-gradient(160deg, var(--teal) 0%, var(--deep) 60%, var(--ink) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cta h2 {
  color: var(--white);
}

.cta .lede {
  color: #dcf3f6;
}

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

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

.form-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--sky);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--foam);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--sun);
  outline-offset: 1px;
  border-color: var(--teal);
}

.form-note {
  font-size: 0.8rem;
  color: #4a6478;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9d3e0;
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: #b9d3e0;
}

.footer-links a:hover {
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 90px;
  }

  .hero-art {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }

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

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

  .cta .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  section {
    padding: 64px 0;
  }

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

  .coaches-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .coaches-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
