.rc-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.rc-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.25rem;
}

.rc-nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.rc-nav-dropdown:hover .rc-nav-caret,
.rc-nav-dropdown:focus-within .rc-nav-caret {
  transform: translateY(-1px) rotate(180deg);
}

.rc-nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  width: 17rem;
  max-height: min(72vh, 32rem);
  overflow-y: auto;
  padding: 0.55rem;
  border: 1px solid rgba(120, 53, 15, 0.12);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 9999;
}

.rc-nav-dropdown:hover .rc-nav-dropdown-menu,
.rc-nav-dropdown:focus-within .rc-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.rc-nav-dropdown-link {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.rc-nav-dropdown-link:hover,
.rc-nav-dropdown-link:focus,
.rc-nav-dropdown-link-active {
  background: rgba(128, 0, 32, 0.08);
  color: #800020;
  transform: translateX(2px);
  outline: none;
}

.rc-mobile-nav-group {
  border-radius: 0.75rem;
}

.rc-mobile-nav-caret {
  float: right;
  font-size: 0.85rem;
}

.rc-mobile-nav-children {
  margin: 0.15rem 0 0.5rem 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(128, 0, 32, 0.12);
}

.rc-mobile-nav-child {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
}

.rc-mobile-nav-child:hover,
.rc-mobile-nav-child:focus,
.rc-mobile-nav-child-active {
  background: rgba(128, 0, 32, 0.08);
  color: #800020;
  outline: none;
}

@media (min-width: 1024px) {
  .rc-nav-dropdown:nth-last-child(-n+3) .rc-nav-dropdown-menu {
    left: auto;
    right: 0;
  }
}


/* v2.0.10 header/menu polish */
.rc-nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: -0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid rgba(120, 53, 15, 0.12);
  border-top: 1px solid rgba(120, 53, 15, 0.12);
}

.rc-nav-dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 0, 32, 0.35) transparent;
}

.rc-nav-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.rc-nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(128, 0, 32, 0.28);
  border-radius: 999px;
}

.rc-nav-dropdown-link {
  position: relative;
  z-index: 1;
}

/* Large dropdowns need more room so they do not look like a long squeezed list. */
@media (min-width: 1180px) {
  .rc-nav-dropdown:nth-child(3) .rc-nav-dropdown-menu,
  .rc-nav-dropdown:nth-child(4) .rc-nav-dropdown-menu {
    width: 34rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.25rem;
  }
}

/* Keep the header clean on laptop widths: hide the duplicate call/WhatsApp buttons
   in the header and keep the main nav readable. The buttons still exist in the
   top bar, mobile menu and sticky CTA/footer sections. */
@media (min-width: 1024px) and (max-width: 1260px) {
  nav.sticky .max-w-7xl > .flex > .hidden.lg\:flex.items-center.gap-3 {
    display: none !important;
  }
  nav.sticky .max-w-7xl > .flex > .hidden.lg\:flex.items-center.gap-1 {
    gap: 0.1rem !important;
  }
  .rc-nav-trigger,
  nav.sticky .max-w-7xl > .flex > .hidden.lg\:flex.items-center.gap-1 > a {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    font-size: 0.82rem !important;
  }
}

@media (min-width: 1024px) and (max-width: 1120px) {
  nav.sticky .text-royal-maroon.font-bold.text-xl.font-playfair {
    font-size: 1.05rem !important;
  }
  nav.sticky .w-12.h-12 {
    width: 2.55rem !important;
    height: 2.55rem !important;
  }
}

@media (max-width: 1023px) {
  .rc-mobile-nav-children {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}


/* v2.0.11 dropdown interaction polish */
.rc-nav-dropdown {
  position: relative;
  isolation: isolate;
}

/* Hover bridge: prevents the desktop dropdown from closing while moving
   the mouse from the parent item down into the panel. */
.rc-nav-dropdown::after {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: 100%;
  height: 0.9rem;
  z-index: 9998;
  pointer-events: auto;
}

.rc-nav-trigger {
  position: relative;
  white-space: nowrap;
}

/* Replace the raw text arrow with a clean CSS chevron. */
.rc-nav-caret,
.rc-mobile-nav-caret {
  font-size: 0 !important;
  line-height: 0 !important;
  width: 0.5rem;
  height: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
  color: currentColor;
}

.rc-nav-caret::before,
.rc-mobile-nav-caret::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

.rc-nav-dropdown:hover .rc-nav-caret::before,
.rc-nav-dropdown:focus-within .rc-nav-caret::before {
  transform: rotate(225deg);
  margin-top: 0.28rem;
}

.rc-nav-dropdown-menu {
  top: calc(100% + 0.18rem) !important;
  z-index: 10000;
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

.rc-nav-dropdown:hover .rc-nav-dropdown-menu,
.rc-nav-dropdown:focus-within .rc-nav-dropdown-menu {
  transition-delay: 0s;
}

.rc-nav-dropdown-menu::before {
  top: -0.36rem !important;
}

/* Mobile submenus are closed by default. Parent text remains a real link; the arrow button opens the submenu. */
@media (max-width: 1023px) {
  .rc-mobile-nav-group.has-submenu {
    position: relative;
  }

  .rc-mobile-nav-group.has-submenu > a {
    padding-right: 3.45rem !important;
  }

  .rc-mobile-submenu-toggle {
    position: absolute;
    right: 0.35rem;
    top: 0.32rem;
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(128, 0, 32, 0.08);
    color: #800020;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .rc-mobile-submenu-toggle:hover,
  .rc-mobile-submenu-toggle:focus {
    background: rgba(128, 0, 32, 0.14);
    outline: none;
  }

  .rc-mobile-submenu-toggle:focus-visible {
    outline: 2px solid rgba(128, 0, 32, 0.45);
    outline-offset: 2px;
  }

  .rc-mobile-submenu-toggle .rc-mobile-nav-caret {
    position: static;
    transform: none !important;
  }

  .rc-mobile-nav-group.is-open .rc-mobile-submenu-toggle .rc-mobile-nav-caret::before {
    transform: rotate(225deg);
    margin-top: 0.28rem;
  }

  .rc-mobile-nav-children {
    display: none !important;
    margin-top: 0.25rem;
  }

  .rc-mobile-nav-group.is-open .rc-mobile-nav-children {
    display: grid !important;
  }

  .rc-mobile-nav-child {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }
}
