/* ============================================================
   Pennsylvania Plumbing — style.css
   Brand: --blue #1a3c6e | --red #c0392b | --orange #e67e22
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---- CSS Variables ---- */
:root {
  --blue:   #1a3c6e;
  --blue-d: #122c54;
  --blue-l: #2552a0;
  --red:    #c0392b;
  --orange: #e67e22;
  --light:  #eaf1fb;
  --gray:   #f5f5f5;
  --border: #d9e3f0;
  --text:   #1a1a1a;
  --muted:  #555;
  --white:  #ffffff;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(26,60,110,.12);
  --shadow-lg: 0 6px 28px rgba(26,60,110,.18);
}

/* ---- SVG Icons ---- */
svg.ico {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
svg.ico.ico-lg  { width: 28px; height: 28px; }
svg.ico.ico-xl  { width: 44px; height: 44px; }
svg.ico.ico-2xl { width: 56px; height: 56px; }

/* ---- Container ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  background: var(--blue);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.logo svg { color: var(--orange); }
.logo-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.logo-city {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  font-weight: 400;
}
.hdr-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s;
}
.hdr-phone:hover { background: #a93226; }
.hdr-phone svg { color: #fff; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.bc {
  background: var(--gray);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: .82rem;
  color: var(--muted);
}
.bc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}
.bc-list li + li::before {
  content: "›";
  margin-right: 4px;
  color: #aaa;
}
.bc-list a { color: var(--blue); }
.bc-list a:hover { text-decoration: underline; }

/* ============================================================
   HERO (main)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-d) 0%, var(--blue) 60%, var(--blue-l) 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-primary, .btn-outline, .btn-call, .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary:hover, .btn-call:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192,57,43,.4);
}
.btn-primary:hover { background: #a93226; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-call {
  background: var(--red);
  color: #fff;
  box-shadow: 0 3px 10px rgba(192,57,43,.35);
}
.btn-call:hover { background: #a93226; }
.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
}
.btn-white:hover { transform: translateY(-2px); background: var(--light); }
.hero-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
}
.hero-badges svg { color: var(--orange); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--light);
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
}
.trust-item svg { color: var(--orange); }

/* ============================================================
   JUMP NAV
   ============================================================ */
.jump-nav {
  background: var(--blue);
  padding: 16px 0;
  position: sticky;
  top: 56px;
  z-index: 800;
}
.jn-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.jn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.jl:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.jl svg { width: 15px; height: 15px; }

/* ============================================================
   SERVICE HERO (sub-service sections)
   ============================================================ */
.svc-hero {
  background: linear-gradient(135deg, var(--blue-d) 0%, var(--blue) 100%);
  color: #fff;
  padding: 52px 0;
}
.svc-hero:nth-child(even) {
  background: linear-gradient(135deg, #0f2544 0%, var(--blue-d) 100%);
}
.svc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.svc-hero-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  margin-top: 12px;
  letter-spacing: -.01em;
}
.svc-hero-icon { color: var(--orange); margin-bottom: 4px; }
.svc-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
  margin-bottom: 24px;
}
.svc-bullets {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 24px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.check-list li:last-child { border-bottom: none; }
.check-list svg { color: var(--orange); margin-top: 2px; flex-shrink: 0; }

/* ---- Service body ---- */
.svc-body {
  background: #fff;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--border);
}
.svc-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 800px;
}
.svc-body p:last-child { margin-bottom: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--red);
  color: #fff;
  padding: 48px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.cta-band p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--gray);
  padding: 60px 0;
}
.faq-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 32px;
  letter-spacing: -.01em;
}
.faq-list { max-width: 800px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.faq-q:hover { background: var(--light); }
.faq-q[aria-expanded="true"] { background: var(--light); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--orange);
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
}
.faq-a.open { display: block; }
.faq-a p { font-size: .97rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   NEARBY SECTION
   ============================================================ */
.nearby-section {
  padding: 56px 0;
  background: #fff;
}
.nearby-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}
.nearby-section p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: .97rem;
}
.nearby-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nearby-pill {
  display: inline-block;
  padding: 9px 18px;
  background: var(--light);
  color: var(--blue);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.nearby-pill:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ============================================================
   LOCATION SECTION
   ============================================================ */
.location-section {
  background: var(--light);
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.location-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 24px;
}
.loc-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 700px;
}
.loc-info h3, .loc-hours h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.loc-info address {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text);
}
.loc-info a { color: var(--red); font-weight: 700; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.emerg { color: var(--red); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr {
  background: var(--blue-d);
  color: rgba(255,255,255,.8);
  padding: 56px 0 28px;
}
.ftr-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.ftr-col h4 {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ftr-col p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.ftr-col ul li {
  margin-bottom: 7px;
}
.ftr-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.ftr-col ul a:hover { color: #fff; }
.ftr-phone {
  color: var(--orange) !important;
  font-weight: 700;
  font-size: 1.05rem !important;
}
.ftr-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   FLOATING PHONE CTA
   ============================================================ */
.float-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(192,57,43,.5);
  font-weight: 700;
  font-size: .95rem;
  animation: pulse 2.4s ease-in-out infinite;
  transition: transform .15s;
}
.float-call:hover {
  transform: scale(1.04);
  animation-play-state: paused;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(192,57,43,.5); }
  50%       { box-shadow: 0 4px 28px rgba(192,57,43,.8); }
}
.float-call-label {
  display: none;
}
@media (min-width: 480px) {
  .float-call-label { display: inline; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .svc-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ftr-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.8rem; }
  .hdr-phone { font-size: .9rem; padding: 9px 14px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
  .loc-box { grid-template-columns: 1fr; }
  .jump-nav { top: 52px; }
  .svc-hero { padding: 36px 0; }
  .faq-section h2 { font-size: 1.4rem; }
  .ftr-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .float-call { padding: 14px; border-radius: 50%; }
}
