/* ======================
   HEADER BASE STYLING
====================== */
.custom-header {
  background-color: transparent !important;
  z-index: 1000;
  width: 100%;
  transition: background-color 0.3s ease;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  overflow: visible;
}

/* === Animated Header Background Overlay === */
.header-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33, 37, 41, 0.95);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition:
    opacity 0.38s cubic-bezier(.4,0,.2,1),
    transform 0.42s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(10px);
}

/* When menu is open, animate overlay open from top down */
.custom-header.menu-open .header-bg-overlay {
  opacity: 1;
  transform: scaleY(1);
}

/* Always keep header elements above overlay and menu */
.container-fluid,
.logo-container,
.header-logo,
.navbar-toggler {
  position: relative;
  z-index: 2;
}

/* === Animate ONLY the mobile menu content === */
.header-content {
  opacity: 0;
  transform: translateY(-24px);
  transition:
    opacity 0.25s cubic-bezier(.4,0,.2,1),
    transform 0.28s cubic-bezier(.4,0,.2,1);
  transition-delay: 0s;
  z-index: 2;
  position: relative;
}

/* Animate in when menu is open */
.custom-header.menu-open .header-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;  /* Wait for overlay to start opening */
}

/* Always show header-content (i.e. don't animate) on desktop */
@media (min-width: 992px) {
  .header-content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ======================
   LOGO & NAVIGATION LINKS
====================== */
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.0625em;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.3px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 80%;
}

/* ======================
   ICON BUTTONS
====================== */
.icon-group,
.mobile-icons {
  position: relative;
  z-index: 2;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 3px;
  background-color: transparent;
  border: 1px solid white;
  text-decoration: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.icon-button i {
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.icon-button.facebook i { color: white; }
.icon-button.facebook:hover { border-color: #1877F2; }
.icon-button.facebook:hover i { color: #1877F2; }

.icon-button.yelp i { color: white; }
.icon-button.yelp:hover { border-color: #d32323; }
.icon-button.yelp:hover i { color: #d32323; }

.icon-button.instagram i { color: white; }
.icon-button.instagram:hover { border-color: #dd2a7b; }
.icon-button.instagram:hover i { color: #dd2a7b; }

/* ======================
   NAVBAR TOGGLER
====================== */
/* ======================
   NAVBAR TOGGLER (3 lines → X)
====================== */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.75rem;
  position: relative;
  z-index: 2;
  outline: none;
  box-shadow: none !important;
}

/* Container that holds the 3 lines */
.navbar-toggler-icon {
  display: inline-block;
  width: 24px;
  height: 18px;           /* vertical space for lines */
  position: relative;
  background: none !important; /* kill old background-image icon */
}

/* Top / Bottom bars via pseudos */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition:
    transform 280ms cubic-bezier(.4,0,.2,1),
    top 280ms cubic-bezier(.4,0,.2,1),
    opacity 200ms ease;
}

/* Middle bar is the inner span */
.navbar-toggler-icon .line.mid {
  position: absolute;
  left: 0; right: 0;
  top: 8px;               /* middle */
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: opacity 200ms ease, transform 280ms cubic-bezier(.4,0,.2,1);
}

/* Closed positions */
.navbar-toggler-icon::before { top: 0; }
.navbar-toggler-icon::after  { top: 16px; }

/* Open state: make an X and hide the middle */
.navbar-toggler.is-active .navbar-toggler-icon::before {
  top: 8px;
  transform: rotate(45deg);
}
.navbar-toggler.is-active .navbar-toggler-icon::after {
  top: 8px;
  transform: rotate(-45deg);
}
.navbar-toggler.is-active .navbar-toggler-icon .line.mid {
  opacity: 0; /* fade middle out for clean X */
}


/* ======================
   MOBILE STYLES
====================== */
@media (max-width: 991px) {

  /* Mobile Nav Links */
  .navbar-nav .nav-link {
    display: inline-block;
    position: relative;
    text-align: center;
    padding: 0.75rem 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
  }

  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.3px;
    background-color: #ffffff;
    transition: width 0.3s ease;
  }

  .navbar-nav .nav-link:hover::after {
    width: 80%;
  }

  /* Divider */
  .mobile-divider {
    width: 60%;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 1rem auto 0;
  }

  /* Mobile Icons */
  .mobile-icons {
    padding-top: 1.25rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .mobile-icons .icon-button {
    width: 35px;
    height: 35px;
    border-radius: 3px;
    border: 1px solid white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.3s ease;
  }

  .mobile-icons .icon-button i {
    font-size: 1.25rem;
    transition: color 0.3s ease;
  }

/* Facebook */
.mobile-icons .facebook i { color: white; }
.mobile-icons .facebook:hover { border-color: #1877F2; }
.mobile-icons .facebook:hover i { color: #1877F2; }

/* Yelp */
.mobile-icons .yelp i { color: white; }
.mobile-icons .yelp:hover { border-color: #d32323; }
.mobile-icons .yelp:hover i { color: #d32323; }

/* Instagram (replaces Google) */
.mobile-icons .instagram i { color: white; }
.mobile-icons .instagram:hover { border-color: #dd2a7b; }
.mobile-icons .instagram:hover i { color: #dd2a7b; }
}