/* Area (location) pages: areas/houston.html, cypress.html, the-woodlands.html, spring.html, katy.html
   ("Area we serve - <city>" frames). Built on service.css (hero, service rows, map card) + home.css (carousels, FAQ);
   only area-specific bits live here. */

/* Hero: title block -> intro is 20px in the design (service hero uses 32) */
.page-hero--area .page-hero__inner { gap: 20px; }

/* ---------- Custom outdoor living solutions: 4 service rows with a solid button + "Learn more" ---------- */
.area-solutions .service-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}
.area-solutions .service-row__toggle { margin-top: 0; }

/* Stacking cards: each row sticks under the header and the next one slides over it (js/area-stack.js scales + fades the covered row) */
@media (min-width: 900px) {
  .area-solutions .service-list { gap: 0; }
  .area-solutions .service-row {
    position: sticky;
    top: var(--stack-top, 240px);
    margin-bottom: 40px;
    transform-origin: 50% 0;
    will-change: transform;
    box-shadow: 0 -12px 32px -16px rgba(12, 20, 29, 0.18);
  }
  .area-solutions .service-row:last-child { margin-bottom: 0; }
  /* Runway after the last row so the row above it can finish fading out before the section ends */
  .area-solutions .service-list::after { content: ""; display: block; height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .area-solutions .service-row { position: static; box-shadow: none; }
}

/* Featured projects intro is one centred paragraph (same as the service pages) */

/* ---------- Premier builder + map, on the soft grey band ---------- */
.area-builders {
  margin-top: var(--section-space);
  padding-block: var(--space-dark);
  background: #f3f2ee;
}
.area-builders .section-heading { max-width: 874px; }
.area-builders__grid {
  display: grid;
  grid-template-columns: minmax(0, 690fr) minmax(0, 750fr);
  gap: clamp(32px, 4.4vw, 84px);
  align-items: center;
  margin-top: clamp(32px, 2.5vw, 48px);
}
.area-builders__body { display: grid; gap: 40px; }
.area-builders__copy { display: grid; gap: 20px; }
.area-builders__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.25; font-weight: 500; }
.area-builders__paras { display: grid; gap: 8px; font-size: var(--fs-lead); line-height: var(--lh-body, 1.4); }
.area-builders__paras strong { font-weight: 600; }
.area-builders .btn--white { border-color: var(--border-cool); }
/* Video placeholder (Figma: 750 x 432 box, 56px white play button centred). A YouTube embed replaces it later. */
.area-video {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 750 / 432;
  border-radius: var(--radius-md);
  background: #000;
  overflow: hidden;
}
.area-video__play {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.area-video__play .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.area-video__play:hover,
.area-video__play:focus-visible { transform: scale(1.08); background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ---------- Turn-key process: photo on the left, four soft cards (2 x 2) on the right ---------- */
.area-process .section-heading { max-width: 874px; }
.area-process__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--space-heading);
}
.area-process__media { border-radius: var(--radius-md); overflow: hidden; min-height: 320px; }
.area-process__media img { width: 100%; height: 100%; object-fit: cover; }
.area-process__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.area-step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  align-content: start;
  gap: 36px;
  padding: 48px 24px 40px;
  border-radius: var(--radius-md);
  background: #f3f2ee;
  text-align: center;
}
.area-step__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  font-size: var(--fs-h3);
  line-height: 1.33;
  font-weight: 600;
  text-transform: uppercase;
}
.area-step__icon { width: 72px; height: 72px; color: var(--teal); fill: currentColor; stroke: none; }   /* Figma vector icons (assets/icons/process-icons.svg) */
.area-step p { opacity: 0.85; font-size: var(--fs-body, 1.125rem); line-height: var(--lh-body, 1.4); }

@media (max-width: 1099px) {
  .area-process__grid { grid-template-columns: minmax(0, 1fr); }
  .area-process__media { min-height: 0; width: 100%; aspect-ratio: 4 / 3; }   /* min-height + aspect-ratio would widen the box past the screen */
}
@media (max-width: 899px) {
  .area-builders__grid { grid-template-columns: minmax(0, 1fr); }
  .area-video { aspect-ratio: 16 / 10; }
}
@media (max-width: 639px) {
  .area-process__steps { grid-template-columns: minmax(0, 1fr); }
  .area-step { gap: 24px; padding-block: 32px; }
  .area-solutions .service-row__actions { justify-content: center; }
  .area-solutions .service-row__actions .btn { flex: 1 1 100%; }
  .area-solutions .service-row__actions .service-row__toggle { justify-content: center; }
}
