/* Professional Plumbing, Inc., local proof styles (brand-blue fresher pass) */
:root {
  --brand: #3732D0;
  --brand-deep: #2A26B0;
  --brand-dark: #1A1780;
  --brand-soft: #5A55E0;
  --ink: #1A1A2E;
  --ink-muted: #5B6478;
  --mist: #F4F6FB;
  --mist-deep: #E6EAF5;
  --line: #D5DBEA;
  --white: #ffffff;
  /* legacy aliases */
  --navy: var(--brand);
  --navy-deep: var(--brand-dark);
  --navy-soft: var(--brand-deep);
  --off-white: var(--mist);
  --blue-mist: var(--mist-deep);
  --cta: var(--brand);
  --cta-hover: var(--brand-deep);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

.sticky-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(8px); }

.pill-nav a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.hero-overlay {
  background: linear-gradient(105deg, rgba(26,23,128,0.88) 0%, rgba(55,50,208,0.55) 50%, rgba(55,50,208,0.28) 100%);
}

.section-accent-bar {
  border-top: 3px solid var(--brand);
}

.bg-mist { background-color: var(--mist); }
.bg-navy { background-color: var(--brand) !important; }
.bg-navy-deep { background-color: var(--brand-dark) !important; }
.bg-navy-soft { background-color: var(--brand-deep) !important; }
.bg-cta { background-color: var(--brand) !important; }
.hover\:bg-cta-hover:hover { background-color: var(--brand-deep) !important; }
.text-navy { color: var(--brand-dark) !important; }
.text-accent { color: var(--brand) !important; }
.text-steel { color: var(--ink-muted) !important; }
.border-steel-pale { border-color: var(--line) !important; }
.border-sky-200 { border-color: #C5CCF0 !important; }
.bg-sky-50 { background-color: #EEF0FF !important; }

.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame { background: var(--mist-deep); }

.card-lift { transition: transform .2s ease, box-shadow .2s ease; }
.card-lift:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46,46,196,0.12); }

.mobile-call-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; }
body { padding-bottom: 0; }
@media (max-width: 767px) {
  body { padding-bottom: 4.5rem; }
}

/* Light header fresher pass */
.header-brand {
  background: #ffffff !important;
  color: #1A1A2E !important;
  border-bottom: 1px solid #D5DBEA !important;
  box-shadow: 0 1px 0 rgba(46,46,196,0.06);
  overflow-x: hidden;
}
.header-brand .text-steel-pale { color: #5B6478 !important; }
.header-brand a { color: inherit; }
.header-brand .pill-nav a {
  color: #5B6478 !important;
}
.header-brand .pill-nav a:hover {
  color: #3732D0 !important;
  background: #EEF0FF !important;
}
.header-brand .pill-nav a.active {
  color: #3732D0 !important;
  background: #EEF0FF !important;
  box-shadow: inset 0 0 0 1px #C5CCF0;
}
.header-brand #mobileNav a {
  color: #1A1A2E !important;
}
.header-brand button {
  color: #1A1A2E;
  border-color: #D5DBEA !important;
}
/* Phone CTA stays brand blue on light header */
.header-brand a.bg-cta,
.header-brand a[href^="tel"].rounded-lg.bg-cta {
  color: #fff !important;
}
.header-brand a.border-white\/30 {
  border-color: #C5CCF0 !important;
  color: #3732D0 !important;
}
.header-brand a.border-white\/30:hover {
  background: #EEF0FF !important;
}

.bg-brand { background-color: var(--brand) !important; }
.text-brand { color: var(--brand) !important; }
.text-ink { color: var(--ink) !important; }

/* Header logo, Matt: big + centered; mobile capped so it never clips */
.header-logo {
  width: min(88vw, 320px) !important;
  max-width: min(88vw, 320px) !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.header-brand .header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.header-brand .header-logo-row {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.header-brand .header-logo-row > a {
  display: block;
  width: fit-content;
  max-width: min(88vw, 320px);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}
.header-brand .header-nav-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid #E8EBF5;
  padding-top: 0.65rem;
  min-width: 0;
}
/* Do NOT force desktop nav visible, visibility is media-query controlled */
.header-brand .header-nav-row nav,
.header-brand .header-nav-row .header-desktop-nav {
  justify-content: center;
}

/* Explicit Call Us styling (works even if Tailwind fails) */
.header-call {
  display: none !important;
  align-items: center;
  background: var(--brand) !important;
  color: #fff !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: 0.375rem !important;
  font-weight: 700 !important;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover {
  background: var(--brand-deep) !important;
  color: #fff !important;
}

/* Mobile nav panel: closed by default; open via .is-open (not Tailwind hidden) */
#mobileNav {
  display: none !important;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#mobileNav.is-open {
  display: flex !important;
}

/* <1024px: hamburger only; never show desktop nav links */
.header-desktop-nav {
  display: none !important;
}
.header-menu-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ≥768px and <1024px: optional Call Us beside hamburger; still no desktop nav */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .header-call {
    display: inline-flex !important;
  }
  .header-desktop-nav {
    display: none !important;
  }
  .header-menu-btn {
    display: inline-flex !important;
  }
  .header-logo {
    width: min(88vw, 320px) !important;
    max-width: min(88vw, 320px) !important;
    max-height: 72px !important;
  }
}

/* ≥1024px: desktop nav + Call Us; hide hamburger and mobile panel */
@media (min-width: 1024px) {
  .header-logo {
    width: min(92%, 720px) !important;
    max-width: 720px !important;
    max-height: 110px !important;
  }
  .header-brand .header-logo-row > a {
    max-width: min(92%, 720px);
  }
  .header-brand .header-nav-row {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
  .header-desktop-nav {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .header-call {
    display: inline-flex !important;
  }
  .header-menu-btn {
    display: none !important;
  }
  #mobileNav,
  #mobileNav.is-open {
    display: none !important;
  }
}


@media print {
  html, body {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .sticky-header, header.sticky, [class*="sticky"] {
    position: static !important;
    top: auto !important;
  }
  .min-h-\\[92vh\\], .min-h-\\[70vh\\], .min-h-\\[55vh\\],
  section.relative.min-h-\\[92vh\\],
  [class*="min-h-["] {
    min-height: auto !important;
    height: auto !important;
  }
  .overflow-hidden, .overflow-x-hidden, .overflow-y-hidden {
    overflow: visible !important;
  }
  /* Prefer natural flow over aggressive avoid (avoids Chrome clipping tall blocks) */
  nav, .sticky-header + *, header { break-inside: auto; }
  img { max-width: 100% !important; height: auto !important; }
  .card-lift, article, figure { break-inside: auto; page-break-inside: auto; }
  a[href]::after { content: "" !important; }
  /* Keep fixed/absolute heroes from eating the page */
  .fixed, .absolute.inset-0 { position: absolute !important; }
}
