/* Modern Hamburger Menu Design */

/* Hide desktop menu on mobile */
@media (max-width: 767px) {
  .header__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    padding: 80px 0 40px;
    overflow-y: auto;
  }
  
  .header__menu.is-open {
    right: 0;
  }
  
  .header__menu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .header__menu-link {
    display: block;
    padding: 20px 30px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  
  .header__menu-link:hover {
    background: #fafafa;
    color: #7cc576;
    padding-left: 35px;
  }
  
  /* Mobile menu overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .menu-overlay.is-active {
    display: block;
    opacity: 1;
  }
}

/* Hamburger Button - Always visible on mobile */
.header__menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Hamburger Icon Animation */
.header__menu-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 20px;
}

.header__menu-icon::before,
.header__menu-icon::after,
.header__menu-icon span {
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  background: #2c3e50;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__menu-icon::before {
  content: '';
  top: 0;
}

.header__menu-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.header__menu-icon::after {
  content: '';
  bottom: 0;
}

/* Hamburger to X animation */
.header__menu-toggle.is-active .header__menu-icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__menu-toggle.is-active .header__menu-icon span {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.header__menu-toggle.is-active .header__menu-icon::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Header adjustments for mobile */
@media (max-width: 767px) {
  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }
  
  .header__brand {
    flex: 1;
  }
  
  .header__cta {
    display: none; /* Hide CTA buttons on mobile */
  }
  
  .header__nav {
    margin-left: auto;
  }
}

/* Desktop menu styles (768px and up) */
@media (min-width: 768px) {
  .header__menu-toggle {
    display: none !important;
  }
  
  .menu-overlay {
    display: none !important;
  }
  
  .header__menu {
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    right: auto;
  }
  
  .header__menu li {
    display: inline-block;
    border: none;
  }
  
  .header__menu-link {
    display: inline-block;
    padding: 8px 16px;
    color: #4a5568;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .header__menu-link:hover {
    background: #f8f9fa;
    color: #7cc576;
    padding-left: 16px;
  }
}

/* Add smooth menu icon in header */
.header__menu-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  opacity: 1;
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

/* CTA buttons in mobile menu */
@media (max-width: 767px) {
  .mobile-menu-cta {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    margin-top: 20px;
  }
  
  .mobile-menu-cta__title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .mobile-menu-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .mobile-menu-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .mobile-menu-cta__btn--phone {
    background: #10b981;
    color: white;
  }
  
  .mobile-menu-cta__btn--phone:hover {
    background: #059669;
  }
  
  .mobile-menu-cta__btn--line {
    background: #00c73c;
    color: white;
  }
  
  .mobile-menu-cta__btn--line:hover {
    background: #00b22d;
  }
  
  .mobile-menu-cta__btn--contact {
    background: #7cc576;
    color: white;
  }
  
  .mobile-menu-cta__btn--contact:hover {
    background: #5ba656;
  }
}