/* ============================================================
   SwimREC marketing site — shared stylesheet
   Fonts: Chakra Petch (headings) + IBM Plex Sans Thai (body)
   ============================================================ */

:root {
  --navy: #0b1230;
  --brand-deep: #1b3fc7;
  --brand: #2845d6;
  --sky: #3fa9f5;
  --ink: #16213e;
  --ink-soft: #5b6b8c;
  --paper: #ffffff;
  --mist: #f4f8fd;
  --mist-deep: #e8f0fc;
  --lane: #d8e3fb;
  --gold: #f2a33c;
  --gold-deep: #d98620;
  --line: #e2e8f4;

  --font-head: "Chakra Petch", "IBM Plex Sans Thai", sans-serif;
  --font-body: "IBM Plex Sans Thai", "IBM Plex Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-deep), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand);
  border-color: var(--brand);
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
}

.mobile-panel a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-panel.open {
  display: flex;
}

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

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

.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 60px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mist-deep);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

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

.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 18, 48, 0.22);
}

.btn-primary .btn-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}

.btn-outline {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* floating stat cards in hero */

.hero-visual {
  position: relative;
  height: 420px;
}

.stat-card {
  position: absolute;
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 45px rgba(16, 35, 90, 0.14);
  border: 1px solid var(--line);
  width: 220px;
}

.stat-card .label {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: none;
  margin-bottom: 4px;
}

.stat-card .value {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.stat-card .sub {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 2px;
}

.stat-card.card-a {
  top: 10px;
  right: 10px;
  transform: rotate(-3deg);
}

.stat-card.card-b {
  top: 190px;
  right: 110px;
  transform: rotate(2deg);
  z-index: 2;
}

.stat-card.card-c {
  top: 330px;
  right: 0;
  transform: rotate(-1.5deg);
  width: 190px;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c17a;
  margin-right: 6px;
}

.lanes {
  display: block;
  width: 100%;
  height: 46px;
}

/* ---------- Feature list ---------- */

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 560px;
  margin: 0 0 48px;
}

.section-kicker {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 10px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}

.feature-row:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--mist-deep);
}

.feature-row h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}

.feature-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 640px;
}

/* ---------- Coach / Parent split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-panel {
  padding: 72px 48px;
}

.split-panel.dark {
  background: var(--navy);
  color: #fff;
}

.split-panel.light {
  background: var(--mist);
  color: var(--ink);
}

.split-panel .tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.split-panel.dark .tag {
  background: rgba(255, 255, 255, 0.12);
  color: #bcd0ff;
}

.split-panel.light .tag {
  background: var(--mist-deep);
  color: var(--brand-deep);
}

.split-panel h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
}

.split-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.split-panel li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.split-panel.dark li {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

.split-panel.light li {
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-panel {
    padding: 56px 28px;
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  font-size: 15px;
}

.cta-band .cta-row {
  justify-content: center;
}

.cta-band .btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 14px 30px rgba(242, 163, 60, 0.3);
}

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

footer.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 280px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #9aa7c2;
}

/* ---------- Inner page header (Contact / Privacy) ---------- */

.page-head {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--sky) 100%);
  padding: 64px 0 52px;
}

.page-head .wrap {
  max-width: 820px;
}

.page-head .eyebrow-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.page-head h1 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

.page-head p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  margin: 0;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mist-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}

.contact-card p {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: 0 0 14px;
}

.contact-card a.contact-value {
  display: inline-block;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  font-size: 15px;
}

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

/* ---------- Privacy page ---------- */

.policy-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.lang-switch a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.policy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.policy-toc a {
  font-size: 12.5px;
  color: var(--brand);
  text-decoration: none;
  background: var(--mist-deep);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.policy-section {
  scroll-margin-top: 24px;
}

.policy-section + .policy-section {
  margin-top: 40px;
}

.policy-section h2 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mist-deep);
}

.policy-section h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand);
  margin: 22px 0 8px;
}

.policy-section p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.policy-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.policy-section li {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 6px;
}

.policy-section li strong {
  color: var(--ink);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 13.5px;
}

.policy-table th {
  text-align: left;
  color: var(--ink);
  font-weight: 700;
  padding: 10px;
  border-bottom: 2px solid var(--line);
  background: var(--mist);
}

.policy-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

@media (max-width: 480px) {
  .policy-table,
  .policy-table thead,
  .policy-table tbody,
  .policy-table th,
  .policy-table td,
  .policy-table tr {
    display: block;
  }
  .policy-table th {
    border-bottom: none;
  }
  .policy-table td {
    border-bottom: none;
    padding: 4px 0;
  }
  .policy-table tr {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
}

/* ---------- Responsive: hero / sections ---------- */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 320px;
    margin-top: 20px;
  }
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 540px) {
  .section {
    padding: 60px 0;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .stat-card {
    width: 180px;
    padding: 12px 14px;
  }
  .stat-card .value {
    font-size: 21px;
  }
}
