/* =========================================================
   Bell Road Pool Care, stylesheet
   One brand color: pool blue, taken straight from the logo.
   Charcoal for text, sky wash for background, gold reserved
   only for star ratings, never used on buttons or CTAs.
   ========================================================= */

/* Fonts are loaded via <link> tags in each page's <head>, not @import,
   so the browser can fetch them in parallel instead of after this file. */

:root {
  /* Color */
  --ink: #23303a;           /* charcoal, headings, nav, footer */
  --ink-soft: #4d5c66;      /* body copy on light backgrounds */
  --pool-blue: #1f7fc4;     /* brand color, matches logo droplet, used for every CTA */
  --pool-blue-dark: #15628f;
  --deep-teal: #0d4f5a;     /* dark section backgrounds only, never buttons */
  --sky-wash: #eaf4f8;      /* page background */
  --sky-wash-deep: #dcedf3;
  --paper: #fdfcf8;         /* card / content background */
  --line: #d7e3e8;
  --line-soft: #e7eff2;
  --star: #f2b234;          /* star ratings only */

  /* Type */
  --font-display: 'Baloo 2', 'Segoe UI Rounded', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1120px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 12px 30px -14px rgba(15, 58, 74, 0.28);
  --shadow-card: 0 6px 18px -10px rgba(15, 58, 74, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--sky-wash);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 700;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}
.section--tight { padding: 40px 0; }
.section--paper { background: var(--paper); }
.section--sky { background: var(--sky-wash); }
.section--ink {
  background: var(--ink);
  color: #cfe3ea;
}
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pool-blue-dark);
  margin-bottom: 10px;
}
.section--ink .eyebrow { color: #8fc7ea; }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.15rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

/* Primary action: solid pool blue, used for every "Get a Quote" / "Get an Inspection" CTA */
.btn-primary {
  background: var(--pool-blue);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--pool-blue-dark); }
/* On dark backgrounds, flip to a white button so it still pops */
.section--ink .btn-primary,
.callout .btn-primary {
  background: #fff;
  color: var(--pool-blue-dark);
}
.section--ink .btn-primary:hover,
.callout .btn-primary:hover { background: var(--sky-wash); }

/* Secondary action: outline in the same blue, used for "Call" and secondary links */
.btn-outline,
.btn-call {
  background: transparent;
  border-color: var(--pool-blue);
  color: var(--pool-blue);
}
.btn-outline:hover,
.btn-call:hover { background: var(--pool-blue); color: #fff; }
.section--ink .btn-outline,
.section--ink .btn-call,
.callout .btn-outline,
.callout .btn-call {
  border-color: #fff;
  color: #fff;
}
.section--ink .btn-outline:hover,
.section--ink .btn-call:hover,
.callout .btn-outline:hover,
.callout .btn-call:hover { background: rgba(255,255,255,0.14); }

.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 252, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.call-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pool-blue-dark);
  font-size: 0.95rem;
}
.call-chip svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-toggle {
  position: relative;
  z-index: 210;
  border: none;
  background: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  padding: var(--header-h, 90px) 24px 40px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.site-nav ul { display: flex; flex-direction: column; gap: 2px; }
.site-nav ul a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav ul a[aria-current="page"] { color: var(--pool-blue); }
.nav-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-actions { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    background: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 28px; }
  .site-nav ul a {
    border-bottom: none;
    padding: 6px 2px;
    font-size: 1rem;
    position: relative;
  }
  .site-nav ul a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    border-radius: 2px;
    background: var(--pool-blue);
  }
  .nav-cta { margin: 0; flex-direction: row; }
}

/* ---------- Waterline divider (signature element) ---------- */
.waterline {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 0;
}
.waterline--flip { transform: scaleY(-1); }

