/* ==========================================================================
   Page surfaces: inner-page heroes and the layouts specific to Services,
   Service Areas, About, and Contact, plus shared bands (CTA, trust strip).
   One hero component, varied per page by modifier — a unified system with
   a distinct identity on each page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero (shared)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 1.75rem + 4vw, 5rem);
  background: var(--color-navy-950);
  color: var(--color-mist);
}
/* A single warm light source from the upper left — depth without a
   decorative gradient wash. */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60rem 30rem at 0% 0%, rgba(239, 108, 26, 0.12), transparent 60%);
}
.page-hero > .wrap { position: relative; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.page-hero h1 {
  font-size: var(--text-display);
  color: var(--color-white);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-sm);
}
.page-hero .eyebrow { color: var(--color-orange-400); }
.page-hero-lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: rgba(231, 233, 240, 0.8);
  max-width: 34rem;
}
.page-hero .hero-actions { margin-top: var(--space-md); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(231, 233, 240, 0.6);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(231, 233, 240, 0.35);
}
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb [aria-current] { color: var(--color-orange-400); }

/* Light variant (About, Service Areas). */
.page-hero--light {
  background: var(--color-surface-alt);
  color: var(--color-text);
}
.page-hero--light::before {
  background: radial-gradient(50rem 26rem at 100% 0%, rgba(239, 108, 26, 0.08), transparent 60%);
}
.page-hero--light h1 { color: var(--color-navy-950); }
.page-hero--light .eyebrow { color: var(--color-accent-strong); }
.page-hero--light .page-hero-lede { color: var(--color-text-muted); }
.page-hero--light .breadcrumb { color: var(--color-slate); }
.page-hero--light .breadcrumb li + li::before { color: #b9bdca; }
.page-hero--light .breadcrumb a:hover { color: var(--color-navy-900); }
.page-hero--light .breadcrumb [aria-current] { color: var(--color-accent-strong); }

/* Framed photo used by several heroes. The inner [data-parallax] layer is
   oversized so the gentle scroll drift never exposes an edge. */
.hero-frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--color-navy-800);
}
.hero-frame [data-parallax] {
  position: absolute;
  inset: -8% 0;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Services hero — three-photo mosaic + numbered service index
   -------------------------------------------------------------------------- */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  height: clamp(320px, 22rem + 6vw, 500px);
}
.hero-mosaic .hero-frame:first-child { grid-row: 1 / -1; }
@media (max-width: 900px) {
  .hero-mosaic { height: clamp(260px, 60vw, 380px); }
}

.service-index {
  border-bottom: 1px solid var(--color-mist);
  background: var(--color-white);
}
.service-index ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: svc;
}
.service-index li { counter-increment: svc; }
.service-index a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-height: 44px;
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--color-mist);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy-900);
  transition: color var(--duration-fast) var(--ease-out-quart);
}
.service-index a::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-accent-strong);
}
.service-index a:hover { color: var(--color-accent-strong); }
/* No divider under the last row, however many items it holds:
   the first item of the last row, plus everything after it. */
.service-index li:nth-child(4n + 1):nth-last-child(-n + 4) a,
.service-index li:nth-child(4n + 1):nth-last-child(-n + 4) ~ li a { border-bottom: none; }
@media (max-width: 760px) {
  .service-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-index li:nth-child(4n + 1):nth-last-child(-n + 4) a,
  .service-index li:nth-child(4n + 1):nth-last-child(-n + 4) ~ li a { border-bottom: 1px solid var(--color-mist); }
  .service-index li:nth-child(2n + 1):nth-last-child(-n + 2) a,
  .service-index li:nth-child(2n + 1):nth-last-child(-n + 2) ~ li a { border-bottom: none; }
}

/* Service detail rows — alternating split layout with an index numeral. */
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.service-row .split { gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.service-num {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-accent);
}
.service-row h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); }
.service-row .split-content p { max-width: 32rem; }
.service-row .btn { margin-top: var(--space-xs); }

