/* =====================================================
   ELM.LEBLANC RESPONSIVE HEADER STYLES - 2025
   Mobile-First with Navigation
   ===================================================== */

/* =====================================================
   1. HEADER MAIN CONTAINER
   ===================================================== */

.header-main {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* =====================================================
   2. LOGO STYLES
   ===================================================== */

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.85;
}

.header-logo img {
  height: auto;
  width: 320px;
  max-width: 100%;
}

/* =====================================================
   3. FIXED CALL BUTTON (Mobile)
   ===================================================== */

.btnappel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #0047BA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 71, 186, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btnappel i {
  color: #FFFFFF;
  font-size: 24px;
}

.btnappel:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 71, 186, 0.5);
}

.btnappel:active {
  transform: scale(0.95);
}

.btnappel:focus {
  outline: 2px solid #0047BA;
  outline-offset: 4px;
}

/* =====================================================
   5. ACCESSIBILITY
   ===================================================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0047BA;
  color: #FFFFFF;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 2000;
}

.skip-to-content:focus {
  top: 0;
}

/* =====================================================
   6. DESKTOP NAVIGATION (>1024px)
   ===================================================== */

.desktop-nav {
  display: none; /* Hidden on mobile/tablet by default */
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 var(--space-8, 32px);
  }

  .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6, 24px);
  }

  .nav-list li {
    list-style: none;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    text-decoration: none;
    padding: var(--space-4, 16px);
    transition: color 0.3s ease;
    white-space: nowrap;
  }

  .nav-list a:hover {
    color: #0047BA;
  }

  .nav-list a:focus {
    outline: 2px solid #0047BA;
    outline-offset: 4px;
    border-radius: 4px;
  }
}

/* =====================================================
   7. HAMBURGER MENU BUTTON
   ===================================================== */

.hamburger-btn {
  display: none; /* Show only on tablet/mobile */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .hamburger-btn {
    display: flex;
  }
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: #2C3E50;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
  background: #0047BA;
}

.hamburger-btn:focus {
  outline: 2px solid #0047BA;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Hamburger → X animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

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

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

/* =====================================================
   8. MOBILE MENU OVERLAY
   ===================================================== */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Mobile Menu Container (slides from right) */
.mobile-menu-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-container {
  transform: translateX(0);
}

/* =====================================================
   9. MOBILE MENU CLOSE BUTTON
   ===================================================== */

.mobile-menu-close {
  position: absolute;
  top: var(--space-4, 16px);
  right: var(--space-4, 16px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8F9FA;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
}

.mobile-menu-close:hover {
  background: #E5E7EB;
}

.mobile-menu-close:focus {
  outline: 2px solid #0047BA;
  outline-offset: 2px;
}

/* =====================================================
   10. MOBILE NAVIGATION
   ===================================================== */

.mobile-menu-nav {
  flex: 1;
  padding: var(--space-12, 48px) var(--space-6, 24px);
}

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

.mobile-nav-list li {
  list-style: none !important;
  border-bottom: 1px solid #E5E7EB;
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  padding: var(--space-4, 16px);
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 56px; /* Touch target */
}

.mobile-nav-list a:hover {
  background: #F8F9FA;
  color: #0047BA;
  padding-left: var(--space-6, 24px);
}

.mobile-nav-list a:focus {
  outline: 2px solid #0047BA;
  outline-offset: -2px;
}

/* =====================================================
   11. MOBILE MENU FOOTER
   ===================================================== */

.mobile-menu-footer {
  padding: var(--space-6, 24px);
  border-top: 1px solid #E5E7EB;
  background: #F8F9FA;
}

.mobile-phone-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3, 12px);
  background: #0047BA;
  color: #FFFFFF;
  padding: var(--space-4, 16px);
  border-radius: var(--radius-md, 8px);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: var(--space-3, 12px);
  transition: background 0.3s ease;
}

.mobile-phone-cta:hover {
  background: #003A9B;
}

.mobile-phone-cta:focus {
  outline: 2px solid #0047BA;
  outline-offset: 2px;
}

.availability-badge {
  text-align: center;
  color: #28A745;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

/* =====================================================
   12. PREVENT BODY SCROLL WHEN MENU OPEN
   ===================================================== */

body.menu-open {
  overflow: hidden;
}

/* =====================================================
   13. REDUCED MOTION ACCESSIBILITY
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
  .hamburger-line,
  .mobile-menu-overlay,
  .mobile-menu-container,
  .nav-list a,
  .mobile-nav-list a {
    transition: none;
  }
}
