/*
 * Service Area detail pages (single-tpb_area.php + template-parts/area-page.php).
 * Extracted from the poolboys-area-*.html mockups. Loaded only on tpb_area singles.
 * The closing CTA reuses the theme's shared .cta-section / .cta-creds (style.css);
 * only .cta-eyebrow and .cta-copy are added here.
 */

/* ---- tokens (scoped: this stylesheet loads only on area pages) ---- */
:root{
  --navy:#02348F;--ocean:#054FCD;--arctic:#0397D6;--algae:#00C950;
  --charcoal:#1A2332;--white:#FFFFFF;--fog:#8FA3B8;
  --line:#D8E0E8;--muted:#64748B;--off:#F4F4F4;--alt:#eef1f6;
  --inactive:#7A8899;--inactive-note:#4A5568;--star:#FBBC05;
  --font-display:'Oswald',sans-serif;
  --font-body:'Figtree',sans-serif;

  /* Canonical fluid responsive system v5: matches homepage v7, contact v3, service areas v1 */
  --fs-section-y:clamp(72px, calc(3.89vw + 53.33px), 128px);
  --fs-section-x:clamp(24px, calc(3.33vw + 8px), 72px);
  --fs-inner-x:clamp(24px, calc(3.33vw + 8px), 72px);
  --fs-container:clamp(1100px, calc(15.625vw + 800px), 1200px);
  --text-body:clamp(17px, calc(0.208vw + 16.01px), 20px);
  --text-section-headline:clamp(32px, calc(3vw + 18px), 56px);
  /* --text-eyebrow comes from style.css :root (site-wide scale); no local override. */
  --text-btn:14px;
}

