/* Armani Saisei GSAP Site */

/* Fullscreen popup base */
#ast-mobile-popup {
  position: fixed;
  inset: 0;
  background: #FBF0DA;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
}

/* When active */
#ast-mobile-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hide default Astra overlay */
.ast-mobile-popup-overlay {
  display: none !important;
}

/* Mobile popup inner content */
.ast-mobile-popup-inner {
  padding: 40px 40px 40px;
  height: 100%;
  overflow-y: auto;
  position: relative;
  z-index: 999999;
}

/* Menu item animation inside mobile popup */
.ast-mobile-popup-content .menu-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 20px;
}

#ast-mobile-popup.active .menu-item {
  opacity: 1;
  transform: translateY(0);
}

/* Global font */
body {
  font-family: Aeonik, Helvetica, Arial, sans-serif !important;
}

/* Transparent-header menu overrides */
.ast-theme-transparent-header .main-header-menu .menu-link,
.ast-theme-transparent-header .ast-builder-menu .main-header-menu,
.ast-theme-transparent-header.ast-header-break-point .ast-builder-menu .main-header-menu,
.main-header-menu > .menu-item {
  background-color: transparent !important;
}

.ast-theme-transparent-header .main-header-menu .menu-link {
  color: #2d1f17 !important;
}

/* Mobile close button */
.ast-mobile-popup-header {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
}

#menu-toggle-open,
#menu-toggle-close {
  position: relative;
  z-index: 99999;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#menu-toggle-close {
  background: rgba(45,31,23,0.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.2s;
  cursor: pointer;
}

#menu-toggle-close:hover {
  background: #2d1f17;
}

#menu-toggle-close svg {
  width: 20px;
  height: 20px;
  color: #fbf0da;
}