/* --------------------------------------------------------------------------
   Trust strip (under the homepage hero) — facts only, no invented stats.
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--color-navy-900);
  color: rgba(231, 233, 240, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem 1.35rem 0;
  font-size: var(--text-sm);
}
.trust-strip li + li {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-strip svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--color-orange-400); }
.trust-strip strong { display: block; color: var(--color-white); font-weight: 600; }
@media (max-width: 860px) {
  .trust-strip ul { grid-template-columns: 1fr; }
  .trust-strip li { padding: 1rem 0; }
  .trust-strip li + li { padding-left: 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* --------------------------------------------------------------------------
   Locations (Service Areas page + homepage band)
   -------------------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
@media (max-width: 760px) {
  .location-grid { grid-template-columns: 1fr; }
}
.location-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-mist);
  text-decoration: none;
  color: inherit;
  transition: transform var(--motion-hover, 600ms) var(--ease-out-expo),
              box-shadow var(--motion-hover, 600ms) var(--ease-out-expo);
}
a.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.location-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out-expo);
}
.location-card:hover .location-media img { transform: scale(1.05); }
.location-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 13, 31, 0.7));
}
.location-label {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-sm);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-white);
}
.location-label svg { width: 22px; height: 22px; color: var(--color-orange-400); }
.location-body { padding: var(--space-md); display: grid; gap: var(--space-sm); }
.location-body p { margin: 0; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 0.35em 0.85em;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-fog);
  color: var(--color-navy-800);
}

/* Property-type columns (Service Areas, About). */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar {
  padding: var(--space-md) 0 0;
  border-top: 2px solid var(--color-navy-900);
}
.pillar h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.pillar p { font-size: var(--text-sm); }
.pillar .text-link { font-size: var(--text-sm); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  color: var(--color-accent-strong);
  text-decoration: none;
}
.text-link svg { transition: transform var(--duration-normal) var(--ease-out-expo); }
.text-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   About — editorial image stack and principles
   -------------------------------------------------------------------------- */
.image-stack {
  position: relative;
  padding: 0 0 clamp(2.5rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}
.image-stack .hero-frame:first-child { aspect-ratio: 5 / 4; }
.image-stack .hero-frame--inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 3 / 4;
  border: 6px solid var(--color-surface-alt);
  box-shadow: var(--shadow-md);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
}
.principles li { counter-increment: principle; }
.principles li::before {
  content: counter(principle, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-mist);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent-strong);
}
.principles h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.principles p { font-size: var(--text-sm); margin: 0; }

/* Division feature (About) */
.division-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .division-feature { grid-template-columns: 1fr; }
}
.division-logo-tile {
  display: block;
  max-width: 440px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.division-logo-tile img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Contact — form overlaps the hero; details sit in a side panel
   -------------------------------------------------------------------------- */
.page-hero--contact { padding-bottom: clamp(6rem, 4rem + 6vw, 8.5rem); }
.page-hero--contact .page-hero-grid { align-items: end; }

/* Facts-only reassurance beside the contact headline. */
.hero-points {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--text-sm);
}
.hero-points svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--color-orange-400); }
.hero-points strong { display: block; color: var(--color-white); font-weight: 600; }
/* On narrow screens the form comes first; the side panel repeats these. */
@media (max-width: 1023px) {
  .page-hero--contact .hero-points { display: none; }
}

.estimate-section { padding-bottom: var(--space-section); }
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
  margin-top: calc(clamp(6rem, 4rem + 6vw, 8.5rem) * -1 + var(--space-lg));
  position: relative;
}
@media (max-width: 960px) {
  .estimate-layout { grid-template-columns: 1fr; }
}

.contact-aside {
  display: grid;
  gap: var(--space-md);
}
.contact-aside .contact-card:first-child { box-shadow: var(--shadow-lg); }
.contact-card {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-mist);
}
.contact-card h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding-block: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-navy-900);
  overflow-wrap: anywhere;
}
.contact-line + .contact-line { border-top: 1px solid var(--color-mist); }
.contact-line:hover { color: var(--color-accent-strong); }
.contact-line svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-accent-strong); }
.contact-line--lg { font-family: var(--font-display); font-size: var(--text-xl); }
.contact-card .process-steps { margin-top: 0; }

/* --------------------------------------------------------------------------
   CTA band — the closing call to action shared by every page
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  background: var(--color-navy-900);
  color: var(--color-mist);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40rem 20rem at 100% 100%, rgba(239, 108, 26, 0.18), transparent 60%);
}
.cta-band .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.cta-band h2 { color: var(--color-white); margin-bottom: var(--space-2xs); }
.cta-band p { margin: 0; color: rgba(231, 233, 240, 0.78); max-width: 36rem; }
.cta-band .hero-actions { margin-top: 0; }

/* Light variant, for pages where a dark section already precedes it, so
   three navy blocks never stack into the footer. */
.cta-band--light {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border-top: 1px solid var(--color-mist);
}
.cta-band--light h2 { color: var(--color-navy-950); }
.cta-band--light p { color: var(--color-text-muted); }

/* Former inline styles, moved here so the Content Security Policy can
   forbid inline styles entirely. */
.eyebrow.eyebrow--warm { color: var(--color-orange-400); }
.hero-frame--4x3 { aspect-ratio: 4 / 3; }
