/* ============================================================
   STANTON PLUMBING PROS — styles.css
   Design: GRID COMMAND (Design 4)
   Primary #475569 (Pacific Slate) | Accent #DC2626 (Emergency Red)
   v2.3 build — StantonCAPlumbingPros.com
   ============================================================ */

/* === VARIABLES === */
:root {
  --primary:      #475569;
  --primary-dark: #334155;
  --accent:       #DC2626;
  --accent-dark:  #B91C1C;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --bg:           #f8fafc;
  --bg-white:     #ffffff;
  --border:       #e5e7eb;
  --border-mid:   #cbd5e1;
  --max-w:        1200px;
  --radius:       6px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, figure { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === BASE === */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700; z-index: 9999; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* === SITE HEADER — Design 4: slate background === */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.nav-logo {
  font-size: 1.0625rem; font-weight: 700;
  color: #fff; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: -0.01em;
  margin-right: 0.75rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.875rem;
  color: #e2e8f0; font-size: 0.875rem; font-weight: 500;
  text-decoration: none; border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap; min-height: 44px;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links > li > a:focus-visible,
.nav-links > li > button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-links > li > a.active { color: #fff; background: rgba(255,255,255,0.12); }

/* === DROPDOWN MENUS === */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 300; padding: 0.375rem 0;
  display: none;
}
.has-dropdown.open .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block; padding: 0.5625rem 1rem;
  color: var(--text); font-size: 0.875rem; text-decoration: none;
  transition: background 0.1s;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible { background: var(--bg); color: var(--primary); }
.dropdown-divider {
  border-top: 1px solid var(--border);
  margin-top: 0.375rem; padding-top: 0.375rem;
}
.dropdown-divider a { color: var(--accent); font-weight: 700; }

/* === PHONE BUTTON — v2.2 spec: icon + "Call" desktop, icon-only mobile === */
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); text-decoration: none;
  font-weight: 700; min-height: 44px; flex-shrink: 0;
  transition: background 0.15s;
  margin-left: auto;
}
.nav-phone:hover { background: var(--accent-dark); }
.nav-phone-icon { font-size: 1.1rem; }
.nav-phone-label { font-size: 0.9375rem; }

/* === MOBILE NAV TOGGLE === */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 0.5rem; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* === HERO: GRID COMMAND — compact centered, slate header leads === */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.hero-inner h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700; color: var(--primary);
  line-height: 1.2; margin: 0 0 0.875rem;
}
.hero-sub {
  font-size: 1.0625rem; color: var(--text-muted);
  line-height: 1.65; margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex; gap: 0.75rem;
  justify-content: center; flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  text-decoration: none; min-height: 48px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  background: #fff; color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  text-decoration: none; min-height: 48px;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  text-decoration: none; min-height: 48px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* === IMAGE SLOTS — per Section 6b spec === */
.image-slot {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: 0.875rem;
  overflow: hidden; margin: 1.5rem auto;
}
.image-slot span { padding: 1rem; text-align: center; }
.image-slot--hero {
  aspect-ratio: 16/9; max-width: 100%;
  margin: 0; border-radius: 0;
}
.image-slot--body { aspect-ratio: 4/3; max-width: 800px; }
.image-slot--body-wide { aspect-ratio: 3/2; max-width: 800px; }
.image-slot--featured { aspect-ratio: 16/9; max-width: 900px; }
.image-slot--banner { aspect-ratio: 16/9; max-width: 100%; margin: 0; border-radius: 0; }
.image-slot--thumb { aspect-ratio: 1/1; max-width: 200px; margin: 0; border-radius: 0; }
.image-slot--small { aspect-ratio: 3/2; max-width: 400px; }

/* === LAYOUT UTILITIES === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: 3rem 0; }
.section-pad-sm { padding: 2rem 0; }
.section-bg { background: var(--bg); }
.section-white { background: var(--bg-white); }
.section-slate { background: var(--primary); color: #fff; }
.section-divider { border-top: 1px solid var(--border); }
.section-label {
  font-size: 0.6875rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.75rem;
  display: block;
}
.section-slate .section-label { color: #fca5a5; }

/* === HEADINGS IN SECTIONS === */
.section-h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700; color: var(--primary);
  line-height: 1.25; margin: 0 0 1.25rem;
}
.section-slate .section-h2 { color: #fff; }
.section-intro { font-size: 1.0625rem; color: var(--text-muted); max-width: 70ch; }

/* === SERVICES GRID — Design 4: featured top-border red, secondary slate === */
.services-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.services-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem; margin-bottom: 1.5rem;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  text-decoration: none; display: block;
  transition: box-shadow 0.15s, border-color 0.15s;
  color: inherit;
}
.service-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: var(--border-mid);
  border-top-color: inherit;
}
.service-card--featured { border-top-color: var(--accent); }
.service-card h3 {
  font-size: 0.9375rem; font-weight: 700;
  color: var(--primary); margin: 0 0 0.35rem; line-height: 1.3;
}
.service-card p {
  font-size: 0.8125rem; color: var(--text-muted);
  margin: 0; line-height: 1.4;
}
.services-secondary .service-card { padding: 0.75rem 0.875rem; }
.services-secondary .service-card h3 { font-size: 0.8125rem; margin-bottom: 0.2rem; }
.services-secondary .service-card p { font-size: 0.75rem; }
.services-view-all { color: var(--accent); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.services-view-all:hover { text-decoration: underline; }

/* === THREE KEY SERVICES === */
.key-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.key-service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.key-service-card h3 {
  font-size: 1.0625rem; font-weight: 700;
  color: var(--primary); margin: 0 0 0.875rem; line-height: 1.3;
}
.key-service-card p { font-size: 0.9375rem; color: var(--text); margin-bottom: 0.875rem; }
.key-service-card .card-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--accent); font-weight: 700; font-size: 0.875rem;
  text-decoration: none;
}
.key-service-card .card-link:hover { text-decoration: underline; }