/* ===== HERO ===== */
.hero{
  position:relative;width:100%;
  padding:180px var(--fs-section-x) 120px;
  background:linear-gradient(155deg,#050d24 0%,#091e52 40%,#0f2868 70%,#07183e 100%);
  overflow:hidden;
}
/* No max-width cap: the one-line H1 can be wider than --fs-container, and a
   capped box would left-align it and overflow to the right (uneven side padding).
   The hero's own horizontal padding keeps the left/right gaps equal. */
.hero-inner{
  position:relative;z-index:2;
  max-width:none;margin:0 auto;
  text-align:center;
  opacity:0;transform:translateY(24px);
  animation:fadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
@keyframes fadeUp{to{opacity:1;transform:translateY(0);}}
.hero-h1{
  font-family:'Oswald','Oswald Fallback',Arial Narrow,Arial,sans-serif;
  font-weight:700;letter-spacing:0.04em;
  color:#fff;text-transform:uppercase;
  line-height:1.0;
  font-size:clamp(36px,4.6vw,64px);
  /* Wrap (balanced) only when a long city name does not fit on one line. */
  white-space:normal;text-wrap:balance;
}
/* Compound city names (Pearland & Brookside Village, Kemah & Clear Lake Shores):
   capped at 16em so the H1 always sits on two balanced, centred lines on
   desktop, including wide screens where it would otherwise fit on one line
   (feedback 949256). */
.hero-h1--wrap{
  line-height:1.05;
  max-width:16em;
  margin-left:auto;margin-right:auto;
}


/* ===== HQ PANEL (headquarters only) ===== */
.hq-panel{
  background:var(--white);
  padding:var(--fs-section-y) var(--fs-section-x);
}
.hq-panel-inner{
  max-width:840px;margin:0 auto;
  text-align:center;
}
.hq-panel-eyebrow{
  font-size:var(--text-eyebrow);font-weight:700;letter-spacing:0.28em;
  text-transform:uppercase;color:var(--arctic);margin-bottom:20px;
}
.hq-panel-headline{
  font-family:var(--font-display);font-weight:700;letter-spacing:0.04em;
  color:var(--navy);text-transform:uppercase;line-height:1.05;
  font-size:clamp(28px,3.2vw,44px);
  margin-bottom:clamp(32px,3vw,48px);
}

/* Landscape office info card · navy top border, 2x2 info grid */
.info-block{
  background:var(--alt);
  padding:clamp(32px,3.5vw,48px);border-radius:4px;
  border-top:3px solid var(--navy);
  text-align:left;
}
.info-blurb{
  font-size:15px;
  font-weight:500;
  color:var(--charcoal);
  line-height:1.7;
  max-width:680px;
  padding-bottom:28px;
  margin-bottom:28px;
  border-bottom:1px solid rgba(0,0,0,0.08);
}
.info-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:24px 40px;
  padding-bottom:28px;
  border-bottom:1px solid rgba(0,0,0,0.08);
  margin-bottom:24px;
}
.info-row{
  display:flex;align-items:flex-start;gap:14px;
}
.info-icon{
  width:20px;height:20px;flex-shrink:0;
  color:var(--navy);margin-top:2px;
}
.info-content{flex:1;min-width:0;}
.info-label{
  font-size:10px;font-weight:700;letter-spacing:0.16em;
  text-transform:uppercase;color:var(--muted);margin-bottom:4px;
}
.info-value{
  font-size:15px;font-weight:600;
  color:var(--charcoal);line-height:1.5;
  word-break:break-word;
}
.info-value a{color:var(--charcoal);transition:color 0.15s;}
.info-value a:hover{color:var(--navy);}
.info-sub{
  font-size:13px;font-weight:500;
  color:var(--muted);margin-top:2px;
}
.info-afterhours{
  /* Sits below the grid as a full-width footer to the card */
}
.info-afterhours-label{
  font-family:var(--font-display);
  font-size:14px;font-weight:700;
  color:var(--navy);letter-spacing:0.04em;
  text-transform:uppercase;line-height:1.1;
  margin-bottom:8px;
}
.info-afterhours-text{
  font-size:13px;font-weight:500;
  color:var(--muted);line-height:1.6;
}
.info-afterhours-link{
  color:var(--navy);font-weight:700;
  text-decoration:underline;text-underline-offset:3px;
  transition:color 0.15s;
}
.info-afterhours-link:hover{color:var(--ocean);}


/* ===== SERVICES ===== */
.services-section{background:var(--alt);padding:var(--fs-section-y) var(--fs-section-x);}
.services-inner{
  max-width:var(--fs-container);margin:0 auto;
}
.services-header{
  text-align:center;
  margin-bottom:clamp(40px,3vw,56px);
  max-width:840px;margin-left:auto;margin-right:auto;
}
.services-eyebrow{
  font-size:var(--text-eyebrow);font-weight:700;letter-spacing:0.28em;
  text-transform:uppercase;color:var(--arctic);margin-bottom:20px;
}
.services-headline{
  font-family:var(--font-display);font-weight:700;letter-spacing:0.04em;
  color:var(--navy);text-transform:uppercase;line-height:1.05;
  font-size:clamp(28px,3.2vw,44px);
}

/* 3-column grid · equal weight for each service track
   Card typography matches homepage v7 service-panel pattern for site consistency */
.services-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:20px;
  max-width:1100px;margin:0 auto;
}
.services-group{
  background:var(--white);
  border:1px solid var(--line);border-top:3px solid var(--navy);
  border-radius:4px;
  padding:40px 36px 36px;
  display:flex;flex-direction:column;
}
.services-group-label{
  font-family:var(--font-display);font-weight:700;letter-spacing:0.04em;
  font-size:clamp(20px,2vw,26px);color:var(--navy);
  text-transform:uppercase;line-height:1.05;
}
.services-group-rule{
  width:36px;height:3px;background:var(--arctic);
  margin:20px 0;flex-shrink:0;
}
.service-list{
  list-style:none;padding:0;margin:0;
  display:flex;flex-direction:column;gap:8px;
}
.service-list-item{
  font-size:14px;font-weight:500;color:var(--charcoal);
  line-height:1.3;
  display:flex;align-items:flex-start;gap:10px;
}
.service-list-item::before{
  content:'';width:4px;height:4px;border-radius:50%;
  background:var(--arctic);flex-shrink:0;margin-top:7px;
}