/* ---------- Droplet bullets ---------- */
.drop-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
}
.drop-list li + li { border-top: 1px dashed var(--line); }
.drop-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--pool-blue);
}
.drop-list strong { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 700px) {
  .hero-media { min-height: 78vh; }
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,38,48,0.35) 0%, rgba(15,30,38,0.55) 55%, rgba(11,22,29,0.88) 100%);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 0 64px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(253,252,248,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--star); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 8vw, 3.3rem);
  max-width: 12ch;
  margin-bottom: 14px;
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: #eaf3f6;
  margin-bottom: 26px;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 26px 0;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.5rem;
}
.trust-item span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.trust-stars { color: var(--star); display: flex; justify-content: center; gap: 2px; margin-bottom: 2px; }
.trust-stars svg { width: 16px; height: 16px; }
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr);} }

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card--service {
  border-top: 4px solid var(--pool-blue);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card--service .card-icon {
  width: 42px; height: 42px;
  color: var(--pool-blue);
  margin-bottom: 8px;
}
.card--service h3 { font-size: 1.15rem; margin-bottom: 4px; }
.card--service p { font-size: 0.96rem; margin-bottom: 0; }

.card--feature {
  border-top: 4px solid var(--pool-blue);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

/* ---------- Weekly service feature block ---------- */
.feature-block {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
}
.feature-block-body { padding: 28px 24px; }
.feature-block-media { position: relative; min-height: 240px; }
.feature-block-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-block .eyebrow { color: var(--pool-blue-dark); }
@media (min-width: 860px) {
  .feature-block { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .feature-block-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Free inspection callout ---------- */
.callout {
  background: var(--deep-teal);
  color: #eaf6f8;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.callout h3 { color: #fff; font-size: 1.4rem; }
.callout .drop-icon { color: #fff; }
.callout-checklist { margin: 18px 0 22px; }
.callout-checklist li { border-top-color: rgba(255,255,255,0.18); }
.callout-checklist strong { color: #fff; }
.callout-checklist span { color: #d3e9ee; }

/* ---------- Testimonials ----------
   Plain CSS grid, no JS, no scroll-snap. Stacks on mobile so every
   review is readable without swiping, and crawlable without interaction. */
.testimonial-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.t-card .stars { color: var(--star); display: flex; gap: 2px; margin-bottom: 10px; }
.t-card .stars svg { width: 15px; height: 15px; }
.t-card p { font-size: 0.98rem; color: var(--ink-soft); flex-grow: 1; }
.t-card .who { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.95rem; margin-top: 8px; }
.t-card .who span { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; display: block; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 46px 17px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--pool-blue);
  font-family: var(--font-body);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body {
  padding: 0 18px 20px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---------- Forms ---------- */
.lead-form {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row .opt { font-weight: 400; color: var(--ink-soft); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--pool-blue);
  outline: none;
}
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.form-status { font-size: 0.92rem; font-weight: 600; margin-top: 12px; display: none; }
.form-status.is-success { color: #1a7a4a; display: block; }
.form-status.is-error { color: #b0432c; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
}
.gallery-item img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.gallery-caption {
  padding: 14px 16px;
  background: var(--paper);
}
.gallery-caption strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; display: block; }
.gallery-caption span { font-size: 0.85rem; }
.gallery-more {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  aspect-ratio: 3/4;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b8c9d0;
  padding: 32px 0 20px;
}
.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 22px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { height: 28px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; margin-bottom: 0; }
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col a:hover { color: #fff; }
.footer-col a { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
  font-size: 0.8rem;
}

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  gap: 26px;
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3/4;
  object-fit: cover;
}
@media (min-width: 860px) { .about-hero { grid-template-columns: 0.85fr 1.15fr; } }

.value-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
}
.value-item svg { width: 26px; height: 26px; color: var(--pool-blue); margin-bottom: 8px; }
.value-item span { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.92rem; }

.quote-block {
  border-left: 4px solid var(--pool-blue);
  padding: 4px 0 4px 20px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
  margin: 26px 0;
}

/* ---------- Service area page block ---------- */
.zip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zip-chip {
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}



/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 55;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -6px 18px -12px rgba(15,58,74,0.3);
}
.mobile-call-bar .btn { flex: 1; padding: 12px 14px; font-size: 0.94rem; }
@media (min-width: 900px) { .mobile-call-bar { display: none; } }
body { padding-bottom: 76px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-prose { max-width: 62ch; }
.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-wash-deep);
  color: var(--deep-teal);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