/* === SERVICE AREAS === */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.areas-grid h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--primary); margin: 0 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.area-list li { padding: 0.3125rem 0; border-bottom: 1px solid var(--border); }
.area-list li:last-child { border-bottom: none; }
.area-list a {
  color: var(--primary); text-decoration: none; font-size: 0.9375rem;
  transition: color 0.12s;
}
.area-list a:hover { color: var(--accent); }

/* === BLOG PREVIEW CARDS === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  display: block; transition: box-shadow 0.15s;
  color: inherit;
}
.blog-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.blog-card-img {
  aspect-ratio: 16/9; width: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 0.75rem; text-align: center; padding: 0.5rem;
}
.blog-card-body { padding: 0.875rem 1rem; }
.blog-card-cat {
  font-size: 0.6875rem; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.375rem;
}
.blog-card h3 {
  font-size: 0.9375rem; font-weight: 700;
  color: var(--primary); line-height: 1.35; margin: 0;
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  width: 100%; padding: 1rem 1.25rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--primary);
  text-align: left; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 48px; background: var(--bg-white);
  transition: background 0.12s;
}
.faq-question:hover { background: var(--bg); }
.faq-question:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-icon { font-size: 1.375rem; flex-shrink: 0; line-height: 1; transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1rem; display: none; }
.faq-answer.open { display: block; }
.faq-answer p { font-size: 0.9375rem; color: var(--text); line-height: 1.65; }

/* === CTA SECTION === */
.cta-section { text-align: center; }
.cta-section p { margin: 0 auto 1.5rem; max-width: 600px; }
.cta-section .section-h2 { color: #fff; margin-bottom: 0.75rem; }

/* === BREADCRUMB === */
.breadcrumb-bar {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 0.625rem 0;
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap;
  gap: 0.25rem; align-items: center; list-style: none;
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.breadcrumb li { font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.25rem; color: var(--border-mid); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* === SITE FOOTER === */
.site-footer {
  background: #1e293b; color: #e2e8f0;
  padding: 3rem 0 0;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.footer-col h3 {
  font-size: 0.8125rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: #94a3b8; font-size: 0.875rem; text-decoration: none;
  transition: color 0.12s;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.footer-trust { font-size: 0.8125rem; color: #94a3b8; flex: 1; margin: 0; max-width: none; }
.footer-copy { font-size: 0.8125rem; color: #64748b; margin: 0; flex-shrink: 0; }

/* === MOBILE STICKY BOTTOM CTA (every page) === */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--accent); z-index: 999;
  border-top: 2px solid var(--accent-dark);
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  padding: 0.9375rem 1rem;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
}

/* === SERVICE PAGE === */
.page-hero {
  background: var(--primary); color: #fff;
  padding: 2.5rem 0;
}
.page-hero h1 {
  font-size: clamp(1.4375rem, 3.5vw, 2.125rem);
  font-weight: 700; color: #fff; margin: 0 0 0.625rem;
}
.page-hero .page-sub { color: #cbd5e1; font-size: 1rem; margin: 0; }
.page-hero .hero-cta {
  margin-top: 1.25rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.content-body { padding: 2.5rem 0; }
.content-body h2 {
  font-size: 1.375rem; font-weight: 700; color: var(--primary);
  margin: 2.25rem 0 0.875rem;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 {
  font-size: 1.0625rem; font-weight: 700; color: var(--primary);
  margin: 1.5rem 0 0.5rem;
}
.content-body h4 {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  margin: 1.125rem 0 0.375rem;
}
.content-body p { max-width: 70ch; line-height: 1.7; }
.service-inline-cta {
  background: var(--bg); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.service-inline-cta p { margin: 0; font-weight: 600; color: var(--primary); flex: 1; }

/* === LOCATION PAGE === */
.location-banner { background: var(--primary); padding: 2.5rem 0; }
.location-banner h1 {
  color: #fff; font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 700;
  margin: 0 0 0.5rem;
}
.location-banner .loc-sub { color: #cbd5e1; margin: 0; }

/* === BLOG POST === */
.post-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.post-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700; color: var(--primary); margin: 0 0 0.75rem;
}
.post-meta { font-size: 0.875rem; color: var(--text-muted); }
.post-content { padding: 2rem 0; max-width: 70ch; }
.post-content h2 {
  font-size: 1.375rem; font-weight: 700; color: var(--primary);
  margin: 2rem 0 0.75rem;
}
.post-content h3 {
  font-size: 1.125rem; font-weight: 700; color: var(--primary);
  margin: 1.5rem 0 0.5rem;
}

/* === INDEX PAGES (services, locations, blog) === */
.index-hero { background: var(--primary); padding: 2.5rem 0; }
.index-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; margin: 0 0 0.5rem; }
.index-hero p { color: #cbd5e1; margin: 0; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.index-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: block; color: inherit;
  transition: box-shadow 0.15s;
}
.index-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.index-card-img { aspect-ratio: 16/9; width: 100%; background: linear-gradient(135deg,#f3f4f6,#e5e7eb); display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 0.75rem; }
.index-card-body { padding: 1rem 1.125rem; }
.index-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin: 0 0 0.375rem; line-height: 1.3; }
.index-card p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }

/* === STANDARD PAGES (about, contact, privacy) === */
.standard-header { background: var(--primary); padding: 2.5rem 0; }
.standard-header h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0; }
.standard-content { padding: 2.5rem 0; }
.standard-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: 2rem 0 0.75rem; }
.standard-content h2:first-child { margin-top: 0; }
.standard-content h3 { font-size: 1.0625rem; font-weight: 700; color: var(--primary); margin: 1.25rem 0 0.5rem; }
.standard-content p { max-width: 70ch; line-height: 1.7; }

/* === 404 PAGE === */
.page-404 {
  text-align: center; padding: 4rem 1.5rem;
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.page-404 h1 { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 0 0 1rem; }
.page-404 p { color: var(--text-muted); margin: 0 0 1.5rem; max-width: 50ch; }
.quick-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; max-width: 480px; margin: 1.5rem auto; }
.quick-link-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  text-decoration: none; color: var(--primary); font-size: 0.875rem; font-weight: 600;
  transition: background 0.12s;
}
.quick-link-card:hover { background: var(--border); }

/* === COMPARISON TABLE === */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 500px; }
.compare-table th {
  background: var(--primary); color: #fff;
  padding: 0.75rem 1rem; text-align: left; font-weight: 700;
}
.compare-table td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table tr:nth-child(even) td { background: var(--bg); }

/* === FOCUS === */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* === UTILITY === */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.link-accent { color: var(--accent); text-decoration: none; font-weight: 600; }
.link-accent:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 767px) {
  /* Phone button: icon only */
  .nav-phone-label { display: none; }
  .nav-phone { min-width: 44px; padding: 0.625rem; justify-content: center; }
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.nav-open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--primary-dark);
    padding: 0.5rem 0 1rem; z-index: 190;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }
  .nav-links.nav-open > li > a,
  .nav-links.nav-open > li > button {
    border-radius: 0; padding: 0.75rem 1.5rem;
    color: #e2e8f0; width: 100%;
  }
  .has-dropdown.open .dropdown-menu {
    position: static; box-shadow: none; border: none;
    background: rgba(0,0,0,0.2); padding-left: 1.5rem;
  }
  /* Sticky CTA: show on mobile */
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 58px; }
  /* Grids collapse */
  .services-featured { grid-template-columns: 1fr 1fr; }
  .services-secondary { grid-template-columns: 1fr 1fr; }
  .key-services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-inner { padding: 2rem 1rem 1.5rem; }
  .section-pad { padding: 2rem 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .services-featured { grid-template-columns: repeat(2, 1fr); }
  .services-secondary { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .services-featured { grid-template-columns: 1fr; }
  .services-secondary { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .quick-links-grid { grid-template-columns: 1fr; }
}
