/* === MODERN MOBILE MENU STYLES === */

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  position: relative;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(26, 54, 93, 0.1);
  backdrop-filter: blur(10px);
  /* Ensure hamburger lines are centered */
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background: rgba(26, 54, 93, 0.2);
  transform: scale(1.05);
}

.hamburger-btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hamburger Animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--light-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(26, 54, 93, 0.1);
  background: var(--gradient-primary);
  color: var(--light-color);
}

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

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

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Mobile Menu Content */
.mobile-menu-content {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Mobile Navigation Links */
.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  flex: 1;
}

.mobile-nav-links li {
  opacity: 0;
  transform: translateX(30px);
  animation-fill-mode: forwards;
}

.mobile-menu.active .mobile-nav-links li {
  animation: slideInFromRight 0.5s ease-out forwards;
}

.mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-links li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-links li:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  gap: 1rem;
}

.mobile-nav-links a i {
  font-size: 1.2rem;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: rgba(26, 54, 93, 0.05);
  border-left-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateX(4px);
}

.mobile-nav-links a.active i {
  color: var(--secondary-color);
}

/* Mobile Call Button */
.mobile-menu-cta {
  padding: 1.5rem;
  border-top: 1px solid rgba(26, 54, 93, 0.1);
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--light-color);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
  transition: all 0.3s ease;
}

.mobile-call-btn:hover {
  background: var(--gradient-secondary);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 173, 85, 0.3);
}

.mobile-call-btn i {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-call-btn div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.call-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.phone-number {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 1.5rem;
  background: rgba(26, 54, 93, 0.02);
}

.mobile-business-info {
  margin-bottom: 1.5rem;
}

.mobile-business-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.mobile-business-info i {
  color: var(--secondary-color);
  width: 16px;
  text-align: center;
}

/* Social Links */
.mobile-social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.mobile-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.mobile-social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Desktop Styles */
@media (min-width: 992px) {
  .desktop-nav {
    display: block;
  }

  .hamburger-btn,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-color);
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
}

/* Mobile Styles */
@media (max-width: 991px) {
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta {
    order: 1;
    margin-right: 0.5rem;
    gap: 0.5rem;
  }

  .hamburger-btn {
    order: 2;
    margin-left: 0.5rem;
  }
}