/* Refmag Pools Solutions — demo site by SimpleWebSA */

:root {
  /* Palette */
  --ink: #062A4A;        /* deep end */
  --tile: #071a33;       /* tile line navy */
  --night: #2348ff;      /* pool light at night */
  --chlorine: #5fe3e0;   /* fresh water */
  --marbelite: #f2f6f7;  /* white plaster */
  --coping: #e7dabf;     /* sandstone coping */
  --coping-deep: #9c8257;
  --drop-water: #1e8fc4;
  --mosaic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='20'%3E%3Crect width='160' height='20' fill='%23e8f3f6'/%3E%3Cg%3E%3Crect x='1' y='1' width='18' height='18' rx='2' fill='%23a8dbe8'/%3E%3Crect x='21' y='1' width='18' height='18' rx='2' fill='%2378c4dc'/%3E%3Crect x='41' y='1' width='18' height='18' rx='2' fill='%23c4e8f0'/%3E%3Crect x='61' y='1' width='18' height='18' rx='2' fill='%238ccfe2'/%3E%3Crect x='81' y='1' width='18' height='18' rx='2' fill='%2367b9d6'/%3E%3Crect x='101' y='1' width='18' height='18' rx='2' fill='%23b4e0ec'/%3E%3Crect x='121' y='1' width='18' height='18' rx='2' fill='%2399d5e6'/%3E%3Crect x='141' y='1' width='18' height='18' rx='2' fill='%237cc6dd'/%3E%3C/g%3E%3C/svg%3E");

  --text: #0d2a44;
  --muted: #4a6077;

  /* Type */
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(1.15rem, 4.5vw, 2.75rem);
  --maxw: 1240px;
  --radius: 22px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--marbelite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; border-radius: 6px; }

.sr-only, .sr-defs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--drop-water);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow--light { color: var(--chlorine); }
.eyebrow--live { color: var(--ink); }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #19c37d; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #19c37d; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }

.h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 2rem + 5vw, 6.25rem);
  line-height: .9;
  letter-spacing: .005em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: .9;
  margin: 0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.1;
  cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #0b3d69; box-shadow: 0 10px 24px -12px rgba(6,42,74,.6); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -16px rgba(0,20,40,.55); }
