/* ==========================================================================
   Laguna Niguel Express Plumbing — main stylesheet
   Design language adapted from a reference layout (hero / trust-row / service
   grid / detail blocks / footer rhythm), with all fabricated-trust components
   (fake review counts, fake team photos, fake press logos) removed per the
   network's standing compliance rules. One shared stylesheet, CSS variables
   for every token, no inline style attributes.
   ========================================================================== */

:root {
  --color-navy: #10263f;
  --color-navy-light: #16324f;
  --color-accent: #d9481f;
  --color-accent-dark: #b23a17;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-text: #1c2a36;
  --color-text-muted: #566575;
  --color-border: #e1e6ea;
  --color-white: #ffffff;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --nav-height: 76px;
  --sticky-bar-height: 60px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(16, 38, 63, 0.08);
  --shadow-md: 0 6px 20px rgba(16, 38, 63, 0.12);
  --shadow-lg: 0 10px 34px rgba(16, 38, 63, 0.16);
  --breakpoint-mobile: 768px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; margin: 0 0 0.6em; color: var(--color-navy); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--color-navy); color: #cfe0ee; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; font-size: 0.85rem; font-weight: 600;
}
.topbar-inner a { color: #fff; }
.topbar-inner a:hover { color: var(--color-accent); }
/* Kept visible on mobile deliberately: a topbar that disappears on mobile
   (display:none) has shipped before and kills the phone-number trust cue
   right when it matters most. Only the hours line is hidden at narrow widths. */

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo-mark { font-weight: 700; font-size: 1.15rem; color: var(--color-navy); display: flex; align-items: center; gap: 8px; }
.logo-mark img { height: 40px; width: auto; }

.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav ul.navmenu { display: flex; align-items: center; gap: 24px; }
.desktop-nav ul.navmenu > li { position: relative; }
.desktop-nav a.nav-link {
  font-weight: 600; font-size: 0.95rem; color: var(--color-navy); padding: 8px 2px;
  white-space: nowrap;
}
.desktop-nav a.nav-link:hover, .desktop-nav a.nav-link:focus { color: var(--color-accent); }

.navdrop {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 600;
}
.navmenu > li:hover .navdrop,
.navmenu > li:focus-within .navdrop { opacity: 1; visibility: visible; transform: translateY(0); }
.navdrop li a { display: block; padding: 9px 18px; font-size: 0.92rem; font-weight: 500; color: var(--color-text); }
.navdrop li a:hover { background: var(--color-bg-alt); color: var(--color-accent); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-accent); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover, .btn:focus { background: var(--color-accent-dark); }
.btn-outline { background: transparent; color: var(--color-navy); border: 2px solid var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: #fff; }
.btn-block { width: 100%; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  min-width: 44px; min-height: 44px; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Mobile nav: drawer + overlay (not a shared toggled <ul>) ---------- */
.mob-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--color-white); z-index: 9999; transform: translateX(100%);
  transition: transform .3s ease; overflow-y: auto; padding: 24px;
}
.mob-drawer[hidden] { display: block !important; transform: translateX(100%); }
.mob-drawer:not([hidden]) { transform: translateX(0); }
.drawer-inner { padding-top: 8px; }
.drawer-close {
  background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--color-navy);
  min-width: 44px; min-height: 44px; margin-left: auto; display: block;
}
.mob-drawer ul.plain { margin: 12px 0 0; padding: 0; }
.mob-drawer ul.plain li { border-bottom: 1px solid var(--color-border); }
.mob-drawer ul.plain li a { display: block; padding: 14px 2px; font-weight: 600; font-size: 1.05rem; color: var(--color-navy); }
.mobile-topservices { margin-top: 18px; }
.mobile-topservices h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.drawer-cta { margin-top: 24px; }
.mob-overlay {
  position: fixed; inset: 0; background: rgba(16, 38, 63, 0.5); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.mob-overlay.visible { opacity: 1; visibility: visible; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 700;
  background: var(--color-navy); color: #fff; height: var(--sticky-bar-height);
  align-items: center; justify-content: center;
}
.sticky-call-bar a { color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }

/* Desktop floating call button */
.floating-call-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 650;
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.floating-call-btn svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg-alt), #fff);
  padding: 48px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block; background: var(--color-navy); color: #fff; font-size: 0.78rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px;
  border-radius: 20px; margin-bottom: 14px;
}
.hero-cta-row { display: flex; gap: 14px; margin: 20px 0; flex-wrap: wrap; }
.trust-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--color-text-muted); }
.trust-item svg { width: 22px; height: 22px; fill: var(--color-accent); flex-shrink: 0; }
.hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

