/* ============================================================
   McEwan Pools - premium prototype design system
   June 2026. Repair-focused redesign.
   This CSS styles the approval prototype. Into GoDaddy we carry the
   COPY, heading structure, FAQs, titles/meta, alt text and JSON-LD -
   not this stylesheet (GoDaddy applies its own theme).
   ============================================================ */

:root {
  --ink: #0c1b26;
  --navy: #0a2a3f;
  --navy-deep: #061a27;
  --teal: #0e7c8b;
  --teal-deep: #0a5d68;
  --aqua: #36c5d8;
  --aqua-soft: #eaf7f9;
  --gold: #c8a96a;
  --gold-deep: #a8853f;
  --cta: #ef7d3e;
  --cta-deep: #d9641f;
  --paper: #fbfaf7;
  --paper-soft: #f4f1ea;
  --white: #ffffff;
  --muted: #5d6f7c;
  --muted-soft: #8597a3;
  --line: rgba(12, 27, 38, 0.10);
  --line-soft: rgba(12, 27, 38, 0.06);
  --shadow-sm: 0 2px 10px rgba(6, 26, 39, 0.06);
  --shadow: 0 18px 50px -20px rgba(6, 26, 39, 0.30);
  --shadow-lg: 0 40px 90px -40px rgba(6, 26, 39, 0.45);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); line-height: 1.12; font-weight: 600; }