.btn--light:hover { background: #fff; box-shadow: 0 18px 34px -14px rgba(0,20,40,.6); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn--chlorine { background: var(--chlorine); color: var(--tile); }
.btn--chlorine:hover { background: #86f0ed; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.btn--light .ico { color: #12a150; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(242,246,247,.97);
  box-shadow: 0 1px 0 rgba(6,42,74,.08), 0 10px 30px -22px rgba(6,42,74,.45);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__drop { width: 34px; height: 34px; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: .03em; text-transform: uppercase; }
.brand__sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.brand--light { color: #fff; }
.brand--light .brand__drop { color: var(--chlorine); }
.brand--light .brand__sub { color: rgba(255,255,255,.6); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--drop-water); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__call { font-family: var(--mono); font-weight: 500 !important; letter-spacing: .02em; }

.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--ink); cursor: pointer; place-items: center; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { background: var(--marbelite); border-top: 1px solid rgba(6,42,74,.08); box-shadow: 0 20px 30px -20px rgba(6,42,74,.4); }
.mobile-menu__nav { display: flex; flex-direction: column; padding: .5rem 0 1.25rem; }
.mobile-menu__nav a { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.1rem; line-height: 1; padding: .7rem 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(6,42,74,.08); }
.mobile-menu__nav a.mobile-menu__phone { font-family: var(--mono); font-weight: 500; font-size: 1.15rem; border: 0; color: var(--drop-water); padding-top: 1rem; }

/* ---------- Hero: the waterline ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3.5rem));
  background:
    radial-gradient(120% 80% at 85% 0%, #ffffff 0%, rgba(255,255,255,0) 60%),
    var(--marbelite);
  isolation: isolate;
}
.hero__top { position: relative; z-index: 3; }

.hero__type {
  position: relative;
  --wl: 74%;
}
.hero__top, .hl, .hero__water > * { animation: rise .9s cubic-bezier(.2,.75,.25,1) both; }
.hl--dry { animation-delay: .05s; }
.hl--wet { animation-delay: .05s; }
.hero__copy { animation-delay: .2s; }
.hero__photo { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

.hl {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(5.6rem, 25vw, 14.5rem);
  line-height: .84;
  letter-spacing: -.005em;
  margin: 0;
  padding-bottom: .04em;
}
.hl span { display: block; }
.hl--dry {
  position: relative; z-index: 2;
  color: var(--ink);
  clip-path: inset(0 0 calc(100% - var(--wl)) 0);
}
.hl--wet {
  position: absolute; inset: 0; z-index: 2;
  color: #c8f7f4;
  opacity: .66;
  will-change: transform;
  transform: translateX(.03em);
  filter: url(#refract);
  clip-path: inset(var(--wl) 0 0 0);
  pointer-events: none;
}

.pool { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pool__tiles {
  position: absolute;
  left: 50%; width: 100vw; margin-left: -50vw;
  top: calc(var(--wl) - clamp(14px, 1.6vw, 20px));
  height: clamp(14px, 1.6vw, 20px);
  background: var(--mosaic) 0 0 / auto 100% repeat-x;
}
.pool__water {
  position: absolute;
  left: 50%; width: 100vw; margin-left: -50vw;
  top: var(--wl);
  height: 1700px;
  background: linear-gradient(180deg, #3ad2e2 0, #18acd1 150px, #0b84b8 400px, #07639a 700px, #064877 1000px, var(--ink) 1400px);
  box-shadow: 0 -2px 0 rgba(255,255,255,.8), 0 -12px 26px -10px rgba(31,170,210,.5);
}
.pool__water::before {
  /* darker band right under the surface, like looking into depth */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 46px;
  background: linear-gradient(180deg, rgba(4,60,100,.22), rgba(4,60,100,0));
}
.pool__light {
  position: absolute; inset: 0 0 auto 0; height: 760px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%);
}
.caustic {
  position: absolute; top: -640px; left: -640px; right: 0; bottom: 0;
  background: url("../img/caustics.webp") 0 0 / 640px 640px repeat;
  opacity: .42;
  will-change: transform;
  animation: drift 40s linear infinite;
}
.caustic--b {
  background-size: 400px 400px;
  opacity: .2;
  transform: scale(1.6);
  animation: drift-b 64s linear infinite;
}
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(640px,640px,0); } }
@keyframes drift-b { from { transform: translate3d(640px,0,0) scale(1.6); } to { transform: translate3d(0,640px,0) scale(1.6); } }

.coping {
  position: relative; z-index: 3; height: clamp(18px, 2vw, 26px);
  background:
    repeating-linear-gradient(90deg, rgba(120,95,55,0) 0 118px, rgba(120,95,55,.35) 118px 120px),
    linear-gradient(180deg, #efe4cc, #d9c6a1);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 8px 18px -10px rgba(6,42,74,.45);
}

.hero__water {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  color: #fff;
}
.lead {
  font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem);
  line-height: 1.4;
  font-weight: 500;
  max-width: 30ch;
  margin: 0 0 1.75rem;
  text-shadow: 0 1px 14px rgba(0,40,70,.25);
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.trust li { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.9); }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--chlorine); }

