/* Platypus Pools — static site styles */

:root {
  --ink: #0a1a2b;
  --ink-soft: #3d5468;
  --muted: #6b8299;
  --blue: #0e7fd4;
  --blue-dark: #0a5fa3;
  --aqua: #21c8e3;
  --aqua-soft: #e6f7fb;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --line: #e2ecf3;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(10, 26, 43, .08);
  --shadow-lg: 0 18px 50px rgba(10, 26, 43, .16);
  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 92px;
}

/* The logo is a wide wordmark (~1.8:1), so height drives very little apparent
   size. It needs to be noticeably taller than a typical icon logo to read. */
.logo { flex: none; }
.logo img { height: 62px; width: auto; max-width: none; }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 9px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--bg-soft); color: var(--ink); font-weight: 600; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.header-phone:hover { text-decoration: none; color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--blue);
  color: var(--white);
  font-weight: 650;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--muted); }
.btn-block { width: 100%; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 17px;
}

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

.hero { padding: 76px 0 0; text-align: center; }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 22px;
}

.hero h1 .hl { color: var(--blue); }

.hero .lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 26px;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-bottom: 44px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-soft);
}

.badges span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); flex: none; }

/* Hero image band with quote card */
.hero-band {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 43, .45) 0%, rgba(10, 26, 43, .15) 55%, rgba(10, 26, 43, .5) 100%);
}

.hero-band .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Quote card ---------- */

.quote-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 360px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  margin: 40px 0;
}

.quote-card h3 { margin: 0 0 4px; font-size: 21px; font-weight: 750; }
.quote-card .sub { color: #a9c2d6; font-size: 14px; margin: 0 0 20px; }
.quote-card label { display: block; font-size: 12.5px; font-weight: 650; margin: 0 0 6px; color: #cfe1ee; }
.field { margin-bottom: 14px; }

.quote-card input,
.quote-card select,
.quote-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0;
  background: #f2f7fa;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
}

.quote-card textarea { resize: vertical; min-height: 84px; }

/* Honeypot — hidden from people, visible to bots. Must not use display:none,
   which some bots detect and skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  background: #fde8e8;
  color: #8a1c1c;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 16px;
}
.quote-card .or { text-align: center; font-size: 13.5px; color: #a9c2d6; margin: 14px 0 0; }
.quote-card .or a { color: var(--aqua); font-weight: 700; }

/* ---------- Stats ---------- */

.stats {
  background: var(--ink);
  color: var(--white);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .n {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--aqua);
  line-height: 1.15;
}

.stat .l { font-size: 13.5px; color: #a9c2d6; }

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

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 660px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 800;
  margin: 0 0 14px;
}

h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .14s ease, box-shadow .14s ease;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card .num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 18px; flex: 1; }
.card .more { font-weight: 650; font-size: 15px; }

/* ---------- Finishes ---------- */

.finishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.finish {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--aqua);
  border-radius: 11px;
  padding: 20px 22px;
}

.finish b { display: block; font-size: 16px; margin-bottom: 3px; }
.finish span { font-size: 14px; color: var(--muted); }

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; }

.ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 16px;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--aqua-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.gallery img {
  border-radius: var(--radius);
  height: 240px;
  width: 100%;
  object-fit: cover;
}

/* ---------- Areas ---------- */

.areas { display: flex; flex-wrap: wrap; gap: 10px; }

.areas a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-soft);
}

.areas a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

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

.cta {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 55%, var(--aqua));
  color: var(--white);
  text-align: center;
  padding: 76px 0;
}

.cta h2 { margin-bottom: 12px; }
.cta p { font-size: 17.5px; opacity: .92; max-width: 560px; margin: 0 auto 30px; }

.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta .btn { background: var(--white); color: var(--blue-dark); }
.cta .btn:hover { background: #eaf6ff; }
.cta .btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .6); }
.cta .btn-outline:hover { background: rgba(255, 255, 255, .12); }

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

.site-footer {
  background: var(--ink);
  color: #a9c2d6;
  padding: 62px 0 28px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.site-footer a { color: #a9c2d6; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-logo { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about p { margin: 0; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 58px 0;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 45px);
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.1;
}

.page-head p { color: var(--ink-soft); font-size: 17.5px; margin: 0; max-width: 660px; }

.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.prose { max-width: 760px; }
.prose p { color: var(--ink-soft); font-size: 16.5px; }
.prose h2 { font-size: 27px; margin-top: 40px; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-weight: 650;
  font-size: 17px;
  color: var(--ink);
  position: relative;
  transition: color .12s ease;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq .answer {
  padding: 0 44px 22px 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0; padding-left: 20px; }
.faq .answer li { margin-bottom: 7px; }

.faq-group { margin-bottom: 44px; }

.faq-group > h3 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 750;
  margin-bottom: 4px;
}

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.person img { width: 100%; height: 260px; object-fit: cover; }
.person .body { padding: 26px; }
.person .role { color: var(--blue); font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.person p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

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

@media (max-width: 940px) {
  .nav {
    display: none;
    position: absolute;
    top: 92px; /* must match .header-inner height */
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone { margin-left: auto; }
  .header-inner .btn { display: none; }
  .split, .team, .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .hero { padding-top: 52px; }
  .hero-band { min-height: 0; }
  .hero-band .wrap { justify-content: center; }
  .quote-card { margin: 30px 0; }
  .section { padding: 62px 0; }
}