/* Pattern C (Equipment Only) · whole-card inactive treatment for the
   Weekly Pool Service card + per-item row-tint for Pool Recovery and
   One-Time Cleaning in the Specialty Services card. Per master prompt
   Section 15 (Equipment Only pattern). */
.services-group.is-inactive{
  background:var(--off);
  border-top-color:var(--inactive);
}
.services-group.is-inactive .services-group-label{color:var(--inactive);}
.services-group.is-inactive .services-group-rule{background:var(--inactive);}
.services-group.is-inactive .service-list-item{color:var(--inactive);}
.services-group.is-inactive .service-list-item::before{background:var(--inactive);}
.services-group.is-inactive .service-list-item-name{color:var(--inactive);}
/* AlgaeCare badge hidden when card is inactive */
.services-group.is-inactive .algae-badge{display:none;}

/* Whole-card inactive label · appears below the item list */
.services-group-inactive-note{
  margin-top:auto;padding-top:16px;
  font-family:var(--font-body);
  font-size:12px;font-weight:600;
  font-style:italic;color:var(--inactive-note);
  line-height:1.5;letter-spacing:0.01em;
}

/* Per-item row-tint for individual Specialty Services items unavailable
   in Equipment Only markets. No per-item label text - the row tint alone
   carries the inactive signal, paired with the whole-card Weekly Pool
   Service note that explicitly states unavailability. */
.service-list-item.is-inactive{
  color:var(--inactive);
  background:var(--off);
  padding:12px 14px;
  margin:0 -14px;
  border-radius:3px;
  align-items:flex-start;
}
.service-list-item.is-inactive::before{
  background:var(--inactive);margin-top:7px;
}

/* Per-card CTA strip · matches homepage v10 card-CTA pattern (Section 13).
   The wrapper <a> makes the entire card clickable; the CTA strip provides the
   visual call-to-action. Inactive cards (Pattern C Equipment Only) skip the
   wrapper and CTA entirely; they remain non-interactive. */
