/* Bellflower Plumbing Pros — style.css
   Design 3: Gateway Emergency First
   Primary #1E40AF · Accent #EA580C · System font stack */

:root {
  --primary: #1E40AF;
  --primary-dark: #1e3a8a;
  --accent: #EA580C;
  --text: #1e293b;
  --muted: #64748b;
  --light: #F8FAFC;
  --border: #e2e8f0;
}

/* ── 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: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; }
address { font-style: normal; }

/* ── Accessibility ── */
.skip-link {
  position: absolute; top: -100px; left: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 4px 4px;
  font-size: 0.875rem; font-weight: 600; z-index: 10000; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Emergency bar ── */
.emergency-bar {
  background: var(--accent); color: #fff;
  text-align: center; padding: 0.475rem 1rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
}

/* ── Site header ── */
.site-header { background: var(--primary-dark); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 0.5rem;
}
.nav-logo {
  color: #fff; text-decoration: none; font-weight: 800;
  font-size: 1.05rem; white-space: nowrap; flex-shrink: 0; line-height: 1.2;
}
.nav-logo span { color: #FCA07A; }

/* Nav menu */
.nav-menu { display: flex; align-items: center; list-style: none; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-link, .nav-btn {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 1.1875rem 0.875rem; color: #93c5fd;
  background: none; border: none; font-size: 0.875rem; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: inherit; line-height: 1; min-height: 44px;
}
.nav-link:hover, .nav-btn:hover { color: #fff; }
.nav-link[aria-current="page"] { color: #fff; }
.chevron { font-size: 0.6rem; transition: transform 0.2s; }
.nav-item:hover .chevron, .nav-item:focus-within .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 250px;
  border-radius: 0 0 8px 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 200;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown-link {
  display: block; padding: 0.65rem 1.125rem; font-size: 0.875rem;
  color: var(--text); text-decoration: none;
  border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s;
}
.dropdown-link:hover { background: var(--light); border-left-color: var(--accent); color: var(--primary); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }
.dropdown-link.view-all { color: var(--primary); font-weight: 600; font-size: 0.85rem; }
.dropdown-link.view-all:hover { background: #EFF6FF; border-left-color: var(--primary); }

/* Nav phone — v2.2 */
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; background: var(--accent); color: #fff;
  border-radius: 6px; text-decoration: none; font-weight: 700;
  min-height: 44px; flex-shrink: 0; font-size: 0.9rem;
}
.nav-phone:hover { background: #c2410c; }
.nav-phone-icon { font-size: 1rem; }
.nav-phone-label { font-size: 0.9rem; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px; min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sticky mobile bottom CTA ── */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1rem; padding: 0.9rem 1rem;
  width: 100%; min-height: 52px;
}
.sticky-cta a:hover { background: #c2410c; }

/* ── Hero — homepage ── */
.hero { background: var(--primary-dark); color: #fff; padding: 4rem 1.5rem 3rem; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(1.625rem, 4vw, 2.625rem); font-weight: 900;
  line-height: 1.12; color: #fff; margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.05rem; color: #bfdbfe;
  max-width: 580px; margin: 0 auto 1.75rem; line-height: 1.65;
}
.hero-cta-group { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-emergency {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.875rem 2rem; border-radius: 6px;
  font-size: 1.1rem; font-weight: 800; text-decoration: none; min-height: 52px;
}
.btn-emergency:hover { background: #c2410c; }
.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; border: 2px solid rgba(255,255,255,0.4);
  color: #fff; padding: 0.85rem 1.75rem; border-radius: 6px;
  font-size: 1rem; font-weight: 600; text-decoration: none; min-height: 52px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.trust-badges { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }
.trust-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #e0f2fe; padding: 0.35rem 0.875rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
}

/* Hero — inner pages */
.page-hero { background: var(--primary-dark); color: #fff; padding: 2.5rem 1.5rem 2rem; }
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb { font-size: 0.8rem; color: #93c5fd; margin-bottom: 0.75rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.1rem; }
.breadcrumb a { color: #93c5fd; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-sep { margin: 0 0.3rem; color: #475569; }
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 0.75rem; }
.page-hero .hero-sub { color: #bfdbfe; font-size: 1rem; max-width: 600px; margin: 0 0 1.25rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 6px;
  font-size: 0.95rem; font-weight: 700; text-decoration: none; min-height: 44px;
}
.btn-primary:hover { background: #c2410c; }
.btn-navy {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 6px;
  font-size: 0.95rem; font-weight: 700; text-decoration: none; min-height: 44px;
}
.btn-navy:hover { background: var(--primary-dark); }

/* Fact bar */
.fact-bar { background: var(--primary-dark); }
.fact-bar-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: center;
}
.fact-item strong { display: block; font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.2; }
.fact-item span { font-size: 0.78rem; color: #bfdbfe; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 1.5rem; }
.section-white { background: #fff; }
.section-light { background: var(--light); }
.section-navy { background: var(--primary-dark); }

/* Headings */
h2 { font-size: clamp(1.35rem, 2.5vw, 1.625rem); font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 0.6rem; }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.25; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.section-sub { color: var(--muted); margin-bottom: 2rem; max-width: 640px; font-size: 1rem; }
.section h2 + .section-sub { margin-top: 0.4rem; }

/* ── Image slots ── */
.image-slot {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: #6b7280; font-size: 0.8125rem;
  overflow: hidden; margin: 1.5rem auto;
}
.image-slot span { padding: 1rem; text-align: center; line-height: 1.5; }
.image-slot.hero-img { aspect-ratio: 16/9; max-width: 100%; margin: 2rem 0 0; }
.image-slot.body-img { aspect-ratio: 16/9; max-width: 960px; }
.image-slot.thumb { aspect-ratio: 4/3; max-width: 100%; margin: 0; }
.image-slot.portrait { aspect-ratio: 3/4; max-width: 400px; }

/* ── Service cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  border-top: 3px solid var(--accent); padding: 1.5rem;
  transition: box-shadow 0.2s; display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.875rem; flex: 1; }
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; align-self: flex-start; }
.card-link:hover { text-decoration: underline; }

/* Services index grid */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  border-top: 3px solid var(--accent); overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.svc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.svc-card-body { padding: 0.875rem 1rem 1rem; flex: 1; }
.svc-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.svc-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* Local callout */
.local-callout {
  background: #EFF6FF; border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0;
}
.local-callout p { color: var(--primary-dark); line-height: 1.7; font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 820px; }
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
details summary {
  padding: 1rem 0; font-weight: 700; color: var(--primary); font-size: 1rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; line-height: 1.4;
}
details summary::after { content: '+'; font-size: 1.25rem; color: var(--accent); flex-shrink: 0; font-weight: 400; min-width: 1rem; text-align: right; }
details[open] summary::after { content: '−'; }
details summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 0 1.125rem; color: var(--muted); line-height: 1.7; font-size: 0.95rem; }
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--accent); }
.faq-answer a:hover { text-decoration: underline; }

/* CTA section */
.cta-section { background: var(--primary-dark); color: #fff; padding: 3.5rem 1.5rem; text-align: center; }
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.cta-section p { color: #bfdbfe; max-width: 540px; margin: 0 auto 1.75rem; line-height: 1.65; }
.cta-section .hero-cta-group { margin-bottom: 0; }

/* Related link blocks */
.related-links { background: var(--light); border-radius: 8px; padding: 1.5rem; margin-top: 2rem; }
.related-links h3 {
  font-size: 0.82rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.07em;
  border-bottom: 2px solid var(--accent); display: inline-block;
  padding-bottom: 0.3rem; margin-bottom: 0.75rem;
}
.related-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.5rem; }
.related-links ul li a {
  display: inline-block; padding: 0.3rem 0.75rem;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.82rem; color: var(--primary); text-decoration: none; font-weight: 500;
}
.related-links ul li a:hover { background: #EFF6FF; border-color: var(--primary); }

/* Contact form placeholder */
.contact-form-placeholder {
  background: var(--light); border: 1px dashed var(--border);
  border-radius: 8px; padding: 2rem; text-align: center; color: var(--muted);
}
.contact-form-placeholder p { margin: 0; }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); }
.footer-main {
  max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem;
  display: grid; grid-template-columns: 1.75fr 1fr 1fr 0.85fr; gap: 2.5rem;
}
.footer-brand-name {
  display: block; color: #fff; font-weight: 800; font-size: 1.05rem;
  margin-bottom: 0.875rem; text-decoration: none; line-height: 1.2;
}
.footer-brand-name span { color: #FCA07A; }
.footer-address { font-size: 0.82rem; color: #93c5fd; line-height: 1.9; }
.footer-address strong { color: #bfdbfe; display: block; margin-bottom: 0.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-phone { color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.footer-phone:hover { text-decoration: underline; }
.footer-main h3 {
  color: #fff; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 0.875rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-main ul { list-style: none; padding: 0; }
.footer-main ul li { margin-bottom: 0.5rem; }
.footer-main ul li a { color: #93c5fd; text-decoration: none; font-size: 0.875rem; }
.footer-main ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
  max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom-inner p, .footer-bottom-inner a { font-size: 0.78rem; color: #475569; }
.footer-bottom-inner a { text-decoration: none; }
.footer-bottom-inner a:hover { color: #93c5fd; }

/* ── Contact page specifics ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info-block { background: var(--light); border-radius: 8px; padding: 1.5rem; }
.contact-info-block h3 { margin-bottom: 0.75rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-info-block .big-phone { font-size: 1.75rem; font-weight: 900; color: var(--primary); text-decoration: none; display: block; margin-bottom: 0.5rem; }
.contact-info-block .big-phone:hover { color: var(--accent); }
.contact-info-block .info-list { list-style: none; padding: 0; }
.contact-info-block .info-list li { padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text); display: flex; gap: 0.625rem; }
.contact-info-block .info-list li:first-child { border-top: none; }
.info-label { font-weight: 700; color: var(--primary); min-width: 80px; }

/* ── About page ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.about-values { list-style: none; padding: 0; }
.about-values li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.about-values li:last-child { border-bottom: none; }
.about-values .val-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ── Overflow ── */
.overflow-x { overflow-x: auto; }

/* ── Focus ── */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cards-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 767px) {
  /* Nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--primary-dark); padding: 0.5rem 0 1rem;
    z-index: 100; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-menu.open { display: flex; }
  .site-header { position: relative; }
  .nav-inner { position: relative; }
  .nav-item { width: 100%; }
  .nav-link, .nav-btn {
    width: 100%; padding: 0.75rem 1.5rem;
    justify-content: space-between; color: #bfdbfe;
  }
  .dropdown {
    position: static; display: none;
    box-shadow: none; background: rgba(0,0,0,0.2); border-radius: 0;
  }
  .dropdown.mobile-open { display: block; }
  .dropdown-link { color: #93c5fd; padding-left: 2.5rem; border-left: none; font-size: 0.8125rem; }
  .dropdown-link:hover { background: rgba(255,255,255,0.08); border-left: none; }
  .dropdown-divider { border-color: rgba(255,255,255,0.1); }
  .dropdown-link.view-all { color: #bfdbfe; }

  /* Phone label hidden on mobile */
  .nav-phone-label { display: none; }
  .nav-phone { min-width: 44px; padding: 0.6rem; justify-content: center; }

  /* Sticky CTA */
  .sticky-cta { display: block; }
  body { padding-bottom: 52px; }

  /* Layout */
  .section { padding: 2.5rem 1.25rem; }
  .hero { padding: 2.75rem 1.25rem; }
  .page-hero { padding: 2rem 1.25rem 1.75rem; }
  .cta-section { padding: 2.5rem 1.25rem; }
  .fact-bar-inner { gap: 1.25rem; }
  .fact-item { flex: 1 1 45%; }

  /* Grids */
  .cards-grid, .svc-grid { grid-template-columns: 1fr; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-emergency, .btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 360px) {
  .container, .section { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
}

@media (min-width: 1440px) {
  .hero-inner { max-width: 820px; }
}

/* Print */
@media print {
  .sticky-cta, .nav-toggle, .site-header { display: none !important; }
  body { padding-bottom: 0 !important; }
  .page-hero { background: var(--primary) !important; }
}
