/* Ollie's Pool Service — production site. */
:root {
  --ink: #141448;
  --muted: #3d3d6b;
  --sea-950: #0c0c30;
  --sea-900: #101048;
  --sea-800: #1a1a62;
  --aqua: #79cdf3;
  --aqua-deep: #1a6fa8;
  --foam: #f3f9fd;
  --paper: #eef6fc;
  --white: #ffffff;
  --line: #cfe4f4;
  --sun: #79cdf3;
  --sun-deep: #4eb6e8;
  --sand: #e8f4fb;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1160px;
  --dock: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}


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

a { color: var(--aqua-deep); }

h1, h2, h3, .brand-name {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin: 0 0 0.28em; }

h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 0.35em; }

h3 { font-size: 1.45rem; margin: 0 0 0.3em; }

p { margin: 0 0 0.85em; }

::selection { background: #c8f3ee; color: var(--sea-950); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 90;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  color: white;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid,
body:not(.home) .site-header {
  background: rgba(247, 244, 238, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(8, 36, 44, 0.08);
  backdrop-filter: blur(14px);
}

.bar {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.mark { width: 34px; height: 34px; flex: none; }

.brand-name { font-size: 1.45rem; display: block; line-height: 0.95; }

.brand small {
  display: block;
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  opacity: 0.8;
  margin-top: 3px;
}

.nav-check { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  font: 600 0.92rem var(--sans);
  cursor: pointer;
}

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

.menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sun); }

.nav-phone {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid currentColor;
  border-radius: 999px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-sun { background: var(--sun); color: #101048; }

.btn-sun:hover { background: #9edcf8; color: #0c0c30; }

.btn-line {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}

.btn-line:hover { background: white; color: var(--ink); }

.btn-deep { background: var(--sea-800); color: white; }

.btn-deep:hover { background: var(--sea-950); color: white; }

.btn-ghost { background: transparent; color: var(--ink); border-color: #b7cdcf; }

.hero {
  position: relative;
  min-height: 100svh;
  color: white;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 48, 0.45) 0%, rgba(12, 12, 48, 0.28) 34%, rgba(12, 12, 48, 0.72) 100%),
    linear-gradient(90deg, rgba(12, 12, 48, 0.62), rgba(12, 12, 48, 0.18) 68%);
}

.hero h1,
.hero .lede,
.hero .kicker,
.hero-trust { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35); }

.hero-copy { padding: 120px 0 28px; max-width: 780px; }

.kicker {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 650;
  color: #d7f3fc;
}

.hero h1 em {
  font-style: italic;
  font-weight: 520;
  color: #d7f3fc;
}

.lede { font-size: 1.18rem; max-width: 38rem; color: #e8f6fc; }

.hero .lede { color: #e8f6fc; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.28);
}

.hero-trust li { padding-top: 12px; font-size: 0.95rem; }

.hero-trust strong { display: block; }

.section { padding: 84px 0; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; align-items: end; }

.section-head p { color: var(--muted); margin: 0; }

.kicker-dark { color: var(--aqua-deep); }

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 240px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: var(--sea-800);
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img { transform: scale(1.05); }

.service-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,48,0.05), rgba(12,12,48,0.78));
}

.service-card div { position: relative; }

.service-card span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7f3fc;
  margin-bottom: 4px;
}

.service-card strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.service-card.wide { grid-row: span 2; min-height: 500px; }

.service-card.wide strong { font-size: 2.4rem; }

.sand { background: var(--paper); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.step {
  background: white;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--line);
}

.step em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--aqua-deep);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 22px;
  overflow: hidden;
  background: var(--sea-800);
  touch-action: none;
}

.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  height: 100%;
}

.ba-bar, .ba-knob { position: absolute; top: 0; bottom: 0; left: var(--pos); pointer-events: none; }

.ba-bar { width: 2px; background: white; transform: translateX(-50%); }

.ba-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid white;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(12, 12, 48, 0.35);
}

.ba-knob::before, .ba-knob::after {
  content: "";
  position: absolute;
  top: 18px;
  border: 6px solid transparent;
}

.ba-knob::before { left: 6px; border-right-color: white; }

.ba-knob::after { right: 6px; border-left-color: white; }

.tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 9px;
}

.tag-before { left: 12px; }

.tag-after { right: 12px; }

.areas {
  background: var(--sea-950);
  color: white;
  border-radius: 28px;
  padding: 36px;
}

