/* =====================================================
   Royal Elementor Theme – Header Styles (Style 4: Unified Inline)
   AzureSands Resort – Dark Navy #0a1628, Gold #c9a84c, Teal #0d9488
   ===================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Header Wrapper ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #0a1628;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* ── Header Top (integrated — not a separate bar) ── */
.headertop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
}

/* ── Logo ── */
.headertop .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.headertop .site-logo .logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.04em;
  line-height: 1;
}

.headertop .site-logo .logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  color: #9bb0c8;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ── Desktop Nav Wrapper ── */
.desktopmenu {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Royal Menu (ul) ── */
.royalmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.royalmenu > li {
  position: relative;
}

.royalmenu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 20px;
  height: 80px;
  color: #d8e4f0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.royalmenu > li > a:hover,
.royalmenu > li.active > a {
  color: #c9a84c;
}

.royalmenu > li > a .fa-chevron-down {
  font-size: 0.6rem;
  margin-top: 1px;
  transition: transform 0.25s ease;
}

.royalmenu > li:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

/* ── Dropdown ── */
.royalmenu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #0d1f38;
  border-top: 2px solid #c9a84c;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 10000;
}

.royalmenu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.royalmenu .dropdown li a {
  display: block;
  padding: 10px 22px;
  color: #c8d9e8;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.royalmenu .dropdown li a:hover {
  color: #c9a84c;
  background-color: rgba(201,168,76,0.07);
  padding-left: 28px;
}

/* ── Mobile Hamburger ── */
#navigation-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#navigation-icon:hover { background-color: rgba(201,168,76,0.1); }

#navigation-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #c9a84c;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#navigation-icon.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navigation-icon.open span:nth-child(2) { opacity: 0; width: 0; }
#navigation-icon.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── CTA / Action Button ── */
.royal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  margin-left: 24px;
  background-color: #c9a84c;
  color: #0a1628;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #c9a84c;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.royal-action-btn:hover {
  background-color: transparent;
  color: #c9a84c;
  border-color: #c9a84c;
}

/* ── Teal accent utility ── */
.teal { color: #0d9488; }
.teal-bg { background-color: #0d9488; }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  background-color: #0d1f38;
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 12px 0 20px;
}

.mobile-nav.open { display: block; }

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

.mobile-nav ul li a {
  display: block;
  padding: 12px 28px;
  color: #c8d9e8;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav ul li a:hover { color: #c9a84c; padding-left: 36px; }

.mobile-nav .mobile-dropdown {
  padding-left: 16px;
  border-left: 2px solid rgba(201,168,76,0.3);
  margin-left: 28px;
}

.mobile-nav .mobile-dropdown a {
  font-size: 0.78rem;
  font-weight: 400;
  padding: 9px 20px;
  text-transform: none;
  letter-spacing: 0.03em;
}

.mobile-cta {
  margin: 16px 28px 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .desktopmenu { display: none; }
  .royal-action-btn.desktop-only { display: none; }
  #navigation-icon { display: flex; }
}

@media (max-width: 480px) {
  .headertop { height: 68px; padding: 0 16px; }
  .headertop .site-logo .logo-text { font-size: 1.45rem; }
}
