/* =========================================================
   Swim with JB — Stylesheet
   Palette inspired by the flyer: soft aqua, teal, sandy gold.
   ========================================================= */

:root {
  --aqua-50:  #eef9fb;
  --aqua-100: #d7f0f4;
  --aqua-200: #aee1e9;
  --aqua-300: #7ccdd9;
  --aqua-400: #48b5c5;
  --teal-500: #2a9d8f;
  --teal-600: #20776e;
  --teal-700: #155952;
  --ink-900:  #0e3a46;
  --ink-700:  #1f5566;
  --ink-500:  #49778a;
  --gold-400: #e7b84a;
  --gold-500: #c99327;
  --sand-50:  #fbf7ef;
  --cream:    #fffdf7;
  --white:    #ffffff;
  --red-500:  #c45b5b;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(20, 80, 90, 0.06);
  --shadow:    0 8px 24px rgba(20, 80, 90, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 80, 90, 0.14);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--aqua-50) 0%, var(--white) 40%, var(--white) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }

/* ---------- Decorative water background ---------- */

.water-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top left, rgba(124, 205, 217, 0.25), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(42, 157, 143, 0.18), transparent 50%),
    linear-gradient(180deg, #f0f9fb 0%, #ffffff 60%);
  overflow: hidden;
}

.bubbles {
  position: absolute;
  inset: 0;
}
.bubbles span {
  position: absolute;
  bottom: -60px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(124, 205, 217, 0.35);
  box-shadow: inset -2px -2px 3px rgba(255,255,255,0.6);
  animation: rise 18s linear infinite;
}
.bubbles span:nth-child(1) { left: 6%;  width: 10px; height: 10px; animation-duration: 22s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 14%; width: 20px; height: 20px; animation-duration: 26s; animation-delay: -5s; }
.bubbles span:nth-child(3) { left: 28%; width: 8px;  height: 8px;  animation-duration: 18s; animation-delay: -9s; }
.bubbles span:nth-child(4) { left: 42%; width: 14px; height: 14px; animation-duration: 24s; animation-delay: -2s; }
.bubbles span:nth-child(5) { left: 55%; width: 18px; height: 18px; animation-duration: 28s; animation-delay: -14s; }
.bubbles span:nth-child(6) { left: 66%; width: 10px; height: 10px; animation-duration: 20s; animation-delay: -7s; }
.bubbles span:nth-child(7) { left: 74%; width: 16px; height: 16px; animation-duration: 25s; animation-delay: -3s; }
.bubbles span:nth-child(8) { left: 84%; width: 22px; height: 22px; animation-duration: 30s; animation-delay: -12s; }
.bubbles span:nth-child(9) { left: 90%; width: 9px;  height: 9px;  animation-duration: 19s; animation-delay: -6s; }
.bubbles span:nth-child(10){ left: 95%; width: 12px; height: 12px; animation-duration: 23s; animation-delay: -10s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles span { animation: none; display: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.3) blur(10px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(42, 157, 143, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-600);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand em { font-style: italic; color: var(--gold-500); }
.brand-icon { width: 40px; height: 26px; color: currentColor; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--teal-600); border-bottom-color: var(--aqua-300); }
.site-nav .nav-cta {
  background: var(--teal-500);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  border-bottom: none;
}
.site-nav .nav-cta:hover { background: var(--teal-600); color: #fff; }

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 1.25rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 120px;
  text-align: center;
  color: var(--ink-900);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(174, 225, 233, 0.55), transparent 70%),
    linear-gradient(180deg, var(--aqua-100) 0%, var(--aqua-50) 70%, transparent 100%);
  overflow: hidden;
}
.hero-inner { max-width: 780px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(42, 157, 143, 0.2);
  border-radius: 999px;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--teal-700);
  letter-spacing: -0.01em;
}
.display::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  margin: 18px auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6'><path d='M0 3 Q 15 0 30 3 T 60 3 T 90 3 T 120 3' fill='none' stroke='%232a9d8f' stroke-width='2' stroke-linecap='round'/></svg>") center/contain no-repeat;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--ink-700);
  margin: 0 0 18px;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-500);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--teal-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-600);
  border-color: var(--teal-500);
}
.btn-ghost:hover {
  background: var(--teal-500);
  color: #fff;
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 80px;
  display: block;
}

/* ---------- Generic section ---------- */

.section {
  padding: 80px 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--teal-700);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 1.08rem;
  color: var(--ink-500);
  margin: 0;
}

/* ---------- About / credentials ---------- */

