/**
 * Royal Elementor Theme - Header Style 1 Stylesheet (Multi-Tier Layout)
 * Compatible with: Royal Elementor Theme (template-parts/headerstyle1.php & header-top.php)
 * & Royal Addons for Elementor
 * Author: Royal Technologies
 */

:root {
  --royal-header1-teal: #0d9488;
  --royal-header1-teal-dark: #0f766e;
  --royal-header1-teal-light: #14b8a6;
  --royal-header1-indigo: #1e1b4b;
  --royal-top-bg: #0f172a;
  --royal-top-fg: #cbd5e1;
  --menucontbackground: #1e1b4b;
  --menupadding: 0px;
  --menuanchorcolor: #ffffff;
  --menuanchorhovercolor: #2dd4bf;
}

/* ==========================================================================
   Header Top Bar (.headertop)
   ========================================================================== */
.headertop {
  background: var(--royal-top-bg);
  color: var(--royal-top-fg);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.headertop .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.headertop a {
  color: var(--royal-top-fg);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.headertop a:hover {
  color: #2dd4bf;
}

.headertop .topleft,
.headertop .topright {
  display: flex;
  align-items: center;
  gap: 20px;
}

.emergency-live-pill {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.emergency-live-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* ==========================================================================
   Header Style 1 Middle Branding Area (.header)
   ========================================================================== */
.header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.header .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .center .branding-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon-surgical {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0d9488 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

.site-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #1e1b4b;
  line-height: 1.1;
}

.site-title span {
  color: var(--royal-header1-teal);
}

.site-description {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0 0;
  font-weight: 600;
}

.header .right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.clinic-quick-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clinic-quick-contact .quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f0fdfa;
  color: var(--royal-header1-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid #ccfbf1;
}

.clinic-quick-contact .quick-info {
  display: flex;
  flex-direction: column;
}

.clinic-quick-contact .quick-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}

.clinic-quick-contact a {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.clinic-quick-contact a:hover {
  color: var(--royal-header1-teal);
}

/* ==========================================================================
   Header Style 1 Desktop Navigation Bar (.desktopmenu)
   ========================================================================== */
.desktopmenu {
  background: var(--menucontbackground);
  position: relative;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  transition: all 0.3s ease;
}

.desktopmenu.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: slideDownNav 0.3s ease forwards;
}

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

.desktopmenu .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.royalmenu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.royalmenu > li > a {
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--menuanchorcolor);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.royalmenu > li > a:hover,
.royalmenu > li.current-menu-item > a {
  color: var(--menuanchorhovercolor);
  background: rgba(255, 255, 255, 0.05);
}

/* Submenu */
.royalmenu li.menu-item-has-children {
  position: relative;
}

.royalmenu li.menu-item-has-children > a::after {
  content: "\f282";
  font-family: "bootstrap-icons", sans-serif;
  font-size: 11px;
  transition: transform 0.25s ease;
}

.royalmenu li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

.royalmenu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #1e1b4b;
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1002;
}

.royalmenu li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.royalmenu .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.royalmenu .sub-menu li a:hover {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  padding-left: 24px;
}

/* Royal Action Button */
.royal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--royal-header1-teal);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.royal-action-btn:hover {
  background: var(--royal-header1-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.45);
}

/* Mobile Hamburger Button */
.navigation-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.navigation-icon span {
  width: 22px;
  height: 2px;
  background: #1e1b4b;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Drawer Overlay */
.mobile-navigation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-navigation-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-navigation-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: #1e1b4b;
  color: #ffffff;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-navigation-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-list li a {
  display: block;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  text-decoration: none;
}

.mobile-nav-list li a:hover {
  color: #2dd4bf;
}

@media (max-width: 991px) {
  .desktophide {
    display: flex !important;
  }
  .tablethide {
    display: none !important;
  }
  .desktopmenu {
    display: none;
  }
}
