/* Custom Persistent Header & Overlay Menu */
:root {
  --header-bg: rgba(60, 43, 31, 0.85); /* Semi-transparent dark brown */
  --menu-bg: #2a1b14; /* Solid dark brown for menu */
  --gold-text: #cbb27a; /* Gold/Beige */
  --text-color: #ffffff;
}

/* Hide original header and any generated empty spaces */
#SITE_HEADER, 
.SITE_HEADER,
#SITE_HEADER_WRAPPER,
.SITE_HEADER_WRAPPER,
#SITE_HEADER-placeholder,
header:not(#customHeader),
#MOBILE_ACTIONS_MENU,
#TINY_MENU,
.wixui-hamburger-open-button,
[data-mesh-id*="SITE_HEADER"] {
  display: none !important;
}

body {
  padding-top: 0 !important;
}

.custom-persistent-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background-color: transparent; /* Initial state is transparent */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  box-sizing: border-box;
}

.custom-persistent-header.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.custom-logo {
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 0.95;
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  display: flex;
  flex-direction: column;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 18px;
  position: relative;
  z-index: 10001; /* Above overlay */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 1px; /* Thin line */
  background-color: #fff;
  transition: opacity 0.3s ease-in-out;
}

/* Hide hamburger lines when menu is open */
.custom-overlay-open .hamburger-btn span {
  opacity: 0;
}

/* Full Screen Overlay - Background Dimming */
.custom-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999; /* Below the right drawer, above content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.custom-overlay-open .custom-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Right Side Drawer Menu */
.custom-menu-overlay {
  position: fixed;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--menu-bg);
  z-index: 10000;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 60px 40px 60px;
  box-sizing: border-box;
  box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  overflow-y: auto;
}

.custom-overlay-open .custom-menu-overlay {
  right: 0;
}

/* Close Button (X) */
.custom-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  z-index: 10001;
  display: none; /* Only show when open */
}

.custom-overlay-open .custom-close-btn {
  display: block;
}

.custom-close-btn span {
  display: block;
  position: absolute;
  top: 11px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
}

.custom-close-btn span:nth-child(1) {
  transform: rotate(45deg);
}

.custom-close-btn span:nth-child(2) {
  transform: rotate(-45deg);
}

/* Menu Nav */
.custom-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.custom-menu-nav > ul > li {
  margin: 22px 0;
}

.custom-menu-nav a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  font-family: "Georgia", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.custom-menu-nav a.active {
  color: var(--gold-text);
}

.custom-menu-nav a:hover {
  color: var(--gold-text);
}

/* Submenu */
.has-submenu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.submenu {
  display: none;
  margin: 15px 0 0 0;
}

.submenu-open .submenu {
  display: block;
}

.submenu li {
  margin: 12px 0 !important;
}

.submenu a {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* Down arrow indicator */
.dropdown-arrow {
  display: inline-block;
  margin-left: 8px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s;
}

.submenu-open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Footer of the menu */
.custom-menu-footer {
  margin-top: auto; /* Push to bottom */
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.custom-menu-footer-head {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.custom-menu-footer a {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.custom-menu-footer a:hover {
  color: var(--gold-text);
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 5px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  transition: border-color 0.2s;
  margin-bottom: 0;
}

.social-icons a:hover {
  border-color: #fff;
}