.credentials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.credentials li {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42, 157, 143, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.credentials li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cred-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--aqua-100);
  color: var(--teal-600);
  border-radius: 50%;
}
.cred-icon svg { width: 28px; height: 28px; }
.credentials h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-700);
  margin: 0 0 6px;
  font-weight: 600;
}
.credentials p { margin: 0; color: var(--ink-500); font-size: 0.98rem; }

/* ---------- Lessons grid ---------- */

.section-lessons {
  background:
    linear-gradient(180deg, transparent 0%, var(--aqua-50) 40%, var(--aqua-50) 60%, transparent 100%);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.lesson-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42, 157, 143, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.lesson-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}
.lesson-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal-700);
  margin: 0 0 8px;
  font-weight: 600;
}
.lesson-card p { margin: 0; color: var(--ink-500); }

/* ---------- Notice ---------- */

.section-notice { padding: 40px 0; }
.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #fbf5e4 0%, #fffaf0 100%);
  border-left: 5px solid var(--gold-400);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.notice-icon {
  flex-shrink: 0;
  color: var(--gold-500);
}
.notice-icon svg { width: 36px; height: 36px; }
.notice-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-900);
  font-weight: 600;
}
.notice-card p { margin: 0; color: var(--ink-700); }

/* ---------- Rates ---------- */

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.rate-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42, 157, 143, 0.1);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.rate-card-featured {
  background: linear-gradient(160deg, var(--teal-500) 0%, var(--teal-600) 100%);
  color: #fff;
  border: none;
  box-shadow: var(--shadow);
}
.rate-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--teal-600);
  margin: 0 0 16px;
}
.rate-card-featured .rate-label { color: rgba(255, 255, 255, 0.85); }
.rate-price {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--teal-700);
  margin: 0 0 16px;
}
.rate-card-featured .rate-price { color: #fff; }
.rate-dollar {
  font-size: 2rem;
  vertical-align: super;
  font-weight: 400;
  margin-right: 4px;
}
.rate-meta {
  color: var(--ink-500);
  margin: 0;
  font-size: 0.95rem;
}
.rate-card-featured .rate-meta { color: rgba(255, 255, 255, 0.9); }

/* ---------- Availability / Calendar ---------- */

.section-availability {
  background: linear-gradient(180deg, transparent 0%, var(--aqua-50) 30%, var(--aqua-50) 70%, transparent 100%);
}
.calendar-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border: 1px solid rgba(42, 157, 143, 0.1);
}
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cal-btn {
  background: var(--aqua-100);
  color: var(--teal-700);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.cal-btn:hover { background: var(--aqua-200); }
.cal-btn:active { transform: scale(0.95); }
.cal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal-700);
  margin: 0;
  font-weight: 600;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  padding: 8px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--aqua-50);
  position: relative;
  transition: transform 0.1s;
}
.cal-day.empty { background: transparent; }
.cal-day.past { opacity: 0.35; background: transparent; color: var(--ink-500); }
.cal-day.available { background: #dff4e3; color: #1e7a3e; }
.cal-day.limited { background: #fdf2d7; color: #94670d; }
.cal-day.unavailable { background: #f2dddd; color: #a04646; text-decoration: line-through; }
.cal-day.today { outline: 2px solid var(--teal-500); outline-offset: -2px; font-weight: 700; }

.calendar-legend {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--ink-500);
}
.calendar-legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.swatch-available { background: #dff4e3; }
.swatch-limited { background: #fdf2d7; }
.swatch-unavailable { background: #f2dddd; }

.calendar-note {
  margin: 18px 0 0;
  text-align: center;
  font-style: italic;
  color: var(--ink-500);
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42, 157, 143, 0.1);
  color: var(--ink-900);
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--ink-900);
}
.contact-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--aqua-100);
  color: var(--teal-600);
  display: grid;
  place-items: center;
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-600);
  font-weight: 600;
  margin: 0 0 8px;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--teal-700);
  margin: 0 0 4px;
  font-weight: 600;
  word-break: break-word;
}
.contact-alt {
  color: var(--ink-500);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, transparent 0%, var(--aqua-100) 100%);
  color: var(--ink-500);
  text-align: center;
  margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-600);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 10px;
  font-weight: 600;
}
.footer-brand .brand-icon { width: 36px; height: 24px; }
.footer-meta { margin: 0 0 6px; font-size: 0.95rem; }
.footer-copy { margin: 0; font-size: 0.85rem; opacity: 0.75; }

/* ---------- Utilities / responsive ---------- */

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 90px; }
  .calendar-wrap { padding: 20px; }
  .cal-day { font-size: 0.85rem; }
}
