/**
 * Physio One Kent - Header & Mega Menu Styles
 * Ultra-modern, responsive, high-performance styling
 */

:root {
  --pok-primary: #024DFB;
  --pok-accent: #05C8FC;
  --pok-dark: #070807;
  --pok-text: #1e293b;
  --pok-text-muted: #64748b;
  --pok-bg-light: #f8fafc;
  --pok-border: #e2e8f0;
  --pok-white: #ffffff;
  --pok-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --pok-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --pok-shadow-lg: 0 20px 40px rgba(2, 77, 251, 0.12);
  --pok-font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pok-font-heading: 'Bricolage Grotesque', 'Manrope', sans-serif;
  --pok-radius-sm: 8px;
  --pok-radius-md: 14px;
  --pok-radius-lg: 20px;
  --pok-radius-full: 9999px;
  --pok-header-height: 82px;
}

/* Reset / Scope */
.pok-header-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pok-header-wrapper {
  font-family: var(--pok-font-main);
  background-color: var(--pok-white);
  position: relative;
  width: 100%;
  z-index: 999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Sticky State */
.pok-header-wrapper.pok-is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--pok-shadow-md);
  animation: pokSlideDown 0.35s ease forwards;
}

@keyframes pokSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Header Container */
.pok-header-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--pok-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo Area */
.pok-logo-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pok-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.pok-logo-img {
  height: 52px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.pok-logo-link:hover .pok-logo-img {
  transform: scale(1.02);
}

/* Desktop Navigation */
.pok-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  height: 100%;
}

.pok-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.pok-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pok-text);
  text-decoration: none;
  border-radius: var(--pok-radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.pok-nav-link:hover,
.pok-nav-item:hover > .pok-nav-link,
.pok-nav-item.pok-active > .pok-nav-link {
  color: var(--pok-primary);
  background-color: rgba(2, 77, 251, 0.05);
}

/* Arrow indicator */
.pok-arrow-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.pok-nav-item:hover > .pok-nav-link .pok-arrow-icon {
  transform: rotate(180deg);
}

/* Badge on nav item */
.pok-item-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--pok-radius-full);
  background: linear-gradient(135deg, var(--pok-primary), var(--pok-accent));
  color: #ffffff;
  margin-left: 2px;
  letter-spacing: 0.5px;
}

/* ========================================================
   MEGA MENU DROPDOWN (4 COLUMNS)
   ======================================================== */
.pok-mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(1220px, 95vw);
  background: var(--pok-white);
  border-radius: var(--pok-radius-lg);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--pok-border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1000;
}

/* Top Accent Gradient Line */
.pok-mega-menu-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pok-primary), var(--pok-accent));
}

.pok-nav-item.pok-has-mega:hover .pok-mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.pok-mega-inner {
  padding: 28px 32px 24px 32px;
}

.pok-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Mega Column */
.pok-mega-col {
  display: flex;
  flex-direction: column;
}

.pok-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pok-bg-light);
}

.pok-col-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--pok-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pok-col-icon svg {
  width: 18px;
  height: 18px;
}

.pok-col-1 .pok-col-icon { background: rgba(2, 77, 251, 0.1); color: var(--pok-primary); }
.pok-col-2 .pok-col-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.pok-col-3 .pok-col-icon { background: rgba(5, 200, 252, 0.14); color: #0284c7; }
.pok-col-4 .pok-col-icon { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }

.pok-col-title {
  font-family: var(--pok-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--pok-dark);
  letter-spacing: -0.2px;
  margin: 0;
}

/* Links List in Column */
.pok-mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pok-mega-link-item {
  position: relative;
}

.pok-mega-sublink {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: var(--pok-radius-sm);
  text-decoration: none;
  transition: all 0.18s ease;
  position: relative;
}

.pok-mega-sublink:hover {
  background-color: var(--pok-bg-light);
  transform: translateX(3px);
}

.pok-sublink-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pok-sublink-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pok-text);
  transition: color 0.18s ease;
}

