/* Crystal Blue Pool Care — styles
   Tokens: --bg (aqua-white), --ink (deep teal), --accent (aqua),
   --band (soft aqua), --card (white). One radius: 20px. */

:root {
  --bg: #F6FCFE;
  --ink: #0A3D4D;
  --accent: #00A8CC;
  --accent-deep: #0087A5;
  --band: #DDF3F9;
  --card: #FFFFFF;
  --muted: #5B7A86;
  --line: rgba(10, 61, 77, 0.14);
  --radius: 20px;
  --font-display: 'Quicksand', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --max: 1140px;
  --shadow: 0 10px 30px rgba(10, 61, 77, 0.10);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: #fff; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-deep); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 252, 254, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand-sub { font-weight: 500; color: var(--accent-deep); }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover { color: var(--accent-deep); }
.nav-cta {
  background: var(--accent); color: #fff; border-radius: 999px; padding: 0.55rem 1.25rem;
  transition: background-color 0.2s ease;
}
.nav-cta:hover { background: var(--accent-deep); color: #fff; }

/* ---------- layout ---------- */
.section-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 5rem max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
.kicker {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent-deep); margin-bottom: 1rem;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); margin-bottom: 1.25rem; }

.wave-divider { line-height: 0; background: var(--bg); }
.wave-divider svg { width: 100%; height: 70px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #EAF7FC 0%, var(--bg) 78%); }
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 4.5rem max(1.25rem, env(safe-area-inset-left)) 9rem;
  padding-right: max(1.25rem, env(safe-area-inset-right));
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.2rem); margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 32rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-proof { color: var(--muted); font-size: 0.98rem; font-weight: 600; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem; font-family: var(--font-body);
  padding: 0.9rem 1.8rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--accent); color: var(--accent-deep); background: transparent; }
.btn-ghost:hover { background: var(--band); transform: translateY(-2px); }
.btn-block { width: 100%; text-align: center; }

.hero-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.9rem; border: 1px solid var(--line);
}
.hero-card-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.card-dot { width: 12px; height: 12px; border-radius: 50%; background: #35C26E; flex: none; }
.hero-card-top p { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
.visit-list { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.25rem; }
.visit-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.check {
  width: 22px; height: 22px; border-radius: 50%; background: var(--band); flex: none; position: relative;
}
.check::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px;
  border: solid var(--accent-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}
.visit-note { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* bubbles: rise once on load, then rest */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute; bottom: 12%; border-radius: 50%;
  border: 2px solid rgba(0, 168, 204, 0.35); background: rgba(255, 255, 255, 0.5);
}
.b1 { left: 8%;  width: 26px; height: 26px; }
.b2 { left: 22%; width: 16px; height: 16px; }
.b3 { left: 58%; width: 34px; height: 34px; }
.b4 { left: 76%; width: 18px; height: 18px; }
.b5 { left: 90%; width: 24px; height: 24px; }

/* waves: scroll-scrubbed parallax layers + shine */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 150px; z-index: 1; pointer-events: none; }
.wave { position: absolute; bottom: 0; left: -5%; width: 110%; height: 120px; will-change: transform; }
.wave-back { opacity: 0.9; }
.shine {
  position: absolute; top: 18px; left: 0; width: 46%; height: 60px;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  will-change: transform; mix-blend-mode: screen;
}

/* ---------- services ---------- */
.services { background: var(--bg); }
.accordion { max-width: 780px; margin-top: 2.5rem; display: grid; gap: 0.9rem; }
.accordion details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem 1.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent-deep); }
.acc-icon { position: relative; width: 26px; height: 26px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform 0.2s ease;
}
.acc-icon::before { left: 3px; right: 3px; top: 12px; height: 3px; }
.acc-icon::after { top: 3px; bottom: 3px; left: 12px; width: 3px; }
details[open] .acc-icon::after { transform: rotate(90deg); }
.acc-body { padding: 0 1.6rem 1.5rem; color: var(--muted); }
.acc-body p { max-width: 40rem; }

/* ---------- plans ---------- */
.plans { background: var(--band); }
.plans .wave-divider { background: var(--bg); }
.plans .wave-divider.flip { background: var(--bg); }
.plans-head { max-width: 640px; margin-bottom: 2.75rem; }
.plans-note { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.1rem 1.9rem; display: flex; flex-direction: column;
  transition: transform 0.2s ease;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.plan-price { margin-bottom: 0.6rem; }
.plan-price .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; }
.plan-price .per { color: var(--muted); font-weight: 600; }
.plan-tag { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.4rem; min-height: 3.2em; }
.plan-card ul { list-style: none; display: grid; gap: 0.65rem; margin-bottom: 1.8rem; flex: 1; }
.plan-card ul li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.99rem; }
.plan-card ul li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--band); position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l3 3 5-6' fill='none' stroke='%230087A5' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* ---------- service area ---------- */
.areas { background: var(--bg); }
.areas-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.areas-copy p { color: var(--muted); max-width: 26rem; }
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.area-chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1.3rem; font-weight: 700; font-family: var(--font-display); font-size: 1.02rem;
  box-shadow: 0 4px 14px rgba(10, 61, 77, 0.07);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.area-chips li:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- quote ---------- */
.quote { background: #fff; }
.quote .wave-divider { background: var(--bg); }
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
.quote-lede { color: var(--muted); max-width: 26rem; margin-bottom: 1.75rem; }
.quote-points { list-style: none; display: grid; gap: 0.8rem; font-weight: 600; }
.quote-points li { display: flex; align-items: center; gap: 0.7rem; }

.quote-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.25rem;
}
.quote-form h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.75rem 0.9rem;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 14px;
  background: #e8f7fb; border: 2px solid var(--accent); color: var(--ink); font-size: 0.98rem;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #DCEEF4; }
.footer-inner { padding-top: 3.5rem; padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-brand .brand-name { font-size: 1.45rem; color: #fff; }
.footer-brand p { color: #9DBCC7; margin-top: 0.4rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-content: flex-start; }
.footer-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-contact { color: #9DBCC7; font-size: 0.95rem; margin-bottom: 1.25rem; }
.footer-disclaimer {
  border: 1px dashed rgba(220, 238, 244, 0.35); border-radius: 14px;
  padding: 1rem 1.15rem; font-size: 0.92rem; margin-bottom: 1rem; max-width: 60rem; color: #DCEEF4;
}
.footer-copy { color: #9DBCC7; font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 10rem; }
  .areas-inner, .quote-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan-tag { min-height: 0; }
}
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section-inner { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .quote-form { padding: 1.5rem; }
  .waves { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
