@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Cairo:wght@400;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ==========================================================================
   CODHAUS REUSABLE MODERN MULTI-STEP HEADER COMPONENT (v3.1)
   ========================================================================== */

/* Modern Header Bar */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent !important;
  z-index: 10000;
  border-bottom: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.modern-header.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.header-logo img,
.modern-header .header-logo img,
.overlay-topbar .header-logo img {
  height: 34px !important;
  max-height: 34px !important;
  width: auto !important;
  max-width: 160px !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7c948;
  color: #000000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.header-quote-btn:hover {
  background: #ffdb6e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247, 201, 72, 0.35);
  color: #000000;
}
.header-hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 42px;
  height: 42px;
  transition: transform 0.25s ease;
}
.header-hamburger-btn:hover {
  transform: scale(1.08);
}
.hamburger-bar {
  display: block;
  width: 28px;
  height: 2.2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.modern-header .hamburger-bar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Header Mount Wrapper */
#codhaus-header {
  position: relative;
  z-index: 999999;
}

/* Fullscreen Multi-Step Overlay */
.multistep-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000 !important;
  background: #000000 !important;
  z-index: 9999999 !important;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.multistep-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Full-page Transition Curtain (Disabled to prevent black screen on back navigation) */
.page-transition-curtain,
.page-transition-curtain.active {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.overlay-topbar {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  flex-shrink: 0;
}
.overlay-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}
.overlay-close-btn:hover {
  color: #f7c948;
  transform: rotate(90deg);
}
.overlay-close-btn svg {
  display: block;
  width: 24px;
  height: 24px;
}
.overlay-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 30px 24px 50px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 201, 72, 0.4) transparent;
}
.overlay-viewport::-webkit-scrollbar {
  width: 6px;
}
.overlay-viewport::-webkit-scrollbar-thumb {
  background: rgba(247, 201, 72, 0.3);
  border-radius: 3px;
}
.overlay-step {
  width: 100%;
  min-height: 100%;
  display: none;
  opacity: 0;
  transform: translateY(0);
}
.overlay-step.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.step-content {
  width: 100%;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0;
  box-sizing: border-box;
}

/* Step 1: Main Menu (Grand Typography Layout) */
.main-menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4.5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0;
}
.menu-big-link,
.multistep-overlay a.menu-big-link.lang-toggle-btn,
.multistep-overlay a.menu-big-link {
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif !important;
  font-size: clamp(2.2rem, 4.8vw, 4rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 0 !important;
}
.menu-big-link:hover,
.multistep-overlay a.menu-big-link.lang-toggle-btn:hover,
.multistep-overlay a.menu-big-link:hover {
  color: #f7c948 !important;
  background: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

/* Back Button */
.menu-back-btn {
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 24px;
  cursor: pointer;
  margin-bottom: 50px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.menu-back-btn:hover {
  border-color: #f7c948;
  color: #f7c948;
  background: rgba(247, 201, 72, 0.08);
  transform: translateY(-2px);
}

/* Step 2: Categories (Flex-Wrap Luxury Layout) */
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 55px);
  max-width: 1180px;
  margin: 0 auto;
}
.category-item-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.category-item-btn:hover {
  color: #f7c948;
  transform: translateY(-2px);
}
.cat-icon {
  font-size: 0.65em;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.category-item-btn:hover .cat-icon {
  transform: scale(1.15);
  opacity: 1;
}

/* Step 3: Subservices (Flex-Wrap Luxury Layout) */
.subservices-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3.6vw, 50px);
  max-width: 1180px;
  margin: 0 auto;
}
.subservice-item-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.subservice-item-link:hover {
  color: #f7c948;
  transform: translateY(-2px);
}

/* Tablet & Mobile Media Queries */
@media (max-width: 768px) {
  .header-inner, .overlay-topbar {
    padding: 0 20px;
  }
  .modern-header, .overlay-topbar {
    height: 68px;
  }
  .header-actions {
    gap: 14px;
  }
  .header-logo img,
  .modern-header .header-logo img,
  .overlay-topbar .header-logo img {
    height: 28px !important;
    max-height: 28px !important;
    width: auto !important;
    max-width: 125px !important;
  }
  .header-quote-btn {
    font-size: 11px;
    padding: 8px 14px;
    letter-spacing: 0.03em;
  }
  .header-hamburger-btn {
    width: 38px;
    height: 38px;
    padding: 4px;
    gap: 6px;
  }
  .overlay-viewport {
    padding: 15px 16px 25px;
  }
  .menu-big-link,
  .multistep-overlay a.menu-big-link.lang-toggle-btn,
  .multistep-overlay a.menu-big-link {
    font-size: clamp(1.25rem, 5.2vw, 1.75rem) !important;
    display: inline-flex !important;
  }
  .category-item-btn {
    font-size: clamp(1.1rem, 4.4vw, 1.45rem);
    justify-content: center;
    text-align: center;
    padding: 6px 12px;
    width: 100%;
  }
  .subservice-item-link {
    font-size: clamp(1rem, 4vw, 1.35rem);
    text-align: center;
    justify-content: center;
  }
  .main-menu-grid {
    flex-direction: column;
    gap: 14px;
    padding: 10px 0;
  }
  .categories-grid {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
  }
  .subservices-grid {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .menu-back-btn {
    margin-bottom: 24px;
    padding: 6px 18px;
    font-size: 12px;
  }
}

/* Small Mobile Media Queries */
@media (max-width: 480px) {
  .header-inner, .overlay-topbar {
    padding: 0 16px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-logo img,
  .modern-header .header-logo img,
  .overlay-topbar .header-logo img {
    height: 25px !important;
    max-height: 25px !important;
    max-width: 110px !important;
  }
  .header-quote-btn {
    font-size: 10.5px;
    padding: 7px 11px;
    letter-spacing: 0.02em;
  }
  .header-hamburger-btn {
    width: 36px;
    height: 36px;
    gap: 5px;
    padding: 2px;
  }
  .hamburger-bar {
    width: 20px;
    height: 2px;
  }
}

/* Extra Small Mobile Media Queries (iPhone SE, etc.) */
@media (max-width: 360px) {
  .header-inner, .overlay-topbar {
    padding: 0 12px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-logo img,
  .modern-header .header-logo img,
  .overlay-topbar .header-logo img {
    height: 22px !important;
    max-height: 22px !important;
    max-width: 92px !important;
  }
  .header-quote-btn {
    font-size: 9.5px;
    padding: 6px 8px;
    letter-spacing: 0.01em;
  }
  .header-hamburger-btn {
    width: 34px;
    height: 34px;
  }
}
