:root {
  --contact-bar-height: 64px;
  --navbar-height: 80px;
}

/* Top Contact Bar */
.top-contact-bar {
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
  color: #ffffff;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(186, 176, 120, 0.2);
  z-index: 1050;
  height: 64px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease; /* Add transition for smooth hide/show */
}

/* Hide contact bar when mobile menu is active */
.mobile-menu-overlay.active ~ .top-contact-bar,
body.mobile-menu-open .top-contact-bar {
  transform: translateY(-100%);
}

.top-contact-bar .contact-info .contact-item {
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.top-contact-bar .contact-info .contact-item:hover {
  color: var(--primary-color);
}

.top-contact-bar .contact-info i {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

/* Location link styling */
.location-link {
  color: #e0e0e0 !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.location-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

.location-link i {
  color: var(--primary-color);
}

.top-contact-bar .phone-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.top-contact-bar .phone-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.top-contact-bar .phone-link i {
  color: inherit;
}

/* Mobile Contact Buttons */
.mobile-contact-buttons {
  padding: 0.5rem 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(186, 176, 120, 0.15);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.contact-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 176, 120, 0.4);
}

.contact-btn.phone-btn {
  width: auto;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-btn.phone-btn span {
  margin-left: 0.25rem;
}

/* WhatsApp specific styling */
.contact-btn .fa-whatsapp {
  color: #25d366;
}

.contact-btn:hover .fa-whatsapp {
  color: #ffffff;
}

/* Location button specific styling */
.contact-btn .fa-map-marker-alt {
  color: var(--primary-color);
}

.contact-btn:hover .fa-map-marker-alt {
  color: #ffffff;
}

/* Main Header */
.main-header {
  z-index: 1040;
}

.navbar {
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  height: 80px;
  border-bottom: 1px solid rgba(186, 176, 120, 0.1);
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-weight: 700;
  color: var(--dark-color) !important;
  text-decoration: none;
}

.brand-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.brand-text .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.2;
}

.brand-text .brand-subtitle {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1;
}

/* Desktop Navigation */
.desktop-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.desktop-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.desktop-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.desktop-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
}

/* Mobile Menu Toggle Wrapper - Default positioning within header */
.mobile-menu-toggle-wrapper {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 99999;
  transition: all 0.3s ease;
}

/* Custom Mobile Menu Toggle */
.mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(186, 176, 120, 0.2);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle:hover .hamburger-line {
  background-color: var(--primary-dark);
}

.mobile-menu-toggle.active {
  background: rgba(26, 26, 26, 0.95);
  border-color: var(--primary-color);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #ffffff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background-color: #ffffff;
}

/* Full-Screen Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(34, 34, 34, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 1.5rem; /* Equal padding on all sides */
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  /* Remove the top padding - menu starts from the very top */
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mobile-brand-fallback .brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.mobile-brand-fallback .brand-subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1;
}

.mobile-menu-close {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: rotate(90deg);
  box-shadow: 0 4px 15px rgba(186, 176, 120, 0.4);
}

/* Mobile Navigation */
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mobile-nav-item {
  margin-bottom: 0;
}

/* Enhanced Mobile Navigation */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.mobile-nav-link .dropdown-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.mobile-nav-item.has-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Enhanced Mobile Dropdown */
.mobile-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: transparent;
  border-radius: 0;
}

.mobile-nav-item.has-dropdown.active .mobile-dropdown {
  max-height: 600px;
  padding: 1rem 0;
}

.mobile-dropdown-link {
  display: block;
  padding: 0.75rem 0 0.75rem 1.5rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 300;
  transition: all 0.3s ease;
  border-radius: 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: none;
}

.mobile-dropdown-link:hover {
  color: var(--primary-color);
  background: rgba(186, 176, 120, 0.15);
  padding-left: 2rem;
}

/* Enhanced Mobile Menu CTA */
.mobile-menu-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-cta .btn-cta {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  padding: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(186, 176, 120, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-cta .btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(186, 176, 120, 0.4);
}

/* Mobile-specific positioning */
@media (max-width: 991.98px) {
  .top-contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1060;
  }

  /* Main header scrolls normally - no fixed positioning */
  .main-header {
    position: relative; /* Normal flow */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  /* Make ONLY the mobile menu toggle independently fixed */
  .mobile-menu-toggle-wrapper {
    position: fixed;
    top: 74px; /* Just below the contact bar with some margin */
    right: 1rem;
    transform: none;
    z-index: 1070; /* Higher than everything else */
    transition: all 0.3s ease;
  }
}

/* Mobile-specific menu content adjustments */
@media (max-width: 767.98px) {
  .mobile-menu-content {
    padding: 1rem; /* Smaller padding for smaller screens */
  }

  .mobile-nav-link {
    font-size: 1.3rem;
  }

  .mobile-dropdown-link {
    font-size: 1.2rem;
    padding-left: 1rem;
  }

  .mobile-dropdown-link:hover {
    padding-left: 1.1rem;
  }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 768px) {
  .mobile-menu-toggle-wrapper {
    display: none;
  }
}
