:root {
  --navy: #0b1630;
  --navy2: #151f52;
  --blue: #2a66b8;
  --blue2: #3a2f88;
  --cyan: #35a9e5;
  --yellow: #ffc629;
  --ink: #16202e;
  --mut: #5b6677;
  --line: #e3e7ee;
  --bg: #f7f8fb;
  --hdr: 76px;
  --topbar: 36px;
  --head: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.08;
  margin: 0 0 .45em;
  letter-spacing: .01em;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .015em;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font: 700 .75rem/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--yellow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .15s, filter .15s, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.textlink {
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
}
.textlink:hover { color: var(--navy2); }

/* Top bar + light header (matches inner pages) */
.topbar { background: var(--navy); color: #b9c5dd; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 8px 24px; }
.topbar a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.topbar .wrap, .site-header .wrap { max-width: 1200px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.site-header .brand .logo { height: 56px; width: auto; flex-shrink: 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  white-space: nowrap;
}
.nav a.active, .nav a:hover { color: var(--blue); }
.nav a.active:not(.btn) { box-shadow: inset 0 -3px 0 var(--yellow); }
.nav .btn { color: #fff; }
.btn-sm { min-height: 0; padding: 10px 16px; font-size: .85rem; }
.navt, .burger { display: none; }

/* Hero
   Mobile: photo band on top (the pool shot is very wide; a full-bleed
   cover crop would hide most of the scene), type on navy below.
   Desktop: full-bleed photo with a left gradient and overlaid type. */
.hero {
  position: relative;
  color: #fff;
  min-height: calc(100svh - var(--hdr) - var(--topbar) - 7.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  width: 100%;
  background: var(--navy) url("../img/hero-pool-lighting.jpg") 68% 50%/cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,22,48,.08) 40%, rgba(11,22,48,.55) 100%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 0 auto;
  padding-top: 22px;
  padding-bottom: 28px;
}
.hero h1 {
  margin: 0 0 16px;
  text-wrap: balance;
  max-width: 14em;
  text-shadow: 0 2px 18px rgba(11,22,48,.35);
}
.hero-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  max-width: 46em;
  text-shadow: 0 1px 10px rgba(11,22,48,.35);
}
.nowrap { white-space: nowrap; }
.hero-sub .dot { margin: 0 .45em; }
.hero-sub-rest::before { content: "•"; margin: 0 .45em; }
@media (max-width: 429px) {
  .hero-sub-rest { display: block; }
  .hero-sub-rest::before { content: none; margin: 0; }
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  max-width: 420px;
}
.hero-btns .btn { width: 100%; }

/* Sections */
.sec { padding: 72px 0; }
.sec-head { margin-bottom: 36px; max-width: 36em; }
.sec-head h2 { margin: 0; }
.why-intro {
  margin: 14px 0 0;
  color: var(--mut);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

/* Service tiles — first content section peeks on the first screen */
.services { background: #fff; padding-top: 40px; }
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px 20px;
  background: #fff;
  border-top: 4px solid var(--blue);
  transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,22,48,.08); }
.tile h3 { margin: 0 0 6px; color: var(--navy); }
.tile p { margin: 0; color: var(--mut); font-size: .95rem; }

/* Why */
.why { background: var(--bg); }
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
}
.why-label {
  display: block;
  font: 700 .7rem/1.2 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 4px;
}
.why-value {
  display: block;
  font: 800 1.35rem/1.15 var(--head);
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .02em;
}

.reviews {
  margin-top: 40px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.reviews-kicker {
  margin: 0 0 8px;
  font: 800 1.25rem/1.1 var(--head);
  text-transform: uppercase;
  color: var(--navy);
}
.reviews-note {
  margin: 0 0 12px;
  color: var(--mut);
  font-size: .95rem;
}
.placeholder-flag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff3cd;
  color: #6b5400;
  font: 700 .68rem/1.4 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Photo strip */
.photos { background: #fff; }
.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.photo-strip figure { margin: 0; }
.photo-crop {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--navy);
}
.photo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-strip figure:nth-child(1) img { object-position: center 62%; }
.photo-strip figure:nth-child(2) img { object-position: center 40%; }
.photo-strip figure:nth-child(3) img { object-position: center 55%; }
.photo-strip figcaption {
  margin-top: 10px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}

/* Steps */
.steps-sec { background: var(--bg); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.steps li {
  background: #fff;
  border-radius: 12px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
}
.steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font: 800 1.2rem var(--head);
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--mut); font-size: .95rem; }

/* Map */
.map-sec { background: #fff; }
.map-note {
  margin: 12px 0 0;
  color: var(--mut);
  font-size: .95rem;
}
.service-map {
  height: 360px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.service-map .leaflet-container {
  height: 100%;
  width: 100%;
  font-family: var(--body);
  background: var(--navy);
}
.ee-pin { background: transparent; border: 0; }
.ee-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 0 2px rgba(11,22,48,.7);
}
.service-map .marker-cluster-small,
.service-map .marker-cluster-medium,
.service-map .marker-cluster-large { background: rgba(53, 169, 229, .35); }
.service-map .marker-cluster-small div,
.service-map .marker-cluster-medium div,
.service-map .marker-cluster-large div {
  background: var(--blue);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
}

/* GC band */
.gc-band {
  background: var(--navy2);
  color: #fff;
  padding: 28px 0;
}
.gc-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.gc-in p {
  margin: 0;
  font: 800 1.5rem/1.15 var(--head);
  text-transform: uppercase;
}

/* Footer CTA */
.cta {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
}
.cta-in { max-width: 640px; }
.cta h2 { margin: 0; }
.cta .hero-btns { margin-top: 28px; }

/* Footer */
.site-footer {
  background: #07122a;
  color: #c3cee4;
  padding: 48px 0 0;
  font-size: .92rem;
}
.site-footer a { color: #fff; }
.site-footer .brand .logo { height: 40px; }
.fgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.site-footer h4 {
  font: 700 .75rem var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 10px;
}
.site-footer p { margin: 0; }
.muted { color: #9fb0d0; }
.fbot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 36px;
  padding: 16px 24px 20px;
  font-size: .75rem;
  color: #8193b4;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* Tighten desktop nav so 7 items stay on one line around 1024px */
@media (max-width: 1060px) {
  .nav { gap: 16px; }
  .nav a { font-size: .86rem; }
}

/* Mobile nav — matches inner pages (light drawer, navy burger) */
@media (max-width: 960px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
  }
  .burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
  }
  .nav {
    position: absolute;
    top: var(--hdr);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-wrap: nowrap;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    white-space: nowrap;
  }
  .nav a.active:not(.btn) {
    box-shadow: inset 4px 0 0 var(--yellow);
  }
  .nav .btn { margin-top: 12px; color: #fff; }
  .navt:checked ~ .nav { display: flex; }
  .site-header .brand .logo { height: 46px; }
}

@media (max-width: 620px) {
  html, body { overflow-x: hidden; }
  .wrap { padding: 0 18px; }
  .topbar .tb-right { display: none; }
  .topbar-in { padding: 8px 18px; font-size: .72rem; gap: 8px; }
  .site-header .brand .logo { height: 40px; }
}

@media (min-width: 700px) {
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .photo-strip { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
  }
  .hero-btns .btn { width: auto; min-width: 200px; }
  .fgrid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .fbot {
    flex-direction: row;
    justify-content: space-between;
  }
  .gc-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .site-header .wrap { padding: 0 24px; }
  .topbar .wrap.topbar-in { padding: 8px 24px; }
  .sec { padding: 96px 0; }
  .services { padding-top: 56px; }
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - var(--hdr) - var(--topbar) - 8.5rem);
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    flex: none;
    min-height: 0;
    background-position: center 48%;
  }
  .hero-in { padding-top: 48px; padding-bottom: 48px; }
  .hero-bg::after {
    background: linear-gradient(90deg, rgba(11,22,48,.88) 0%, rgba(11,22,48,.72) 42%, rgba(11,22,48,.32) 100%);
  }
  .hero-sub { font-size: 1.1rem; }
  .tile-grid { grid-template-columns: 1fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .service-map { height: 440px; }
  .cta { padding: 80px 0; }
  .why-value { font-size: 1.5rem; }
  .fbot { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 429px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: 1.85rem; letter-spacing: .01em; }
  .hero-sub { font-size: .95rem; }
  .why-value { font-size: 1.15rem; }
}

/* Wisetack financing line in the homeowner "Why" section */
.pay-over-time {
  margin: 20px 0 0;
  text-align: left;
  font-size: 1rem;
}
.pay-over-time a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.pay-over-time a:hover { color: var(--navy2); text-decoration: underline; }


/* No-commission pledge (preview mockup) */
.pledge {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 36px;
  padding: 22px 22px 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 22, 48, .05);
  position: relative;
  overflow: hidden;
}
.pledge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(var(--yellow), var(--cyan));
}
.pledge-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff4cc;
  display: grid;
  place-items: center;
}
.pledge-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--navy);
}
.pledge-copy h3 {
  margin: 0 0 6px;
  font: 800 clamp(1.35rem, 2.6vw, 1.7rem)/1.1 var(--head);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy);
}
.pledge-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  max-width: 42em;
}
@media (max-width: 429px) {
  .pledge { gap: 12px; padding: 18px 16px 16px 18px; }
  .pledge-icon { width: 40px; height: 40px; }
  .pledge-copy p { font-size: .98rem; }
}