.display, h1, h2 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -0.018em; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.85rem); letter-spacing: -0.012em; }
h3 { font-family: "Inter", sans-serif; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-family: "Inter", sans-serif; font-weight: 700; }
p { margin: 0 0 1.1rem; }
a { color: var(--teal); text-decoration-color: rgba(14,124,139,.3); text-underline-offset: 3px; }
strong { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.section { padding: 62px 0; }
.section.sm { padding: 38px 0; }
.center { text-align: center; }
.bg-paper-soft { background: var(--paper-soft); }
.bg-ink { background: var(--navy-deep); color: #cddae3; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }

.lead { font-size: 1.24rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.center .lead, .narrow .lead { margin-left: auto; margin-right: auto; }

/* Eyebrow with brass hairline */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700;
  color: var(--gold-deep); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.center .eyebrow, .narrow .eyebrow { justify-content: center; }

.section-head { margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-call { background: var(--cta); color: #fff; box-shadow: 0 14px 30px -10px rgba(239,125,62,.6); }
.btn-call:hover { background: var(--cta-deep); transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(239,125,62,.7); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-deep); color: #aec7d4; font-size: .86rem; letter-spacing: .01em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .gold { color: var(--gold); font-weight: 700; }
.dot { opacity: .4; padding: 0 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251,250,247,.82); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line-soft); background: rgba(251,250,247,.94); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand .logo { width: auto; height: 34px; flex: 0 0 auto; }
.site-footer .brand .logo { height: 30px; }
.brand .bt { line-height: 1.05; }
.brand .bt b { font-family: "Fraunces", serif; color: var(--navy); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; display: block; }
.brand .bt span { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .005em; white-space: nowrap; position: relative; }
.navlinks a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .3s var(--ease); }
.navlinks a:hover::after, .navlinks a.active::after { right: 0; }
.navlinks a.active { color: var(--navy); font-weight: 600; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, #0c3046 0%, #0a2336 55%, #061a27 100%); color: #e9f3f8; }
.caustics { position: absolute; inset: 0; opacity: .5; mix-blend-mode: screen; pointer-events: none; }
.hero::before { content: ""; position: absolute; top: -160px; right: -120px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(54,197,216,.28), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: -180px; left: -140px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,169,106,.14), transparent 62%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding: 56px 26px 36px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--aqua); font-weight: 500; }
.hero .lead { color: #bcd3df; font-size: 1.3rem; max-width: 50ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Glass stat card */
.glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); padding: 34px; backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
.glass .rate { display: flex; align-items: baseline; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.glass .rate b { font-family: "Fraunces", serif; font-size: 3.2rem; color: #fff; line-height: 1; }
.glass .rate .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.glass .rate small { display: block; color: #9fbccb; font-size: .82rem; margin-top: 4px; }
.stat-list { display: grid; gap: 0; margin-top: 8px; }
.stat-list .row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #d6e6ef; font-size: .98rem; }
.stat-list .row:last-child { border-bottom: 0; }
.stat-list .row svg { width: 22px; height: 22px; color: var(--aqua); flex: 0 0 auto; }
.stat-list .row b { color: #fff; }

/* Trust marquee */
.trust { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.07); }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding: 22px 26px; }
.trust span { color: #87a3b3; font-weight: 600; letter-spacing: .04em; font-size: .96rem; display: inline-flex; align-items: center; gap: 9px; }
.trust span svg { width: 19px; height: 19px; color: var(--gold); }

/* ---------- Feature / differentiator band ---------- */
.band { background: linear-gradient(120deg, var(--teal-deep), var(--teal)); color: #eafafc; border-radius: var(--r-lg); padding: 46px 48px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 60%); }
.band-grid { display: grid; grid-template-columns: 64px 1fr; gap: 26px; align-items: start; position: relative; z-index: 2; }
.band h3 { color: #fff; font-size: 1.5rem; font-family: "Fraunces", serif; font-weight: 600; }
.band p { color: #d9f4f7; margin: 0; font-size: 1.06rem; }
.band .bigicon { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); }
.band .bigicon svg { width: 32px; height: 32px; color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--aqua-soft); display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 26px; height: 26px; color: var(--teal); }
.card h3 { margin-bottom: 8px; font-size: 1.22rem; color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line); }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; color: var(--teal); font-size: .96rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
a.card:hover .more svg { transform: translateX(4px); }
.card.featured { border: 1px solid rgba(14,124,139,.3); box-shadow: 0 24px 60px -30px rgba(14,124,139,.5); }
.card .ribbon { display: inline-block; background: var(--gold); color: #3a2e10; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }

/* ---------- Service detail rows ---------- */
.svc-list { display: grid; gap: 0; }
.svc-row { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.svc-row:last-child { border-bottom: 0; }
.svc-row .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--aqua-soft); display: grid; place-items: center; }
.svc-row .ic svg { width: 26px; height: 26px; color: var(--teal); }
.svc-row h3 { color: var(--navy); margin: 6px 0 6px; font-size: 1.2rem; }
.svc-row p { margin: 0; color: var(--muted); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 40px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 14px; background-repeat: no-repeat; background-position: center; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }

/* Quote card */
.quote-card { background: var(--white); border: 1px solid var(--line-soft); border-left: 4px solid var(--gold); border-radius: var(--r); padding: 34px 36px; box-shadow: var(--shadow); }
.quote-card .mark { font-family: "Fraunces", serif; font-size: 3.4rem; color: var(--gold); line-height: .6; height: 28px; display: block; }
.quote-card p { font-family: "Fraunces", serif; font-size: 1.32rem; line-height: 1.5; color: var(--navy); font-weight: 500; }
.quote-card .who { font-family: "Inter", sans-serif; font-size: .95rem; color: var(--muted); font-weight: 600; }
.quote-card .who .stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.review { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .stars { color: #f5a623; letter-spacing: 4px; font-size: 1.35rem; margin-bottom: 12px; text-shadow: 0 1px 0 rgba(245,166,35,.25); }
.review p { font-size: 1.02rem; color: var(--ink); }
.review .meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.review .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--aqua)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.review .who { font-weight: 700; color: var(--navy); font-size: .92rem; line-height: 1.2; }
.review .src { font-size: .8rem; color: var(--muted-soft); }

/* ---------- Reviews marquee (continuous, seamless) ---------- */
.carousel { position: relative; }
.car-viewport { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.car-track { display: flex; gap: 24px; will-change: transform; }
.car-track .review { flex: 0 0 340px; }
.car-track .review p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 620px) { .car-track .review { flex: 0 0 280px; } .car-viewport { -webkit-mask-image: none; mask-image: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 2px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 20px 36px 20px 0; list-style: none; position: relative; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 22px; width: 18px; height: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c8b' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E"); background-repeat: no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%); border-radius: var(--r-lg); padding: 64px 48px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -10%, rgba(54,197,216,.3), transparent 50%); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { color: #cfe6ed; max-width: 54ch; margin: 0 auto 24px; font-size: 1.12rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 12px; }
.areas span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--navy); font-size: .98rem; box-shadow: var(--shadow-sm); }
.center .areas { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(165deg, #0c3046, #061a27); color: #e9f3f8; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(54,197,216,.22), transparent 62%); }
.page-hero .wrap { position: relative; z-index: 2; padding: 52px 26px 56px; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #bcd3df; }
.crumbs { font-size: .86rem; color: #8fb0c0; margin-bottom: 18px; }
.crumbs a { color: #cfe6ed; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Image placeholder (for Jimmy's real photos) ---------- */
.photo-slot { border-radius: var(--r); background: linear-gradient(135deg, #dfeef1, #eef6f2); border: 1px dashed rgba(14,124,139,.4); display: grid; place-items: center; text-align: center; color: var(--teal-deep); min-height: 320px; padding: 24px; }
.photo-slot .ph-ic { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--teal); }
.photo-slot small { display: block; color: var(--muted); margin-top: 6px; font-size: .82rem; max-width: 30ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 12px 30px; box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--aqua-soft); display: grid; place-items: center; flex: 0 0 auto; }
.info-row .ic svg { width: 22px; height: 22px; color: var(--teal); }
.info-row b { display: block; color: var(--navy); font-family: "Inter", sans-serif; font-weight: 700; margin-bottom: 2px; }
.info-row a { color: var(--teal); text-decoration: none; font-weight: 600; }
.info-row span.sub { color: var(--muted); font-size: .95rem; }
.form-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; margin: 16px 0 7px; }
.form-card input, .form-card textarea, .form-card select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink); }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 2px solid var(--aqua); border-color: var(--aqua); }
.form-card .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9db8c6; padding: 64px 0 28px; font-size: .96rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #c2d6e1; text-decoration: none; display: block; margin-bottom: 11px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .brand .bt b { color: #fff; }
.site-footer .brand .bt span { color: #7fa0b2; }
.site-footer .blurb { margin-top: 16px; color: #8fabbb; max-width: 34ch; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7693a5; font-size: .85rem; }
.foot-bottom .gold { color: var(--gold); }

/* ---------- Prototype banner ---------- */
.proto-note { background: #1b1205; color: #e9c88a; font-size: .82rem; text-align: center; padding: 9px 16px; letter-spacing: .01em; }
.proto-note b { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Media frames & real photos ---------- */
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.18); }
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media { position: relative; }
.hero-media .media-frame { aspect-ratio: 5/7; }
.float-badge { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; background: rgba(6,26,39,.62); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); border-radius: 16px; padding: 12px 16px; color: #fff; box-shadow: var(--shadow); }
.float-badge b { font-family: "Fraunces", serif; font-size: 1.7rem; line-height: 1; }
.float-badge .stars { color: #ffb300; font-size: 1.05rem; letter-spacing: 2px; }
.float-badge small { display: block; color: #bcd3df; font-size: .76rem; }
.float-chip { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; background: rgba(200,169,106,.95); color: #2a2008; font-weight: 700; font-size: .82rem; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.float-chip svg { width: 15px; height: 15px; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.stats-band .stat { padding: 30px 24px; text-align: center; border-right: 1px solid var(--line-soft); }
.stats-band .stat:last-child { border-right: 0; }
.stats-band .stat b { display: block; font-family: "Fraunces", serif; font-size: 2.2rem; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.stats-band .stat span { color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ---------- Owner / about ---------- */
.owner-media .media-frame { aspect-ratio: 4/3; max-width: 520px; }
.owner-sign { font-family: "Fraunces", serif; font-style: italic; font-size: 1.5rem; color: var(--navy); margin-top: 10px; }
.cred-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cred-row .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--aqua-soft); color: var(--teal-deep); font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; }
.cred-row .pill svg { width: 16px; height: 16px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px; background: linear-gradient(to top, rgba(6,26,39,.82), transparent); color: #fff; font-size: .82rem; font-weight: 500; }

/* ---------- Pool volume calculator ---------- */
.calc-hero { padding: 38px 0 60px; }
.calc-head { max-width: 820px; margin-bottom: 26px; }
.calc-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.calc-head .lead { font-size: 1.12rem; }
.calc-hero .crumbs { color: var(--muted); margin-bottom: 14px; }
.calc-hero .crumbs a { color: var(--teal); text-decoration: none; }
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.calc-form { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); }
.shape-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.shape-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; color: var(--navy); transition: border-color .2s, background .2s, transform .12s; }
.shape-tabs button:hover { transform: translateY(-2px); }
.shape-tabs button svg { width: 30px; height: 24px; color: var(--teal); }
.shape-tabs button.active { border-color: var(--teal); background: var(--aqua-soft); }
.calc-field { margin-bottom: 18px; }
.calc-field > label { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; margin-bottom: 7px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inp { position: relative; }
.inp input { width: 100%; padding: 13px 46px 13px 15px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.05rem; background: var(--paper); color: var(--ink); }
.inp input:focus { outline: 2px solid var(--aqua); border-color: var(--aqua); }
.inp .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-soft); font-size: .9rem; pointer-events: none; }
.calc-hint { font-size: .84rem; color: var(--muted-soft); margin: 8px 0 0; }
.calc-result { background: linear-gradient(150deg, var(--navy), var(--teal-deep)); color: #fff; border-radius: var(--r); padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.calc-result::before { content: ""; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(54,197,216,.28), transparent 60%); }
.calc-result > * { position: relative; z-index: 2; }
.calc-result .lbl { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--aqua); font-weight: 700; }
.calc-gallons { font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.6rem, 6vw, 3.7rem); line-height: 1; margin: 12px 0 4px; }
.calc-gallons span { font-family: "Inter", sans-serif; font-size: 1.05rem; font-weight: 600; color: #bcd3df; margin-left: 8px; }
.calc-liters { color: #9fbccb; font-size: 1rem; }
.calc-result .calc-note { color: #cfe6ed; font-size: .9rem; margin: 20px 0; }
.calc-result .btn { align-self: flex-start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Tool bar (compact, in hero) ---------- */
.tool-bar { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 12px 12px 20px; text-decoration: none; color: #fff; margin-bottom: 30px; transition: background .2s, transform .2s; box-shadow: 0 10px 30px -16px rgba(0,0,0,.5); }
.tool-bar:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.tool-bar-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.tool-bar-ic svg { width: 18px; height: 18px; color: #fff; }
.tool-bar-text { font-size: .95rem; color: #e9f3f8; white-space: nowrap; }
.tool-bar-text b { color: var(--gold); font-weight: 700; }
.tool-bar-cta { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); font-weight: 600; font-size: .9rem; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.tool-bar-cta svg { width: 15px; height: 15px; }
@media (max-width: 540px) { .tool-bar { display: flex; flex-wrap: wrap; border-radius: 18px; } .tool-bar-text { white-space: normal; } }

/* ---------- Tool callout card ---------- */
.tool-card { display: flex; align-items: center; gap: 26px; background: linear-gradient(120deg, var(--navy), var(--teal-deep)); color: #fff; border-radius: var(--r-lg); padding: 32px 40px; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); position: relative; overflow: hidden; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(54,197,216,.3), transparent 60%); }
.tool-ic { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; position: relative; z-index: 2; }
.tool-ic svg { width: 32px; height: 32px; color: #fff; }
.tool-text { flex: 1 1 auto; position: relative; z-index: 2; }
.tool-text .eyebrow { color: var(--gold); margin-bottom: 6px; }
.tool-h { display: block; font-family: "Fraunces", serif; font-size: 1.65rem; font-weight: 600; color: #fff; line-height: 1.12; margin-bottom: 6px; }
.tool-p { display: block; color: #cfe6ed; font-size: 1rem; max-width: 52ch; }
.tool-cta { flex: 0 0 auto; position: relative; z-index: 2; }
@media (max-width: 760px) { .tool-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .navlinks { position: fixed; top: 76px; left: 0; right: 0; background: rgba(251,250,247,.98); backdrop-filter: saturate(150%) blur(14px); flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 26px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .38s var(--ease), opacity .25s var(--ease), visibility .38s; z-index: 59; }
  .navlinks.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .navlinks a { width: 100%; padding: 16px 2px; border-bottom: 1px solid var(--line-soft); font-size: 1.04rem; }
  .navlinks a::after { display: none; }
  .navlinks a.active { color: var(--teal); }
  .hamburger { display: block; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .tool-bar { order: 9; margin: 28px 0 0; }
  .glass { max-width: 460px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stat:nth-child(2) { border-right: 0; }
  .stats-band .stat:nth-child(1), .stats-band .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .owner-media .media-frame { max-width: none; }
}
@media (max-width: 760px) {
  .section { padding: 44px 0; }
  .nav .btn-call { display: none; }
  .cols-2, .cols-3, .cols-4, .reviews { grid-template-columns: 1fr; }
  .band { padding: 32px 26px; }
  .band-grid { grid-template-columns: 1fr; gap: 18px; }
  .cta { padding: 44px 26px; }
  .callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: var(--cta); box-shadow: 0 -6px 22px rgba(0,0,0,.25); }
  .callbar a { flex: 1; text-align: center; color: #fff; font-weight: 700; padding: 16px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
  .callbar svg { width: 18px; height: 18px; }
  body { padding-bottom: 56px; }
  .topbar { font-size: .78rem; }
}

/* ---------- Mobile footer collapse (fix: 4-col overflow on phones) ---------- */
@media (max-width: 940px) { .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .site-footer .cols { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 760px) { .trust .wrap { justify-content: center; text-align: center; gap: 12px 20px; } }
