/* Swim Solutions Aquatics — shared stylesheet */

:root {
  --navy: #08172e;
  --navy-soft: #0f2542;
  --blue: #2196c4;
  --blue-deep: #14688c;
  --cream: #faf9f5;
  --paper: #ffffff;
  --ink: #14202f;
  --ink-soft: #4a5a6e;
  --line: #e2ded4;
  --whatsapp: #25d366;
  --warn: #b4531a;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; }

.display {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

h1.display { font-size: clamp(2.8rem, 8vw, 5.2rem); }
h2.display { font-size: clamp(2rem, 5vw, 3.2rem); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.on-dark .eyebrow, .dark .eyebrow { color: var(--blue); }

.serif-note {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
}

.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}
.brand {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.35rem; letter-spacing: 0.04em;
  color: var(--navy); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand span { color: var(--blue); }
.brand-logo { height: 36px; width: auto; flex-shrink: 0; }
@media (max-width: 720px) { .brand-logo { height: 30px; } }

/* ---------- Photos ---------- */

.photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: auto; display: block; }
.photo figcaption {
  padding: 10px 16px; font-size: 0.82rem; color: var(--ink-soft);
  background: var(--paper); border-top: 1px solid var(--line);
}
.dark .photo { border-color: #1c3455; }
.dark .photo figcaption { background: #0d1f39; color: #a9bcd2; border-top-color: #1c3455; }
.photo-round { border-radius: 999px; overflow: hidden; max-width: 260px; }
.photo-round img { width: 100%; height: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-deep); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .nav { margin-left: 0; width: 100%; gap: 16px; }
  .nav a { font-size: 0.7rem; }
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--whatsapp); color: #06331a; }
.btn-wa:hover { background: #1fbe5b; color: #06331a; }
.btn-line { border: 1.5px solid currentColor; color: var(--navy); }
.on-dark .btn-line, .dark .btn-line { color: var(--cream); }
.btn-solid { background: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--navy-soft); color: var(--cream); }

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

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.dark { background: var(--navy); color: #dfe7f0; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lede { color: #a9bcd2; }

.section-head { max-width: 660px; margin-bottom: 48px; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--blue); transform: translateY(-3px); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .more {
  margin-top: auto; padding-top: 18px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--blue-deep);
}
.card-num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.6rem; color: var(--blue); line-height: 1; margin-bottom: 12px;
}

/* Stage cards */
.stage-card .badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
}
.stage-card.bronze .badge { background: #8a5a2b; }
.stage-card.silver .badge { background: #6b7280; }
.stage-card.gold   .badge { background: #a67c00; }
.stage-card .goal {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--ink-soft);
}
.stage-card .goal strong { color: var(--ink); }

/* ---------- Callouts ---------- */

.callout {
  border-left: 4px solid var(--blue);
  background: #eef6fa;
  padding: 22px 26px; border-radius: 0 10px 10px 0;
  margin: 30px 0;
}
.callout.warn { border-left-color: var(--warn); background: #fdf1e8; }
.callout h4 { font-size: 1rem; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: 0.97rem; }

/* ---------- Article ---------- */

.article { padding: 64px 0 80px; }
.article h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.article h3 { font-size: 1.22rem; margin: 32px 0 10px; }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 22px 1.15rem; }
.article li { margin-bottom: 9px; }
.article ol.steps { counter-reset: s; list-style: none; margin-left: 0; }
.article ol.steps li {
  counter-increment: s; position: relative;
  padding-left: 44px; margin-bottom: 14px;
}
.article ol.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.meta {
  font-size: 0.82rem; color: var(--ink-soft);
  padding-bottom: 24px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin: 26px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; min-width: 460px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  border-bottom: 2px solid var(--navy);
}
tbody tr:hover { background: #f3f1ea; }

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: c; }
.checklist li {
  counter-increment: c;
  position: relative; padding: 13px 0 13px 46px;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: counter(c);
  position: absolute; left: 0; top: 12px;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink-soft); font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.checklist li .flag {
  display: inline-block; margin-left: 8px;
  padding: 2px 9px; border-radius: 999px;
  background: #fdf1e8; color: var(--warn);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  vertical-align: middle;
}
.checklist li .flag.new { background: #e7f5ec; color: #1a6b3c; }

/* ---------- Sequence blocks ---------- */

.seq {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); margin: 22px 0; overflow: hidden;
}
.seq-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  background: #f3f1ea;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.seq-head h3 { font-size: 1.08rem; margin: 0; }
.seq-head .note {
  flex-basis: 100%; font-size: 0.87rem; color: var(--ink-soft); margin: 0;
}
.seq .checklist { margin: 0; padding: 4px 22px 14px; }
.seq .checklist li:last-child { border-bottom: none; }

.gog {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.gog-ok { background: #e7f5ec; color: #1a6b3c; }
.gog-no { background: #fdf1e8; color: var(--warn); }
.gog-mixed { background: #eef6fa; color: var(--blue-deep); }

/* ---------- Facts strip ---------- */

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 30px 0; }
.facts div { background: var(--paper); padding: 20px; }
.facts dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.facts dd { font-size: 1.02rem; font-weight: 600; }

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

.site-footer { background: var(--navy); color: #91a5bd; padding: 60px 0 40px; font-size: 0.9rem; }
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 40px; }
.footer-cols h4 { color: #fff; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid #1c3455; padding-top: 26px; font-size: 0.82rem; line-height: 1.7; }

/* ---------- Breadcrumb ---------- */

.crumb { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); padding: 22px 0 0; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--blue-deep); text-decoration: underline; }

/* ---------- Read next ---------- */

.read-next { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 34px; }

/* ---------- Print (coach checklists) ---------- */

@media print {
  .site-header, .site-footer, .crumb, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  section { padding: 0; }
  .checklist li { break-inside: avoid; }
}
