/* ===========================================================
   Payless Plumbing — plain CSS, no build step, no framework.
   =========================================================== */

:root {
  --navy-950: #0a1a33;
  --navy-900: #0f2f5c;
  --navy-800: #163a6f;
  --navy-700: #1c4d8f;
  --navy-200: #c7d6ec;
  --navy-100: #e6edf7;
  --navy-50: #f3f7fc;

  --accent-600: #e35f00;
  --accent-500: #ff7a1a;
  --accent-400: #ff9c4d;
  --accent-100: #ffe5cf;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 108px;
  --header-h-mobile: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy-950);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

section[id], div[id] { scroll-margin-top: var(--header-h-mobile); }
@media (min-width: 1024px) {
  section[id], div[id] { scroll-margin-top: var(--header-h); }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .container { padding: 0 32px; }
}

.section { padding: 72px 0; }
@media (min-width: 640px) { .section { padding: 96px 0; } }
.section--tight { padding: 56px 0; }
.section--navy-50 { background: var(--navy-50); }

.eyebrow {
  display: block;
  color: var(--accent-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.section-title { font-size: 2rem; }
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }

.section-lead {
  margin-top: 14px;
  font-size: 1.125rem;
  color: rgba(10, 26, 51, 0.75);
}

.text-center { text-align: center; }
.max-w-prose { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 28px;
  transition: background-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* For long CTA text (e.g. "Not sure what you need? Call ...") that must be
   free to wrap on narrow screens instead of overflowing the viewport. */
.btn--wrap { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 639px) {
  .btn--wrap .cta-phone { display: block; margin-top: 3px; }
}

.btn--accent { background: var(--accent-500); color: #fff; box-shadow: 0 10px 24px rgba(255, 122, 26, 0.3); }
.btn--accent:hover { background: var(--accent-600); }

.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-800); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }

.btn--block { width: 100%; }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--navy-100);
  box-shadow: 0 1px 3px rgba(10, 26, 51, 0.06);
}

.header-bar {
  display: none;
  background: var(--navy-950);
  color: var(--navy-100);
  font-size: 0.875rem;
}
@media (min-width: 640px) { .header-bar { display: block; } }

.header-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.header-bar a { display: inline-flex; align-items: center; gap: 6px; }
.header-bar a:hover { color: #fff; }
.header-bar__hours { display: inline-flex; align-items: center; gap: 6px; }
.header-bar svg { width: 16px; height: 16px; color: var(--accent-400); flex-shrink: 0; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__mark { width: 46px; height: 46px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 800; font-size: 1.2rem; color: var(--navy-900); letter-spacing: -0.01em; }
.logo__name span { color: var(--accent-500); }
.logo__tagline { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(22, 58, 111, 0.7); }
.logo--dark .logo__name { color: #fff; }
.logo--dark .logo__tagline { color: rgba(230, 237, 247, 0.8); }

.main-nav { display: none; align-items: center; gap: 28px; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--navy-800); }
.main-nav a:hover { color: var(--accent-500); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-500);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.3);
}
.call-pill:hover { background: var(--accent-600); }
.call-pill svg { width: 20px; height: 20px; flex-shrink: 0; }
.call-pill__number { display: none; }
@media (min-width: 640px) {
  .call-pill { padding: 11px 20px; }
  .call-pill__number { display: inline; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--navy-900);
  border-radius: 10px;
}
.menu-toggle:hover { background: var(--navy-100); }
.menu-toggle svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--navy-100);
  background: #fff;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav ul { padding-top: 8px; padding-bottom: 8px; }
.mobile-nav a {
  display: block;
  padding: 13px 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-800);
  border-bottom: 1px solid var(--navy-50);
}
.mobile-nav li:last-child a { border-bottom: none; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  padding-top: 128px;
  padding-bottom: 96px;
}
@media (min-width: 640px) { .hero { padding-top: 156px; padding-bottom: 110px; } }

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--navy-950) 0%, rgba(10,26,51,0.1) 55%, transparent 75%),
    linear-gradient(to right, var(--navy-950) 10%, rgba(10,26,51,0.85) 45%, rgba(10,26,51,0.35) 100%);
}