.pok-mega-sublink:hover .pok-sublink-title {
  color: var(--pok-primary);
}

.pok-sublink-desc {
  font-size: 11.5px;
  color: var(--pok-text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* Badge on Sublink */
.pok-hub-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #dbeafe;
  color: #1d4ed8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Bottom Highlight Bar in Mega Menu */
.pok-mega-footer-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--pok-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfcfe;
  margin-left: -32px;
  margin-right: -32px;
  margin-bottom: -24px;
  padding: 14px 32px;
}

.pok-mega-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pok-text);
}

.pok-star-icon {
  color: #f59e0b;
  font-size: 13px;
}

.pok-mega-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--pok-text-muted);
}

.pok-mega-footer-right strong {
  color: var(--pok-dark);
}

.pok-mega-footer-cta {
  font-weight: 700;
  color: var(--pok-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.pok-mega-footer-cta:hover {
  gap: 7px;
  color: var(--pok-accent);
}

/* ========================================================
   AREAS WE SERVE DROPDOWN
   ======================================================== */
.pok-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 290px;
  background: var(--pok-white);
  border-radius: var(--pok-radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--pok-border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.22s ease;
  padding: 12px 10px;
  z-index: 1000;
  list-style: none;
}

.pok-nav-item.pok-has-dropdown:hover .pok-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pok-dropdown-item {
  margin-bottom: 2px;
}

.pok-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--pok-radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pok-text);
  transition: all 0.18s ease;
}

.pok-dropdown-link:hover {
  background-color: var(--pok-bg-light);
  color: var(--pok-primary);
  transform: translateX(4px);
}

.pok-pin-icon {
  width: 16px;
  height: 16px;
  color: var(--pok-accent);
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.pok-dropdown-link:hover .pok-pin-icon {
  color: var(--pok-primary);
}

.pok-dropdown-footer {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--pok-border);
  font-size: 11px;
  color: var(--pok-text-muted);
  text-align: center;
}

/* ========================================================
   HEADER RIGHT ACTIONS (PHONE & CTA)
   ======================================================== */
.pok-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Phone Pill */
.pok-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 14px 6px 6px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--pok-radius-full);
  transition: all 0.22s ease;
}

.pok-phone-pill:hover {
  background-color: #f0f7ff;
  border-color: #bae6fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 77, 251, 0.08);
}

.pok-phone-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--pok-radius-full);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pok-primary);
  transition: all 0.2s ease;
}

.pok-phone-pill:hover .pok-phone-icon-wrap {
  background: var(--pok-primary);
  color: #ffffff;
}

.pok-phone-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.pok-phone-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--pok-dark);
  letter-spacing: -0.2px;
}

/* Appointment CTA Button */
.pok-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #00b4d8;
  background: linear-gradient(135deg, #05c8fc 0%, #0096c7 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--pok-radius-full);
  box-shadow: 0 4px 16px rgba(5, 200, 252, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.2px;
}

.pok-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 200, 252, 0.5);
  background: linear-gradient(135deg, #024DFB 0%, #05c8fc 100%);
}

.pok-btn-icon-plus {
  width: 20px;
  height: 20px;
  border-radius: var(--pok-radius-full);
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* Mobile Phone Call Icon Button (Call directly on Mobile) */
.pok-mobile-phone-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--pok-radius-full);
  background: linear-gradient(135deg, #05c8fc 0%, #0096c7 100%);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(5, 200, 252, 0.35);
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.pok-mobile-phone-btn:hover,
.pok-mobile-phone-btn:active {
  transform: scale(1.06);
  background: linear-gradient(135deg, #024DFB 0%, #05c8fc 100%);
  box-shadow: 0 6px 16px rgba(2, 77, 251, 0.45);
}

.pok-mobile-phone-btn svg {
  width: 19px;
  height: 19px;
  stroke: #ffffff;
}

/* Responsive visibility helper classes */
.pok-hide-desktop {
  display: none !important;
}

/* ========================================================
   MOBILE TOGGLE BUTTON & DRAWER
   ======================================================== */
.pok-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--pok-dark);
  border-radius: var(--pok-radius-sm);
  transition: background 0.2s ease;
}

