/* ==========================================================================
   FireProtectionNearMe — Design System v2 "Code Red"
   Modern compliance-tech aesthetic: ink + ember gradient on warm paper.
   Rewritten from scratch against the existing class contract (index, service,
   location, tool pages + directory.js/script.js generated markup).
   Bump styles.css?v=N in site_config.py when editing this file.
   ========================================================================== */

/* --- Design tokens --- */
:root {
  /* Ink & neutrals (warm-tinted slate) */
  --ink-950: #0b0f1a;
  --ink-900: #111827;
  --ink-800: #1c2434;
  --ink-700: #2b3446;
  --slate-50: #fafaf8;
  --slate-100: #f4f4f1;
  --slate-200: #e6e6e1;
  --slate-300: #cfcfc9;
  --slate-400: #9c9c96;
  --slate-500: #71716c;
  --slate-600: #55554f;
  --slate-700: #3d3d38;
  --slate-800: #26262a;
  --slate-900: #16161a;
  --brand-950: var(--ink-950);

  /* Fire brand ramp — legacy --blue-* names kept for the JS class contract;
     values are the brand palette. */
  --blue-100: #fee9e5;
  --blue-500: #f04438;
  --blue-600: #d92d20;
  --blue-700: #b42318;
  --blue-800: #912018;
  --blue-900: #7a271a;
  --ember-500: #f76b15;
  --ember-400: #fb923c;
  --amber-400: #f79009;
  --gradient-fire: linear-gradient(135deg, #d92d20 0%, #f76b15 100%);
  --gradient-fire-soft: linear-gradient(135deg, rgba(217,45,32,0.08), rgba(247,107,21,0.08));

  --rose-100: #fee9e5;
  --rose-600: #d92d20;
  --rose-700: #b42318;
  --green-600: #079455;

  /* Icon tiles */
  --icon-bg-blue: #e0efff;   --icon-color-blue: #1570ef;
  --icon-bg-red: #fee9e5;    --icon-color-red: #d92d20;
  --icon-bg-green: #d9f3e5;  --icon-color-green: #079455;
  --icon-bg-purple: #efe4ff; --icon-color-purple: #7a5af8;
  --icon-bg-cyan: #d8f4f9;   --icon-color-cyan: #0e7d95;
  --icon-bg-orange: #ffe9d8; --icon-color-orange: #ec4a0a;
  --icon-bg-amber: #fef0c7;  --icon-color-amber: #dc6803;
  --icon-bg-yellow: #fef7c3; --icon-color-yellow: #ca8504;

  /* Type */
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow-md: 0 4px 10px -2px rgb(16 24 40 / 0.08), 0 2px 4px -2px rgb(16 24 40 / 0.05);
  --shadow-lg: 0 14px 30px -8px rgb(16 24 40 / 0.14), 0 4px 10px -4px rgb(16 24 40 / 0.06);
  --shadow-glow: 0 8px 24px -6px rgb(217 45 32 / 0.35);

  --ring: 0 0 0 4px rgb(247 107 21 / 0.18);
}

/* --- Reset & base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--ink-900);
}

body {
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-950);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { color: var(--slate-600); }

a { color: var(--blue-600); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--blue-700); }

img { max-width: 100%; display: block; }

ul { color: var(--slate-600); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.hidden { display: none; }
.mt-xl { margin-top: 28px; }

::selection { background: rgba(247, 107, 21, 0.25); }

/* Focus visibility */
:focus-visible { outline: 2px solid var(--ember-500); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-fire);
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgb(217 45 32 / 0.45);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--ink-900) !important;
  border: 1.5px solid var(--slate-300);
}
.btn-secondary:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Navbar — glass, solidifies on scroll
   ========================================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.navbar.scrolled {
  background: rgba(250, 250, 248, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 550;
  font-size: 0.93rem;
  color: var(--ink-800);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-link:hover { background: var(--slate-100); color: var(--ink-950); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-primary { padding: 10px 20px; font-size: 0.9rem; }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-800);
  transition: background 0.15s ease;
}
.dropdown-item:hover { background: var(--slate-100); color: var(--ink-950); }
.dropdown-icon { flex-shrink: 0; }
.dropdown-divider { height: 1px; background: var(--slate-200); margin: 8px 6px; }
.dropdown-view-all { color: var(--blue-600); font-weight: 600; }
.dropdown-view-all:hover { background: var(--gradient-fire-soft); color: var(--blue-700); }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero — deep ink with ember glow + technical grid
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(247, 107, 21, 0.22), transparent 62%),
    radial-gradient(700px 380px at 12% 112%, rgba(217, 45, 32, 0.16), transparent 60%),
    var(--ink-950);
  color: #fff;
  padding: 168px 24px 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fecaaa;
  background: rgba(247, 107, 21, 0.12);
  border: 1px solid rgba(247, 107, 21, 0.35);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 26px;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ember-400);
  box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(251, 146, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); }
}

