/* ============================================================
   SMILE CRAFT — PREMIUM MOBILE NAV
   Add this block to the bottom of style.css
   (replaces the old .mfn floating nav styles entirely)
   ============================================================ */

/* ── Hamburger button — animated 3-bar morph ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--transition);
  position: relative;
  z-index: 9100;
}
.hamburger:hover { background: var(--mint-light); }

.hamburger-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.25s ease,
              width     0.3s ease;
  transform-origin: center;
}
.hamburger-bar--top    { width: 22px; }
.hamburger-bar--mid    { width: 16px; }
.hamburger-bar--bot    { width: 22px; }

/* X state */
.hamburger.is-open .hamburger-bar--top { transform: translateY(7px) rotate(45deg); width: 22px; }
.hamburger.is-open .hamburger-bar--mid { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger-bar--bot { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* ── Overlay backdrop ── */
.pmn-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 25, 32, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 8900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pmn-backdrop.is-open { opacity: 1; visibility: visible; }

/* ── Drawer panel ── */
.pmn-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(88vw, 22rem);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;

  /* Deep teal background */
  background: linear-gradient(160deg, #0a1f28 0%, #0d2e3a 40%, #0d4a40 100%);
}
.pmn-drawer.is-open { transform: translateX(0); }

/* ── Decorative circles behind content ── */
.pmn-drawer::before {
  content: '';
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.18) 0%, transparent 70%);
  bottom: -6rem;
  right: -6rem;
  pointer-events: none;
}
.pmn-drawer::after {
  content: '';
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.1) 0%, transparent 70%);
  top: -3rem;
  left: -3rem;
  pointer-events: none;
}

/* ── Drawer header ── */
.pmn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 1;
}

.pmn-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.pmn-logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  background: var(--mint);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 14px rgba(45,212,191,.45);
}
.pmn-logo-mark .material-icons { font-size: 1.1rem !important; }
.pmn-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}
.pmn-logo-text span { color: var(--mint); }

.pmn-close {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pmn-close:hover { background: rgba(255,255,255,.16); color: white; }
.pmn-close .material-icons { font-size: 1.1rem !important; }

/* ── Scrollable body ── */
.pmn-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;

  /* Hide scrollbar */
  scrollbar-width: none;
}
.pmn-body::-webkit-scrollbar { display: none; }

/* ── Nav links ── */
.pmn-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.pmn-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,.65);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.22s ease;
  border: 1px solid transparent;

  /* staggered entrance animation */
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.pmn-drawer.is-open .pmn-nav-link { opacity: 1; transform: translateX(0); }
.pmn-drawer.is-open .pmn-nav-link:nth-child(1) { transition-delay: 0.08s; }
.pmn-drawer.is-open .pmn-nav-link:nth-child(2) { transition-delay: 0.13s; }
.pmn-drawer.is-open .pmn-nav-link:nth-child(3) { transition-delay: 0.18s; }
.pmn-drawer.is-open .pmn-nav-link:nth-child(4) { transition-delay: 0.23s; }
.pmn-drawer.is-open .pmn-nav-link:nth-child(5) { transition-delay: 0.28s; }

.pmn-nav-link:hover {
  background: rgba(255,255,255,.07);
  color: white;
  border-color: rgba(45,212,191,.2);
}
.pmn-nav-link.active {
  background: rgba(45,212,191,.12);
  color: var(--mint);
  border-color: rgba(45,212,191,.25);
}

.pmn-nav-arrow {
  width: 1.6rem;
  height: 1.6rem;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, background 0.22s ease;
  flex-shrink: 0;
}
.pmn-nav-link:hover .pmn-nav-arrow { background: rgba(45,212,191,.15); transform: translateX(3px); }
.pmn-nav-link.active .pmn-nav-arrow { background: rgba(45,212,191,.2); }
.pmn-nav-arrow .material-icons { font-size: 0.8rem !important; color: rgba(255,255,255,.5); }
.pmn-nav-link.active .pmn-nav-arrow .material-icons { color: var(--mint); }

/* ── Section label ── */
.pmn-section-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 0 0.25rem;
  margin-bottom: 0.5rem;
}

/* ── Branch cards ── */
.pmn-branches { display: flex; flex-direction: column; gap: 0.75rem; }

.pmn-branch-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: all 0.25s ease;

  /* staggered entrance */
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pmn-drawer.is-open .pmn-branch-card { opacity: 1; transform: translateX(0); }
.pmn-drawer.is-open .pmn-branch-card:nth-child(1) { transition-delay: 0.3s; }
.pmn-drawer.is-open .pmn-branch-card:nth-child(2) { transition-delay: 0.38s; }

.pmn-branch-card:hover {
  background: rgba(45,212,191,.1);
  border-color: rgba(45,212,191,.3);
  box-shadow: 0 4px 20px rgba(45,212,191,.1);
}

.pmn-branch-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: rgba(45,212,191,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.22s ease;
}
.pmn-branch-card:hover .pmn-branch-icon { background: rgba(45,212,191,.22); }
.pmn-branch-icon .material-icons { font-size: 1.1rem !important; color: var(--mint); }

.pmn-branch-info { flex: 1; min-width: 0; }
.pmn-branch-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pmn-branch-addr {
  font-size: 0.72rem;
  color: rgba(255,255,255,.4);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmn-branch-chevron .material-icons { font-size: 0.9rem !important; color: rgba(255,255,255,.25); }

/* ── CTA button ── */
.pmn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--mint-dark) 0%, var(--mint) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(45,212,191,.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.42s, transform 0.4s ease 0.42s,
              box-shadow 0.22s ease;
}
.pmn-drawer.is-open .pmn-cta { opacity: 1; transform: translateY(0); }
.pmn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(45,212,191,.5); }
.pmn-cta .material-icons { font-size: 1rem !important; }

/* ── Footer contact strip ── */
.pmn-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}
.pmn-drawer.is-open .pmn-footer { opacity: 1; transform: translateY(0); }

.pmn-footer-contact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255,255,255,.45);
  font-size: 0.8rem;
  font-weight: 500;
}
.pmn-footer-contact .material-icons { font-size: 0.95rem !important; color: var(--mint); flex-shrink: 0; }

.pmn-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.pmn-social {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pmn-social:hover { background: rgba(45,212,191,.2); border-color: rgba(45,212,191,.35); color: var(--mint); }
.pmn-social .material-icons { font-size: 0.9rem !important; }

/* ── Hide old mobile nav completely ── */
.mfn { display: none !important; }

/* ── Only show hamburger on mobile ── */
@media (min-width: 1024px) {
  .hamburger    { display: none; }
  .pmn-drawer   { display: none !important; }
  .pmn-backdrop { display: none !important; }
}
@media (max-width: 1023px) {
  .mobile-menu-btn { display: none !important; } /* hide old hamburger */
  body { padding-bottom: 0 !important; }         /* remove old bottom padding */
}