.areas .kicker { color: #79cdf3; }

.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }

.city {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 16px;
  min-height: 118px;
}

.city strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 540; }

.city span { color: #79cdf3; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.review-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.review {
  scroll-snap-align: start;
  background: white;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
}

.sample {
  display: inline-block;
  background: var(--sand);
  color: #6a4a12;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
}

.review blockquote {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.3;
  margin: 12px 0;
}

.who { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 10px; }

.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 620;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; color: var(--aqua-deep); }

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

.faq details p { color: var(--muted); }

.cta-panel {
  background:
    linear-gradient(120deg, rgba(12,12,48,0.78), rgba(26,26,98,0.55)),
    url("../images/hero-waterfall-sm.jpg") center/cover;
  color: white;
  border-radius: 28px;
  padding: 48px 36px;
}

.cta-panel h2 { max-width: 12em; }

.page-hero { padding: 132px 0 20px; }

.page-hero .lede { color: var(--muted); max-width: 40rem; }

.detail-grid, .contact-grid, .two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.panel, .card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.list { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.list li { margin: 0.35em 0; }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 210px;
  gap: 12px;
}

.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; }

.gallery img { width: 100%; height: 100%; object-fit: cover; }

.gallery figure:first-child { grid-row: span 2; }

.gallery figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,253,249,0.92);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 650;
}

.prose { max-width: 44rem; }

.prose h2 { font-size: 1.8rem; margin-top: 1.3em; }

form { display: grid; gap: 12px; }

label { display: grid; gap: 6px; font-weight: 600; }

input, select, textarea {
  width: 100%;
  border: 1px solid #c5d6d6;
  background: white;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px;
  font: 1rem var(--sans);
  color: var(--ink);
}

textarea { min-height: 140px; resize: vertical; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note, .note { color: var(--muted); font-size: 0.92rem; }

.thanks {
  background: #e3f3fb;
  border: 1px solid #b5dff3;
  border-radius: 16px;
  padding: 18px;
}

.facts { list-style: none; margin: 0; padding: 0; }

.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.facts a { font-weight: 700; text-decoration: none; }

.site-footer {
  background: var(--sea-950);
  color: #d5e0f0;
  padding: 48px 0 calc(28px + var(--dock));
  margin-top: 10px;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }

.site-footer a { color: white; text-decoration: none; }

.site-footer a:hover { color: var(--aqua); }

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ec6e0;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 7px 0; }

.demo-note {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #79cdf3;
  font-size: 0.88rem;
}

.dock {
  display: none;
}

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards; }

.reveal.delay { animation-delay: 0.12s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-phone { display: none; }
  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--paper);
    color: var(--ink);
    border-radius: 18px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    z-index: 30;
  }
  .nav-check:checked ~ .menu { display: flex; }
  .menu a { padding: 12px 14px; border-radius: 12px; }
  .menu a[aria-current="page"] { box-shadow: none; background: #e3f3fb; }
}

@media (max-width: 980px) {
  .section-head, .bento, .steps, .split, .city-grid, .detail-grid, .contact-grid, .two, .footer-grid, .gallery, .hero-trust {
    grid-template-columns: 1fr 1fr;
  }

  .service-card.wide { grid-row: auto; min-height: 280px; grid-column: span 2; }

  .gallery { grid-auto-rows: 180px; }

  .gallery figure:first-child { grid-row: span 1; grid-column: span 2; height: 240px; }
}

@media (max-width: 760px) {
  body.has-dock { --dock: 78px; }

  .hero {
    min-height: 0;
    align-items: flex-start;
    padding-bottom: 28px;
  }

  .hero h1 { font-size: 2.45rem; }

  .hero .lede { font-size: 1rem; margin-bottom: 0.4em; }

  .hero-copy { padding: 96px 0 0; }

  .hero .actions { margin-top: 12px; }

  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 14px 0 0;
  }

  .hero-trust li { padding-top: 8px; font-size: 0.9rem; }

  .section { padding: 56px 0; }

  .section-head, .bento, .steps, .split, .city-grid, .detail-grid, .contact-grid, .two, .footer-grid, .gallery, .hero-trust {
    grid-template-columns: 1fr;
  }

  .service-card.wide { grid-column: auto; }

  .gallery figure:first-child { grid-column: auto; height: auto; }

  .gallery { grid-auto-rows: 220px; }

  .areas, .cta-panel { padding: 24px; border-radius: 20px; }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(12, 12, 48, 0.96);
  }

  .dock a {
    min-height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
  }

  .dock a.quote { background: var(--sun); color: #241800; border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .service-card img { transition: none; }
}