.hero__content { position: relative; z-index: 1; max-width: 700px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--accent-400);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 22px;
}
.hero__badge svg { width: 16px; height: 16px; }

.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.1;
}
@media (min-width: 640px) { .hero h1 { font-size: 3.2rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.6rem; } }

.hero p.hero__lead {
  margin-top: 20px;
  color: rgba(230, 237, 247, 0.9);
  font-size: 1.1rem;
  max-width: 560px;
}
@media (min-width: 640px) { .hero p.hero__lead { font-size: 1.25rem; } }

.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 24px;
  max-width: 560px;
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero__stats dt { color: #fff; font-size: 1.5rem; font-weight: 800; }
.hero__stats dd { margin: 2px 0 0; color: rgba(230, 237, 247, 0.8); font-size: 0.875rem; }

/* ===========================================================
   Brand strip
   =========================================================== */
.brand-strip {
  background: var(--navy-50);
  border-top: 1px solid var(--navy-100);
  border-bottom: 1px solid var(--navy-100);
  padding: 20px 0;
}
.brand-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
}
.brand-strip__label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(28, 77, 143, 0.75);
}
.brand-strip__names { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.brand-strip__names li { font-weight: 800; font-size: 1.15rem; color: rgba(22, 58, 111, 0.7); }

/* ===========================================================
   About
   =========================================================== */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.about-photo { position: relative; max-width: 520px; margin: 0 auto; }
@media (min-width: 1024px) { .about-photo { margin: 0; } }
.about-photo::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--navy-50);
  border-radius: 32px;
  z-index: 0;
}
.about-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(10, 26, 51, 0.18);
}
.about-photo__badge {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: -22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(10, 26, 51, 0.18);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-photo__badge .icon-circle { background: var(--accent-100); color: var(--accent-600); }
.about-photo__badge strong { display: block; font-size: 1rem; color: var(--navy-900); }
.about-photo__badge span { font-size: 0.75rem; color: rgba(22, 58, 111, 0.7); }

.about-body p { margin-top: 18px; font-size: 1.1rem; color: rgba(10, 26, 51, 0.85); line-height: 1.65; }
.about-body p:first-of-type { margin-top: 18px; }

.check-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy-950); }
.check-list svg { width: 20px; height: 20px; color: var(--accent-500); flex-shrink: 0; margin-top: 2px; }

/* ===========================================================
   Icon circle helper
   =========================================================== */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

/* ===========================================================
   Services
   =========================================================== */
.services-grid {
  margin-top: 52px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: 18px;
  padding: 28px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { border-color: var(--navy-200); box-shadow: 0 12px 28px rgba(10,26,51,0.08); }
.service-card .icon-circle {
  width: 48px; height: 48px;
  background: var(--navy-900);
  color: #fff;
}
.service-card .icon-circle svg { width: 24px; height: 24px; }
.service-card h3 { margin-top: 20px; font-size: 1.2rem; }
.service-card p { margin-top: 8px; color: rgba(10,26,51,0.75); line-height: 1.6; }

.section-cta { margin-top: 48px; text-align: center; }

/* ===========================================================
   Why choose us
   =========================================================== */
.why-grid {
  margin-top: 52px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-item { display: flex; gap: 16px; }
.why-item .icon-circle { width: 48px; height: 48px; background: var(--accent-100); color: var(--accent-600); }
.why-item .icon-circle svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.1rem; }
.why-item p { margin-top: 6px; color: rgba(10,26,51,0.75); line-height: 1.6; }

/* ===========================================================
   Emergency banner
   =========================================================== */
.emergency {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  text-align: center;
}
.emergency__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emergency__scrim { position: absolute; inset: 0; background: rgba(10, 26, 51, 0.8); }
.emergency__content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.emergency h2 { color: #fff; font-size: 2rem; }
@media (min-width: 640px) { .emergency h2 { font-size: 2.75rem; } }
.emergency p { margin-top: 18px; color: rgba(230,237,247,0.9); font-size: 1.1rem; }
.emergency .btn { margin-top: 34px; font-size: 1.2rem; padding: 18px 32px; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 22px;
}
.pill-badge svg { width: 16px; height: 16px; }

/* ===========================================================
   Service areas
   =========================================================== */
.areas-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) { .areas-grid { grid-template-columns: 2fr 3fr; align-items: start; } }

.areas-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .areas-list { grid-template-columns: repeat(3, 1fr); } }
.areas-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}
.areas-list svg { width: 16px; height: 16px; color: var(--accent-500); flex-shrink: 0; }

