/* ==========================================================================
   Underground Pipe Crew — navy_pro
   Palette carried over from the website-generator "navy_pro" template.
   ========================================================================== */

:root {
  --bg:          #0D1117;
  --bg2:         #161B22;
  --surface:     #1F2937;
  --card-border: #374151;
  --accent:      #2563EB;
  --accent-h:    #1D4ED8;
  --nav-hover:   #3B82F6;
  --text:        #F1F5F9;
  --muted:       #94A3B8;
  --heading:     #FFFFFF;
  --logo-navy:   #14213D;
  --pipe-cyan:   #29A8C4;

  --hfont: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bfont: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }

/* No smooth scrolling: on a fresh load of e.g. services.html#pipe-bursting the
   animated scroll gets cancelled as the lazy images resolve and the visitor
   lands at the top of the page instead of on the service they clicked.
   scroll-padding-top keeps the target clear of the sticky header. */
html { scroll-padding-top: 130px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--bfont);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--hfont);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
a { color: var(--nav-hover); text-decoration: none; }
a:hover { color: #93C5FD; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg2); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-family: var(--hfont);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nav-hover);
  margin-bottom: 14px;
  display: block;
}
.lede { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hfont);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-h); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--onlight { background: var(--accent); color: #fff; }
.btn--onlight:hover { background: var(--accent-h); color: #fff; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: var(--muted);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.topbar__areas { display: flex; align-items: center; gap: 8px; }
.topbar__areas svg { flex: none; color: var(--nav-hover); }
.topbar__phone { color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.topbar__phone svg { color: var(--nav-hover); }

/* ---------- Header (white, so the logo sits on its native background) ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand { display: block; flex: none; }
.brand img { width: 258px; height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--hfont);
  font-weight: 700;
  font-size: .92rem;
  color: var(--logo-navy);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--logo-navy);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--logo-navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,17,23,.94) 0%, rgba(13,17,23,.82) 45%, rgba(13,17,23,.52) 100%);
}
/* .hero is a flex container, so the inner block needs an explicit width —
   otherwise it shrink-wraps its content and drifts off the page grid. */
.hero__inner { position: relative; width: 100%; padding: 100px 24px; }
.hero__inner > * { max-width: 720px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .hl { color: var(--nav-hover); display: block; }
.hero__sub { font-size: 1.18rem; color: #CBD5E1; margin-bottom: 32px; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(59,130,246,.4);
  color: #DBEAFE;
  font-size: .84rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 100px;
}
.chip svg { color: var(--nav-hover); flex: none; }

.hero--page { min-height: 380px; }
.hero--page .hero__inner { padding: 74px 24px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg2); border-bottom: 1px solid var(--card-border); }
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--card-border);
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
}
.trustbar__item {
  background: var(--bg2);
  padding: 30px 26px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.trustbar__item svg { color: var(--nav-hover); flex: none; margin-top: 3px; }
.trustbar__item strong {
  display: block;
  font-family: var(--hfont);
  font-size: .95rem;
  color: #fff;
  margin-bottom: 3px;
}
.trustbar__item span { font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* ---------- Cards / service grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.svc-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.svc-card__img { height: 190px; background-size: cover; background-position: center; position: relative; }
.svc-card__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,.12) 0%, rgba(31,41,55,.85) 100%);
}
.svc-card__body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.svc-card__icon {
  width: 46px; height: 46px;
  border-radius: 9px;
  background: rgba(37,99,235,.16);
  border: 1px solid rgba(59,130,246,.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-hover);
  margin-bottom: 16px;
}
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc-card__link {
  font-family: var(--hfont);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

/* ---------- Detailed service blocks ---------- */
.svc-detail { padding: 76px 0; border-bottom: 1px solid var(--card-border); }
.svc-detail:nth-child(even) { background: var(--bg2); }
.svc-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.svc-detail:nth-child(even) .svc-detail__media { order: -1; }
.svc-detail__media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}
.svc-detail__num {
  font-family: var(--hfont);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--nav-hover);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.svc-detail p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: .95rem;
  color: var(--text);
}
.checklist svg { color: var(--nav-hover); flex: none; margin-top: 4px; }

/* ---------- Feature / why blocks ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.feature__icon { color: var(--nav-hover); margin-bottom: 16px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 3px solid var(--card-border); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--hfont);
  font-weight: 900;
  font-size: 2.4rem;
  color: rgba(59,130,246,.28);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Service area ---------- */
.counties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.county {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.county h3 { font-size: 1.05rem; margin-bottom: 10px; }
.county ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .9rem; }
.county li { padding: 3px 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(13,17,23,.88);
}
.cta-band__inner { position: relative; padding: 84px 24px; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: #CBD5E1; max-width: 620px; margin: 0 auto 30px; }
.cta-band__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--card-border); }
.contact-row:last-child { border-bottom: 0; }
.contact-row svg { color: var(--nav-hover); flex: none; margin-top: 4px; }
.contact-row strong {
  display: block;
  font-family: var(--hfont);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-row span, .contact-row a { color: var(--text); font-size: 1.02rem; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--hfont);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--bfont);
  font-size: 1rem;
  padding: 13px 15px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.22);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--card-border); padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 58px; height: 58px; border-radius: 8px; }
.footer-brand .name {
  font-family: var(--hfont);
  font-weight: 900;
  font-size: 1.12rem;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}
.footer-brand .name small {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--nav-hover);
  margin-top: 3px;
}
.site-footer p, .site-footer li { color: var(--muted); font-size: .92rem; }
.site-footer h4 {
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 5px 0; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--nav-hover); }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid var(--card-border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .counties { grid-template-columns: repeat(2, 1fr); }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand img { width: 230px; }
  .nav { gap: 20px; }
}

@media (max-width: 820px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 2; }
  .nav {
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #E5E7EB;
    margin-top: 10px;
    padding-top: 6px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid #F1F5F9; }
  .nav .btn { margin: 12px 0 6px; justify-content: center; }
  .svc-detail__inner { grid-template-columns: 1fr; gap: 32px; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
  .svc-detail__media img { height: 280px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .topbar__areas { display: none; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .counties { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 540px; }
  .hero__inner { padding: 70px 24px 110px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .brand img { width: 205px; }

  /* sticky call bar on phones */
  .callbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    background: var(--accent);
    border-top: 1px solid rgba(255,255,255,.2);
  }
  .callbar a {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    color: #fff;
    font-family: var(--hfont);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
  }
  .callbar a + a { border-left: 1px solid rgba(255,255,255,.25); }
  .site-footer { padding-bottom: 60px; }
}
