:root {
  --bg: #fff;
  --ink: #0e0438;
  --muted: #5b6275;
  --brand: #2463eb;
  --brand-ink: #fff;
  --card: #f7f9fc;
  --ring: rgba(36,99,235,.35);
  --radius: 16px;
  --shadow: 0 10px 25px rgba(2,12,41,.08);
  --container: 1200px;
}
*,*::before,*::after { box-sizing: border-box }
html,body { height: 100% }
body {
  margin: 0;
  font-family: 'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; height: auto }
a { color: inherit; text-decoration: none }
.container {
  width: min(100%,var(--container));
  margin-inline: auto;
  padding-inline: 20px;
}
.stack { display: grid; gap: 28px }

/* Top bar (Plumbing) */
.topbar {
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
  position: relative;
  z-index: 10;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { width: 180px }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background .15s;
}
.btn:hover { background: #1749c9 }

/* Hero Section Styles: improved background, full section fill & subtle opacity */
.hero {
  position: relative;
  padding: clamp(32px,5vw,64px) 0;
  min-height: 440px;
  background: linear-gradient(to bottom, #f6faff 0%, #cdd3db 100%);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: none;
}
.hero__media img,
.hero__media svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;   /* less clear, subtle effect */
  pointer-events: none;
  z-index: 1;
}
/* Optional blue & white overlay for extra blend/contrast */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, #2463eb13 0%, #2463eb07 100%),
    linear-gradient(to right, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.10) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Hero grid and panel */
.hero__grid {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 3;
}
.hero__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card, #f7f9fc);
  border-radius: var(--radius, 16px);
  padding: clamp(16px,3.5vw,28px);
  box-shadow: var(--shadow, 0 10px 25px rgba(2,12,41,.08));
  position: relative;
  z-index: 4;
  max-width: 520px;
  width: 100%;
}

/* Form centerpiece */
.hero__centerpiece {
  max-width: 480px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__centerpiece h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.7em 0;
  text-align: center;
  width: 100%;
}
.hero__centerpiece p {
  max-width: 32em;
  margin: 1.2em 0 0 0;
  color: #385185;
  font-size: 1.15rem;
  text-align: center;
}

/* Make the embedded form fill the available width */
#leadforms-embd-form,
#leadforms-embd-form > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Trust badges below form */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.trust-badge {
  background: #eef6ff;
  color: #0369a1;
  border: 1px solid #dbeafe;
  font-size: .85rem;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 500;
}

/* Responsive adjustments for hero background and grid */
@media (max-width: 980px) {
  .hero__media img,
  .hero__media svg {
    min-width: 800px;
    height: 100%;
    max-height: 340px;
  }
}
@media (max-width: 600px) {
  .hero__panel {
    padding: 1em;
    max-width: 98%;
  }
  .hero__centerpiece {
    max-width: 98vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .hero__centerpiece h2 {
    font-size: 1.3rem;
  }
  .hero__centerpiece p {
    font-size: 1rem;
  }
  .hero__media img,
  .hero__media svg {
    min-width: 400px;
    height: 100%;
    max-height: 190px;
  }
}

/* Section heading (Poppins for Plumbing) */
.section { padding: clamp(40px,6vw,80px) 0 }
.eyebrow {
  font-family: 'Poppins',sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--brand);
  text-transform: uppercase;
  font-size: .9rem;
}
.h2 {
  font-family: 'Poppins',sans-serif;
  font-weight: 700;
  font-size: clamp(28px,4.2vw,42px);
  line-height: 1.2;
  margin: 6px 0 12px;
}
.sub { font-family: 'Poppins',sans-serif; color: var(--muted); font-size: 1.05rem }

/* Services cards (Plumbing Services) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px,2.5vw,24px);
  margin-top: 28px;
  max-width: 1100px;
  margin-inline: auto;
}

/* Stack cards on mobile */
@media (max-width:900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 24px;
  }
}

.card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 18px rgba(36,99,235,.07));
  display: grid;
}

.card__img {
  aspect-ratio: 16/11;
  object-fit: cover;
  width: 100%;
  display: block;
}

/* Target only the hot water heater image for stretching/cropping */
.card__img.plumbing-water-heater {
  aspect-ratio: 16/11;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius, 16px);
}

.card__body { 
  padding: 18px;
}

.card__title {
  font-family: 'Syne',sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 6px;
}

.card__text { 
  color: var(--muted); 
  margin: 0;
}