.hero__photo {
  margin: 0;
  justify-self: end;
  width: min(100%, 390px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255,255,255,.16), 0 40px 70px -30px rgba(0,15,35,.7);
  transform: rotate(1.5deg);
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (min-width: 961px) {
  .hero__water { align-items: start; padding-top: clamp(2rem, 3.5vw, 3rem); }
  .hero__photo { margin-top: clamp(-380px, -26vw, -260px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; flex-wrap: wrap; }
.section-head--row .h2 { margin-bottom: 0; }
.section-head--row .section-head__lede { max-width: 34ch; padding-bottom: .4rem; }
.section-head__lede { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 42ch; }
.section-head .btn { margin-top: 1.75rem; }

/* Services */
.services { background: var(--marbelite); }
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.svc { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; }
.svc--reno { grid-column: span 7; }
.svc--heat { grid-column: span 5; }
.svc--water { grid-column: span 7; }
.svc--repair { grid-column: span 5; }

.svc--photo { min-height: clamp(420px, 48vw, 560px); color: #fff; align-items: flex-end; background: var(--ink); }
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.svc--photo:hover .svc__img { transform: scale(1.04); }
.svc--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,42,74,0) 25%, rgba(6,42,74,.55) 55%, rgba(4,24,44,.94) 100%); }
.svc--heat::after { background: linear-gradient(180deg, rgba(10,20,90,0) 20%, rgba(10,20,90,.5) 55%, rgba(5,12,50,.95) 100%); }
.svc__body { position: relative; z-index: 1; padding: clamp(1.5rem, 3vw, 2.25rem); width: 100%; }
.svc__body > p { margin: 0 0 1.1rem; max-width: 40ch; }
.svc--photo .svc__body > p { color: rgba(255,255,255,.85); }

.svc--panel { background: #fff; box-shadow: inset 0 0 0 1px rgba(6,42,74,.08); padding-top: 14px; }
.svc--panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--mosaic) 0 0 / auto 100% repeat-x; }
.svc--water { background: linear-gradient(165deg, #ffffff 0%, #e9f8fa 55%, #d3f1f5 100%); }
.svc--panel .h3 { color: var(--ink); }
.svc--panel .svc__body > p { color: var(--muted); }
.svc--repair { background: var(--ink); color: #fff; box-shadow: none; }
.svc--repair .h3 { color: #fff; }
.svc--repair .svc__body > p { color: rgba(255,255,255,.75); }

.tiles-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; font-weight: 600; }
.tiles-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.tiles-list li { display: flex; align-items: center; gap: .7rem; }
.tiles-list li::before {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, #8fd6e6, #2b9fd0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.svc__cta { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid currentColor; }
.svc__cta span { transition: transform .2s ease; }
.svc__cta:hover span { transform: translateX(4px); }
.svc--panel.svc--water .svc__cta { color: var(--drop-water); }
.svc--photo .svc__cta, .svc--repair .svc__cta { color: var(--chlorine); }

/* Gallery */
.gallery { background: var(--tile); color: #fff; }
.gallery .h2 { color: #fff; }
.gallery .eyebrow { color: var(--chlorine); }
.gallery .section-head__lede { color: rgba(255,255,255,.6); font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.g-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr 1fr;
  grid-template-rows: repeat(2, clamp(200px, 22vw, 300px));
  gap: clamp(.6rem, 1.4vw, 1rem);
}
.g-item { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #0d2a4a; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.g-item--a { grid-column: 1; grid-row: 1 / 3; }
.g-item--b { grid-column: 2 / 4; grid-row: 1; }
.g-item--c { grid-column: 4; grid-row: 1 / 3; }
.g-item--d { grid-column: 2; grid-row: 2; }
.g-item--e { grid-column: 3; grid-row: 2; }

/* Areas */
.areas { background:
  repeating-linear-gradient(90deg, rgba(120,95,55,0) 0 239px, rgba(120,95,55,.08) 239px 240px),
  var(--coping); }
.areas .eyebrow { color: var(--coping-deep); }
.areas .section-head__lede { color: #5d5038; }
.areas__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (min-width: 961px) { .areas__grid > .section-head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.lanes li { transition: padding-left .25s ease; }
.lanes li:hover { padding-left: .5rem; }
.lanes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.lanes li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(.8rem, 1.6vw, 1.1rem) 0;
  border-bottom: 1px solid rgba(6,42,74,.22);
}
.lanes__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1.6rem + 3vw, 4.25rem); line-height: .9; color: var(--ink); }
.lanes__tag { flex: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--chlorine); padding: .45rem .7rem; border-radius: 999px; }
.lanes__more .lanes__name { color: var(--coping-deep); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }

/* Quote */
.quote {
  background: linear-gradient(180deg, #0a7fb4 0%, #075b8e 40%, var(--ink) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.quote__caustics {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/caustics.webp") 0 0 / 560px 560px repeat;
  opacity: .28;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
          mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.quote { padding-top: calc(clamp(4.5rem, 10vw, 8rem) + 18px); }
.quote__tiles { position: absolute; inset: 0 0 auto 0; height: 18px; background: var(--mosaic) 0 0 / auto 100% repeat-x; box-shadow: 0 2px 0 rgba(255,255,255,.7); }
.quote .h2 { color: #fff; }
.quote__points { list-style: none; padding: 1.75rem 0 0; margin: 2rem 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: .8rem; font-weight: 600; font-size: 1.05rem; }
.quote__points li { display: flex; align-items: center; gap: .75rem; }
.quote__points li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #a5f3ef, var(--chlorine)); }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.quote__text { margin: 0 0 .25rem; color: rgba(255,255,255,.8); font-size: 1.1rem; }
.bignum {
  display: inline-block;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.4rem, 2.2rem + 6vw, 7.5rem);
  line-height: 1; letter-spacing: .01em;
  text-decoration: none; color: var(--chlorine);
  margin: 0 0 1.5rem;
  white-space: nowrap;
}
.bignum:hover { color: #fff; }

.qform {
  background: rgba(255,255,255,.97);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: 0 40px 80px -40px rgba(0,10,30,.8);
}
.qform__title { font-weight: 700; color: var(--ink); font-size: 1.1rem; margin: 0 0 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: .75rem .95rem;
  border: 1.5px solid #cfdbe3; border-radius: 12px;
  background: #f7fafb;
  font-size: 1rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--drop-water); background: #fff; box-shadow: 0 0 0 4px rgba(30,143,196,.18); }
.field input[aria-invalid="true"] { border-color: #c2410c; }
.field__error { color: #b3360a; font-size: .88rem; margin: .4rem 0 0; }
.qform__note { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: var(--tile); color: rgba(255,255,255,.78); padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__grid p { margin: 0; }
.site-footer__tag { margin-top: 1rem !important; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.site-footer__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--chlorine); margin-bottom: .5rem !important; }
.site-footer__phone { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; text-decoration: none; color: #fff; }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; font-size: .88rem; color: rgba(255,255,255,.5); }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: rgba(255,255,255,.8); }

/* Mobile action bar */
.actionbar { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(3,14,28,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img { max-width: min(92vw, 1000px); max-height: 86vh; width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .2s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero__water { grid-template-columns: 1fr; }
  .hero__photo { justify-self: start; width: min(100%, 380px); }
  .svc--reno, .svc--heat, .svc--water, .svc--repair { grid-column: 1 / -1; }
  .areas__grid, .quote__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .brand__name { font-size: 1.4rem; }
  .brand__drop { width: 30px; height: 30px; }
  .hero__type { --wl: 76%; }
  .pool__water { height: 1500px; background: linear-gradient(180deg, #3ad2e2 0, #18acd1 120px, #0b84b8 320px, #07639a 600px, #064877 900px, var(--ink) 1250px); }
  .caustic--b { display: none; }
  .caustic { opacity: .38; }
  .cta-row .btn { width: 100%; }
  .hero__photo { width: 100%; transform: rotate(0); }
  .hero__photo img { aspect-ratio: 4 / 3.4; }
  .tiles-list--cols { grid-template-columns: 1fr; }
  .svc--photo { min-height: 460px; }
  .g-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px 200px 180px; }
  .g-item--a { grid-column: 1; grid-row: 1 / 3; }
  .g-item--c { grid-column: 2; grid-row: 1 / 3; }
  .g-item--b { grid-column: 1 / 3; grid-row: 3; }
  .g-item--d { grid-column: 1; grid-row: 4; }
  .g-item--e { grid-column: 2; grid-row: 4; }
  .lanes__tag { font-size: .62rem; padding: .4rem .55rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 1.25rem; transform: none; }

  .actionbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem;
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(242,246,247,.98);
    box-shadow: 0 -1px 0 rgba(6,42,74,.1), 0 -10px 24px -18px rgba(6,42,74,.4);
  }
  .actionbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--ink); color: #fff; }
  .actionbar__btn--wa { background: #12a150; }
}

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