/* ---------- Services grid ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 26px 20px; text-align: center; transition: box-shadow .15s ease, transform .15s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card svg.icon { width: 40px; height: 40px; fill: var(--color-accent); margin-bottom: 12px; }
.service-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service-card p { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 12px; }

/* ---------- About / trust strip (honest version — no fabricated stats) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.fact-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px;
}
.fact-item { text-align: center; padding: 18px 10px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.fact-item strong { display: block; font-size: 1.4rem; color: var(--color-navy); }
.fact-item span { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Pricing transparency block ---------- */
.pricing-block { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px; }
.pricing-block ul.plain li { padding: 8px 0; border-bottom: 1px dashed var(--color-border); font-size: 0.95rem; }
.pricing-block ul.plain li:last-child { border-bottom: none; }

/* ---------- Decision/comparison table ---------- */
.table-scroll { overflow-x: auto; }
table.decision-table { width: 100%; border-collapse: collapse; min-width: 520px; }
table.decision-table th, table.decision-table td { padding: 12px 14px; border: 1px solid var(--color-border); text-align: left; font-size: 0.92rem; }
table.decision-table th { background: var(--color-navy); color: #fff; }
table.decision-table tr:nth-child(even) td { background: var(--color-bg-alt); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 16px 4px;
  font-weight: 700; font-size: 1rem; color: var(--color-navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 4px; }
.faq-answer p { color: var(--color-text-muted); font-size: 0.94rem; }
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 14px; }
.faq-icon { transition: transform .2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Map embed ---------- */
.map-section iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius-md); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: #d7e0e8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer-col ul.plain li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-col ul.plain li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 34px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: #a7b6c2;
}
.social-links { display: flex; gap: 12px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-links svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- Content page (service/location/blog) ---------- */
.page-hero { background: var(--color-navy); color: #fff; padding: 44px 0; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.breadcrumbs { font-size: 0.85rem; color: #c9d5de; }
.breadcrumbs a { color: #c9d5de; }
.breadcrumbs a:hover { color: #fff; }
.byline { font-size: 0.9rem; color: #c9d5de; margin-top: 6px; }
.content-body { max-width: 780px; }
.content-body h2 { margin-top: 1.6em; }
.content-body p { color: var(--color-text); }
.cta-inline {
  background: var(--color-bg-alt); border-left: 4px solid var(--color-accent);
  padding: 18px 22px; border-radius: var(--radius-sm); margin: 24px 0;
}
.zip-card { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 20px 24px; margin: 24px 0; }

/* ---------- Content-section card patterns ----------
   Every body-copy block beyond a short paragraph gets one of these three
   containers rather than rendering as bare text on the page background.
   Wired in at the template layer (service.html wraps body_html in
   .panel-card); never hand-added per page. */
.panel-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 20px;
  padding: 44px 48px; box-shadow: var(--shadow-lg); max-width: 880px; margin: 0 auto;
}
.callout-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 20px;
  padding: 40px 46px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  max-width: 880px; margin: 24px auto;
}
.callout-card::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-navy));
}
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.icon-list li { display: flex; align-items: flex-start; gap: 14px; }
.icon-list .ico {
  flex: none; width: 27px; height: 27px; border-radius: 50%; background: var(--color-accent);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
}
.insight-card {
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 20px;
  padding: 44px 48px; position: relative; max-width: 880px; margin: 24px auto;
}
.insight-card::before {
  content: ""; position: absolute; top: 22px; bottom: 22px; left: 0; width: 5px;
  border-radius: 0 4px 4px 0; background: var(--color-navy);
}
@media (max-width: 600px) {
  .panel-card, .callout-card, .insight-card { padding: 30px 24px; border-radius: 16px; max-width: 100%; }
}

.sidebar-cta { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.sidebar-cta .btn { margin-top: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; background: var(--color-bg-alt); border-radius: 20px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; color: var(--color-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .topbar-hours { display: none; } /* phone stays visible, only the hours line hides at narrow widths */
  .sticky-call-bar { display: flex; }
  .fact-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: var(--sticky-bar-height); }
  .floating-call-btn { display: none; }
}
