/* ============================================================
   PlumbingBro — Main Stylesheet
   Design: Industrial utility — bold, trustworthy, no-nonsense
   Fonts loaded via <link> in HTML <head> for performance
   ============================================================ */

:root {
  --navy:        #0F2744;
  --navy-mid:    #1B3A5C;
  --navy-light:  #274D78;
  --orange:      #F97316;
  --orange-dark: #C65D0E;
  --orange-glow: rgba(249,115,22,0.15);
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;
  --gray-100:    #EEF2F7;
  --gray-200:    #D9E2EE;
  --gray-400:    #6B839B;
  --gray-600:    #3B5068;
  --gray-800:    #1A2E42;
  --text-body:   #263548;
  --success:     #16A34A;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(15,39,68,0.08);
  --shadow-md:   0 4px 16px rgba(15,39,68,0.12);
  --shadow-lg:   0 12px 40px rgba(15,39,68,0.18);
  --shadow-orange: 0 4px 20px rgba(249,115,22,0.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h4 { font-size: 1.4rem; }
p { max-width: 68ch; }
.lead { font-size: 1.2rem; font-weight: 500; color: var(--gray-600); line-height: 1.5; }

/* ── Layout ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--gray { background: var(--off-white); }
.section--accent { background: var(--orange); color: var(--white); }
.section--accent h2 { color: var(--white); }

/* ── Top Bar ── */
.top-bar {
  background: var(--navy);
  padding: 10px 0;
  border-bottom: 3px solid var(--orange);
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.top-bar__phone:hover { color: var(--orange); }
.top-bar__phone svg { color: var(--orange); flex-shrink: 0; }
.top-bar__cta {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}
.top-bar__cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
.top-bar__tagline { color: #A3B8CC; font-size: 0.85rem; }

/* ── Header / Nav ── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.logo__icon {
  background: var(--orange);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}
.nav a:hover { color: var(--navy); background: var(--gray-100); }
.nav a.active { color: var(--orange); }
.nav__cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-orange);
}
.nav__cta:hover { background: var(--orange-dark) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-top: 2px solid var(--orange);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1rem; border-bottom: 1px solid var(--gray-100); }
  .nav__cta { margin-top: 8px; text-align: center; border: none !important; }
  .top-bar__tagline { display: none; }
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(249,115,22,0.12) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-glow);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 span { color: var(--orange); }
.hero p { color: #A3B8CC; font-size: 1.15rem; margin-bottom: 40px; max-width: 52ch; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.hero__stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--orange);
  display: block;
}
.hero__stat-label { font-size: 0.8rem; color: #A3B8CC; text-transform: uppercase; letter-spacing: 0.08em; }
.hero__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.6rem; }
.hero__card > p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 24px; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 72px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(249,115,22,0.4); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: 1.1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--off-white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.trust-bar__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-mid);
}
.trust-bar__item svg { color: var(--orange); }

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-200); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--orange-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 20px; max-width: none; }
.service-card__link {
  font-weight: 700;
  color: var(--orange);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.service-card__link:hover { gap: 10px; }

/* ── Section Headers ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.section-header { margin-bottom: 56px; }
.section-header p { color: var(--gray-600); margin-top: 16px; font-size: 1.1rem; }

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.review-card__stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-card p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 20px; font-style: italic; max-width: none; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.review-card__name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.review-card__meta { font-size: 0.8rem; color: var(--gray-400); }
.google-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 10px;
}

/* ── Why Us / Checklist ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.why-item { display: flex; flex-direction: column; gap: 12px; }
.why-item__icon {
  width: 48px; height: 48px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.why-item h4 { font-size: 1.3rem; }
.why-item p { font-size: 0.95rem; color: var(--gray-400); max-width: none; }
.section--dark .why-item p { color: #A3B8CC; }

/* ── Service Area ── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.city-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #A3B8CC;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.city-tag:hover { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.3); color: var(--orange); }
.city-tag svg { color: var(--orange); flex-shrink: 0; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--orange);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 0 auto 36px; }
.cta-banner .btn--outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.cta-banner .btn--navy { background: var(--navy); border-color: var(--navy); }

/* ── Emergency Banner ── */
.emergency-bar {
  background: var(--navy-dark);
  padding: 14px 0;
  text-align: center;
  border-bottom: 2px solid rgba(249,115,22,0.4);
}
.emergency-bar p {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.emergency-bar a { color: var(--orange); font-weight: 700; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--success);
  font-weight: 600;
}

/* ── Contact Info Blocks ── */
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
.contact-info__icon {
  width: 48px; height: 48px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.contact-info__text h4 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-info__text p, .contact-info__text a { font-size: 0.95rem; color: var(--gray-600); max-width: none; }
.contact-info__text a:hover { color: var(--orange); }

/* ── Footer ── */
.site-footer {
  background: var(--gray-800);
  color: #A3B8CC;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 30ch; }
.footer-brand .nap { margin-top: 20px; font-size: 0.85rem; line-height: 1.9; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; letter-spacing: 0.06em; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--orange); }
.zone-badge {
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.25);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--navy);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
  pointer-events: none;
}
.page-header__inner { position: relative; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: #A3B8CC; font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #A3B8CC;
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb__sep { color: #A3B8CC; }

/* ── Accordion / FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: background 0.2s;
  gap: 16px;
}
.faq-question:hover { background: var(--off-white); }
.faq-question svg { flex-shrink: 0; color: var(--orange); transition: transform 0.3s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Map embed ── */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.flex-gap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
