/* ===========================================================
   Wavemark Swim — shared stylesheet
   Placeholder brand palette — swap the variables below for
   your real brand colors / fonts once finalized.
   =========================================================== */

:root {
  --navy: #0b2545;
  --navy-light: #14345e;
  --teal: #1a9cab;
  --teal-dark: #127b87;
  --aqua-tint: #eaf6f8;
  --coral: #ff6b4a;
  --coral-dark: #e8562f;
  --ink: #1c2b36;
  --slate: #5a6b78;
  --white: #ffffff;
  --border: #dbe7ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--slate); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-tint { background: var(--aqua-tint); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: #c9d9e6; }

.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(26, 156, 171, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.bg-navy .eyebrow { background: rgba(255,255,255,0.12); color: #9fe3ea; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.35);
}
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: rgba(11,37,69,0.06); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a.active { color: var(--teal-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero .container { padding-top: 72px; padding-bottom: 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead { color: #c9d9e6; font-size: 1.1rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Hero content sits above the decorative bubbles/wave */
.hero .container { position: relative; z-index: 2; }

/* Floating bubble decoration — subtle, not cartoonish */
.hero-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-decor .bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.07); }
.hero-decor .bubble-teal { background: rgba(26,156,171,0.14); }
.hero-decor .b1 { width: 180px; height: 180px; top: -60px; left: 4%; }
.hero-decor .b2 { width: 70px;  height: 70px;  top: 58%; left: 88%; }
.hero-decor .b3 { width: 36px;  height: 36px;  top: 22%; left: 94%; }
.hero-decor .b4 { width: 110px; height: 110px; top: 68%; left: 14%; }
.hero-decor .b5 { width: 26px;  height: 26px;  top: 12%; left: 42%; }
@media (max-width: 820px) {
  .hero-decor .b2, .hero-decor .b3 { display: none; }
}

/* Wave divider along the bottom edge of a hero section */
.wave-divider {
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1;
}

/* Hero visual (SVG wave illustration, no photo assets needed) */
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 28px;
}
.hero-visual .stat { display: flex; justify-content: space-between; margin-bottom: 16px; }
.hero-visual .stat:last-child { margin-bottom: 0; }
.hero-visual .stat-label { color: #9fb6c8; font-size: 0.9rem; }
.hero-visual .stat-value { color: var(--white); font-weight: 800; }

/* Feature cards */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--aqua-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal-dark);
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

/* Badges / pills */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
}

/* Tables (pricing grid) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
th { background: var(--aqua-tint); color: var(--navy); font-weight: 700; }
td.price { font-weight: 700; color: var(--navy); }
tr.featured td { background: #fff4ef; }
.tbd { color: var(--slate); font-style: italic; font-weight: 400; }

/* Steps */
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,156,171,0.15);
}
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--slate); }
.hidden { display: none !important; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d9e6; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #c9d9e6; display: block; margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #9fb6c8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Callout / guarantee box */
.callout {
  border-left: 4px solid var(--coral);
  background: #fff6f3;
  border-radius: 10px;
  padding: 20px 24px;
}
.callout h3 { color: var(--coral-dark); }

/* Card hover lift */
.card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,37,69,0.12); }

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Trust bar — real differentiators, not claims we can't back up */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  padding: 28px 0;
}
@media (max-width: 820px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-row { grid-template-columns: 1fr; } }
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item .trust-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--aqua-tint);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-item span.label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.3;
}

/* Comparison note (pricing transparency) */
.compare-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--aqua-tint);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 28px;
}
.compare-note .compare-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.compare-note h3 { margin-bottom: 6px; font-size: 1.05rem; }
.compare-note p { margin-bottom: 0; }

/* FAQ accordion — semantic, no JS required */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-dark);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 22px 20px; margin: 0; color: var(--slate); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 0; }

/* Roadmap / coming soon callout */
.roadmap-note {
  border: 1.5px dashed var(--teal);
  background: var(--aqua-tint);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.roadmap-note .eyebrow { background: rgba(26,156,171,0.16); }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--slate); font-size: 0.9rem; }
