/* --- MOBILE BAR CONTAINER --- */
#mobile-nav-bar {
  display: none; /* Hidden on Desktop */
  position: relative ;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-background);
  z-index: 1500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-left: auto;
}

@media (max-width: 1024px) {
  #mobile-nav-bar { display: block; }
}

/* --- TOP BAR CONTENTS (Flex Layout) --- */
#mobile-nav-bar .mobile-bar-contents {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 15px;
  height: 60px;
  gap: 10px;
}


/* --- BRANDING (Logo Right, Text Left) --- */
#mobile-nav-bar .mobile-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

#mobile-nav-bar .mobile-brand-wrapper span {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

#mobile-nav-bar .mobile-brand-wrapper img {
  height: 35px;
  width: auto;
}

#mobile-nav-bar .mobile-emergency-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 9px 11px;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.24);
  cursor: pointer;
  margin-left: 54px;
  white-space: nowrap;
}

#mobile-nav-bar .mobile-emergency-btn:hover,
#mobile-nav-bar .mobile-emergency-btn:focus-visible {
  background: #e53935;
}

/* --- MOBILE DRAWER (Slide from Left) --- */
#mobile-nav-bar .mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--nav-background);
  transform: translateX(-100%); /* Start off-screen LEFT */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2100;
  padding: 25px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  padding-top: 80px;
  overflow-y: auto;                 
  -webkit-overflow-scrolling: touch; /* Makes scrolling smooth on iOS */
  padding-bottom: 60px;             /* Space at the bottom so the last link isn't cut off */
}


#mobile-nav-bar .mobile-nav.open {
  transform: translateX(0); /* Slide in */
}

/* --- DRAWER ITEMS --- */
#mobile-nav-bar .mobile-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile-nav-bar .mobile-item a, 
#mobile-nav-bar .mobile-dropdown-button {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
}

#mobile-nav-bar .mobile-dropdown-button {
  border-left: 2px solid #ffd166;
  padding-left: 12px;
}
#mobile-nav-bar .mobile-dropdown-menu{
	padding-top: 10px;
	max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 1.3s ease;
  
}

#mobile-nav-bar .mobile-dropdown-menu.open {
  /* Set this to a value larger than your longest list (e.g., Services) */
  max-height: 600px; 
  opacity: 1;
  padding-bottom: 15px; /* Adds a nice finish at the end of the slide */
}
/* 3. Smooth out the sub-links appearance */
#mobile-nav-bar .mobile-dropdown-menu a {
  padding: 10px 16px 10px 40px; /* Indents the sub-items */
  display: block;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease;
}

#mobile-nav-bar .mobile-dropdown-menu a {
  padding-left: 25px;
  padding-top: 10px;    /* Adds space above */
  padding-bottom: 10px; /* Adds space below */
  display: block;       /* Ensures the padding pushes the next item down */
  line-height: 1.4;     /* Better readability for longer titles */
  font-size: 0.95rem;
  opacity: 0.8;
}

#mobile-nav-bar .menu-toggle.open {
  transform: translateX(210px); /* Adjust this number so the X sits where you want it on the drawer */
  transition-delay: 0.2s;
  
}

/* --- OVERLAY --- */
#mobile-nav-bar .nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

#mobile-nav-bar .nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- HAMBURGER & ANIMATIONS --- */
#mobile-nav-bar .menu-toggle {
    display: flex;
    position: fixed; /* Keeps it on screen during scroll */
    top: 0;
    left: 0;
    width: 60px; 
    height: 60px;
	border-radius:100%;
    border: none;
    cursor: pointer;
    z-index: 3000; /* Stays on top of everything */
    justify-content: center;
    align-items: center;
	background: transparent; 
    transition: background 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-nav-bar .menu-toggle.scrolled,
#mobile-nav-bar .menu-toggle.open {
  background: var(--nav-background) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a tiny bit of depth */
}

#mobile-nav-bar .hamburger-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

#mobile-nav-bar .hamburger-icon::before,
#mobile-nav-bar .hamburger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 0;
  transition: all 0.3s ease;
}

#mobile-nav-bar .hamburger-icon::before { top: -8px; }
#mobile-nav-bar .hamburger-icon::after { bottom: -8px; }

/* Morph into X */
#mobile-nav-bar .menu-toggle.open .hamburger-icon { background: transparent; }
#mobile-nav-bar .menu-toggle.open .hamburger-icon::before { transform: rotate(45deg); top: 0; }
#mobile-nav-bar .menu-toggle.open .hamburger-icon::after { transform: rotate(-45deg); bottom: 0; }

