/* ============================================================
   UNIVERSAL PLYMOUTH ORTHODONTICS HEADER — ISOLATED MODULE
   All classes prefixed with .po-* to prevent collisions
============================================================ */

/* --- Container --- */
.po-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--primary, #18468B);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  box-shadow: 0 6px 18px rgba(24,70,139,0.25);
  z-index: 9999;
}

.po-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Logo --- */
.po-logo img {
  height: 58px;
  width: auto;
}

/* --- Desktop Nav --- */
.po-primary-nav {
  display: flex;
  gap: 28px;
  justify-self: end;
}

.po-nav-item {
  position: relative;
}

.po-top-link {
  padding: 6px 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.po-top-link:hover {
  color: var(--accent, #66C4EA);
}

/* Dropdown */
.po-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--primary, #18468B);
  padding: 14px;
  min-width: 240px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.po-dropdown a {
  color: #fff;
  padding: 6px 8px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.po-dropdown a:hover {
  background: rgba(255,255,255,0.15);
}

.po-has-dropdown:hover .po-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* --- Header Right Side: Call + Burger --- */
.po-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Call Button */
.po-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.po-call-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.85));
}

/* Burger Button */
.po-burger-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.po-burger-icon,
.po-burger-icon::before,
.po-burger-icon::after {
  content: "";
  width: 22px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  display: block;
  transition: .25s ease;
}

.po-burger-icon::before { transform: translateY(-7px); }
.po-burger-icon::after  { transform: translateY(4px); }

/* Burger open state */
.po-burger-btn.open .po-burger-icon {
  background: transparent;
}
.po-burger-btn.open .po-burger-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.po-burger-btn.open .po-burger-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Drawer --- */
.po-mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--primary, #18468B);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 8px 22px rgba(24,70,139,0.35);
  padding: 18px;
  display: none;
  transform: translateY(-10px);
  opacity: 0;
  transition: 0.35s ease;
  z-index: 9998;
}

.po-mobile-drawer.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 2-COLUMN GRID */
.po-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.po-mobile-drawer a {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

.po-mobile-drawer a:hover {
  background: rgba(255,255,255,0.28);
}

/* --- Responsive Rules --- */
@media (max-width: 900px) {

  /* Hide desktop nav */
  .po-primary-nav {
    display: none;
  }

  /* Collapse grid: Logo left, Actions right */
  .po-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  /* Push phone + burger to the far right */
  .po-header-actions {
    justify-self: end;
  }

  /* Slightly shrink logo for smaller phones */
  .po-logo img {
    height: 50px;
  }
}
/* --- Force-hide burger on desktop --- */
@media (min-width: 900px) {
  .po-burger-btn {
    display: none !important;
  }
}

