/* ============================================================
   Location pages — the local run.

   Loaded only by the /electrician-<town>-nc/ pages, scoped under
   body.pg-loc, so nothing here can reach the home, about or service
   pages. It sits on top of css/styles.css, which already owns the
   hero, nav, footer, FAQ, reviews band, contact panel and the
   .hoods chips. This file adds what those pages lacked: section
   bands, icon-marked headings, and alternating photo/copy blocks.

   Composition cue (following the service pages, where each page takes
   its cue from its own subject): a service page is about a procedure,
   so it reads as a sequence of steps. A location page is about a
   PLACE, so it reads as a run through town — a routed line down the
   body, blocks alternating left and right off it like stops, and the
   town facts set as a ledger. That keeps the location set visually a
   sibling of the service set without being a reskin of it.
   ============================================================ */

body.pg-loc{overflow-x:clip}
.pg-loc main{max-width:var(--shell);margin-inline:auto;padding-inline:var(--gutter);position:relative}
.pg-loc .bleed{width:100vw;margin-inline:calc(50% - 50vw)}
.pg-loc .shell{display:block;max-width:var(--shell);margin-inline:auto;padding-inline:var(--gutter)}
.pg-loc .crumbs{max-width:none;margin:0 0 clamp(1.4rem,3vw,2.2rem)}
/* each section draws its own mark, same contract as the service pages */
.pg-loc h2{padding-left:0}
.pg-loc h2::before{display:none}

/* ---------- motion ----------
   styles.css carries no reveal rules, so the data-rv hooks already in
   this markup were inert. Same contract as service-pages.css: nothing
   is hidden until js/reveal.js confirms it can reveal it again. */
html.rv-on .rv{
  opacity:0;transform:translateY(18px);
  transition:opacity .6s var(--ease),transform .6s var(--ease);
  transition-delay:var(--rvd,0ms)}
html.rv-on [data-rv="scale"].rv{transform:translateY(14px) scale(.975)}
html.rv-on .rv.is-in,
html.rv-on [data-rv].rv.is-in{opacity:1;transform:none}

/* ---------- the run ----------
   One routed line down the body with a node at each stop. On a page
   about a place this reads as a route, not a chronology. */
.pg-loc .loc-run{position:relative;margin-block:clamp(2.75rem,6vw,4.5rem)}
.pg-loc .loc-run::before{
  content:"";position:absolute;left:calc(var(--s-3) * -1);top:.35rem;bottom:.35rem;width:2px;
  background:linear-gradient(180deg,transparent,var(--hair) 8%,var(--hair) 92%,transparent);
  border-radius:2px}

.pg-loc .loc-sec{position:relative;margin-block:clamp(2.5rem,6vw,4.25rem)}
.pg-loc .loc-sec::before{
  content:"";position:absolute;left:calc(var(--s-3) * -1 - 4px);top:.6rem;
  width:10px;height:10px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 0 4px rgba(231,162,0,.16)}
.pg-loc .loc-sec h2{font-size:clamp(1.5rem,2.4vw,2.1rem);margin-bottom:var(--s-3);color:#fff}
.pg-loc .loc-copy p{font-size:1.05rem;line-height:1.78;color:var(--muted);margin-bottom:var(--s-3)}
.pg-loc .loc-copy p:last-child{margin-bottom:0}
.pg-loc .loc-copy a{color:var(--neon)}

/* heading mark: the same gold glyph plate the service pages use */
.pg-loc .feat-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:2.5rem;height:2.5rem;margin-bottom:var(--s-2);
  border-radius:11px;border:1px solid rgba(231,162,0,.34);
  background:linear-gradient(180deg,rgba(231,162,0,.18),rgba(231,162,0,.05));
  color:var(--gold)}
.pg-loc .feat-mark svg{width:1.3rem;height:1.3rem}

/* alternating photo/copy stops: the two-column pairing the location
   pages had none of. Photo leads on one stop, copy on the next. */
.pg-loc .loc-sec-shot,
.pg-loc .loc-sec-flip{display:grid;gap:clamp(1.75rem,4.5vw,3.25rem);align-items:center}
.pg-loc .loc-sec-shot{grid-template-columns:minmax(0,.62fr) minmax(0,1fr)}
/* copy leads here, so the photo takes the narrower column and lets the
   text hold the width — the same ratio the service pages use */
.pg-loc .loc-sec-flip{grid-template-columns:minmax(0,1fr) minmax(0,.52fr)}
.pg-loc .loc-sec-flip .loc-shot{order:2}
.pg-loc .loc-shot img{
  display:block;width:100%;height:auto;border-radius:var(--radius);
  border:1px solid rgba(159,212,240,.24);box-shadow:var(--lift)}

/* a captioned figure, so one stop carries a line of on-site detail */
.pg-loc .loc-figure{margin:0}
.pg-loc .loc-figure img{
  display:block;width:100%;height:auto;border-radius:var(--radius);
  border:1px solid rgba(159,212,240,.24);box-shadow:var(--lift)}
.pg-loc .loc-figure figcaption{
  position:relative;margin-top:var(--s-3);padding-top:.8rem;max-width:46ch;
  font-size:.88rem;line-height:1.55;color:var(--muted)}
.pg-loc .loc-figure figcaption::before{
  content:"";position:absolute;top:0;left:0;width:3rem;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--gold),transparent)}

