/* ===========================================================================
   prerender.css — styles the 6,133 static deep pages (city/state/service).

   DESIGN CONTRACT (from DESIGN.md — the owner's real live brand, reproduce
   exactly, do not invent): dark navy + safety orange, Oswald condensed
   uppercase display type, Source Sans 3 body, near-square corners (.2rem),
   thin orange rules. Industrial contractor aesthetic.

   Deep pages contain only 4 class hooks — pr-header / pr-breadcrumb / pr-main /
   pr-footer — everything else is bare semantic HTML, so element selectors here
   carry the whole design. Scoped under .pr-* so it can never leak into the
   Tailwind-built hub pages that share the same stylesheet bundle.
   ======================================================================== */

:root {
  --navy: oklch(22% 0.06 250);
  --navy-dark: oklch(14% 0.04 250);
  --orange: oklch(68% 0.18 45);
  --orange-dark: oklch(58% 0.18 45);
  --offwhite: oklch(97% 0.005 80);
  --charcoal: oklch(25% 0.01 250);
  --border: oklch(88% 0.008 250);
  --radius: 0.2rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- page frame ---------------------------------------------------- */
body:has(.pr-main) {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- header ------------------------------------------------------- */
.pr-header {
  background: var(--navy-dark);
  color: #fff;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--orange);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}
.pr-header > a:first-child {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgb(255 255 255 / 0.22);
  padding-right: 0.9rem;
  margin-right: 0.2rem;
}
.pr-header > a:first-child:hover { color: var(--orange); }
.pr-header a[href^="tel:"] {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.pr-header a[href^="tel:"]:hover { background: var(--orange-dark); }
.pr-header a[href^="tel:"]:active { transform: scale(0.97); }
.pr-header nav {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  padding-top: 0.7rem;
  margin-top: 0.55rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.78rem;
}
.pr-header nav a {
  color: rgb(255 255 255 / 0.78);
  text-decoration: none;
  transition: color 140ms var(--ease-out);
}
.pr-header nav a:hover { color: var(--orange); }

/* ---------- breadcrumb --------------------------------------------------- */
.pr-breadcrumb {
  font-size: 0.8rem;
  color: oklch(52% 0.01 250);
  margin: 0 0 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border);
  font-family: Oswald, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pr-breadcrumb a { color: var(--navy); text-decoration: none; }
.pr-breadcrumb a:hover { color: var(--orange); text-decoration: underline; }

/* ---------- main column -------------------------------------------------- */
.pr-main {
  max-width: 74ch;
  margin: 0 auto;
  padding: 2.5rem clamp(1.1rem, 5vw, 2rem) 4rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05), 0 12px 40px -12px rgb(0 0 0 / 0.09);
}
@media (min-width: 900px) {
  .pr-main { max-width: 78ch; margin-block: 2.25rem; border-radius: var(--radius); }
}

.pr-main h1 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.1rem;
}
.pr-main h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: 1rem;
  background: var(--orange);
}
.pr-main h2 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 2.9rem 0 1rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--orange);
}
.pr-main h3 {
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1.9rem 0 0.6rem;
}
.pr-main p { margin: 0 0 1.15rem; }
.pr-main p:empty { display: none; }

/* lead paragraph — the bolded promise line right under h1 */
.pr-main > p:first-of-type strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 600;
}
.pr-main strong { color: var(--navy); font-weight: 700; }

/* ---------- inline phone CTAs ------------------------------------------- */
.pr-main a[href^="tel:"] {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--orange-dark);
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.pr-main a[href^="tel:"]:hover { background: var(--orange-dark); }
.pr-main a[href^="tel:"]:active { transform: scale(0.97); }

/* body links */
.pr-main a:not([href^="tel:"]) {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition: color 140ms var(--ease-out);
}
.pr-main a:not([href^="tel:"]):hover { color: var(--orange); }

/* ---------- lists ------------------------------------------------------- */
.pr-main ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pr-main ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.pr-main ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--orange);
  transform: rotate(45deg);
}
/* link lists (cities / states / services) read as a dense index, not prose */
.pr-main ul:has(> li > a) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 0.1rem 1.5rem;
  font-size: 0.93rem;
}

/* ---------- images ------------------------------------------------------ */
.pr-main img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--offwhite);
}
/* the two side-by-side job photos */
.pr-main p:has(> img) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-block: 1.9rem;
}
.pr-main p:has(> img) img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- footer ------------------------------------------------------ */
.pr-footer {
  background: var(--navy-dark);
  color: rgb(255 255 255 / 0.62);
  text-align: center;
  padding: 2.2rem clamp(1rem, 5vw, 2rem);
  font-size: 0.85rem;
  border-top: 3px solid var(--orange);
}
.pr-footer p { margin: 0 0 0.4rem; }
.pr-footer a { color: var(--orange); text-decoration: none; font-weight: 600; }
.pr-footer a:hover { text-decoration: underline; }

/* ---------- JS-free header dropdown on the hub pages -------------------- */
/* React drove these by state; with no JS they must open on hover/focus. */
.pd-dd > div[class*="absolute"] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out),
    visibility 180ms;
}
.pd-dd:hover > div[class*="absolute"],
.pd-dd:focus-within > div[class*="absolute"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