.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* Search */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px;
  border-radius: calc(var(--radius-md) + 8px);
  backdrop-filter: blur(6px);
}
.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--slate-400);
  pointer-events: none;
}
.search-input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-950);
  background: #fff;
  border: none;
  border-radius: var(--radius-md);
}
.search-input-wrapper input:focus { outline: none; box-shadow: var(--ring); }
.search-btn { height: 52px; padding: 0 28px; font-size: 1rem; }

.hero-links {
  margin-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}
.hero-links a { color: rgba(255, 255, 255, 0.82); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 1px; }
.hero-links a:hover { color: #fff; border-color: var(--ember-400); }
.hero-links .divider { margin: 0 12px; }

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}
.trust-item svg { color: var(--ember-400); flex-shrink: 0; }

/* ==========================================================================
   Social proof bar — ink continuation
   ========================================================================== */
.social-proof-bar {
  background: var(--ink-900);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 0;
}
.proof-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 0;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 44px;
  text-align: center;
}
.proof-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 30%, var(--ember-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}
.proof-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.1); }

/* ==========================================================================
   Sections
   ========================================================================== */
section { position: relative; }

.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header.text-center { margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

.how-it-works { padding: 88px 0; }
.how-it-works + .how-it-works { padding-top: 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 45, 32, 0.25);
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.94rem; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--gradient-fire);
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 18px;
}

/* ==========================================================================
   Services bento
   ========================================================================== */
.services { padding: 88px 0; background: var(--slate-100); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-fire);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.bento-card:hover::after { opacity: 1; }
.bento-card h3 { margin: 16px 0 8px; }
.bento-card p { font-size: 0.92rem; }
.bento-card.wide { grid-column: span 2; }

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 14px;
}
.icon-wrapper.blue { background-color: var(--icon-bg-blue); color: var(--icon-color-blue); }
.icon-wrapper.red { background-color: var(--icon-bg-red); color: var(--icon-color-red); }
.icon-wrapper.green { background-color: var(--icon-bg-green); color: var(--icon-color-green); }
.icon-wrapper.purple { background-color: var(--icon-bg-purple); color: var(--icon-color-purple); }
.icon-wrapper.cyan { background-color: var(--icon-bg-cyan); color: var(--icon-color-cyan); }
.icon-wrapper.orange { background-color: var(--icon-bg-orange); color: var(--icon-color-orange); }
.icon-wrapper.amber { background-color: var(--icon-bg-amber); color: var(--icon-color-amber); }
.icon-wrapper.yellow { background-color: var(--icon-bg-yellow); color: var(--icon-color-yellow); }

.bento-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--slate-500);
  background: var(--slate-100);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bento-card:hover .bento-arrow {
  background: var(--gradient-fire);
  color: #fff;
  transform: translateX(3px);
}

/* ==========================================================================
   CTA (join) section — ember panel
   ========================================================================== */
.cta-section { padding: 88px 0; }

