/* =========================================================
   Brighton Pools LLC — site styles
   Vanilla CSS · mobile-first · no dependencies
   Brand colors pulled from the logo (navy / blue / pool aqua)
   ========================================================= */

:root {
  --navy:       #0d2847;  /* "BRIGHTON" deep navy */
  --navy-2:     #10365c;  /* lighter navy for gradients */
  --blue:       #1b6ca8;  /* "POOLS" medium blue */
  --blue-dark:  #14567f;
  --aqua:       #21b6d8;  /* pool-water accent */
  --aqua-dark:  #0f97b8;
  --ink:        #1c2733;  /* body text */
  --muted:      #5a6b7a;  /* secondary text */
  --line:       #e2e9f0;  /* hairlines */
  --bg:         #ffffff;
  --bg-soft:    #f4f8fb;  /* soft blue-grey sections */
  --bg-navy:    #0d2847;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(13,40,71,.08), 0 1px 2px rgba(13,40,71,.06);
  --shadow-md:  0 6px 20px rgba(13,40,71,.10);
  --shadow-lg:  0 18px 46px rgba(13,40,71,.16);
  --radius:     14px;
  --radius-sm:  9px;
  --maxw:       1140px;
  --pad:        clamp(1.1rem, 4vw, 2rem);

  /* ---- HERO PHOTO ----
     To use a real banner photo: save it as images/hero-pool.jpg and change
     the line below to:
        --hero-photo: url("../images/hero-pool.jpg");
     Leave it as `none` to use the built-in "deep water" gradient banner. */
  --hero-photo: url("../images/hero-pool.jpg");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #dbe6f0; }
.section--navy h2,
.section--navy h3 { color: #ffffff; }

.eyebrow {
  display: inline-block;
  font-family: "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--aqua-dark);
  margin-bottom: .7rem;
}
.section--navy .eyebrow { color: var(--aqua); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--aqua);
  color: #05252f;
  box-shadow: 0 6px 16px rgba(33,182,216,.35);
}
.btn--primary:hover { background: var(--aqua-dark); color: #ffffff; }

.btn--call {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(13,40,71,.18);
  box-shadow: var(--shadow-sm);
}
.btn--call:hover { color: var(--navy); border-color: var(--navy); }

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.btn-row--center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.05;
}
.brand img { height: 52px; width: auto; border-radius: 6px; }
.brand span small {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav a.navlink {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  color: var(--navy);
  padding: .55rem .8rem;
  border-radius: 8px;
  font-size: .98rem;
}
.nav a.navlink:hover,
.nav a.navlink[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--blue-dark);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  color: var(--navy);
  margin-left: .3rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--aqua-dark); }
