/* ==========================================================
   SHARED MENU CSS — Canonical styles for all 401 pages
   Source: homepage index.html (2026-04-10)
   Injected by shared-menu.js to guarantee consistent styling.
   ========================================================== */

/* ===== TOPBAR ===== */
.topbar {
  background: var(--white, #ffffff);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-light, #777);
  border-bottom: 1px solid var(--border, #e0e0e0);
}
.topbar .container { display: flex; justify-content: flex-end; align-items: center; }
.topbar a { color: var(--text-light, #777); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.topbar a:hover { color: var(--green, #1a5c1a); }
.topbar-left { display: flex; gap: 28px; }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: 28px; }
.topbar-right a { font-weight: 800; color: var(--dark, #1a1a1a); font-size: 14px; }

/* ===== HEADER ===== */
.header {
  background: var(--white, #ffffff);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 12px 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .logo { display: flex; align-items: center; gap: 12px; }
.header .logo img { height: 55px; }
.header .logo-text { font-size: 16px; font-weight: 900; color: var(--dark, #1a1a1a); line-height: 1.2; }
.header .logo-text span { display: block; font-size: 11px; font-weight: 600; color: var(--text-light, #777); text-transform: uppercase; letter-spacing: 1px; }
.header-nav-wrap { display: flex; align-items: center; gap: 8px; }
.desktop-nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-item > a {
  color: var(--green, #1a5c1a);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item > a:hover { color: var(--green-hover, #145214); }
.nav-item > a .caret { font-size: 10px; opacity: 0.5; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 100;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--dark, #1a1a1a);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.dropdown a:hover {
  background: #f0faf0;
  color: var(--green, #1a5c1a);
}
.dropdown-label {
  display: block;
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  border-top: 1px solid #eee;
  margin-top: 4px;
}
.dropdown-label:first-child { border-top: none; margin-top: 0; }
.header .btn-book {
  background: var(--green, #1a5c1a);
  color: white;
  padding: 12px 28px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
}
.header .btn-book:hover { background: var(--green-hover, #145214); }

/* ===== MOBILE BAR ===== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}
.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 16px 6px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.3px;
}
.mobile-bar .call-btn { background: white; color: var(--green, #1a5c1a); }
.mobile-bar .book-btn { background: var(--gold, #f5d800); color: var(--dark, #1a1a1a); }
.mobile-bar .chat-btn { background: var(--green, #1a5c1a); color: white; position: relative; padding-top: 22px; }
.mobile-bar .chat-btn::before {
  content: "LIVE";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #cc0000;
  color: white;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 0 rgba(204,0,0,0.8);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(204,0,0,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(204,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(204,0,0,0); }
}
.mobile-brand-strip {
  width: 100%;
  background: var(--green, #1a5c1a);
  color: white;
  text-align: center;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  order: 3;
}
.mascot-wrapper {
  position: absolute;
  top: -36px;
  right: 10px;
}
.mobile-bar-mascot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  animation: mascotBounce 2s ease-in-out infinite;
}
.mascot-bubble {
  position: absolute;
  top: -30px;
  right: -8px;
  background: var(--green, #1a5c1a);
  color: white;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(26,92,26,0.3);
}
.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--green, #1a5c1a);
}
@keyframes mascotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== HAMBURGER ===== */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: 8px; }
.hamburger span { width: 24px; height: 3px; background: var(--green, #1a5c1a); border-radius: 2px; transition: all 0.3s ease; }

/* ===== MEGA MENU ===== */
.mega-menu { position: fixed; top: 0; right: -100%; width: 100%; height: calc(100vh - 110px); background: var(--white, #ffffff); z-index: 9999; transition: right 0.35s ease, visibility 0.35s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; visibility: hidden; }
.mega-menu.open { right: 0; visibility: visible; }
.mega-menu-inner { padding: 20px 24px 40px; }
.mega-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mega-logo img { height: 45px; }
.mega-close { background: none; border: none; font-size: 36px; color: var(--dark, #1a1a1a); cursor: pointer; padding: 0 8px; line-height: 1; }
.mega-ctas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.mega-cta-btn { width: 100%; padding: 16px; text-align: center; border-radius: 8px; font-size: 16px; }
.mega-section-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light, #777); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border, #e0e0e0); }
.mega-services-list { margin-bottom: 28px; }
.mega-service-group { margin-bottom: 8px; }
.mega-service-card { display: flex; align-items: center; background: var(--light, #f5f6f8); border-radius: 10px; overflow: hidden; text-decoration: none; cursor: pointer; transition: background 0.2s ease; }
.mega-service-card:hover { background: #eaeaea; }
.mega-service-card img { width: 70px; height: 70px; object-fit: cover; flex-shrink: 0; }
.mega-service-info { padding: 10px 12px; flex: 1; }
.mega-service-info strong { display: block; font-size: 14px; font-weight: 800; color: var(--dark, #1a1a1a); margin-bottom: 2px; }
.mega-service-info span { font-size: 11px; color: var(--green, #1a5c1a); font-weight: 700; }
.mega-arrow { font-size: 24px; color: var(--text-light, #777); padding-right: 14px; transition: transform 0.3s ease; font-weight: 300; }
.mega-service-group.open .mega-arrow { transform: rotate(90deg); color: var(--green, #1a5c1a); }
.mega-submenu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: var(--white, #ffffff); border-left: 3px solid var(--green, #1a5c1a); margin-left: 16px; border-radius: 0 0 8px 8px; }
.mega-service-group.open .mega-submenu { max-height: 500px; }
.mega-submenu a { display: block; padding: 12px 16px; color: var(--dark, #1a1a1a); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--border, #e0e0e0); text-decoration: none; }
.mega-submenu a:last-child { border-bottom: none; }
.mega-submenu a:hover { color: var(--green, #1a5c1a); background: var(--green-bg, #edf7ed); }
.mega-sub-blog { color: var(--green, #1a5c1a) !important; font-style: italic; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 28px; }
.mega-links a { padding: 14px 0; color: var(--dark, #1a1a1a); font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border, #e0e0e0); }
.mega-links a:hover { color: var(--green, #1a5c1a); }
.mega-bottom { margin-top: 20px; }
.mega-trust-bar { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mega-trust-bar span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light, #777); }
.mega-ads-slider { border-radius: 12px; overflow: hidden; position: relative; }
.mega-ads-track { display: flex; transition: transform 0.4s ease; }
.mega-ad-slide { min-width: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 20px; text-decoration: none; color: white; min-height: 140px; }
.mega-ad-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(26,92,26,0.85), rgba(26,92,26,0.7)); z-index: 1; }
.mega-ad-content { position: relative; z-index: 2; }
.mega-ad-badge { display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 3px; margin-bottom: 8px; }
.mega-ad-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.mega-ad-sub { font-size: 13px; font-weight: 500; opacity: 0.9; margin-bottom: 12px; }
.mega-ad-cta-btn { position: relative; z-index: 2; display: inline-block; background: white; color: var(--dark, #1a1a1a); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 8px 20px; border-radius: 6px; }
.mega-ads-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 4px; }
.mega-ads-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border, #e0e0e0); cursor: pointer; transition: background 0.3s; }
.mega-ads-dot.active { background: var(--green, #1a5c1a); }

/* ===== RESPONSIVE — Menu-related rules only ===== */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .header-nav-wrap { gap: 0; }
  .hamburger { display: flex; }
  .header .logo-text { display: block; font-size: 12px; }
  .header .logo-text span { font-size: 9px; }
}

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  .topbar { display: none; }
}

/* ===== SITE-WIDE MOBILE GRID STACK FIX =====
   Inline 2-col / 3-col grids (style="display:grid;grid-template-columns:1fr 1fr;...")
   don't stack on narrow viewports because inline style has no media query.
   This forces any inline 1fr-pattern grid to collapse to a single column on mobile,
   preventing card cutoff like we saw on /ac-maintenance-miami-fl/ (2026-04-16).
   Scoped narrowly to inline grids only — will not override CSS-class-based layouts. */
@media (max-width: 640px) {
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 2fr"],
  div[style*="grid-template-columns: 1fr 2fr"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:repeat(2"],
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}
