/* Swim Installations — Andre Minnaar, Hermanus
   Coastal palette: deep ocean navy, whale-route teal, sandstone.
   Designed for readability: large type, big tap targets, zero JS. */

:root {
  --navy: #0b3049;
  --navy-deep: #072235;
  --teal: #1380a1;
  --teal-dark: #0b5a75;
  --sand: #f4efe7;
  --sand-deep: #e9e1d2;
  --ink: #1c2b33;
  --ink-soft: #46606e;
  --white: #ffffff;
  --whatsapp: #1faa53;
  --whatsapp-dark: #178a43;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(11, 48, 73, 0.10);
  --wrap: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;               /* 18px base — his customers skew retiree */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.15; color: var(--navy); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

a { color: var(--teal-dark); }

section { scroll-margin-top: 4.5rem; }

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--sand); }
.section-lead { max-width: 46rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.topbar-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 3.4rem;
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.brand-mark { width: 1.35rem; height: 1.35rem; color: #7fd1e8; }
.topnav { display: flex; gap: 1.1rem; margin-left: auto; }
.topnav a {
  color: #cfe6ef; text-decoration: none; font-size: 0.98rem; padding: 0.35rem 0;
}
.topnav a:hover { color: var(--white); text-decoration: underline; }
.topbar-phone {
  color: var(--white); text-decoration: none; font-weight: 700;
  background: rgba(255,255,255,0.12); padding: 0.4rem 0.85rem; border-radius: 999px;
  white-space: nowrap;
}
.topbar-phone:hover { background: rgba(255,255,255,0.22); }
@media (max-width: 720px) {
  .topnav { display: none; }
  .topbar-phone { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 65%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(200deg, rgba(7,34,53,0.25) 0%, rgba(7,34,53,0.72) 78%);
}
.hero-content {
  padding-top: clamp(5rem, 14vw, 9rem);
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
  color: var(--white);
  max-width: 60rem;
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem;
  color: #9fdcef; font-weight: 700; margin-bottom: 0.9rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  max-width: 17ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 44ch;
  color: #e8f3f8;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note { margin-top: 1rem; font-size: 0.95rem; color: #bcdae6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-call { background: var(--white); color: var(--navy); }
.btn-call:hover { background: #eaf4f8; }

/* ---------- trust strip ---------- */
.trust { background: var(--navy); color: var(--white); padding: 1.6rem 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-item strong { font-size: 1.15rem; color: #9fdcef; }
.trust-item span { font-size: 0.95rem; color: #cfe0e8; line-height: 1.4; }
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- services ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.cards-secondary { grid-template-columns: 1fr; margin-top: 1.25rem; }
.card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
}
.card-primary {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  box-shadow: var(--shadow);
}
.card-icon { width: 2.6rem; height: 2.6rem; color: var(--teal); margin-bottom: 0.7rem; }
.card p { color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about-grid {
  display: block;
}
.about-photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #9fdcef;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  text-align: center; padding: 1rem;
  font-size: 0.95rem;
}
.about-photo-placeholder svg { width: 55%; }
.about-text p { margin-bottom: 1rem; max-width: 58ch; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
}

/* ---------- diagram ---------- */
.diagram {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 2rem;
}
.diagram svg { width: 100%; height: auto; display: block; border-radius: calc(var(--radius) - 6px); }
.diagram figcaption {
  padding: 0.8rem 0.4rem 0.2rem;
  font-size: 0.95rem; color: var(--ink-soft); text-align: center;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.steps h3 { color: var(--teal-dark); }
.steps p { color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
#faq details {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
#faq summary {
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 700; color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  min-height: 44px;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute; right: 1.15rem; top: 50%; transform: translateY(-52%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal);
}
#faq details[open] summary::after { content: "–"; }
#faq details p { padding: 0 1.25rem 1.15rem; color: var(--ink-soft); }

/* ---------- service area ---------- */
.area { position: relative; isolation: isolate; }
.area-img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
}
.area-overlay {
  background: linear-gradient(180deg, rgba(7,34,53,0.82), rgba(7,34,53,0.70));
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  color: var(--white);
}
.area h2 { color: var(--white); }
.area-towns {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 1.25rem 0 0.9rem;
  max-width: 56rem;
}
.area-towns span {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.97rem;
}
.area-note { color: #cfe0e8; }

/* ---------- contact ---------- */
.contact-card { text-align: center; }
.contact-lead { color: var(--ink-soft); max-width: 40rem; margin: 0 auto 1.25rem; }
.contact-phone a {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 800; letter-spacing: 0.01em;
  color: var(--navy); text-decoration: none;
}
.contact-phone a:hover { color: var(--teal-dark); }
.contact-actions { justify-content: center; margin-top: 1.25rem; }
.contact-actions .btn-call { background: var(--sand); }
.contact-details { margin-top: 1.5rem; color: var(--ink-soft); font-size: 1rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--navy-deep); color: #b9cdd8;
  padding: 2rem 0 5.5rem;              /* bottom space so the FAB never covers text */
  font-size: 0.95rem; text-align: center;
}
.footer p { margin-bottom: 0.35rem; }
.footer strong { color: var(--white); }
.footer a { color: #9fdcef; }
.footer-credits { font-size: 0.85rem; color: #7f97a5; margin-top: 0.6rem; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30;
  width: 3.6rem; height: 3.6rem;
  background: var(--whatsapp); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.12s ease, background 0.12s ease;
}
.wa-fab:hover { transform: scale(1.06); background: var(--whatsapp-dark); }
.wa-fab svg { width: 2rem; height: 2rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-fab { transition: none; }
}
