/* ==========================================================================
   Lane Four Performance Swimming — main stylesheet
   ========================================================================== */

:root {
  --navy-950: #081b30;
  --navy-900: #0d4786;
  --navy-800: #135a92;
  --navy-700: #1c6ea5;
  --teal-500: #1e73b3;
  --teal-400: #3fa0cc;
  --gold-400: #6bb8dd;
  --gold-500: #1568a3;
  --ink: #0f2430;
  --ink-soft: #445a68;
  --paper: #ffffff;
  --paper-alt: #f4f8f9;
  --border-soft: #e2e9eb;
  --shadow-sm: 0 2px 8px rgba(7, 22, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(7, 22, 32, 0.10);
  --radius: 14px;
  --container: 1120px;
  --nav-height: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: none;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 8px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(7, 22, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wordmark-logo {
  height: 38px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  flex-shrink: 0;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wordmark-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.primary-nav a:hover { color: #fff; }

.primary-nav a[data-nav]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--teal-400);
  transition: width 0.2s ease;
}
.primary-nav a[data-nav].active::after,
.primary-nav a[data-nav]:hover::after {
  width: 100%;
}
.primary-nav a[data-nav].active {
  color: #fff;
}

.nav-cta {
  background: var(--teal-500);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--teal-400); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 27, 48, 0.72) 0%, rgba(13, 71, 134, 0.66) 50%, rgba(28, 110, 165, 0.74) 100%),
    url('../../public/images/hero-race.jpg') center 55% / cover no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  padding: 120px 24px 100px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  color: #fff;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
}
.wave-divider path { fill: var(--paper); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: rgba(7, 22, 32, 0.4);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(7, 22, 32, 0.6);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-small {
  padding: 9px 20px;
  font-size: 0.82rem;
  background: var(--navy-900);
  color: #fff;
}
.btn-small:hover { background: var(--teal-500); }

/* ---------- Sections ---------- */

.section {
  padding: 100px 24px;
  background: var(--paper);
}
.section-alt {
  background: var(--paper-alt);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy-900);
  margin-bottom: 20px;
}

.section-lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 40px;
}

.pricing-note {
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pricing-note strong { color: var(--navy-900); }

/* ---------- Camps cards ---------- */

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card-row .empty-note { grid-column: 1 / -1; }

.card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.camp-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 10px;
}

.camp-card h3 {
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 18px;
}

.camp-meta {
  margin-bottom: 22px;
}
.camp-meta li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.camp-meta li:last-child { border-bottom: none; }
.camp-meta li span {
  font-weight: 600;
  color: var(--navy-800);
}

.camp-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
  white-space: pre-line;
}

.empty-note {
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 24px 26px;
  border: 1px dashed #c9d6da;
  border-radius: var(--radius);
  background: var(--paper-alt);
}

/* ---------- News ---------- */

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card h3 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}
.news-body {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ---------- Pricing grid ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 620px;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.price-card-accent {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.price-card-accent .price-label,
.price-card-accent .price-note { color: rgba(255, 255, 255, 0.7); }
.price-card-accent .price-amount { color: #fff; }

.price-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price-amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--navy-900);
  margin: 10px 0;
}
.price-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Video analysis feature row ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--paper-alt);
  border-radius: 10px;
}
.feature-icon {
  color: var(--teal-500);
  font-size: 0.6rem;
  margin-top: 6px;
}
.feature p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

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

.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.about-portrait {
  width: 220px;
  height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--navy-800), var(--teal-500));
  position: relative;
  overflow: hidden;
}
.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 2px,
    transparent 2px,
    transparent 30px
  );
}

.credentials-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-soft);
}
.credentials-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
}
.credentials-list li:last-child { border-bottom: none; }

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

.contact-section {
  background: var(--navy-950);
  color: #fff;
}
.contact-section h2 { color: #fff; }
.contact-section .section-lede { color: rgba(255, 255, 255, 0.7); }
.contact-section .section-tag { color: var(--teal-400); }

.contact-form {
  max-width: 520px;
}
.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.form-row input,
.form-row textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-400);
}
.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--gold-400);
}

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

.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 24px 32px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.wordmark-footer { color: #fff; }
.footer-logo-link { display: inline-flex; }
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    width: 140px;
    height: 160px;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.open {
    max-height: 420px;
  }
  .primary-nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .primary-nav a[data-nav]::after { display: none; }
  .nav-cta {
    margin: 16px 24px;
    text-align: center;
    width: calc(100% - 48px);
  }

  .section { padding: 72px 20px; }
  .hero-content { padding: 100px 20px 80px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
