/* Mold Removal Experts LA — design system.
   Clean, trustworthy, luxurious, light. Deep navy + azure + warm gold.
   Mobile-first. Body 16px minimum. Tap targets >= 48px. No horizontal scroll. */
:root {
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --navy-700: #1b4965;
  --blue-600: #1d6fb8;
  --blue-500: #2a8fd4;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --gold-500: #c9a227;
  --gold-600: #a9861d;
  --gold-bg: #fdf8e7;
  --ink: #1e293b;
  --muted: #52607a;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(11, 37, 69, 0.07);
  --shadow-lift: 0 12px 28px rgba(11, 37, 69, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--blue-600); }
a:hover { color: var(--navy-700); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; color: var(--navy-900); margin: 1.4em 0 0.5em; }
h1 { font-size: 1.9rem; margin-top: 0.4em; }
h2 { font-size: 1.4rem; border-bottom: 2px solid var(--blue-100); padding-bottom: 0.3em; }
h3 { font-size: 1.12rem; }
p { margin: 0.7em 0; }
ul, ol { margin: 0.7em 0; padding-left: 1.4em; }
li { margin: 0.35em 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 0.6em 1em; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* Header */
.site-header {
  background: var(--navy-900); color: #fff;
  position: sticky; top: 0; z-index: 60;
  transition: box-shadow 180ms ease;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
.site-header a { color: #fff; text-decoration: none; }
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0.6em 1em;
  display: flex; align-items: center; gap: 1em; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6em; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold-500); color: var(--navy-900);
  font-size: 1.5rem; font-weight: 800; flex: none;
}
.brand-text { font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.brand-text strong { color: #f5d76e; }
.brand-text small { display: block; font-size: 0.72rem; font-weight: 400; color: #bfdbfe; }
.main-nav { margin-left: auto; display: flex; gap: 0.2em; flex-wrap: wrap; }
.main-nav > a {
  padding: 0.5em 0.7em; border-radius: 8px; font-size: 0.95rem;
  display: inline-flex; align-items: center; min-height: 48px;
}
.main-nav > a:hover, .main-nav > a:focus-visible { background: var(--navy-800); color: #fff; }
.header-phone {
  background: var(--gold-500); color: var(--navy-900) !important; font-weight: 800;
  padding: 0.6em 1em; border-radius: 999px; white-space: nowrap;
  min-height: 48px; display: inline-flex; align-items: center;
  transition: background 180ms ease;
}
.header-phone:hover { background: #e0b93a; color: var(--navy-900); }

/* Hero */
.hero { position: relative; background: var(--navy-900); color: #fff; }
.hero img { width: 100%; height: 340px; object-fit: cover; opacity: 0.92; }
.hero-text { max-width: 1140px; margin: 0 auto; padding: 2em 1em 2.4em; }
.hero-text h1 { color: #fff; font-size: 2.2rem; margin: 0 0 0.4em; }
.hero-text p { font-size: 1.15rem; color: #dbeafe; max-width: 720px; }
.hero-cta { display: flex; gap: 0.8em; flex-wrap: wrap; margin-top: 1.2em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; background: var(--gold-500); color: var(--navy-900) !important;
  padding: 0.7em 1.4em; border-radius: 999px; font-weight: 800; text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.btn:hover { background: #e0b93a; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; background: transparent; color: #fff !important;
  border: 2px solid #fff; padding: 0.65em 1.3em; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: background 180ms ease;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

/* Layout */
.content { max-width: 780px; margin: 0 auto; padding: 1.5em 1em 2.5em; }
.content-wide { max-width: 1140px; margin: 0 auto; padding: 1.5em 1em 2.5em; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); padding: 1em 1em 0; max-width: 1140px; margin: 0 auto; }
.breadcrumbs a { color: var(--muted); }
.section-lead { color: var(--muted); }
.post-date { font-size: 0.88rem; color: var(--muted); }

/* Disclosure box */
.disclosure {
  background: var(--gold-bg); border: 1px solid var(--gold-500);
  border-left: 5px solid var(--gold-500); border-radius: var(--radius);
  padding: 0.9em 1.1em; margin: 1.5em 0; font-size: 0.97rem;
}
.disclosure strong { color: var(--navy-900); }

/* FAQ */
.faqs { margin-top: 2em; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9em 1.1em; margin: 0.8em 0; background: var(--card); box-shadow: var(--shadow); }
.faq h3 { margin-top: 0; font-size: 1.08rem; }
.faq p:last-child { margin-bottom: 0; }

/* Link grids */
.link-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9em; margin: 1.2em 0;
}
.link-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1em 1.1em; text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.link-card strong { display: block; color: var(--navy-900); font-size: 1.02rem; }
.link-card strong::after { content: " \2192"; display: inline-block; transition: transform 180ms ease; }
.link-card span { font-size: 0.92rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--blue-500); }
  .link-card:hover strong::after { transform: translateX(4px); }
}

/* Service image */
.page-image { border-radius: var(--radius); margin: 1.2em 0; width: 100%; }
.page-image img { border-radius: var(--radius); width: 100%; height: 320px; object-fit: cover; }
.page-image figcaption { font-size: 0.88rem; color: var(--muted); padding-top: 0.4em; }

/* Steps */
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative; padding-left: 2.8em; margin: 1em 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  background: var(--navy-800); color: #fff; width: 2em; height: 2em;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.steps strong { color: var(--navy-900); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius);
  padding: 1.6em 1.6em; margin: 2em 0; text-align: center;
}
.cta-band h2 { color: #fff; border: 0; margin-top: 0; }
.cta-band p { color: #dbeafe; }
.cta-band .btn { margin-top: 0.6em; }
.cta-disclosure { font-size: 0.82rem !important; color: rgba(255, 255, 255, 0.8) !important; max-width: 640px; margin: 1em auto 0 !important; }

/* Form */
.form-note {
  background: var(--gold-bg); border: 1px solid var(--gold-500);
  border-radius: var(--radius); padding: 0.9em 1.1em; margin: 1em 0;
}
.request-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3em; margin: 1.2em 0; box-shadow: var(--shadow); }
.request-form label { display: block; font-weight: 600; margin: 0.9em 0 0.3em; }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; padding: 0.7em 0.8em; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 1rem; font-family: inherit; min-height: 48px; background: #fff;
}
.request-form textarea { min-height: 0; }
.request-form input:focus-visible, .request-form select:focus-visible, .request-form textarea:focus-visible {
  outline: 3px solid var(--blue-500); outline-offset: 1px;
}
.request-form button {
  margin-top: 1.1em; background: var(--gold-500); color: var(--navy-900); border: 0;
  padding: 0.75em 1.6em; border-radius: 999px; font-weight: 800; font-size: 1rem;
  cursor: pointer; min-height: 48px; transition: background 180ms ease;
}
.request-form button:hover { background: #e0b93a; }
.form-result { display: none; background: var(--gold-bg); border: 1px solid var(--gold-500); border-radius: var(--radius); padding: 1em 1.1em; margin: 1em 0; }
.form-result.show { display: block; }

/* Footer */
.site-footer { background: var(--navy-900); color: #cbd5e1; margin-top: 2em; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 2em 1em 5.5em; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5em; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.site-footer a { color: #bfdbfe; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.3em 0; font-size: 0.95rem; }
.site-footer li a { display: inline-block; min-height: 24px; }
.footer-disclosure { font-size: 0.9rem; border-top: 1px solid var(--navy-700); margin-top: 1.5em; padding-top: 1.2em; }
.footer-bottom { font-size: 0.88rem; color: #94a3b8; margin-top: 1em; }

/* Mobile call bar */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--gold-500); text-align: center; padding: 0.7em;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.mobile-call-bar a { color: var(--navy-900); font-weight: 800; text-decoration: none; font-size: 1.05rem; display: block; min-height: 48px; line-height: 48px; }
@media (min-width: 760px) {
  .mobile-call-bar { display: none; }
  .footer-inner { padding-bottom: 2em; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.site-header a:focus-visible, .site-header button:focus-visible { outline-color: #f5d76e; }

/* Navigation: Services mega-menu + Service Areas dropdown */
.nav-toggle {
  display: none;
  background: var(--navy-800); color: #fff; border: 1px solid #fff;
  border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer;
  min-height: 48px; padding: 0.5em 1em; margin-left: auto;
}
.nav-item { position: static; display: flex; align-items: stretch; }
.nav-trigger {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: #fff; padding: 0.5em 0.7em; border-radius: 8px; font-size: 0.95rem;
  display: inline-flex; align-items: center; min-height: 48px;
  text-decoration: none;
}
.nav-trigger:hover, .nav-trigger:focus-visible { background: var(--navy-800); color: #fff; }
.nav-trigger::after { content: " \25be"; font-size: 0.8em; margin-left: 0.3em; }
.mega-menu, .dropdown-menu {
  display: none;
  position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  width: min(1020px, calc(100vw - 1.5em));
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.2em 1.4em 1em; z-index: 70;
}
.dropdown-menu { width: min(620px, calc(100vw - 1.5em)); }
.mega-menu { grid-template-columns: repeat(4, 1fr); gap: 0 1.4em; }
.dropdown-menu { grid-template-columns: repeat(2, 1fr); gap: 0 1.4em; }
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { margin: 0; }
.mega-col a {
  display: block; color: var(--navy-800); text-decoration: none;
  font-size: 0.95rem; padding: 0.42em 0.2em; border-radius: 6px;
}
.mega-col a:hover, .mega-col a:focus-visible { background: var(--blue-50); color: var(--navy-900); }
.mega-group {
  font-weight: 800; color: var(--navy-900); font-size: 0.95rem;
  margin: 0 0 0.4em; padding-bottom: 0.35em; border-bottom: 2px solid var(--blue-100);
}
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin: 0.8em 0 0; padding-top: 0.8em; text-align: center; }
.mega-foot a { color: var(--blue-600); font-weight: 700; }
@media (hover: hover) and (min-width: 861px) {
  .has-submenu:hover > .mega-menu, .has-submenu:focus-within > .mega-menu,
  .has-submenu:hover > .dropdown-menu, .has-submenu:focus-within > .dropdown-menu { display: grid; }
}
.has-submenu.open > .mega-menu, .has-submenu.open > .dropdown-menu { display: grid; }

/* Mobile / narrow navigation */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-inner { gap: 0.6em; }
  .main-nav {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; order: 3; gap: 0;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav > a, .main-nav .nav-trigger {
    display: flex; align-items: center; min-height: 48px;
    padding: 0.7em 0.8em; width: 100%; text-align: left;
  }
  .nav-item { display: block; }
  .mega-menu, .dropdown-menu {
    position: static; transform: none; width: 100%;
    grid-template-columns: 1fr; box-shadow: none;
    border: 0; border-radius: 0; padding: 0.4em 0.4em 0.8em 1em;
    background: var(--navy-800);
  }
  .mega-col a { color: #bfdbfe; min-height: 48px; display: flex; align-items: center; padding: 0.5em 0.6em; }
  .mega-col a:hover, .mega-col a:focus-visible { background: var(--navy-700); color: #fff; }
  .mega-group { color: #fff; border-bottom-color: var(--navy-700); margin-top: 0.6em; }
  .mega-foot { border-top-color: var(--navy-700); text-align: left; }
  .mega-foot a { color: #fff; display: inline-flex; min-height: 48px; align-items: center; }
  .header-phone { margin-left: auto; }
}

/* Small screens */
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero img { height: 220px; }
  .page-image img { height: 220px; }
  .header-phone { margin-left: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-card, .btn, .btn-outline, .site-header, .header-phone { transition: none !important; }
}
