/* Power On v2: city pages (/service-areas/<city>/ and /service-areas/palm-desert/country-club-homes/).
   Loads after core.css and pages/service-areas.css (the map, the conditions row and the service rows come from there). */

/* ---------- hero: copy beside a local job photo, or a drawing-set title block when the city has none ---------- */
.chero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 88px); align-items: end; }
.chero .phero h1, .chero h1 { max-width: 16ch; }
.chero .lead { max-width: 52ch; }
.chero-f { margin: 0; min-width: 0; }
.chero-f .wt-img { aspect-ratio: 4 / 5; max-height: min(62vh, 620px); width: 100%; }
.chero-f .wt-img img { object-position: 50% 50%; }
.chero-f figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; color: var(--fg-3); }
.chero-f figcaption span:first-child { color: var(--fg-2); }
.chero-sheet { align-self: end; }
.chero-sheet .tblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chero-sheet .tblock dd { font-size: 13px; letter-spacing: .06em; }
.chero-cred { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 899px) {
  .chero-grid { grid-template-columns: minmax(0, 1fr); }
  .chero-f .wt-img { aspect-ratio: 4 / 3; max-height: none; }
  .chero-sheet { max-width: 520px; }
}
/* the phero's breadcrumb gap, a little tighter: the hero has a photo now */
.chero .crumbs { margin-bottom: clamp(36px, 5vw, 72px); }

/* ---------- section heads with their eyebrow above the heading (the heading's own words stay alone in the h2) ---------- */
.section .sec-head h2 { max-width: 22ch; }
.sec-sub { margin: -12px 0 clamp(28px, 3vw, 40px); color: var(--fg-2); max-width: 62ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; }

