/* Liquid Life Pool Service
   Coastal palette: ocean navy, brand blue, soft aqua and sand, with the
   sunset orange from the logo for calls to action. */

:root {
  --navy: #0b2e40;
  --navy-2: #103e56;
  --blue: #0a7ea4;
  --blue-soft: #5fc0dd;
  --aqua: #eaf6f9;
  --sand: #fbf7f0;
  --orange: #e06a1b;
  --orange-dark: #c2570f;
  --gold: #f5b041;
  --ink: #17313e;
  --muted: #5a6d77;
  --line: #dbe7ec;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(11, 46, 64, 0.45);
  --shadow-sm: 0 6px 18px -10px rgba(11, 46, 64, 0.35);
  --container: 1160px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --script: "Waterfall", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.7 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { margin: 0 0 0.45em; color: var(--navy); font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: 10px; left: -999px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--navy); font-weight: 700; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.icon { flex: none; width: 1.15em; height: 1.15em; }

.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--blue); font: 700 0.78rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.25rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; border-radius: 999px; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 22px -12px rgba(224, 106, 27, 0.9); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header: transparent over the hero, white once you scroll */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color 0.25s, box-shadow 0.25s, color 0.25s; }
.site-header.is-scrolled, .nav-open.site-header { background: var(--white); color: var(--navy); box-shadow: 0 6px 24px -14px rgba(11, 46, 64, 0.5); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 88px; transition: min-height 0.25s; }
.is-scrolled .header-inner { min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand img { width: 60px; height: 60px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45); transition: width 0.25s, height 0.25s; }
.is-scrolled .brand img { width: 50px; height: 50px; }
.brand-name { display: flex; flex-direction: column; font: 600 1.3rem/1 var(--serif); letter-spacing: 0.02em; }
.brand-name small { margin-top: 4px; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { position: relative; padding: 10px 14px; color: inherit; font-weight: 500; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.2s; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:hover { color: inherit; }
.header-call { flex: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav .nav-call { display: none; }

@media (max-width: 1020px) {
  .header-call { display: none; }
}
@media (max-width: 860px) {
  .header-inner { min-height: 72px; gap: 12px; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.15rem; }
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px 20px 20px; background: var(--white); color: var(--navy); box-shadow: 0 18px 30px -18px rgba(11, 46, 64, 0.5); }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--orange-dark); }
  .site-nav .nav-call { display: flex; margin-top: 16px; padding: 0 26px; border-bottom: 0; color: var(--white); }
}

/* Heroes */
.hero { position: relative; display: flex; align-items: center; min-height: min(92vh, 820px); padding: 140px 0 140px; overflow: hidden; color: var(--white); background: var(--navy) url("/img/hero-pool.jpg") center bottom / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 34, 48, 0.9) 0%, rgba(8, 34, 48, 0.62) 38%, rgba(8, 34, 48, 0.08) 60%); }
.hero > .container { position: relative; }
.hero-copy { max-width: 600px; }
.hero .script { margin: 0 0 -6px; color: var(--gold); font: 400 clamp(3.2rem, 7vw, 4.6rem)/1 var(--script); }
.hero h1 { color: var(--white); }
.hero-tagline { margin-bottom: 0.4em; font: italic 400 clamp(1.25rem, 2.4vw, 1.5rem)/1.3 var(--serif); }
.hero-text { max-width: 480px; color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.banner { position: relative; padding: 168px 0 84px; overflow: hidden; color: var(--white); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #136d8f 100%); }
.banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 38c160-30 320-30 480 0s320 30 480 0 320-30 480 0v32H0z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.banner--aqua::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 38c160-30 320-30 480 0s320 30 480 0 320-30 480 0v32H0z' fill='%23eaf6f9'/%3E%3C/svg%3E"); }
.banner .eyebrow { color: var(--gold); }
.banner h1 { max-width: 760px; color: var(--white); font-size: clamp(2.3rem, 5vw, 3.4rem); }
.banner p { max-width: 640px; color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; }
.banner-bubbles { position: absolute; right: -60px; top: 40px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(95, 192, 221, 0.35), rgba(95, 192, 221, 0) 65%); pointer-events: none; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 130px 0 120px; background-position: 72% bottom; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 34, 48, 0.55) 0%, rgba(8, 34, 48, 0.85) 100%); }
  .banner { padding: 128px 0 76px; }
}