/* the local note, styled as the service pages style theirs. Inside a
   two-column stop it runs the full width beneath both columns. */
.pg-loc .loc-sec-shot .loc-note,
.pg-loc .loc-sec-flip .loc-note{grid-column:1/-1}
.pg-loc .loc-note{
  margin:var(--s-4) 0 0;padding:var(--s-4);border-radius:var(--radius);
  border:1px solid rgba(231,162,0,.3);border-left:3px solid var(--gold);
  background:linear-gradient(90deg,rgba(231,162,0,.12),rgba(27,60,92,.5) 60%)}
.pg-loc .loc-note p{margin:0;color:var(--text);font-size:1.03rem;line-height:1.65}

/* a two-up photo strip for the "what we see here" stop */
.pg-loc .loc-pair{
  display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(.9rem,2vw,1.4rem);
  margin-top:clamp(1.5rem,3.5vw,2.5rem)}
.pg-loc .loc-pair figure{margin:0}
.pg-loc .loc-pair img{
  display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;
  border-radius:var(--radius);border:1px solid rgba(159,212,240,.24);box-shadow:var(--lift)}

/* a three-up strip, for towns whose story is a sequence of small jobs
   rather than one hero shot */
.pg-loc .loc-trio{
  display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(.9rem,2vw,1.4rem);
  margin-top:clamp(1.5rem,3.5vw,2.5rem)}
.pg-loc .loc-trio figure{margin:0}
.pg-loc .loc-trio img{
  display:block;width:100%;height:100%;aspect-ratio:3/4;object-fit:cover;
  border-radius:var(--radius);border:1px solid rgba(159,212,240,.24);box-shadow:var(--lift)}

/* a wide band: one photo running the full content width, for the towns whose
   subject is a long run (a service drop, a feeder, a storm front) */
.pg-loc .loc-band{margin:0}
.pg-loc .loc-band img{
  display:block;width:100%;height:auto;max-height:26rem;object-fit:cover;
  border-radius:var(--radius);border:1px solid rgba(159,212,240,.24);box-shadow:var(--lift)}

/* lead paragraph, sized like the opening line on the service pages */
.pg-loc .loc-lead{
  margin:0;max-width:54ch;font-size:clamp(1.2rem,2.1vw,1.6rem);line-height:1.55;
  color:var(--text);text-wrap:pretty}

/* the town ledger: facts on hairlines rather than floating cards, so the
   town numbers read as a record. Overrides the .trust-strip cards from
   styles.css for these pages only. */
.pg-loc .trust-strip{
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
  margin:0;padding:0;list-style:none;
  border-top:1px solid var(--hair);border-left:1px solid var(--hair)}
.pg-loc .trust-strip li{
  display:flex;flex-direction:column;gap:.4rem;
  padding:clamp(1rem,2.2vw,1.5rem) clamp(1rem,2.4vw,1.75rem);
  border:0;border-right:1px solid var(--hair);border-bottom:1px solid var(--hair);
  border-radius:0;
  background:linear-gradient(180deg,rgba(159,212,240,.045),transparent)}
.pg-loc .trust-strip b{
  font-family:Montserrat,sans-serif;font-size:.66rem;font-weight:800;
  letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.pg-loc .trust-strip span{color:var(--text);font-size:.97rem;line-height:1.5}

/* four towns carry h3 subheadings inside a stop ("Jobs we do most in X",
   "Permits and power in X"). Set them as a quiet gold label so they read as
   a rung below the stop's own h2 rather than competing with it. */
.pg-loc .loc-copy h3{
  margin:var(--s-4) 0 var(--s-2);
  font-family:Montserrat,sans-serif;font-size:1.02rem;font-weight:700;
  letter-spacing:.01em;color:var(--text)}
.pg-loc .loc-copy h3::before{display:none}
.pg-loc .loc-copy h3:first-child{margin-top:0}

/* neighbourhood chips keep their shape from styles.css; the stop just
   needs a little air above the row */
.pg-loc .hoods-intro{color:var(--muted);margin:var(--s-4) 0 0;font-size:1.02rem}

/* the services grid and the cross-links get the same ruled heading the
   service pages give "Other Services We Provide" */
.pg-loc .loc-also{max-width:none;margin-block:clamp(3rem,7vw,5rem)}
.pg-loc .loc-also>h2{
  padding-top:var(--s-4);border-top:1px solid var(--hair);
  font-size:clamp(1.4rem,2.1vw,1.85rem);margin-bottom:var(--s-4)}
.pg-loc .loc-cross{color:var(--muted);line-height:1.8;margin-top:var(--s-4)}
.pg-loc .loc-cross a{color:var(--neon)}

@media(max-width:900px){
  .pg-loc .loc-sec-shot,.pg-loc .loc-sec-flip{grid-template-columns:1fr}
  .pg-loc .loc-sec-flip .loc-shot{order:0}
  .pg-loc .loc-shot{max-width:30rem}
  .pg-loc .trust-strip{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .pg-loc .loc-run::before,.pg-loc .loc-sec::before{display:none}
  .pg-loc .trust-strip{grid-template-columns:1fr}
  .pg-loc .loc-pair,.pg-loc .loc-trio{grid-template-columns:1fr}
  .pg-loc .loc-band img{max-height:18rem}
}
