/* ============================================================
   Royal Elementor Theme — Header Styles (Style 1: Minimalist)
   Palette: Cream #faf7f2 | Espresso #3d2b1f | Caramel #c8956c
   ============================================================ */

/* ---- Top Bar ---- */
.headertop {
  background-color: #3d2b1f;
  color: #faf7f2;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  padding: 8px 0;
  letter-spacing: 0.03em;
}

.headertop .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.headertop .top-contact a {
  color: #f0e6d3;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.25s;
}

.headertop .top-contact a:hover {
  color: #c8956c;
}

.headertop .top-contact i {
  margin-right: 5px;
  color: #c8956c;
}

.headertop .top-social a {
  color: #f0e6d3;
  font-size: 14px;
  margin-left: 12px;
  transition: color 0.25s;
}

.headertop .top-social a:hover {
  color: #c8956c;
}

/* ---- Main Header ---- */
.header {
  background-color: #faf7f2;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(61, 43, 31, 0.08);
  transition: box-shadow 0.3s, background-color 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.14);
}

.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

/* Logo */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header .logo .logo-text {
  font-family: 'Lora', serif;
  font-size: 26px;
  font-weight: 700;
  color: #3d2b1f;
  letter-spacing: 0.01em;
  line-height: 1;
}

.header .logo .logo-text span {
  color: #c8956c;
}

.header .logo .logo-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #c8956c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ---- Desktop Navigation ---- */
.desktopmenu {
  display: flex;
  align-items: center;
}

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

.royalmenu > li {
  position: relative;
}

.royalmenu > li > a {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3d2b1f;
  text-decoration: none;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  transition: color 0.25s, background-color 0.25s;
  letter-spacing: 0.02em;
}

.royalmenu > li > a:hover,
.royalmenu > li.active > a {
  color: #c8956c;
  background-color: rgba(200, 149, 108, 0.08);
}

.royalmenu > li > a .arrow {
  font-size: 11px;
  transition: transform 0.25s;
}

.royalmenu > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.royalmenu .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #faf7f2;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(61, 43, 31, 0.14);
  border: 1px solid rgba(200, 149, 108, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 1000;
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

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

.royalmenu .dropdown li a {
  display: block;
  padding: 10px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13.5px;
  color: #3d2b1f;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.royalmenu .dropdown li a:hover {
  background-color: rgba(200, 149, 108, 0.1);
  color: #c8956c;
}

/* ---- Hamburger Icon ---- */
#navigation-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  gap: 5px;
}

#navigation-icon span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #3d2b1f;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}

#navigation-icon.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

#navigation-icon.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

#navigation-icon.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ---- CTA Button ---- */
.royal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #c8956c;
  color: #faf7f2 !important;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background-color 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 3px 12px rgba(200, 149, 108, 0.35);
  margin-left: 16px;
  white-space: nowrap;
}

.royal-action-btn:hover {
  background-color: #3d2b1f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 43, 31, 0.25);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  background: #faf7f2;
  border-top: 2px solid rgba(200, 149, 108, 0.25);
  padding: 16px 24px 24px;
}

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

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

.mobile-menu ul li a {
  display: block;
  padding: 12px 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #3d2b1f;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 149, 108, 0.15);
  transition: color 0.2s;
}

.mobile-menu ul li a:hover {
  color: #c8956c;
}

.mobile-menu .mobile-sub {
  padding-left: 16px;
}

.mobile-menu .mobile-sub li a {
  font-weight: 400;
  font-size: 14px;
  color: #6b4f3a;
}

@media (max-width: 900px) {
  .desktopmenu {
    display: none;
  }

  #navigation-icon {
    display: flex;
  }
}