/* Trust strip, overlapping the hero */
.trust { position: relative; z-index: 2; margin-top: -72px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 20px; margin: 0; list-style: none; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.trust-grid li { display: flex; align-items: center; gap: 14px; padding: 8px 10px; }
.trust-grid img { width: 54px; height: 54px; object-fit: contain; }
.trust-grid span { color: var(--navy); font-weight: 700; line-height: 1.3; }
.trust-grid small { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { margin-top: -56px; } .trust-grid { grid-template-columns: 1fr; padding: 14px; } }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--aqua { background: var(--aqua); }
.section--sand { background: var(--sand); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--wide-media { grid-template-columns: 1.1fr 1fr; }
.split-media { position: relative; isolation: isolate; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1; border-radius: var(--radius); background: var(--aqua); }
.split p { color: var(--muted); font-size: 1.08rem; }
.split .link-arrow { margin-top: 10px; }
@media (max-width: 860px) {
  .split, .split--wide-media { grid-template-columns: 1fr; gap: 44px; }
  .split-media::before { inset: 14px -10px -14px 10px; }
}

/* Mission */
.mission { max-width: 880px; text-align: center; }
.mission blockquote { margin: 0; }
.mission blockquote p { color: var(--navy); font: italic 400 clamp(1.5rem, 3.2vw, 2.2rem)/1.45 var(--serif); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 18px; }
.card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--aqua); color: var(--blue); }
.card-icon .icon { width: 28px; height: 28px; }
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card { transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }

/* Service plans */
.plan { overflow: hidden; padding: 0; }
.plan-head { padding: 30px 30px 26px; background: var(--navy); color: var(--white); }
.plan-head h3 { margin: 0; color: var(--white); }
.plan-head .eyebrow { margin-bottom: 8px; color: var(--gold); }
.plan-body { padding: 26px 30px 30px; }
.plan-body .eyebrow { margin-bottom: 6px; color: var(--muted); }
.plan--single { max-width: 860px; margin: 0 auto; }
.checklist--cols { columns: 2 260px; column-gap: 40px; }
.checklist--cols li { break-inside: avoid; }
.checklist--cols li:last-child { border-bottom: 1px solid var(--line); }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .icon { margin-top: 0.3em; color: var(--blue); }
.callout { display: flex; gap: 16px; align-items: flex-start; max-width: 820px; margin: 40px auto 0; padding: 22px 26px; border-left: 4px solid var(--orange); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); }
.callout .icon { margin-top: 0.2em; color: var(--orange); }
.callout p { color: var(--ink); }

/* Gallery reviews */
.reviews { columns: 3 320px; column-gap: 26px; }
.review { display: inline-block; width: 100%; margin: 0 0 26px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); break-inside: avoid; }
.review img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.review blockquote { margin: 0; padding: 24px 26px 26px; }
.review h3 { margin-bottom: 0.4em; font-size: 1.25rem; }
.review blockquote p { color: var(--ink); }
.review footer { margin-top: 16px; color: var(--muted); font-weight: 700; }

/* FAQ accordion */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--blue-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; color: var(--navy); font: 600 1.25rem/1.35 var(--serif); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); }
.faq .answer ol { margin: 0 0 1em; padding-left: 1.3em; }
.faq .answer strong { color: var(--ink); }

/* Contact */
.contact-cards { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.contact-card { display: flex; align-items: center; gap: 20px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); color: var(--navy); text-decoration: none; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.contact-card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow); color: var(--navy); transform: translateY(-2px); }
.contact-card .card-icon { margin: 0; background: var(--orange); color: var(--white); }
.contact-card div span { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.contact-card strong { display: block; font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.35; }
.area-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; color: var(--muted); text-align: center; }
.area-note .icon { color: var(--blue); }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } .contact-card { padding: 22px; } }

/* Call-to-action band */
.cta-band { position: relative; overflow: hidden; padding: 84px 0; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #136d8f 100%); color: var(--white); text-align: center; }
.cta-band::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 192, 221, 0.3), rgba(95, 192, 221, 0) 65%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 560px; margin-inline: auto; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta-band a:not(.btn), .banner a { color: var(--white); }
.cta-band a:not(.btn):hover, .banner a:hover { color: var(--gold); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* Footer */
.site-footer { background: #071f2b; color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding: 72px 0 52px; }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.footer-brand .tagline { color: var(--gold); font: italic 400 1.15rem/1.4 var(--serif); }
.site-footer h2 { margin-bottom: 18px; color: var(--white); font: 700 0.8rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--blue-soft); }
.footer-base { padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 520px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

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