/* =====================================================
   TEETH WHITENINGS – GLOBAL SHELL (HEADER/FOOTER)
   Keeps nav + footer consistent across pages
===================================================== */

:root{
  --tw-primary:#4da3ff;
  --tw-primary-2:#2563eb;
  --tw-dark:#0f172a;
  --tw-muted:#64748b;
  --tw-light:#f8fafc;
  --tw-border:#e5e7eb;
}

/* Header */
#navbar{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

#navbar .navbar{
  background: transparent !important;
}

#navbar .navbar-brand img{
  max-height: 60px;
  width: auto;
}

/* Smaller screens: keep header compact */
@media (max-width: 576px){
  #navbar .navbar-brand img{
    max-height: 52px;
  }
}

#navbar .nav-link{
  font-weight: 700;
  color: var(--tw-dark) !important;
  opacity: .9;
}

#navbar .nav-link:hover,
#navbar .nav-link.active{
  color: var(--tw-primary-2) !important;
  opacity: 1;
}

#navbar .dropdown-menu{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 25px 60px rgba(15,23,42,.14);
  padding: 8px;
  min-width: 210px;
  max-width: 260px;
  width: auto;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important; /* prevents the always-on scrollbars from intlInputPhone.css */
}

#navbar .dropdown-item{
  border-radius: 10px;
  font-weight: 650;
  padding: 10px 14px;
  white-space: nowrap;
  max-width: calc(100vw - 48px);
  margin: 2px 6px;
  width: calc(100% - 12px);
  text-align: left;
  display: block;
}

/* Navbar buttons: smaller so the menu doesn't overflow */
#navbar .tw-btn-primary,
#navbar .tw-btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.1;
}

@media (max-width: 576px){
  #navbar .tw-btn-primary,
  #navbar .tw-btn-secondary{
    padding: 9px 14px;
    font-size: 13px;
  }
}

#navbar .dropdown-item:hover{
  background: rgba(77,163,255,.12);
}

#navbar .dropdown-item:focus,
#navbar .dropdown-item:active,
#navbar .dropdown-item.active{
  border-radius: 12px;
  outline: none;
  box-shadow: none;
}

#navbar .dropdown-item:active,
#navbar .dropdown-item.active{
  background: rgba(37,99,235,.14);
  color: var(--tw-primary-2) !important;
}

/* Footer */
.footer-dark{
  background: var(--tw-dark);
  color: #cbd5e1;
}

.tw-footer{
  padding: 72px 0;
}

.tw-footer-top{
  padding-bottom: 22px;
}

.tw-footer-bottom{
  padding-top: 10px;
}

.footer-dark a{
  color: #e2e8f0;
  text-decoration: none;
}

.footer-dark a:hover{
  color: #ffffff;
}

.tw-footer-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 26px;
}

.tw-footer-card--brand{
  padding: 30px;
}

.tw-footer-title{
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
}

.tw-footer-small{
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.tw-footer-links{
  display: grid;
  gap: 10px;
}

.tw-footer-links a{
  display: inline-block;
  padding: 6px 0;
}

.tw-footer-faqs{
  display: grid;
  gap: 10px;
}

.tw-faq{
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
  margin-top: 12px;
}

.tw-faq summary{
  cursor: pointer;
  font-weight: 800;
  color: #ffffff;
  list-style: none;
}

.tw-faq summary::-webkit-details-marker{ display:none; }

.tw-faq p{
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

/* Locations grid inside footer */
.footer-location-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.footer-location-card{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.footer-location-card:hover{
  background: var(--tw-primary-2);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 991.98px){
  .tw-footer{ padding: 56px 0; }
}

@media (max-width: 576px){
  .tw-footer-card{ padding: 20px; }
  .footer-location-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: better tap targets */
@media (max-width: 991.98px){
  #navbar .navbar-nav{ padding-top: 10px; }
  #navbar .nav-link{ padding: 10px 0; }
}
