/* Brockton Emergency Plumbing — shared styles
   Type: Clash Display (headings) + Satoshi (body) via Fontshare
   Palette: ink navy / warm paper / safety orange */

:root {
  --ink: #0d1c2b;
  --ink-2: #14283c;
  --ink-3: #1d3a5a;
  --paper: #f6f4ef;
  --card: #ffffff;
  --accent: #e0492f;
  --accent-dark: #c53d26;
  --accent-soft: #fbe9e4;
  --blue: #24618e;
  --muted: #5b6b79;
  --line: #e3ddd2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --ok: #2e7d51;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 28, 43, 0.08);
  --font-display: "Clash Display", "Arial Narrow", sans-serif;
  --font-body: "Satoshi", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img, svg { display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- top strip ---------- */
.topstrip {
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}
.topstrip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topstrip a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topstrip a:hover { text-decoration: underline; }
.topstrip .strip-note { opacity: 0.95; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; stroke: #fff; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: #9fb2c3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a, .nav-drop > button {
  color: #d7e0e8;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
}
.main-nav > a:hover, .nav-drop > button:hover { color: #fff; text-decoration: none; }
.main-nav > a.active { color: #fff; box-shadow: 0 2px 0 var(--accent); }

.nav-drop { position: relative; }
.nav-drop > button svg { width: 14px; height: 14px; stroke: currentColor; transition: transform 0.18s; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 250px;
  padding: 8px;
  display: none;
}
.nav-drop.open .drop-menu { display: block; }
.drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}
.drop-menu a:hover { background: var(--paper); text-decoration: none; }
.drop-menu a.active { background: var(--accent-soft); color: var(--accent-dark); }
.drop-menu a span { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.header-phone:hover { background: var(--accent-dark); text-decoration: none; }
.header-phone svg { width: 17px; height: 17px; stroke: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: #fff; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 55%, var(--ink-2) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.025) 0 2px,
    transparent 2px 90px
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 14px 0 18px;
}
.hero h1 em { font-style: normal; color: #ff8a70; }
.hero .lede { color: #c3d0db; font-size: 1.1rem; max-width: 54ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9d87;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 24px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  color: #b7c5d2;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 15px; height: 15px; stroke: #ff9d87; flex: none; }

/* dispatch card */
.dispatch-card {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.dispatch-head {
  background: var(--accent);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.dispatch-head svg { width: 18px; height: 18px; stroke: #fff; }
.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  margin-left: auto;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  55% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
.dispatch-body { padding: 22px; }
.dispatch-body ol { list-style: none; display: grid; gap: 0; }
.dispatch-body li {
  display: flex;
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}
.dispatch-body li:last-child { border-bottom: 0; }
.dispatch-body li b { display: block; font-size: 0.97rem; }
.dispatch-body li small { color: var(--muted); }
.step-dot {
  flex: none;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.dispatch-foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dispatch-foot svg { width: 15px; height: 15px; stroke: var(--ok); flex: none; }

/* ---------- stats bar ---------- */
.stats-bar { background: var(--ink-2); color: #fff; border-top: 1px solid var(--line-dark); }
.stats-bar .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.stat b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  display: block;
  line-height: 1.1;
}
.stat span { font-size: 0.82rem; color: #9fb2c3; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section.tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 12px 0 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section .eyebrow { color: var(--accent-dark); }
.section .eyebrow::before { background: var(--accent); }

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.25;
}

/* ---------- service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.svc-card:hover {
  text-decoration: none;
  border-color: #c9c2b4;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.svc-card-top { display: flex; align-items: center; justify-content: space-between; }
.svc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.svc-icon svg { width: 22px; height: 22px; stroke: #ff9d87; }
.price-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.svc-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.svc-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-more svg { width: 15px; height: 15px; stroke: currentColor; transition: transform 0.15s; }
.svc-card:hover .svc-more svg { transform: translateX(3px); }

/* ---------- split / lists ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split .section-head { margin-bottom: 26px; }

.num-list { list-style: none; display: grid; gap: 4px; counter-reset: step; }
.num-list > li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.num-list > li:last-child { border-bottom: 0; }
.num-badge {
  counter-increment: step;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.num-badge::before { content: counter(step); }
.num-list b { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.num-list p { color: var(--muted); font-size: 0.95rem; }

.prob-list { list-style: none; display: grid; gap: 16px; }
.prob-list > li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.prob-list b { display: block; font-size: 1.04rem; margin-bottom: 5px; }
.prob-list b::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}
.prob-list p { color: var(--muted); font-size: 0.95rem; }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; }
.check-list svg { width: 19px; height: 19px; stroke: var(--accent); flex: none; margin-top: 4px; }

.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.reason {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.reason .r-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.reason b { display: block; font-size: 1.06rem; margin: 12px 0 6px; }
.reason p { color: var(--muted); font-size: 0.94rem; }

/* ---------- chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}
.chip.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: #c9c2b4; box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-x {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: transform 0.2s;
}
.faq details[open] summary .faq-x { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--ink) 50%, var(--ink-2));
  color: #fff;
  border-radius: 18px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(224, 73, 47, 0.22);
}
.cta-band h2 { margin-top: 8px; }
.cta-band p { color: #c3d0db; }
.cta-band .cta-actions { display: grid; gap: 12px; justify-items: start; position: relative; z-index: 1; }
.cta-band .cta-actions small { color: #9fb2c3; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b7c5d2; margin-top: 78px; font-size: 0.92rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #b7c5d2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-cred {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8095a7;
}

/* ---------- page hero (service pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--ink) 55%, var(--ink-2)); color: #fff; }
.page-hero .wrap { padding-top: 52px; padding-bottom: 56px; max-width: 900px; }
.breadcrumb { font-size: 0.85rem; color: #9fb2c3; margin-bottom: 20px; }
.breadcrumb a { color: #9fb2c3; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.12;
  margin: 12px 0 16px;
}
.page-hero .lede { color: #c3d0db; font-size: 1.08rem; max-width: 62ch; }
.page-hero .hero-ctas { margin-top: 26px; }
.page-hero .hero-proof { margin-top: 26px; }

.content-wrap { max-width: 900px; }
.content-wrap .section { padding: 60px 0; }
.svc-detail { display: grid; gap: 30px; }
.svc-detail article { border-left: 3px solid var(--accent); padding-left: 22px; }
.svc-detail h3 { margin-bottom: 7px; }
.svc-detail p { color: var(--muted); }

.alert {
  background: var(--accent);
  color: #fff;
  border-radius: 13px;
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 1rem;
}
.alert svg { width: 26px; height: 26px; stroke: #fff; flex: none; margin-top: 2px; }
.alert b { font-size: 1.08rem; }
.alert a { color: #fff; font-weight: 700; }

.crosslink {
  background: var(--accent-soft);
  border: 1px solid #f2cfc5;
  border-radius: 11px;
  padding: 16px 20px;
  font-size: 0.95rem;
}

/* ---------- mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--accent);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.callbar svg { width: 19px; height: 19px; stroke: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; padding-bottom: 56px; }
  .stats-bar .wrap { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .reason-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 30px; }
}

@media (max-width: 760px) {
  .topstrip .strip-note { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button { padding: 12px 0; font-size: 1.02rem; }
  .main-nav > a.active { box-shadow: none; color: #ff9d87; }
  .nav-drop { width: 100%; }
  .nav-drop .drop-menu {
    position: static;
    transform: none;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .drop-menu a { color: #d7e0e8; padding: 9px 0; }
  .drop-menu a:hover { background: transparent; color: #fff; }
  .drop-menu a.active { background: transparent; color: #ff9d87; }
  .drop-menu a span { color: #8095a7; }
  .nav-drop > button svg { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .svc-grid { grid-template-columns: 1fr; }
  .stats-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .callbar { display: block; }
  body { padding-bottom: 64px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