.container-cta {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(247, 107, 21, 0.28), transparent 60%),
    var(--ink-950);
  border-radius: var(--radius-xl);
  color: #fff;
  overflow: hidden;
}
@media (max-width: 1248px) { .container-cta { margin: 0 24px; } }

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ember-400);
  background: rgba(247, 107, 21, 0.12);
  border: 1px solid rgba(247, 107, 21, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.cta-content h2 { color: #fff; margin-bottom: 14px; }
.cta-content p { color: rgba(255, 255, 255, 0.7); margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-section .btn-secondary { color: #fff !important; border-color: rgba(255, 255, 255, 0.3); }
.cta-section .btn-secondary:hover { border-color: #fff; }

/* Notification mockup */
.cta-image { display: flex; justify-content: center; }
.notification-mockup {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.notif-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.notif-icon { font-size: 1.4rem; }
.notif-text { display: flex; flex-direction: column; gap: 2px; }
.notif-text strong { color: #fff; font-size: 0.95rem; }
.notif-text span { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }
.notif-skeleton {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}
.notif-skeleton.short { width: 60%; }
.notif-btn {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--gradient-fire);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { padding: 88px 0; background: var(--slate-100); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.active { border-color: rgba(217, 45, 32, 0.3); box-shadow: var(--shadow-md); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-900);
  background: transparent;
  border: none;
  padding: 18px 22px;
  cursor: pointer;
}
.faq-icon { flex-shrink: 0; color: var(--slate-400); transition: transform 0.25s ease, color 0.2s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--blue-600); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.active .faq-answer { max-height: 500px; padding: 0 22px 20px; }
.faq-answer p { font-size: 0.93rem; }

/* ==========================================================================
   Footer — ink
   ========================================================================== */
.footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
  margin-top: 88px;
}
.services + .footer, .faq-section + .footer { margin-top: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand .logo-footer .logo-img {
  height: 30px;
}
.footer-slogan { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin-top: 18px; max-width: 320px; }

.footer-links h3, .footer-contact h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}
.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a, .footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--ember-400); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}
.bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; }
.legal-links { display: flex; gap: 22px; }
.legal-links a { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.legal-links a:hover { color: #fff; }

/* ==========================================================================
   Directory / Browse app (directory.js generated markup)
   ========================================================================== */
#browse-app { min-height: 55vh; padding-top: 72px; }

.browse-hero {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(247, 107, 21, 0.18), transparent 60%),
    var(--ink-950);
  color: #fff;
  padding: 72px 24px 56px;
  text-align: center;
}
.browse-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.browse-title .text-blue {
  background: linear-gradient(120deg, var(--ember-400), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.browse-subtitle { color: rgba(255, 255, 255, 0.65); max-width: 640px; margin: 14px auto 0; }

.browse-container, .browse-content { max-width: var(--container-max); margin: 0 auto; padding: 40px 24px; }

.breadcrumbs { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--slate-500); }
.breadcrumbs a:hover { color: var(--blue-600); }
.separator { color: var(--slate-300); }

.search-bar-wrapper { max-width: 560px; margin: 24px auto 0; }
.state-search-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink-950);
}
.state-search-input:focus { outline: none; border-color: var(--ember-500); box-shadow: var(--ring); }

/* State grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.state-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.state-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(217, 45, 32, 0.25); }
.state-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.state-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 10px;
}
.state-name { font-weight: 650; color: var(--ink-900); }
.city-count, .city-link { font-size: 0.87rem; color: var(--slate-500); }
.city-list { list-style: none; margin-top: 8px; }
.city-list li { margin-bottom: 6px; }
.city-name { font-weight: 600; color: var(--ink-900); }
.more-cities { font-size: 0.85rem; color: var(--blue-600); font-weight: 550; }
.browse-providers-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; margin-top: 8px; }
.browse-stats { display: flex; justify-content: center; gap: 36px; margin-top: 26px; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.stat-item strong { color: #fff; }

/* Provider cards */
.provider-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.provider-card-h, .no-results-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.provider-card-h:hover { box-shadow: var(--shadow-lg); border-color: rgba(217, 45, 32, 0.22); }
.provider-header { display: flex; gap: 16px; align-items: flex-start; }
.provider-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--gradient-fire);
  border-radius: 14px;
}
.provider-name { font-size: 1.12rem; margin-bottom: 2px; }
.provider-address, .provider-bio, .provider-desc { font-size: 0.9rem; color: var(--slate-500); }
.provider-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.rating-val { font-weight: 700; color: var(--ink-900); }
.review-count { color: var(--slate-400); }
.star-icon { color: var(--amber-400); }
.years-biz { font-size: 0.85rem; color: var(--slate-500); }
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-600);
  background: #d9f3e5;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.provider-trust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.trust-divider { width: 1px; height: 14px; background: var(--slate-200); }