.legal-note { padding: 18px 0 26px; color: rgba(255,255,255,0.62); font-size: 0.85rem; }
.radio-row { display:flex; gap:16px; flex-wrap:wrap; margin: 4px 0 12px; }
.radio-row label { display:flex; gap:8px; align-items:center; font-weight:500; }
.radio-row input { width:auto; min-height:0; }
.stats { list-style:none; margin:18px 0 0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.split > img, .split > picture { width:100%; display:block; }
.split > picture img, .split > img { width:100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; }
.hero h1, .page-hero h1 { text-wrap: balance; }
.stats li { background: var(--foam); border:1px solid var(--line); border-radius:14px; padding:14px; }
.stats strong { display:block; font-family: var(--serif); font-size:1.5rem; }
.bar { min-height: 88px; }
.brand { background: #fff; border-radius: 14px; padding: 5px 8px 4px; }
.brand-logo { display:block; height: 64px; width: auto; }
.footer-logo { display:inline-block; background:#fff; border-radius:14px; padding:8px 10px; margin-bottom:12px; }
.footer-logo img { display:block; height: 72px; width:auto; }
.brand picture, .footer-logo picture { display:block; }
.hero picture.hero-img, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.hero picture.hero-img img, .hero img.hero-img { width:100%; height:100%; object-fit:cover; display:block; }
.service-card picture, .service-card picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.service-card picture img { object-fit: cover; }
.gallery picture, .gallery picture img { width:100%; height:100%; display:block; }
.gallery picture img { object-fit:cover; }
.ba { aspect-ratio: var(--ba-ar, 4 / 5); }
.ba picture { position:absolute; inset:0; width:100%; height:100%; }
.ba picture img, .ba img { width:100%; height:100%; object-fit:cover; }
.ba-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; max-width: 980px; }
.ba-grid figure { margin:0; }
.ba-grid figcaption, .ba-feature figcaption { margin-top:10px; color:var(--muted); font-size:0.95rem; }
.ba-grid figure, .ba-stills-pair, .ba-stills-pair picture { min-width:0; }
.ba-stills { display:flex; flex-direction:column; min-width:0; }
.ba-stills-pair { flex:1 1 auto; display:grid; grid-template-columns:1fr 1fr; gap:8px; min-width:0; }
.ba-stills-pair picture { width:100%; height:100%; display:block; overflow:hidden; border-radius:16px; }
.ba-stills-pair img { width:100%; height:100%; object-fit:cover; display:block; border-radius:16px; }
.split > .ba-feature { margin:0; width:100%; }
.split > .ba-feature .ba { width:100%; border-radius: 22px; }
.stars { color: var(--sea-800); letter-spacing: 0.08em; font-size: 1.05rem; }
.review-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; }
.review-grid .review:first-child, .review-grid .review.wide { grid-column: 1 / -1; }
.review blockquote { font-size: 1.15rem; line-height: 1.45; }
.who-note { display:block; font-size:0.85rem; color:var(--muted); font-weight:500; margin-top:2px; }
.review-credit { margin-top:18px; color:var(--muted); }
.cta-reviews { margin-top: 8px; }
@media (max-width: 1100px) {
  .menu { background: var(--paper); }
}
@media (max-width: 980px) {
  .ba-grid, .review-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .brand-logo { height: 52px; }
  .bar { min-height: 72px; }
  .ba-grid, .review-grid { grid-template-columns: 1fr; }
  .review-grid .review:first-child, .review-grid .review.wide { grid-column: auto; }
  .footer-logo img { height: 60px; }
}
html { scroll-padding-bottom: calc(var(--dock, 0px) + 16px); }
@media (max-width: 760px) {
  body.has-dock { --dock: 88px; }
  .hero,
  .page-hero {
    box-sizing: border-box;
    min-height: 100svh;
    padding-bottom: calc(24px + var(--dock) + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 760px) and (max-height: 720px) {
  .hero-copy { padding-top: 64px; }
  .hero h1 { font-size: 1.95rem; }
  .hero .lede { font-size: 0.92rem; margin-bottom: 0.1em; }
  .hero .actions { margin-top: 6px; }
  .hero-trust { margin-top: 4px; gap: 0 12px; }
  .hero-trust li { padding-top: 2px; font-size: 0.8rem; }
}
