/* Service page: Swimming pool contractor ("Services - Swimming pool contractor" frame) */

/* Hero: same page-hero as About/Projects, with intro copy + buttons under the title */
.page-hero--service .page-hero__inner { max-width: 905px; gap: 32px; }
.page-hero__aside { display: grid; gap: 32px; }
.page-hero__aside p { font-size: var(--fs-lead); line-height: 1.4; }

/* Residential / commercial rows */
.pool-services .section-heading { max-width: 874px; }
.pool-services .eyebrow { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); line-height: 1.33; }
.service-list { display: grid; gap: 24px; margin-top: clamp(32px, 2.5vw, 48px); }
.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4.2vw, 80px);
  align-items: center;
  padding: clamp(16px, 1.7vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.service-row__media { aspect-ratio: 689 / 422; }
.service-row--reverse .service-row__media { order: 2; }
.service-row__body { display: block; }
.service-row__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.25;
  font-weight: 600;
}
.service-row__copy { display: grid; gap: 8px; margin-top: 16px; font-size: var(--fs-lead); line-height: 1.4; }
.service-row__toggle { margin-top: 32px; }

.service-row__toggle .icon { transition: transform var(--t-fast) var(--ease); }
.service-row__toggle:is(:hover, :focus-visible) .u-line { background-size: 100% 2px; }
.service-row__toggle:hover .icon { transform: translateX(4px); }
a.service-row__toggle:hover { text-decoration: none; }
/* Trusted builder banner */
.trust-banner {
  position: relative;
  margin-top: var(--section-space);
  padding-block: clamp(48px, 5.2vw, 100px);
  overflow: hidden;
  background: var(--navy);
}
.trust-banner__media,
.trust-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trust-banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 20, 29, 0.8), rgba(0, 0, 0, 0.1));
}
.trust-banner > .container { position: relative; display: flex; justify-content: flex-end; }
/* White card on the right of the photo (750 wide, 40 padding, 8 radius) */
.trust-banner__inner {
  display: grid;
  gap: 48px;
  justify-items: start;
  width: 100%;
  max-width: 750px;
  padding: clamp(24px, 2.1vw, 40px);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy);
}
.trust-banner__copy { display: grid; gap: 20px; }
.trust-banner__subtitle { font-size: 24px; font-weight: 500; line-height: 32px; }
.trust-banner__paras { display: grid; gap: 8px; }
.trust-banner__paras p { font-size: var(--fs-lead); line-height: 1.4; }
/* Bulleted list as in the design (Figma unordered list, 8px paragraph spacing) */
.trust-banner__list { display: grid; gap: 8px; margin: 0; padding-left: 1.5em; list-style: disc; font-size: var(--fs-lead); line-height: 1.4; }
.trust-banner__list li::marker { color: currentColor; }
/* Figma highlights key phrases in SemiBold */
.service-row__copy strong,
.trust-banner__list strong { font-weight: 600; }

/* Areas served */
.areas__grid {
  display: grid;
  grid-template-columns: minmax(0, 688fr) minmax(0, 750fr);
  gap: clamp(32px, 4.5vw, 86px);
  align-items: stretch;   /* map grows to the height of the text column */
}
.areas__media { min-height: clamp(320px, 28vw, 538px); border-radius: var(--radius-md); background: #d9d9d9; overflow: hidden; position: relative; }
.areas__map { position: absolute; inset: 0; z-index: 0; }
/* Brand-tinted, quiet basemap: light CARTO tiles shifted towards the brand teal. */
.areas__map { background: var(--teal-50); font-family: var(--font-body); }
.areas__map .leaflet-tile-pane { filter: grayscale(1) sepia(0.4) hue-rotate(150deg) saturate(1.5) brightness(1.08) contrast(0.85); }
.areas__map .leaflet-control-attribution { background: rgba(255, 255, 255, 0.75); color: var(--text-muted); font-size: 10px; }
.areas__map .leaflet-control-attribution a { color: var(--teal); }
.areas__map.leaflet-container { cursor: default; }
.map-pin { background: none; border: 0; }
.map-pin__dot { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); border: 4px solid var(--white); box-shadow: 0 4px 12px rgba(12, 20, 29, 0.35); }
.map-pin__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--teal); opacity: 0.35; animation: pin-pulse 1.8s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(0.5); opacity: 0.45; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pin__pulse { animation: none; } }
.areas__body { display: grid; gap: 32px; }
.areas__head { display: grid; gap: 20px; }
.areas__head p { font-size: var(--fs-lead); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
/* Map pin before each area name, 4px from the text (Figma) */
.chip { gap: 4px; }
.chip__pin { flex: none; width: 20px; height: 20px; color: currentColor; }
a.chip:is(:hover, :focus-visible, .is-active) { background: var(--teal); color: var(--white); }

/* Pool water features: black band as in the design */
.water { margin-top: var(--section-space); padding-block: var(--space-dark); background: #000; color: var(--white); }
.water__head { display: grid; gap: 20px; max-width: 999px; margin: 0 auto var(--space-heading); text-align: center; }
.water__head p { font-size: var(--fs-lead); line-height: 1.4; }
.water__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.7vw, 32px) 24px; }
.water .media { aspect-ratio: 492 / 266; }
.water .card__text { font-size: var(--fs-lead); line-height: 1.4; }
/* Simple, quiet cards on black: no zoom, no underline; CTA wipes to white so it never blends into the band */
.water .card:hover .media img,
.water .card:focus-within .media img { transform: none; }
.water .btn--primary.has-fx { --fx: var(--white); --fx-text: var(--navy); }
.water .btn--primary.has-fx:hover { background: var(--teal); }
.water__cta { display: flex; justify-content: center; margin-top: var(--space-heading); }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row--reverse .service-row__media { order: 0; }
  .areas__grid { grid-template-columns: minmax(0, 1fr); }
  .areas__media { display: none; }   /* no hover on touch: area buttons only */
  .water__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .water__grid { grid-template-columns: minmax(0, 1fr); }
  .trust-banner .btn-row { width: 100%; }
}