.address-line { margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.address-line svg { width: 20px; height: 20px; color: var(--accent-500); flex-shrink: 0; margin-top: 2px; }

/* ===========================================================
   Reviews
   =========================================================== */
.stars { margin-top: 26px; display: flex; justify-content: center; gap: 4px; color: var(--accent-500); }
.stars svg { width: 26px; height: 26px; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-list { margin-top: 44px; display: grid; gap: 14px; max-width: 720px; margin-left: auto; margin-right: auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--navy-200); box-shadow: 0 10px 24px rgba(10,26,51,0.08); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; color: var(--navy-700); flex-shrink: 0; transition: transform 0.15s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 20px; color: rgba(10,26,51,0.8); line-height: 1.6; }

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid { margin-top: 52px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }

.contact-form {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .contact-form { padding: 34px; } }

.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--navy-200);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--navy-950);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-500);
  outline-offset: 1px;
  border-color: transparent;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: rgba(22,58,111,0.6); text-align: center; }
.form-status { font-size: 0.95rem; font-weight: 600; text-align: center; display: none; padding: 10px; border-radius: 10px; }
.form-status.is-success { display: block; background: #e7f7ee; color: #146c43; }
.form-status.is-error { display: block; background: #fdecec; color: #b02a2a; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-card {
  background: var(--navy-950);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 20px;
}
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-row .icon-circle { width: 48px; height: 48px; }
.contact-row .icon-circle svg { width: 22px; height: 22px; }
.contact-row.is-link:hover strong { color: var(--accent-400); }
.contact-row small { display: block; color: rgba(230,237,247,0.7); font-size: 0.8rem; }
.contact-row strong { display: block; font-size: 1.1rem; font-weight: 800; }
.contact-row--accent .icon-circle { background: var(--accent-500); }
.contact-row--muted .icon-circle { background: rgba(255,255,255,0.1); }

.map-embed { border-radius: 24px; overflow: hidden; border: 1px solid var(--navy-100); height: 260px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--navy-950); color: var(--navy-100); padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-about p { margin-top: 18px; color: rgba(230,237,247,0.8); line-height: 1.6; max-width: 320px; }
.social-row { margin-top: 18px; display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.social-btn:hover { background: var(--accent-500); }

.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; color: rgba(230,237,247,0.8); }
.footer-col a:hover { color: var(--accent-400); }
.footer-col .view-all { display: inline-block; margin-top: 6px; color: var(--accent-400); font-weight: 700; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; color: rgba(230,237,247,0.8); }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent-400); flex-shrink: 0; margin-top: 2px; }
.footer-contact a.phone-link { color: #fff; font-weight: 700; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(230,237,247,0.6);
}

/* ===========================================================
   Sticky mobile call bar
   =========================================================== */
.sticky-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 16px rgba(10,26,51,0.18);
}
@media (min-width: 1024px) { .sticky-call-bar { display: none; } }
.sticky-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 0;
  font-weight: 700;
  color: #fff;
}
.sticky-call-bar svg { width: 20px; height: 20px; }
.sticky-call-bar__call { background: var(--accent-500); }
.sticky-call-bar__quote { background: var(--navy-900); }

@media (max-width: 1023px) {
  .site-footer { padding-bottom: 96px; }
}