.provider-services, .provider-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-tag, .tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.tag-more { font-size: 0.78rem; color: var(--slate-400); align-self: center; }
.provider-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.view-profile-link { font-weight: 600; }
.no-results-card { text-align: center; padding: 48px; color: var(--slate-500); }

/* Split layout + map (Phase 2 — maps disabled) */
.split-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.map-column { position: relative; }
.sticky-map { position: sticky; top: 96px; border-radius: var(--radius-lg); overflow: hidden; }
.us-map-container, .map-placeholder {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 0.9rem;
}
.map-header, .map-title { font-weight: 650; color: var(--ink-900); }
.map-legend { display: flex; gap: 14px; align-items: center; margin-top: 10px; font-size: 0.8rem; color: var(--slate-500); }
.legend-swatches { display: flex; gap: 4px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--blue-100); }
.legend-text { font-size: 0.8rem; }
.city-hero { padding: 48px 24px; }
.city-content { max-width: var(--container-max); margin: 0 auto; }
.section-divider { height: 1px; background: var(--slate-200); margin: 32px 0; }

/* Utility classes emitted by directory.js (Tailwind-ish) */
.text-blue { color: var(--blue-600); }
.text-blue-600 { color: var(--blue-600); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.mt-8 { margin-top: 32px; }
.my-8 { margin-top: 32px; margin-bottom: 32px; }
.mr-3 { margin-right: 12px; }
.-ml-1 { margin-left: -4px; }
.h-5 { height: 20px; }
.w-5 { width: 20px; }
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rating { display: inline-flex; align-items: center; gap: 4px; }

/* ==========================================================================
   Tool pages (shared with inline per-page styles)
   ========================================================================== */
.tool-panel input[type="month"],
.tool-panel input[type="number"],
.tool-panel select {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.tool-panel input:focus, .tool-panel select:focus {
  outline: none;
  border-color: var(--ember-500) !important;
  box-shadow: var(--ring);
}
.check-row { transition: border-color 0.15s ease, background 0.15s ease; }
.check-row:has(input:checked) {
  border-color: rgba(217, 45, 32, 0.4) !important;
  background: var(--gradient-fire-soft) !important;
}
.check-row input { accent-color: var(--blue-600); width: 16px; height: 16px; }

/* ==========================================================================
   Generic main content (about/contact/legal/service pages)
   ========================================================================== */
main.container h2 { margin-top: 8px; }
main.container table { font-size: 0.93rem; color: var(--slate-600); }
main.container table th { font-family: var(--font-body); font-weight: 650; color: var(--ink-900); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container-cta { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-image { order: -1; }
  .split-layout { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px 24px;
    display: none;
  }
  .nav-links.active { display: flex; }
  .nav-link { padding: 13px 14px; font-size: 1rem; justify-content: space-between; }
  .mobile-menu-btn { display: flex; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--slate-100);
    min-width: 0;
    display: none;
    margin-top: 4px;
  }
  .dropdown.active .dropdown-menu,
  .dropdown:focus-within .dropdown-menu { display: block; visibility: visible; }

  .hero { padding: 140px 20px 72px; }
  .search-form { flex-direction: column; }
  .search-btn { width: 100%; }
  .proof-divider { display: none; }
  .proof-stat { padding: 0 20px; flex-basis: 40%; }
  .how-it-works, .services, .faq-section, .cta-section { padding: 60px 0; }
  .container-cta { margin: 0 16px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bottom-flex { flex-direction: column; text-align: center; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 0.82rem; }
  .logo-img { height: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        