/* Globe Pools — layout: sun-bleached water. Photo hero, open sections on pale aqua, cards only for services. */
:root {
  --bg: #f2f7f7;          /* pale pool-deck aqua */
  --surface: #ffffff;
  --ink: #0f2a31;         /* deep-end blue-black */
  --muted: #4b6a72;
  --line: #d3e3e5;
  --water: #0e8a9a;       /* pool teal */
  --water-deep: #0b5866;
  --sun: #f2b632;         /* Arizona sun, CTAs only */
  --sun-ink: #2b1f00;
  --hero-ink: #ffffff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a1e; --surface: #11252b; --ink: #e6f1f2; --muted: #9bb7bd; --line: #1f3b42;
    --water: #3cc3d2; --water-deep: #7fdbe5; --sun: #f5c04e; --sun-ink: #2b1f00; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a1e; --surface: #11252b; --ink: #e6f1f2; --muted: #9bb7bd; --line: #1f3b42;
  --water: #3cc3d2; --water-deep: #7fdbe5; --sun: #f5c04e; --sun-ink: #2b1f00; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); /* room for mobile call bar */
}
@media (min-width: 760px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--water-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--water); }
.lede { color: var(--muted); max-width: 60ch; font-size: 1.08rem; }
.section { padding-block: 72px; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: var(--body);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.topbar { background: var(--water-deep); color: #fff; font-size: 0.88rem; }
:root[data-theme="dark"] .topbar { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { color: var(--bg); } }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-block: 7px; }
.topbar a { color: inherit; text-decoration: none; font-weight: 600; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo img { height: 52px; width: auto; border-radius: 6px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav a:hover { color: var(--water); }
.nav .btn { padding: 9px 18px; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: inherit; font-weight: 600; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
         flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Hero */
.hero {
  position: relative; color: var(--hero-ink); overflow: hidden;
  background: #0b4752 url("/images/hero.jpg") center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,38,46,.92) 0%, rgba(6,38,46,.72) 45%, rgba(6,38,46,.25) 100%); }
.hero .wrap { position: relative; padding-block: 88px 96px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p { max-width: 52ch; font-size: 1.12rem; color: #dcefF1; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero .btn-ghost { color: #fff; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.areas li { font-size: 0.85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); }

/* Facts strip */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding-block: 26px; }
.fact strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--water-deep); }
.fact span { color: var(--muted); font-size: 0.95rem; }

/* Services */
.services { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .service .body { padding: 16px; } }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--line); }
.service .body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.service p { color: var(--muted); font-size: 0.96rem; }
.service a { font-weight: 700; font-size: 0.95rem; }

/* Weekly checklist */
.weekly { background: var(--water-deep); color: #eaf7f8; }
:root[data-theme="dark"] .weekly { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .weekly { background: var(--surface); } }
.weekly .wrap { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .weekly .wrap { grid-template-columns: 5fr 7fr; align-items: start; } }
.weekly .eyebrow { color: var(--sun); }
.weekly h2 { color: #fff; }
:root[data-theme="dark"] .weekly h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .weekly h2 { color: var(--ink); } }
.weekly .note { color: #b9dfe3; margin-top: 14px; }
:root[data-theme="dark"] .weekly .note, :root[data-theme="dark"] .weekly .checks { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .weekly .note, :root:not([data-theme="light"]) .weekly .checks { color: var(--muted); } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1f00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.schedule { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; }
.schedule div { text-align: center; padding: 10px 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule small { display: block; font-weight: 500; opacity: .8; font-size: 0.75rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 620px; }
.member img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.member h3 { margin-top: 14px; }
.member .role { color: var(--water); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.member a { display: block; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.about-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Contact / quote form */
.contact-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-list { display: grid; gap: 18px; margin-top: 24px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: 0.8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.contact-list a { text-decoration: none; }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.93rem; min-width: 0; }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; width: 100%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.fine { color: var(--muted); font-size: 0.85rem; }

/* Review band */
.review { text-align: left; }
.review .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 36px; }

/* Long-form pages */
.page-hero { background: var(--water-deep); color: #fff; }
.page-hero .wrap { padding-block: 56px; display: grid; gap: 12px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero p { color: #cfe9ec; max-width: 60ch; }
.page-hero .eyebrow { color: var(--sun); }
:root[data-theme="dark"] .page-hero { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-hero { background: var(--surface); color: var(--ink); } }
.prose { max-width: 70ch; padding-block: 56px; }
.prose h2 { font-size: 1.6rem; margin-top: 44px; margin-bottom: 12px; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: inherit; text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.compare { overflow-x: auto; margin: 24px 0 32px; }
.compare table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.96rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--display); }
.compare td.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--water-deep); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }

/* Feedback */
.choice { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-block: 44px; font-size: 0.95rem; }
.site-footer h3 { font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer .copy { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 18px; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line);
}
.callbar .btn { padding: 12px 10px; }
.callbar .btn-ghost { color: var(--water-deep); }
@media (min-width: 760px) { .callbar { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
#tell-us { scroll-margin-top: 90px; }

.nav-review span { color: var(--sun); }
.nav a[aria-current="page"] { color: var(--water); }
@media (min-width: 861px) and (max-width: 1040px) { .nav { gap: 14px; } .nav a { font-size: 0.9rem; } }

/* Star rating: horizontal, fills left-to-right on hover; JS sets .on */
.rating { margin-top: 22px; display: grid; gap: 10px; justify-items: start; }
.stars { display: flex; flex-direction: row; gap: 6px; }
.star { width: clamp(48px, 14vw, 60px); height: clamp(48px, 14vw, 60px); padding: 4px; border: 0; background: none; cursor: pointer; border-radius: 10px; line-height: 0; }
.star svg { width: 100%; height: 100%; fill: transparent; stroke: var(--muted); stroke-width: 1.4; stroke-linejoin: round; transition: fill .12s ease, stroke .12s ease, transform .12s ease; }
.star.on svg { fill: var(--sun); stroke: var(--sun); }
.star:hover svg { transform: scale(1.1); }
.star:focus-visible { outline: 3px solid var(--water); outline-offset: 1px; }
.rating-label { font-weight: 700; color: var(--muted); min-height: 1.6em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .star svg { transition: none; } .star:hover svg { transform: none; } }