.header-phone .ico { color: var(--aqua-dark); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 22px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: .2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--pad) 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a.navlink { padding: .85rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .header-phone { margin: .6rem 0 .2rem; font-size: 1.15rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #eaf3fb;
  background-color: #0b2340;
  background-image:
    /* 1) legibility overlay (kept semi-transparent so a photo still shows) */
    linear-gradient(180deg, rgba(8,26,48,.60) 0%, rgba(8,26,48,.72) 55%, rgba(8,26,48,.88) 100%),
    /* 2) optional real photo — controlled by --hero-photo (default: none) */
    var(--hero-photo),
    /* 3) light "caustics" so the built-in banner has depth */
    radial-gradient(680px 340px at 16% 6%, rgba(33,182,216,.30), transparent 62%),
    radial-gradient(760px 380px at 88% 14%, rgba(27,108,168,.42), transparent 60%),
    radial-gradient(520px 300px at 62% 90%, rgba(33,182,216,.20), transparent 62%),
    /* 4) base deep-water gradient */
    linear-gradient(165deg, #164a78 0%, #0e3358 45%, #0b2340 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::after {
  /* white wave that flows the banner into the page below */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(38px, 6vw, 74px);
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2080'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%23ffffff'%20d='M0,48%20C220,86%20470,4%20720,30%20C970,56%201230,92%201440,44%20L1440,80%20L0,80%20Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.4rem, 9vw, 6.6rem);
  min-height: clamp(400px, 60vh, 600px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}
.hero h1 { color: #ffffff; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.hero .subhead {
  font-size: 1.2rem;
  color: #e4eff8;
  max-width: 58ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}

/* hero with logo (home page) */
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero-grid .hero-inner { max-width: 640px; }
.hero-logo-wrap { flex: 0 0 auto; }
/* white "badge" card so the original logo reads cleanly on the dark hero */
.hero-logo-frame {
  background: #ffffff;
  padding: clamp(10px, 1.3vw, 16px);
  border-radius: 18px;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 22px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(13,40,71,.06);
}
.hero-logo {
  display: block;
  width: clamp(190px, 23vw, 300px);
  height: auto;
  border-radius: 10px;
}
@media (max-width: 920px) { .hero-logo-wrap { display: none; } }
.hero .btn-row { margin-top: .4rem; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .93rem;
  color: #bcd3e8;
}
.hero-tags span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-tags .ico { color: var(--aqua); }

/* ---------- intro strip ---------- */
.intro-strip { text-align: center; }
.intro-strip p {
  font-size: 1.22rem;
  max-width: 68ch;
  margin-inline: auto;
  color: var(--ink);
}

/* ---------- cards grid ---------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: 1fr 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ee; }
.card .card-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aqua) 0%, var(--blue) 100%);
  color: #fff;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }

/* photo card (image header) */
.card--media { padding: 0; overflow: hidden; }
.card--media .card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card--media .card-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s ease;
}
.card--media:hover .card-media img { transform: scale(1.05); }
.card--media .card-body { padding: 1.2rem 1.25rem; }
.card--media .card-body h3 { margin-bottom: .4rem; font-size: 1.12rem; }
.card--media .card-body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- feature list (Why us) ---------- */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
}
.feature .tick {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(33,182,216,.16);
  color: var(--aqua);
}
.section--navy .feature { border-bottom: 1px solid rgba(255,255,255,.10); }
.section--navy .feature p { color: #c6d6e6; margin: .2rem 0 0; }
.section--navy .feature h3 { color: #fff; font-size: 1.12rem; }
.feature h3 { margin-bottom: .1rem; font-size: 1.12rem; }
.feature p { margin: .2rem 0 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6f4; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.4rem; }

/* full-width wrapper so the band has breathing room */
.cta-wrap { padding-block: clamp(2.4rem, 6vw, 4rem); }

/* ---------- service detail sections ---------- */
.service-block { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.2rem); }
.service-block:first-of-type { border-top: 0; }
.service-block .svc-head {
  display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem;
}
.service-block .svc-ico {
  width: 54px; height: 54px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, var(--aqua) 0%, var(--blue) 100%);
  color: #fff;
}
.service-block h2 { margin: 0; }
.highlights {
  list-style: none; padding: 0; margin: 1.2rem 0 0;
  display: grid; gap: .6rem; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li {
  display: flex; align-items: flex-start; gap: .6rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-weight: 600;
  font-size: .96rem;
  color: var(--navy);
}
.highlights li .ico { color: var(--aqua-dark); flex: 0 0 auto; margin-top: 2px; }

/* ---------- gallery ---------- */
.shape-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.shape-figure img { border-radius: 8px; }
.shape-figure figcaption { margin-top: .7rem; color: var(--muted); font-size: .92rem; text-align: center; }

/* project photo gallery */
.gallery-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.gallery-photo figcaption { padding: .7rem .95rem; color: var(--muted); font-size: .9rem; }

/* service block photo */
.svc-photo {
  width: 100%;
  height: clamp(200px, 34vw, 320px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
  display: block;
}

.photo-placeholder {
  border: 2px dashed #b9cde0;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #f0f6fb 0 12px, #e9f2f9 12px 24px);
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
}
.photo-placeholder strong { color: var(--blue-dark); display: block; font-size: 1rem; }
.photo-placeholder small { display: block; margin-top: .3rem; }

/* callout used to flag placeholder content to the owner */
.note {
  background: #fff8e6;
  border: 1px solid #f2dfa0;
  border-left: 4px solid #d99b1c;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  color: #6b5312;
  font-size: .95rem;
}
.note strong { color: #7a4d05; }

/* ---------- contact / form ---------- */
.contact-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  margin-bottom: .35rem;
  font-size: .95rem;
}
.field .req { color: #c0392b; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .8rem .9rem;
  border: 1.5px solid #cdd9e4;
  border-radius: 10px;
  background: #fdfefe;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(33,182,216,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: #d64541; background: #fdf3f2; }
.field .error-msg {
  display: none;
  color: #c0392b;
  font-size: .85rem;
  margin-top: .3rem;
  font-family: "Segoe UI", Arial, sans-serif;
}
.field.has-error .error-msg { display: block; }

/* honeypot — visually hidden, off-screen, not display:none (so bots fill it) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-success {
  display: none;
  background: #eafaf1;
  border: 1px solid #a8e6c4;
  border-left: 4px solid #1e9e5a;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  color: #14563a;
}
.form-success.show { display: block; }
.form-success h3 { color: #14563a; margin-bottom: .3rem; }
.form-success p { margin: 0; color: #2c6b4e; }

.contact-aside .info-item {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.contact-aside .info-item:last-child { border-bottom: 0; }
.contact-aside .info-item .ico {
  flex: 0 0 auto; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(33,182,216,.14); color: var(--aqua-dark);
}
.contact-aside .info-item strong { display: block; color: var(--navy); font-family: "Segoe UI", Arial, sans-serif; }
.contact-aside .info-item a { font-weight: 700; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9cde0;
  padding-block: 2.6rem 1.6rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: "Segoe UI", Arial, sans-serif; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: #cfe0ee; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.footer-brand img { height: 54px; border-radius: 8px; }
.footer-brand strong { color: #fff; font-family: Georgia, serif; font-size: 1.15rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .55rem; }
.footer-contact .ico { color: var(--aqua); flex: 0 0 auto; margin-top: 3px; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  justify-content: space-between;
  font-size: .86rem; color: #93aecb;
}

/* utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