/* ---------- headings: the h1 and two h2s (recent work, closing) keep the display size; the rest step down one ---------- */
.cmain .section:not(#work):not(#contact) h2 { font-size: clamp(28px, 2.9vw, 44px); line-height: 1.06; letter-spacing: -0.025em; }
.cmain .section:not(#work):not(#contact) .sec-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- running text: the first paragraph in the lead style, the rest at reading size, ~62ch ---------- */
.ctext { display: grid; gap: 18px; max-width: 62ch; color: var(--fg-2); font-size: clamp(17px, 1.3vw, 18px); line-height: 1.7; }
.ctext .clead, .cmap-r .clead { color: var(--fg); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }

/* ---------- text sections (.csplit, the shared rules in core.css): the conditions row in the narrower right column ---------- */
@media (min-width: 1024px) {
  /* the conditions row in the narrower right column: two by two */
  .csplit-b .cond-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csplit-b .cond-row li, .csplit-b .cond-row li:first-child { padding: 22px 24px 22px 0; border-left: 0; }
  .csplit-b .cond-row li:nth-child(even) { padding: 22px 0 22px 24px; border-left: 1px solid var(--rule); }
  .csplit-b .cond-row li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- phones: two or more paragraphs fold behind "Read more" (scripts only; the words stay in the page) ---------- */
.more-btn { display: none; }
@media (max-width: 699px) {
  .js [data-more]:not(.is-open) > p:not(:first-child) { display: none; }
  .js .more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none;
    color: var(--fg); font: 500 15px/1 var(--font); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; cursor: pointer; }
}

/* ---------- local conditions: the /service-areas/ row, with headings and paragraphs ---------- */
.ccond { margin-top: clamp(40px, 5vw, 64px); }
.ccond .cond-t { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.ccond li > p { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 479px) { .ccond .cond-t, .ccond li > p { grid-column: 2; } }

/* ---------- common work: numbered drawing-set cards ---------- */
.cwork { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--rule); }
.cwork li { display: grid; align-content: start; gap: 12px; padding: 28px 0 32px; border-bottom: 1px solid var(--rule); min-width: 0; }
.cwork-n { color: var(--accent); font: 500 12px/1 var(--mono); letter-spacing: .14em; }
.cwork h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; }
.cwork p { color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.cwork .cwork-tool { font-size: 15px; margin-top: 4px; }
@media (max-width: 1023px) { .cwork { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cwork { grid-template-columns: minmax(0, 1fr); } }

/* ---------- recent work: case-study tiles (Palm Desert, country club), the gallery row ---------- */
.cfeat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3vw, 44px) var(--gap); align-items: start; }
.cfeat .wt-img { aspect-ratio: 4 / 3; }
.cfeat .wt-cap { display: grid; gap: 8px; }
.cfeat .cs-desc { color: var(--fg-2); max-width: 56ch; }
@media (max-width: 767px) { .cfeat { grid-template-columns: minmax(0, 1fr); } }
.cwork-links { margin-top: 28px; }
.cjobs { margin-top: clamp(40px, 5vw, 64px); }
.cfeat + .cwork-links + .cjobs, .cfeat + .cjobs { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.cjobs-h { margin-bottom: 24px; color: var(--fg); font-size: clamp(20px, 1.7vw, 24px); }
.cjobs-note { margin: -8px 0 28px; color: var(--fg-2); max-width: 62ch; }
.cjobs-all { margin-top: 32px; }

/* ---------- coverage + map: the map on the left, the coverage words on the right ---------- */
.cmap { align-items: start; }
.cmap .amap { height: clamp(320px, 34vw, 480px); }
.cmap-lab { margin-bottom: 12px; color: var(--fg-3); }
.cmap-h { margin-bottom: 24px; }
.cmap-h .kw { margin-bottom: 14px; }
.cmap-r .ctext { max-width: 62ch; }
.cmap-t { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--fg-2); font-size: 15px; max-width: 48ch; }
.cmap .area-list .tlink-row { margin-top: 16px; }
.map-fallback { display: none; }
html:not(.js) .map-fallback, .no-map .map-fallback { display: block; margin-top: 16px; color: var(--fg-2); }
@media (max-width: 899px) { .cmap .amap { height: 320px; } .cmap-r { order: -1; } }

/* ---------- services available: a compact two-column list ---------- */
.csvc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--rule); }
.csvc li { border-bottom: 1px solid var(--rule); min-width: 0; }
.csvc a { display: grid; gap: 4px; padding: 18px 0 20px; color: var(--fg); text-decoration: none; }
.csvc-t { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.005em; }
.csvc-d { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.csvc-m { margin-top: 6px; color: var(--fg); font-size: 14px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.csvc a:hover .csvc-t, .csvc a:focus-visible .csvc-t { color: var(--accent); }
@media (max-width: 699px) { .csvc { grid-template-columns: minmax(0, 1fr); } }
/* service pages' "Related services" rows (tools/v2/build-related.cjs): a 4:3 photo (or a video slot) on top of each
   item; one column on phones, three across from 700px; the cards share one height and the link sits at the foot */
.csvc.csvc-pics { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .csvc.csvc-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.csvc-pics li { display: flex; }
.csvc-pics a { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.csvc-pics .csvc-m { margin-top: auto; padding-top: 6px; align-self: flex-start; }
.csvc-ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); margin-bottom: 12px; }
.csvc-ph img, .csvc-ph video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) { .csvc-pics a:hover .csvc-ph img, .csvc-pics a:hover .csvc-ph video { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .csvc-ph img, .csvc-ph video { transition: none; } .csvc-pics a:hover .csvc-ph img, .csvc-pics a:hover .csvc-ph video { transform: none; } }

/* ---------- communities we serve: three groups of chips ---------- */
.cgroups { display: grid; gap: 32px; max-width: 980px; }
.cgroup-h { margin-bottom: 14px; font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.cchips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.cchips li { display: flex; }
.cchips li, .cchips a, .cchips span { font-size: 15px; line-height: 1.3; }
.cc-names li, .cchips a, .cchips span { padding: 9px 14px; border: 1px solid var(--rule); background: var(--bg-2); color: var(--fg); }
.cchips a { text-decoration: none; transition: border-color 300ms var(--ease), color 300ms var(--ease); }
.cchips a:hover, .cchips a:focus-visible { border-color: var(--accent); color: var(--accent); }
.cchips-more { margin-top: 28px; }
.cmap-r .cchips { margin: 20px 0 0; }

/* ---------- compact reviews: one row of small cards (scroll-snap on phones, three across on desktop) ---------- */
.rvc-nav { display: flex; gap: 8px; }
.rvc-nav[hidden] { display: none; }
.rvc-nav button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--fg); background: transparent; cursor: pointer; }
.rvc-nav button:hover:not(:disabled) { border-color: var(--fg); }
.rvc-nav button:disabled { opacity: .35; cursor: default; }
.rvc-row { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rvc-row::-webkit-scrollbar { display: none; }
.rvc-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.rvc-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px 22px 20px; border: 1px solid var(--rule); background: var(--bg-2); scroll-snap-align: start; }
.rvc-stars { color: var(--accent); font-size: 14px; letter-spacing: .14em; }
.rvc-q { margin: 0; color: var(--fg); font-size: 16px; line-height: 1.55; }
.rvc-q p + p { margin-top: 10px; }
.js .rvc-q:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.js .rvc-q:not(.is-open) p + p { display: none; }
.rvc-more { align-self: start; min-height: 32px; padding: 0; border: 0; background: none; color: var(--fg); font: 500 14px/1 var(--font); text-decoration: underline;
  text-decoration-color: var(--accent); text-underline-offset: 4px; cursor: pointer; }
.rvc-more[hidden] { display: none; }
.rvc-by { margin-top: auto; padding-top: 8px; color: var(--fg-3); font-size: 12px; letter-spacing: .06em; }
.rvc-by strong { color: var(--fg); font-weight: 500; }
.rvc-links { margin-top: 28px; }
/* the last card: an invitation to leave a review, outlined in the accent */
.rvc-ask { justify-content: center; gap: 14px; border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); background: transparent; }
.rvc-ask-h { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.rvc-ask-p { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.rvc-ask-b { align-self: start; margin-top: 4px; }
@media (max-width: 1023px) { .rvc-row { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 699px) { .rvc-row { grid-auto-columns: 85%; } }

/* ---------- country club page: check lists, the community names ---------- */
.cc-list { display: grid; max-width: 860px; border-top: 1px solid var(--rule); }
.cc-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--fg); font-size: 17px; line-height: 1.55; }
.cc-list li::before { content: ""; width: 14px; height: 8px; margin: 7px 0 0 4px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.cc-svc-h { margin: clamp(48px, 5vw, 72px) 0 20px; color: var(--fg); font-size: clamp(20px, 1.7vw, 24px); }
.cc-more { margin-top: 24px; color: var(--fg-2); }
/* "What we do in <city>" (owner, Nov 16): the eight services as cards, a real local job photo where the city has one,
   otherwise the service's line drawing; same frame either way */
.cdo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--gap); margin-top: clamp(28px, 3vw, 40px); }
@media (min-width: 700px) { .cdo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cdo { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cdo-c { display: flex; flex-direction: column; min-width: 0; }
.cdo-ph, .cdo-ic { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.cdo-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) { .cdo-c:hover .cdo-ph img { transform: scale(1.03); } }
.cdo-job { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 12px 10px; color: #F5F3EE; font: 500 11px/1.45 var(--mono); letter-spacing: .06em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); background: linear-gradient(to top, rgba(17, 16, 16, .92) 0%, rgba(17, 16, 16, .7) 45%, rgba(17, 16, 16, 0) 100%); }
.cdo-job-k { display: block; margin-bottom: 2px; color: #E8B84A; text-transform: uppercase; letter-spacing: .14em; }
.cdo-job-d { opacity: .8; white-space: nowrap; }
.cdo-ic { display: grid; place-items: center; color: var(--accent); border: 1px solid var(--rule); background-color: var(--tint);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.cdo-ic svg { width: 76px; height: 76px; padding: 14px; box-sizing: content-box; background: var(--bg); border: 1px solid var(--rule); border-radius: 50%; }
.cdo-ic-l { position: absolute; left: 12px; bottom: 10px; color: var(--fg-2); font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.cdo-b { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-top: 18px; border-top: 1px solid var(--rule); margin-top: 14px; }
.cdo h3 { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -0.005em; }
.cdo h3 a { color: var(--fg); text-decoration: none; }
.cdo h3 a:hover, .cdo h3 a:focus-visible { color: var(--accent); }
.cdo-in { color: var(--fg-2); }
.cdo-b p { color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.cdo-b .cdo-d { color: var(--fg); }
.cdo-b .cdo-l { margin-top: 4px; color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.cdo-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 8px; font-size: 15px; }
.cdo-all { display: grid; gap: 6px; margin-top: clamp(40px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--rule); max-width: 760px; }
.cdo-all .kw { margin: 0; }
.cdo-all-h { color: var(--fg); font-size: 20px; line-height: 1.3; font-weight: 500; }
.cdo-all p:last-child { color: var(--fg-2); }
/* owner, Nov 20: a service page's city list carries one visible label ("Panel upgrades by city"); each link's full name
   ("Panel upgrades in Palm Desert") is read by screen readers and search engines */
.tp-svc-h { margin: 0 0 14px; color: var(--fg-3); font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
