/* Mi Smile Family Dental — Emergency cluster shared styles */
/* Extracted from inline <style> blocks for clean reuse across 12 pages */

.icon{width:1em;height:1em;vertical-align:-0.125em;fill:currentColor;display:inline-block;overflow:visible}

.icon{width:1em;height:1em;vertical-align:-0.125em;fill:currentColor;display:inline-block;overflow:visible}

/* ═══════════════════════════════════════════════════════
   MEGA-MENU NAV — Mi Smile Family Dental
   Desktop: hover mega-panel with 5 service groups
   Mobile:  hamburger → full-screen panel, groups accordion
   ═══════════════════════════════════════════════════════ */

/* ── Base nav (inherits .main-nav from style.css) ── */
.main-nav { position: sticky; top: 0; z-index: 1000; }

/* ── Top-level items ── */
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  padding: 15px 16px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
  cursor: pointer;
}
.nav-item > a .caret {
  font-size: 9px;
  opacity: .7;
  transition: transform .2s;
}
.nav-item.active > a,
.nav-item > a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── MEGA MENU PANEL ── */
.mega-wrap {
  position: relative;
}
.mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 740px;
  max-width: 90vw;
  background: #fff;
  border-top: 3px solid #9e6dc5;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 24px 28px 20px;
  z-index: 300;
  animation: megaFade .15s ease;
}
@keyframes megaFade { from{opacity:0;transform:translateX(-50%) translateY(-6px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

.mega-wrap:hover > .mega-panel,
.mega-panel:hover { display: flex; gap: 0; }

.mega-col {
  flex: 1;
  padding: 0 18px;
  border-right: 1px solid #f0e8fb;
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { padding-right: 0; border-right: none; }

.mega-col-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9e6dc5;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #ede4f8;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
  color: #333;
}
.mega-link:hover { background: #f5effe; color: #7a4fa3; }
.mega-link i {
  width: 22px;
  text-align: center;
  color: #9e6dc5;
  font-size: 13px;
  flex-shrink: 0;
}
.mega-link span {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.mega-link .badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: #f0e8ff;
  color: #7a4fa3;
  white-space: nowrap;
}
.mega-link .badge.urgent {
  background: #fff1f2;
  color: #7a4fa3;
}

/* ── Mega panel footer ── */
.mega-footer {
  border-top: 1px solid #ede4f8;
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mega-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #9e6dc5;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s;
  text-decoration: none;
}
.mega-footer-cta:hover { background: #7a4fa3; color: #fff; }
.mega-footer-note { font-size: 11px; color: #aaa; }

/* ── Standard small dropdowns (Insurance etc.) ── */
.nav-item.has-drop { position: relative; }
.nav-drop {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: #fff;
  border-top: 3px solid #9e6dc5;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  list-style: none;
  z-index: 200;
  border-radius: 0 0 8px 8px;
}
.nav-item.has-drop:hover > .nav-drop { display: block; }
.nav-drop li a {
  display: block;
  padding: 9px 18px;
  color: #333;
  font-size: 13px;
  border-bottom: 1px solid #f3ecfb;
  transition: background .15s;
  text-decoration: none;
}
.nav-drop li a:hover { background: #f5effe; color: #7a4fa3; }

/* ═══════════════════════════════════════════════════════
   HAMBURGER — MOBILE
   ═══════════════════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  gap: 5px;
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.2); }
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
/* X state */
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.mobile-nav-drawer {
  display: none; /* shown by JS on mobile */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  overflow-y: auto;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
}
.drawer-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 2001;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.drawer-panel.open { transform: translateX(0); }

.drawer-header {
  background: linear-gradient(90deg, #8b5db5, #9e6dc5);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-logo { height: 44px; width: 44px; border-radius: 50%; object-fit: contain; }
.drawer-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.drawer-close:hover { background: rgba(255,255,255,.28); }

/* Drawer links */
.drawer-simple-links {
  padding: 10px 0 0;
  border-bottom: 1px solid #f0e8fb;
}
.drawer-top-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #faf5ff;
  transition: background .15s;
}
.drawer-top-link:hover { background: #f8f3ff; color: #7a4fa3; }
.drawer-top-link i { width: 20px; text-align: center; color: #9e6dc5; font-size: 15px; }

/* Services accordion groups */
.drawer-services-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9e6dc5;
  padding: 14px 20px 8px;
}

.drawer-group {}
.drawer-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  background: #faf5ff;
  border: none;
  border-bottom: 1px solid #ede4f8;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #3d1357;
  text-align: left;
  transition: background .15s;
}
.drawer-group-toggle:hover { background: #f0e4fc; }
.drawer-group-toggle i.toggle-icon {
  color: #9e6dc5;
  font-size: 11px;
  transition: transform .25s;
  flex-shrink: 0;
}
.drawer-group-toggle.open i.toggle-icon { transform: rotate(180deg); }

.drawer-group-links {
  display: none;
  background: #fff;
  border-bottom: 1px solid #ede4f8;
}
.drawer-group-links.open { display: block; }

.drawer-service-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 30px;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #faf5ff;
  transition: background .12s;
}
.drawer-service-link:last-child { border-bottom: none; }
.drawer-service-link:hover { background: #f8f3ff; color: #7a4fa3; }
.drawer-service-link i { width: 18px; text-align: center; color: #b990e0; font-size: 12px; }

/* Drawer footer CTA */
.drawer-footer {
  margin-top: auto;
  padding: 20px;
  background: #f9f4ff;
  border-top: 1px solid #ede4f8;
  flex-shrink: 0;
}
.drawer-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #8b5db5, #9e6dc5);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(158,109,197,.35);
}
.drawer-cta-phone:hover { color: #fff; }
.drawer-cta-note { text-align: center; font-size: 11px; color: #aaa; }

/* ── Nav items spread evenly across full bar width ── */
.nav-ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-evenly;
  align-items: stretch;
}
.nav-item {
  flex: 1;
  display: flex;
  align-items: stretch;
  position: relative;
}
.nav-item > a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media(max-width: 900px) {
  /* Hide desktop nav items, show hamburger */
  .nav-ul { display: none !important; }
  .nav-toggle { display: flex; }
}

/* On very large screens, push mega to edge of nav not viewport */
@media(min-width: 1200px) {
  .mega-panel { min-width: 820px; }
}

/* Emergency nav item — warm red accent against purple bar */
.emerg-nav-item > a {
  background: rgba(220,38,38,.22) !important;
  color: #ffd1d1 !important;
  gap: 7px;
}
.emerg-nav-item > a:hover {
  background: rgba(220,38,38,.38) !important;
  color: #fff !important;
}
.emerg-pulse {
  font-size: 7px;
  color: #ff9999;
  animation: breathe 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@media(max-width:768px){.sticky-cta-mobile{display:flex!important}body{padding-bottom:66px}}

/* ── Concern tile grid ── */
.concern-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;margin-top:8px;}
.concern-tile{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 14px;border-radius:14px;background:linear-gradient(135deg,#f9f3ff,#ffe4e4);border:1.5px solid #fca5a5;text-decoration:none;transition:transform .2s,box-shadow .2s;}
.concern-tile:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(220,38,38,.15);}
.concern-tile-icon{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#dc2626,#ef4444);display:flex;align-items:center;justify-content:center;margin-bottom:10px;flex-shrink:0;}
.concern-tile-icon i{color:#fff;font-size:1.1rem;}
.concern-tile strong{font-size:12.5px;color:#1a1230;margin-bottom:4px;line-height:1.3;display:block;}
.concern-tile span{font-size:11px;color:#6b6b6b;line-height:1.4;}

/* ── ER vs Dentist grid ── */
.er-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;}
.er-col{border-radius:12px;padding:20px;}
.er-col.dentist{background:#f9f3ff;border:2px solid #d9c4f0;}
.er-col.hospital{background:#f9f3ff;border:2px solid #fca5a5;}
.er-col h3{font-size:.88rem;margin:0 0 10px;font-weight:700;}
.er-col.dentist h3{color:#7a4fa3;} .er-col.hospital h3{color:#991b1b;}
.er-col ul{padding-left:16px;margin:0;font-size:12px;line-height:2.2;}
.er-col.dentist ul{color:#7a4fa3;} .er-col.hospital ul{color:#4a1260;}
.er-col p{font-size:11px;margin:10px 0 0;}
.er-col.dentist p{color:#7a4fa3;} .er-col.hospital p{color:#4a1260;}

/* ── What we treat cards ── */
.treat-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0;}
.treat-card{border-radius:12px;padding:20px;}
.treat-card.same-day{background:#f9f3ff;border:2px solid #fca5a5;}
.treat-card.soon{background:#fffbeb;border:2px solid #fde68a;}
.treat-card h3{font-size:.85rem;font-weight:700;margin:0 0 10px;display:flex;align-items:center;gap:8px;}
.treat-card.same-day h3{color:#991b1b;} .treat-card.soon h3{color:#78350f;}
.treat-card p{font-size:12px;color:#555;line-height:1.8;margin:0;}

/* ── Knocked-out tooth callout ── */
.knocked-box{background:#f9f3ff;border:2px solid #d9c4f0;border-radius:14px;padding:22px;margin:24px 0;}
.knocked-box h3{color:#7a4fa3;font-size:.95rem;margin:0 0 10px;font-weight:700;}
.knocked-box ul{font-size:13px;color:#7a4fa3;padding-left:18px;line-height:2.2;margin:0 0 10px;}
.knocked-box p{font-size:11.5px;color:#7a4fa3;margin:0;}

/* ── Warn box ── */
.warn-band{background:#f9f3ff;border:2px solid #fca5a5;border-radius:12px;padding:18px 20px;margin:20px 0;}
.warn-band h3{color:#991b1b;font-size:.9rem;margin:0 0 8px;font-weight:700;}
.warn-band p{font-size:12.5px;color:#4a1260;line-height:1.8;margin:0;}

@media(max-width:768px){
  .er-grid,.treat-grid{grid-template-columns:1fr;}
  .concern-grid{grid-template-columns:repeat(2,1fr);}
}


@media(max-width:375px){
  .hero-warm h1,.page-hero h1{font-size:1.3rem!important;}
  .section-heading{font-size:19px!important;}
  .stat-band{grid-template-columns:1fr 1fr!important;}
  .review-grid{grid-template-columns:1fr!important;}
  .ins-cards{grid-template-columns:1fr!important;}
  .doctor-profile{grid-template-columns:1fr!important;}
  .faq-question{font-size:13px!important;}
}
@media(max-width:480px){
  .doctor-profile{grid-template-columns:1fr!important;}
  .review-grid{grid-template-columns:1fr!important;}
  .ins-cards{grid-template-columns:1fr!important;}
  .step-grid{grid-template-columns:1fr!important;}
  .stat-band{grid-template-columns:repeat(2,1fr)!important;}
  .services-milestone{grid-template-columns:1fr 1fr!important;}
  .timeline-feature{flex-direction:column!important;}
  .tl-step{flex:0 1 100%!important;}
  .pain-stats{flex-direction:column!important;}
  .pain-stat{min-width:0!important;flex:1 1 100%!important;}
  .welcome-ribbon{font-size:.72rem!important;padding:9px 14px!important;}
  .btn-phone-main{font-size:.95rem!important;padding:12px 20px!important;}
}