.services-group-wrap{
  display:flex;flex-direction:column;text-decoration:none;cursor:pointer;
}
.services-group-wrap .services-group{
  flex:1;border-radius:4px 4px 0 0;
  transition:box-shadow 0.3s ease,border-color 0.3s ease;
}
.services-group-wrap:hover .services-group{
  box-shadow:0 24px 64px rgba(2,52,143,0.25);
  border-color:rgba(2,52,143,0.25);
  border-top-color:#011F6B;
}
.services-group-cta{
  display:flex;align-items:center;justify-content:center;
  background:var(--navy);color:#fff;
  font-family:var(--font-body);
  font-size:14px;font-weight:700;
  letter-spacing:0.08em;text-transform:uppercase;
  padding:18px 20px;
  min-height:72px;
  border-top:1px solid rgba(255,255,255,0.12);
  border-radius:0 0 4px 4px;
  transition:background 0.15s;
  text-align:center;line-height:1.5;
}
.services-group-wrap:hover .services-group-cta{background:#011F6B;}
@media(max-width:760px){
  .services-group-cta{font-size:13px;min-height:60px;}
}
/* Standard of Care closing line · universal across all area pages (locked v5 master brand prompt sec 9) */
.services-soc-line{
  text-align:center;
  margin-top:clamp(40px, 3vw, 56px);
  font-size:14px;
  font-weight:500;
  color:var(--muted);
}
.services-soc-link{
  color:var(--navy);
  font-weight:700;
  text-decoration:underline;
}

/* Badged variant · used when an item carries the AlgaeCare guarantee */
.service-list-item--badged{
  align-items:flex-start;
}
.service-list-item--badged::before{
  margin-top:7px;
}
.service-list-item-body{
  display:flex;flex-direction:column;gap:4px;
}
.service-list-item-name{
  font-size:14px;font-weight:500;color:inherit;
  line-height:1.3;
}
/* Per-item inactive rows still gray their name span (color:inherit picks up
   the .service-list-item.is-inactive color). */
.service-list-item.is-inactive .service-list-item-name{color:var(--inactive);}
.algae-badge{
  display:inline-flex;align-items:center;gap:6px;
}
.algae-badge-icon{
  width:13px;height:13px;flex-shrink:0;
}
.algae-badge-text{
  font-family:var(--font-body);font-style:italic;
  font-size:12px;font-weight:600;letter-spacing:0;
  color:#00C950;
}

/* ===== COVERAGE ===== */
.coverage-section{background:var(--white);padding:var(--fs-section-y) var(--fs-section-x);}
.coverage-inner{max-width:var(--fs-container);margin:0 auto;}
.coverage-header{
  text-align:center;
  margin-bottom:clamp(40px,3vw,56px);
  max-width:720px;margin-left:auto;margin-right:auto;
}
.coverage-eyebrow{
  font-size:var(--text-eyebrow);font-weight:700;letter-spacing:0.28em;
  text-transform:uppercase;color:var(--arctic);margin-bottom:20px;
}
.coverage-headline{
  font-family:var(--font-display);font-weight:700;letter-spacing:0.04em;
  color:var(--navy);text-transform:uppercase;line-height:1.05;
  font-size:clamp(28px,3.2vw,44px);margin-bottom:20px;
}
.coverage-sub{
  font-size:15px;color:#445566;line-height:1.7;
}
.coverage-phone-link{
  color:var(--navy);font-weight:700;
  text-decoration:underline;text-underline-offset:3px;
  transition:color 0.15s;
}
.coverage-phone-link:hover{color:var(--ocean);}
.coverage-grid{
  display:grid;grid-template-columns:1fr 1.8fr;gap:20px;align-items:stretch;
}
.coverage-block{
  background:var(--white);
  border:1px solid var(--line);border-top:3px solid var(--navy);
  border-radius:4px;
  padding:40px 36px 36px;
  display:flex;flex-direction:column;
}
.coverage-block-label{
  font-family:var(--font-display);font-weight:700;letter-spacing:0.04em;
  font-size:clamp(20px,2vw,26px);color:var(--navy);
  text-transform:uppercase;line-height:1.05;
}
.coverage-block-rule{
  width:36px;height:3px;background:var(--arctic);
  margin:20px 0;flex-shrink:0;
}
.zip-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:8px 20px;
}
.zip-item{
  font-family:var(--font-body);font-weight:900;letter-spacing:-0.01em;
  font-size:17px;color:#445566;line-height:1;
  padding:8px 0;
}
.hood-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:6px 24px;
}
.hood-item{
  font-size:14px;color:var(--charcoal);font-weight:500;line-height:1.4;
  padding:6px 0;display:flex;align-items:flex-start;gap:10px;
}
.hood-dot{
  width:4px;height:4px;border-radius:50%;background:var(--arctic);
  flex-shrink:0;margin-top:7px;
}

/* Hood sub-section label · spans grid full width.
   Used when a Neighborhoods card contains multiple geographic groupings
   (e.g., Clear Lake = 5 jurisdictions; Kemah = Kemah + Clear Lake Shores). */




/* ===== CLOSING CTA (eyebrow + copy; rest shared via style.css) ===== */
/* Area pages use the light #EEF1F6 band (matches the mockups), not the shared
   white .cta-section, and drop the shared top/bottom hairlines. */
.cta-section{
  background:var(--alt);
  border-top:none;
  border-bottom:none;
}
.cta-section .cta-eyebrow{
  font-size:var(--text-eyebrow);font-weight:700;letter-spacing:0.28em;
  text-transform:uppercase;color:var(--arctic);margin-bottom:20px;
}
.cta-section .cta-copy{
  font-size:var(--text-body);color:#445566;line-height:1.7;margin:0 0 36px;
}

/* ===== RESPONSIVE ===== */
@media (max-width:960px){
  .hero{padding:140px 28px 88px;}
  .hero-h1{white-space:normal;}
  .hq-panel,.services-section,.coverage-section{padding:64px 28px;}
  .hq-panel-inner{max-width:100%;}
  .info-grid{grid-template-columns:1fr;gap:18px;}
  .services-grid{grid-template-columns:1fr;gap:16px;}
  .coverage-grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .zip-grid,.hood-grid{grid-template-columns:1fr;}
}
