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

:root {
  --royal-haven-green: #064e3b;
  --royal-haven-green-light: #047857;
  --royal-haven-gold: #d97706;
  --royal-top-bg: #022c22;
  --royal-top-fg: #cbd5e1;
  --menucontbackground: #064e3b;
  --menupadding: 0px;
  --menuanchorcolor: #ffffff;
  --menuanchorhovercolor: #fbbf24;
}

/* ==========================================================================
   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: #fbbf24;
}

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

.haven-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #fde68a;
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   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;
}

.haven-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #fbbf24;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.25);
}

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

.site-title span {
  color: var(--royal-haven-gold);
}

.site-description {
  font-size: 11.5px;
  color: #64748b;
  margin: 2px 0 0 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

.quick-contact-badge .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid #a7f3d0;
}

.quick-contact-badge .text {
  display: flex;
  flex-direction: column;
}

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

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

.quick-contact-badge a:hover {
  color: var(--royal-haven-gold);
}

/* ==========================================================================
   Desktop Navigation Bar (.desktopmenu)
   ========================================================================== */
.desktopmenu {
  background: var(--menucontbackground);
  position: relative;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.15);
  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.2);
  animation: slideDownNav 0.35s 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.06);
}

/* Submenu Dropdown */
.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: 10px;
  transition: transform 0.2s 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: #064e3b;
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  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: 13.5px;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.royalmenu .sub-menu li a:hover {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  padding-left: 24px;
}

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

.royal-action-btn:hover {
  background: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 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: #064e3b;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Drawer Overlay */
.mobile-navigation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 78, 59, 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: #064e3b;
  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: #fbbf24;
}

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