.pok-mobile-toggle:hover {
  background: var(--pok-bg-light);
}

.pok-burger-icon {
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pok-burger-icon span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--pok-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Open Animation for Burger */
.pok-mobile-toggle.pok-is-open .pok-burger-icon span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.pok-mobile-toggle.pok-is-open .pok-burger-icon span:nth-child(2) {
  opacity: 0;
}
.pok-mobile-toggle.pok-is-open .pok-burger-icon span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.pok-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pok-drawer-overlay.pok-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer */
.pok-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(420px, 86vw);
  height: 100%;
  background: var(--pok-white);
  z-index: 10001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.pok-mobile-drawer.pok-active {
  right: 0;
}

/* Drawer Header */
.pok-drawer-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pok-border);
}

.pok-drawer-head .pok-logo-img {
  height: 42px;
}

.pok-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--pok-text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--pok-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pok-drawer-close:hover {
  background: var(--pok-bg-light);
  color: var(--pok-dark);
}

/* Drawer Navigation Items */
.pok-drawer-body {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}

.pok-mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pok-m-nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.pok-m-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pok-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pok-m-nav-link:hover {
  color: var(--pok-primary);
}

.pok-m-toggle-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--pok-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  transition: transform 0.25s ease;
}

.pok-m-nav-item.pok-expanded > .pok-m-nav-link .pok-m-toggle-arrow {
  transform: rotate(180deg);
  background: #e0f2fe;
  color: var(--pok-primary);
}

/* Drawer Submenu Accordion */
.pok-m-submenu {
  display: none;
  padding: 4px 6px 14px 10px;
}

.pok-m-nav-item.pok-expanded > .pok-m-submenu {
  display: block;
  animation: pokFadeIn 0.25s ease;
}

@keyframes pokFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pok-m-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pok-primary);
  margin: 10px 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.pok-m-sublink {
  display: block;
  padding: 7px 8px;
  font-size: 13.5px;
  color: var(--pok-text);
  text-decoration: none;
  border-radius: var(--pok-radius-sm);
  transition: all 0.18s ease;
}

.pok-m-sublink:hover {
  background: var(--pok-bg-light);
  color: var(--pok-primary);
  padding-left: 12px;
}

/* Drawer Footer */
.pok-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--pok-border);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pok-drawer-footer .pok-phone-pill {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
}

.pok-drawer-footer .pok-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
}

.pok-drawer-info {
  font-size: 11.5px;
  color: var(--pok-text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 1150px) {
  .pok-nav-link {
    font-size: 14px;
    padding: 8px 10px;
  }
  .pok-header-actions {
    gap: 10px;
  }
  .pok-phone-text {
    font-size: 13px;
  }
  .pok-mega-menu-wrapper {
    width: 96vw;
  }
  .pok-mega-inner {
    padding: 20px 22px;
  }
  .pok-mega-grid {
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .pok-nav-menu {
    display: none;
  }
  .pok-hide-mobile,
  .pok-header-actions .pok-phone-pill,
  .pok-header-actions .pok-cta-btn {
    display: none !important; /* Hide Appointment text button on mobile header */
  }
  .pok-hide-desktop,
  .pok-mobile-phone-btn {
    display: inline-flex !important; /* Show phone call icon button on mobile header */
  }
  .pok-mobile-toggle {
    display: block;
  }
  .pok-header-actions {
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .pok-header-container {
    padding: 0 16px;
    height: 70px;
  }
  .pok-logo-img {
    height: 42px;
    max-width: 170px;
  }
  .pok-mobile-phone-btn {
    width: 36px;
    height: 36px;
  }
  .pok-mobile-phone-btn svg {
    width: 16px;
    height: 16px;
  }
  .pok-header-actions {
    gap: 10px;
  }
}