/* ---------- Three-Step Section (matches .lsm-steps markup, ALL CARD TEXT WHITE) ---------- */
.lsm-steps {
  background: #f8faff;
  padding: clamp(60px,7vw,100px) 20px;
  text-align: center;
}
.lsm-steps-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 6px;
}
.lsm-steps-sub {
  color: #5b6275;
  font-size: 1.05rem;
  margin: 0 0 40px;
}
/* GRID */
.lsm-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  gap: clamp(24px, 4vw, 40px);
  max-width: 1100px;
  margin-inline: auto;
}
/* LINKS */
.lsm-step-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
/* CARD */
.lsm-step-card {
  border-radius: 18px;
  padding: 40px 28px;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  height: 100%;
  display: grid;
  place-items: center;
  gap: 16px;
  transition: transform .25s, box-shadow .25s;
  color: #fff; /* <- ENSURE ALL CARD TEXT IS WHITE */
}
/* HOVER STATE */
.lsm-step-link:hover .lsm-step-card {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,.15);
}
/* CARD COLORS - ALL TEXT WHITE */
.lsm-steps .lsm-step-card:nth-child(1) { background: #2463EB; }
.lsm-steps .lsm-step-card:nth-child(2) { background: #FBBF24; }
.lsm-steps .lsm-step-card:nth-child(3) { background: #10B981; }
/* ICON WRAP */
.lsm-step-icon-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.lsm-step-icon {
  width: 65px;
  height: auto;
  display: block;
}
/* TITLES AND TEXT INSIDE CARD - WHITE TO OVERRIDE INHERIT/OTHER */
.lsm-step-title,
.lsm-step-text {
  color: #fff !important;
}
.lsm-step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.lsm-step-text {
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}
/* MOBILE */
@media (max-width:900px) {
  .lsm-steps-grid { grid-template-columns: 1fr; max-width: 600px; }
  .lsm-step-card { padding: 32px 24px; }
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  background: #f9fbff;
  padding: clamp(60px,7vw,100px) 20px;
  text-align: center;
}
.testimonials-title {
  font-family: 'Syne',sans-serif;
  font-size: clamp(28px,4vw,38px);
  margin-bottom: 48px;
  color: #0e0438;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: clamp(24px,3vw,40px);
  max-width: 1100px;
  margin-inline: auto;
  text-align: left;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #e8eef9;
  border-radius: 16px;
  padding: clamp(22px,2.5vw,28px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .25s, box-shadow .25s;
  display: grid;
  align-content: start;
  gap: 12px;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}
.testimonial-card .stars {
  color: #fbbf24;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.testimonial-card p {
  color: #5b6275;
  font-size: .96rem;
  line-height: 1.65;
  margin: 0;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #0e0438;
  font-weight: 600;
}
.testimonial-card span {
  font-size: .9rem;
  color: #64748b;
}

@media (max-width:800px) {
  .testimonials-grid { text-align: center; }
  .testimonial-card { align-items: center; }
  .testimonial-card p { text-align: center; }
}

/* Responsive tweaks for STEPS section */
@media (max-width: 900px) {
  .steps__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* CTA (Plumbing flavor) */
.cta {
  background: linear-gradient(180deg,#f9fbff,#f2f6ff);
  border-top: 1px solid #e8eef9;
  border-bottom: 1px solid #e8eef9;
}
.cta__wrap {
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.cta h3 {
  font-family: 'Syne',sans-serif;
  font-size: clamp(22px,3.6vw,30px);
  margin: 0;
}
.cta p { color: var(--muted); margin: 0 0 6px }
.disclaimer { color: #6a7283; font-size: .85rem; margin-top: 20px }

 /* Footer Styles — Local Plumbing Pros */

.footer {
  background: #0e0438;
  color: #fff;
  margin-top: 30px;
  font-size: 0.85rem;
  padding: 10px 0;
}

.footer .container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 0 20px;
}

.footer .columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  flex-wrap: nowrap;
}

.footer .columns > * {
  min-width: 0;
}

.footer p {
  margin: 0;
  color: #fff;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

/* Keep text white, add underline on hover/focus, but remove white box */
.footer a:hover,
.footer a:focus {
  text-decoration: underline;
  color: #fff; /* <--- ensure text remains white on hover/focus */
}

/* Ensure all footer descendants are white for max compatibility */
.footer, .footer *, .footer p, .footer a, .footer span, .footer strong {
  color: #fff !important;
}

/* Responsive: Stack columns on mobile and center text */
@media (max-width: 640px) {
  .footer .columns {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* Remove white dashed focus outline in footer links for a cleaner look */
.footer a:focus {
  outline: none;
  box-shadow: none;
}