/* Mobile menu container */
.ast-mobile-popup-content {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

/* Mobile menu items */
.main-header-menu > .menu-item {
  font-family: Aeonik, Helvetica, Arial, sans-serif;
  width: 100%;
  border: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.main-header-menu > .menu-item:hover {
  background: rgba(45,31,23,0.15);
  transform: translateX(5px);
}

.main-header-menu .menu-link {
  font-size: 28px;
  font-weight: 500;
  color: #2d1f17 !important;
  padding: 15px 10px;
  display: block;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Mobile submenu */
.menu-item-has-children {
  position: relative;
}

.ast-mobile-popup-content .ast-submenu-expanded > .ast-menu-toggle {
  transform: rotateX(0deg) !important;
  overflow-x: hidden;
    overflow-y: hidden;
}
.menu-item-has-children .ast-menu-toggle {
  position: absolute;
  right: 20px;
  top: 28px !important;
  transform: translateY(0%);
  padding: 0px;
  background: none;
  border: none;
  pointer-events: auto;
}

.menu-item-has-children .ast-menu-toggle svg {
  overflow: hidden;
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.menu-item-has-children .ast-menu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sub-menu {
  display: block;
  flex-direction: column;
  width: 100%;
  margin-top: 5px;
  padding-left: 15%;
}

.menu-item-has-children[aria-expanded="true"] > .sub-menu {
  display: flex !important;
}

.sub-menu .menu-link {
  font-size: 22px !important;
  padding: 12px 0 !important;
  text-transform: uppercase !important;
}

/* Utility classes */
.submenuplus {
  font-size: 18px;
  margin-left: 30px;
}

.numbermenu {
  font-size: 16px;
  margin-right: 10px;
}

/* Mobile responsive font tweaks */
@media only screen and (max-width: 500px) {
  .text-animate2 {
    font-size: 38px !important;
  }
  .description-c {
    font-size: 16px !important;
  }
  h1.header-animate {
    font-size: 2.5rem !important;
  }
  h1.wp-block-heading {
    font-size: 2rem !important;
  }
  h2.wp-block-heading {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 25px !important;
  }
  .main-header-menu .menu-link {
    font-size: 26px;
  }
  .sub-menu .menu-link {
    font-size: 20px !important;
  }
}

/* Small screens (<544px) */
@media (max-width: 544px) {
  .ast-header-navigation-arrow {
    display: none !important;
  }
  .ast-menu-toggle {
    position: absolute !important;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
  }
  .menu-item-has-children {
    position: relative !important;
  }
  .small-mobile {
    max-height: 200px;
    min-height: 0px !important;
  }
  .center-mobile {
    padding-right: 0px !important;
    text-align: center;
  }
  h2.wp-block-heading.smaller-header {
    font-size: 16px !important;
  }
}

/* Desktop styles (>768px) */
@media only screen and (min-width: 769px) {
  .ast-primary-header-bar {
    position: relative;
  }
  .ast-primary-header-bar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #fbf0da;
    transform: scaleX(0);
    transform-origin: left center;
    animation: underline-grow 2s ease-out 4s forwards;
  }
  @keyframes underline-grow {
    to { transform: scaleX(1); }
  }
  .ast-mobile-popup-content,
  .ast-desktop-popup-content {
    display: none !important;
  }
  .ast-builder-menu .main-navigation,
  .ast-main-header-bar-alignment,
  .main-navigation .ast-inline-flex {
    width: 100%;
  }
  #ast-hf-menu-1,
  .main-header-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 80vh;
    width: 100%;
  }
  .menu-item {
    line-height: 1;
    color: #2d1f17 !important;
    flex: 1;
    border-top: 1px solid #d4c4a8;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15%;
    transition: background-color 0.3s ease;
  }
  .menu-item:first-child {
    border-top: none;
  }
  .menu-link {
    font-family: ppfragment, Helvetica, Arial, sans-serif;
    text-decoration: none;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.05em;
    display: block;
    width: 100%;
  }
  /* Menu numbering */
  .main-header-menu > .menu-item:nth-child(1) > .menu-link::before { content: "(1) "; }
  .main-header-menu > .menu-item:nth-child(2) > .menu-link::before { content: "(2) "; }
  .main-header-menu > .menu-item:nth-child(3) > .menu-link::before { content: "(3) "; }
  .main-header-menu > .menu-item:nth-child(4) > .menu-link::before { content: "(4) "; }
  .main-header-menu > .menu-item:nth-child(5) > .menu-link::before { content: "(5) "; }
  .main-header-menu > .menu-item:nth-child(6) > .menu-link::before { content: "(6) "; }
  .main-header-menu > .menu-item:nth-child(7) > .menu-link::before { content: "(7) "; }
  /* Desktop popup inner */
  .ast-mobile-popup-inner {
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: linear-gradient(135deg, #fbf0da 0%, #e8dcc6 100%);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 60px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .ast-mobile-popup-inner::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    background-color: #2d1f17;
    z-index: -1;
  }
  .ast-mobile-popup-inner::before {
    content: "";
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    border: 2px solid #e8dcc6;
    border-radius: 50%;
    z-index: 1;
    background: url("https://armanirestaurant.com.au/wp-content/uploads/2025/05/logosvg-copy.svg") center/contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8dcc6;
    font-size: 150px;
  }
  /* Desktop close button override */
  #menu-toggle-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #c8995f;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    border-radius: 5px;
  }
  /* Desktop submenu styling */
  .sub-menu,
  ul.sub-menu,
  .main-header-menu .sub-menu,
  .menu-item-has-children .sub-menu {
    background-color: #fbf0da !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: static !important;
    z-index: 10 !important;
    border: none !important;
    box-shadow: none !important;
    max-height: none !important;
    transform: none !important;
    transition: none !important;
  }
  .sub-menu::before,
  .sub-menu::after {
    display: block !important;
  }
  .dropdown-menu-toggle,
  .ast-menu-toggle {
    display: none !important;
  }
  .sub-menu .menu-item {
    background-color: #fbf0da !important;
    padding: 5px 10% 5px 15% !important;
    min-height: 30px !important;
    position: relative !important;
    z-index: 11 !important;
  }
  .sub-menu .menu-item .menu-link {
    font-size: 18px !important;
    padding: 3px 0 !important;
    text-transform: uppercase !important;
    display: flex !important;
  }
  .sub-menu .menu-item:hover {
    background-color: #e8dcc6 !important;
  }
  /* Footer menu */
  #astra-footer-menu .menu-item > a {
    padding-bottom: 0;
  }
}

/* Button hover style */
.wp-block-button.is-style-outline.is-style-outline--1:hover {
  background-color: #9c7443;
  border-radius: 50px;
  border-width: 0;
}

/* Suppress menu-link pseudo */
.menu-link::before {
  display: none;
}

/* Override arrow colour */
.ast-arrow-svg {
  fill: black !important;
}

/* Prevent line-wrap in large headings */
.neverwrap72 {
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(20px, 5vw, 72px) !important;
}

/* Ensure header focus item layout */
.ast-builder-menu-1.ast-builder-menu.ast-flex.ast-builder-menu-1-focus-item.ast-builder-layout-element.site-header-focus-item {
  display: flex;
}

#ast-mobile-popup .ast-mobile-popup-content .menu-link {
  text-align: left !important; /* force Private Functions (and all links) flush left */
}

/* 1. Expand + align off-canvas container */
#ast-mobile-popup .ast-mobile-popup-content {
  display: flex !important;
  width: 80% !important;
  max-width: none !important;
  padding: 20px 40px !important;
  align-items: flex-start !important;
}

/* 2. Force the UL to start at left */
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu {
  justify-content: flex-start !important;
}

/* 3. Strip margins/padding and left-align each <li>, plus centre arrow vertically */
#ast-mobile-popup .ast-mobile-popup-content .menu-item {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;  /* ← added to vertically centre the toggle arrow */
}

/* 4. Left-align and full-width the links */
#ast-mobile-popup .ast-mobile-popup-content .menu-link {
  width: 100% !important;
  text-align: left !important;
  padding: 10px 0 !important;
}


@media only screen and (max-width: 500px) {
  #ast-mobile-popup .ast-mobile-popup-content {
    width: 80vw !important;
    padding: 20px !important;
  }
}