/* --- THE SPIN ANIMATION --- */
@keyframes spinToggle {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* --- APPLY THE SPIN --- */
#mobile-nav-bar .hamburger-wrapper.spin {
  animation: spinToggle 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}


/* --- CALL BUTTON (Bottom of Drawer) --- */
#mobile-nav-bar .call-btn {
  background-color: #28a745;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  width: 100%;
  margin-top: 30px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* --- FLOATING BOOKING BUTTON --- */
.floating-book-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--highlight-amber) !important; 
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 800px) {
  .floating-book-btn.at-bottom {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 90%;
    text-align: center;
  }
}

.mobile-contact-actions {
  --mobile-contact-fab-size: 56px;
  --mobile-contact-half-size: calc(var(--mobile-contact-fab-size) / 2);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  width: 100%;
  height: 170px;
  z-index: 2600;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.mobile-contact-actions.is-footer-hidden {
  opacity: 0;
  transform: translateY(24px);
  visibility: hidden;
}

.mobile-contact-fab,
.mobile-contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mobile-contact-fab-size);
  height: var(--mobile-contact-fab-size);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--mobile-contact-button-background, #28a745) 75%, #000);
  border-radius: 50%;
  background: var(--mobile-contact-button-background, #28a745);
  color: var(--mobile-contact-button-text, #fff);
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
  pointer-events: auto;
}

.mobile-contact-chip:hover,
.mobile-contact-chip:focus-visible {
  background: var(--mobile-contact-button-hover, #218838);
  color: var(--mobile-contact-button-text, #fff);
  transform: translate3d(var(--chip-x, 0px), calc(var(--chip-y, -72px) - 2px), 0) scale(1);
}

.mobile-contact-fab img,
.mobile-contact-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.mobile-contact-fab {
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: calc(var(--mobile-contact-half-size) * -1);
  transform: translate3d(0, 0, 0);
  z-index: 2;
  will-change: transform;
}

.mobile-contact-fab:hover,
.mobile-contact-fab:focus-visible {
  background: var(--mobile-contact-button-hover, #218838);
  color: var(--mobile-contact-button-text, #fff);
  transform: translate3d(0, -2px, 0);
}

.mobile-contact-fab img {
  filter: brightness(0) invert(1);
}

.mobile-contact-tray {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mobile-contact-tray[hidden] {
  display: none !important;
}

.mobile-contact-chip {
  position: absolute;
  left: 50%;
  margin-left: calc(var(--mobile-contact-half-size) * -1);
  bottom: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.68);
  transition:
    transform .48s cubic-bezier(.18, .9, .2, 1.14),
    opacity .28s ease,
    background-color .18s ease;
  transition-delay: var(--chip-delay, 0ms);
  will-change: transform, opacity;
}

.mobile-contact-actions.open .mobile-contact-chip {
  opacity: 1;
  transform: translate3d(var(--chip-x, 0px), var(--chip-y, -72px), 0) scale(1);
  pointer-events: auto;
}

.mobile-contact-actions.closing .mobile-contact-chip {
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.68);
}

.mobile-contact-actions.open .mobile-contact-fab {
  background: var(--mobile-contact-button-hover, #218838);
  transform: translate3d(0, 0, 0);
}

#mobile-nav-bar .mobile-item a.active,
#mobile-nav-bar .mobile-dropdown-button.active,
#mobile-nav-bar .mobile-dropdown-menu a.active {
  color: #ffd166;
}

#mobile-nav-bar .mobile-dropdown-button.active {
  border-left-color: #ffd166;
}

#mobile-nav-bar .mobile-dropdown-menu a.active {
  opacity: 1;
  font-weight: 700;
}

@media (min-width: 1025px) {
  .mobile-contact-actions {
    display: none !important;
  }
}

@media (max-width: 420px) {
  #mobile-nav-bar .mobile-bar-contents {
    gap: 8px;
  }

  #mobile-nav-bar .mobile-emergency-btn {
    margin-left: 50px;
    font-size: 0.7rem;
    padding: 8px 10px;
  }

  #mobile-nav-bar .mobile-brand-wrapper span {
    font-size: 0.88rem;
  }

  .mobile-contact-actions {
    width: 100%;
    height: 150px;
  }

  .mobile-contact-fab,
  .mobile-contact-chip {
    width: var(--mobile-contact-fab-size);
    height: var(--mobile-contact-fab-size);
  }

  .mobile-contact-fab img,
  .mobile-contact-chip img {
    width: 24px;
    height: 24px;
  }
}
