/* ========================================================
   El Monte Plumbing Rooter & Drains Anytime - Global CSS
   ======================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #1a3a6b;
  --primary-dark:#0f2449;
  --cta:         #d93025;
  --cta-hover:   #b82619;
  --accent:      #f5a623;
  --white:       #ffffff;
  --light:       #f4f7fb;
  --border:      #dde3ed;
  --text:        #1c2b3a;
  --muted:       #5a6878;
  --font:        'Segoe UI', Arial, sans-serif;
  --radius:      6px;
  --shadow:      0 2px 16px rgba(26,58,107,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.5rem; }

/* --- Utility --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section   { padding: 60px 0; }
.section-alt { background: var(--light); }
.text-center { text-align: center; }
.text-white  { color: #fff; }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none !important;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-call:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-call svg   { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }

/* --- Header / Nav --- */
#top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: .88rem;
  padding: 7px 0;
}
#top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#top-bar a { color: var(--accent); font-weight: 700; }

#main-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
#main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
  flex-wrap: wrap;
}
.site-logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  max-width: 280px;
}
.site-logo span { color: var(--accent); display: block; font-size: .78rem; font-weight: 400; }

#main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
#main-nav a {
  color: rgba(255,255,255,.88);
  padding: 7px 13px;
  border-radius: 4px;
  font-size: .92rem;
  font-weight: 600;
  transition: background .15s, color .15s;
  text-decoration: none !important;
}
#main-nav a:hover,
#main-nav a.active { background: rgba(255,255,255,.15); color: #fff; }

.header-cta a { font-size: 1.05rem; }

/* Hamburger */
#nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform .3s;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1f5c9e 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  max-width: 680px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 32px;
  opacity: .92;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  opacity: .9;
}
.trust-item svg { width: 22px; height: 22px; fill: var(--accent); flex-shrink: 0; }

/* --- Service Cards --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(26,58,107,.14); }
.service-icon {
  width: 62px; height: 62px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.service-icon svg { width: 32px; height: 32px; fill: var(--primary); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary); }
.service-card p  { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.service-card a.learn { font-size: .88rem; font-weight: 700; color: var(--cta); }

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.why-item { text-align: center; padding: 20px; }
.why-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.why-icon svg { width: 26px; height: 26px; fill: #fff; }
.why-item h3 { font-size: 1rem; margin-bottom: 8px; }
.why-item p  { font-size: .88rem; color: var(--muted); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--cta);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.cta-banner p  { font-size: 1rem; opacity: .92; margin-bottom: 24px; }
.cta-banner .btn-call { background: #fff; color: var(--cta) !important; }
.cta-banner .btn-call:hover { background: var(--light); }
.cta-banner .btn-call svg { fill: var(--cta); }

/* --- Section Titles --- */
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 12px; }
.section-sub   { font-size: 1rem; color: var(--muted); max-width: 600px; margin-bottom: 40px; }
.section-title .accent { color: var(--cta); }

/* --- Service Area Cities --- */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-tag {
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
}

/* --- Citations --- */
.citation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.citation-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .92rem;
  color: var(--primary) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: box-shadow .15s;
  text-decoration: none !important;
}
.citation-link:hover { box-shadow: 0 4px 14px rgba(26,58,107,.14); }
.citation-link svg { width: 18px; height: 18px; fill: var(--cta); flex-shrink: 0; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--text);
  transition: background .15s;
}
.faq-question:hover  { background: var(--light); }
.faq-question.open   { background: var(--primary); color: #fff; }
.faq-chevron { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; transition: transform .25s; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 16px 20px;
  font-size: .95rem;
  color: var(--muted);
  background: #fafcff;
  border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }

/* --- About page --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.stat-row   { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 24px; }
.stat-box { text-align: center; }
.stat-box strong { display: block; font-size: 2rem; color: var(--primary); font-weight: 800; }
.stat-box span   { font-size: .85rem; color: var(--muted); }
.credentials ul { list-style: none; padding: 0; }
.credentials li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.credentials li::before { content: '✔ '; color: var(--primary); font-weight: 700; }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--light);
  padding: 12px 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* --- Inner Hero --- */
.inner-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 50px 0 44px;
}
.inner-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.inner-hero p  { font-size: 1rem; opacity: .88; max-width: 600px; }

/* --- Map embed --- */
.map-wrap { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* --- NAP Box --- */
.nap-box {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 30px 28px;
}
.nap-box h3 { margin-bottom: 16px; font-size: 1.1rem; }
.nap-row    { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: .95rem; }
.nap-row svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }
.nap-row a   { color: #fff; font-weight: 700; }

/* --- Footer --- */
#main-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 50px 0 0;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a  { color: rgba(255,255,255,.7); transition: color .15s; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-nap { line-height: 1.9; }
.footer-nap strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* --- Blog --- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.post-lede {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  max-width: 680px;
  margin-bottom: 0;
}
.post-meta {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.post-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 2rem 0 .75rem;
}
.post-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 .5rem;
}
.post-body p  { margin-bottom: 1.1rem; line-height: 1.78; }
.post-body ul, .post-body ol { margin-bottom: 1.1rem; line-height: 1.78; }
.post-body li { margin-bottom: .45rem; }
.post-body a  { color: var(--primary); text-decoration: underline; }
.post-body a:hover { color: var(--cta); }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: .92rem; }
.post-body th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; }
.post-body td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:nth-child(even) td { background: var(--light); }
.pipe-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2.2rem 0;
}
.pipe-divider::before,
.pipe-divider::after {
  content: '';
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 22px);
}
.pipe-divider .joint {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.blog-sidebar-cta {
  background: var(--cta);
  color: #fff;
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 22px;
}
.blog-sidebar-cta h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.blog-sidebar-cta p  { color: rgba(255,255,255,.9); font-size: .9rem; margin-bottom: 16px; }
.blog-sidebar-cta .btn-call { background: #fff; color: var(--cta) !important; font-size: .92rem; }
.blog-sidebar-cta .btn-call:hover { background: var(--light); }
.blog-related {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 22px;
}
.blog-related h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.blog-related ul { list-style: none; padding: 0; margin: 0; }
.blog-related li { border-bottom: 1px solid var(--border); padding: 9px 0; }
.blog-related li:last-child { border-bottom: none; padding-bottom: 0; }
.blog-related a { font-weight: 600; font-size: .9rem; color: var(--primary); text-decoration: none; }
.blog-related a:hover { color: var(--cta); text-decoration: underline; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,58,107,.14); }
.blog-card h3 { font-size: 1.05rem; margin: 8px 0 12px; color: var(--primary); flex: 1; }
.blog-card .read-more {
  font-size: .88rem;
  font-weight: 700;
  color: var(--cta);
  text-decoration: none;
  align-self: flex-start;
}
.blog-card .read-more:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hamburger { display: flex; }
  #main-nav  { display: none; width: 100%; order: 3; }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; }
  #main-nav a  { display: block; border-radius: 0; padding: 12px 16px; }
  .header-cta  { display: none; }
  .hero { padding: 50px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
