/**
 * responsive-nav-breadcrumb.css
 * -----------------------------------------------------------------------------
 * 1. Mobile Navigation & Header Spacing Alignment
 * 2. Breadcrumb Hero Banner Responsive Scaling, Positioning & Legibility
 * 3. Mobile Navigation Drawer Polish
 * -----------------------------------------------------------------------------
 */

:root {
  --header-height-mobile: 68px;
  --header-height-tablet: 72px;
  --header-height-desktop: 154px;
  --banner-bg-fallback: #f4f5f3;
  --text-primary-color: #1c1c1c;
}

/* =============================================================================
   1. HEADER & NAVIGATION (MOBILE + DESKTOP SPACING)
   ============================================================================= */

/* Mobile header styling: ensure crisp frosted backdrop & defined height */
@media (max-width: 991.98px) {
  .header-section {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    z-index: 1000;
  }

  /* When mobile drawer is open: elevate header stacking context and disable header blur */
  .header-section.menu-open {
    z-index: 1050 !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none;
  }

  .header-section.menu-open .navbar-area {
    pointer-events: auto;
  }

  .header-section .logo img {
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  /* Touch-friendly navigation buttons */
  .header-section .nav-btns {
    gap: 0.65rem !important;
  }

  .header-section .nav-btns .icon-36px,
  .header-section .nav-btns .menu-toggle-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }

  .header-section .nav-btns .icon-36px:active,
  .header-section .nav-btns .menu-toggle-btn:active {
    transform: scale(0.92);
    background-color: rgba(0, 0, 0, 0.05);
  }
}

/* =============================================================================
   2. MOBILE NAVIGATION + BREADCRUMB SPACING RESOLUTION
   =============================================================================
   Eliminates the spacing gap / mismatch between fixed header and breadcrumb.
   Main starts flush below the fixed header, banner begins with 0 gap/overlap.
   ============================================================================= */

@media (max-width: 575.98px) {
  main.pt-12 {
    padding-top: var(--header-height-mobile, 68px) !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  main.pt-12 {
    padding-top: var(--header-height-tablet, 72px) !important;
  }
}

/* Ensure no rogue margins push the hero section down */
.inner-hero-section {
  margin-top: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  background-color: var(--banner-bg-fallback) !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* =============================================================================
   3. BREADCRUMB HERO BANNER RESPONSIVE BACKGROUND & COMPOSITION
   =============================================================================
   The panoramic banner (1920x500) has empty studio space on the left and the
   bicycle on the right. We adapt background-position, background-size, and
   overlay gradients intelligently so the bicycle is never cropped out, text
   is never unreadable, and the section does not get excessively tall.
   ============================================================================= */

/* Contrast Overlay: Soft studio gradient protects text legibility on left
   while leaving the bicycle 100% visible and unmasked on right */
.inner-hero-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  background: linear-gradient(
    90deg,
    rgba(244, 245, 243, 0.97) 0%,
    rgba(244, 245, 243, 0.90) 42%,
    rgba(244, 245, 243, 0.50) 68%,
    rgba(244, 245, 243, 0.05) 95%
  ) !important;
}

/* Keep inner content above gradient overlay */
.inner-hero-section > * {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
}

/* Vertical centering for container inside inner-hero-section */
.inner-hero-section .container-fluid,
.inner-hero-section .container {
  display: flex !important;
  align-items: center !important;
  min-height: inherit !important;
}

/* Breadcrumb heading typography */
.inner-hero-section .text-h1,
.inner-hero-section .text-h2,
.inner-hero-section h1,
.inner-hero-section h2 {
  font-weight: 700 !important;
  color: var(--text-primary-color) !important;
  margin-bottom: 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* -----------------------------------------------------------------------------
   BREAKPOINT CONFIGURATIONS
   ----------------------------------------------------------------------------- */

/* A. Desktop Large (>= 1400px) */
@media (min-width: 1400px) {
  .inner-hero-section {
    min-height: 240px !important;
    padding-top: 150px !important;
    padding-bottom: 75px !important;
    background-size: cover !important;
    background-position: right 4% center !important;
  }
}

/* B. Desktop Standard (1200px - 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .inner-hero-section {
    min-height: 220px !important;
    padding-top: 140px !important;
    padding-bottom: 65px !important;
    background-size: cover !important;
    background-position: right 2% center !important;
  }
}

/* C. Laptop / Medium Desktop (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .inner-hero-section {
    min-height: 200px !important;
    padding-top: 130px !important;
    padding-bottom: 55px !important;
    background-size: cover !important;
    background-position: right center !important;
  }
}

/* D. Tablet (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .inner-hero-section {
    min-height: 150px !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    background-size: cover !important;
    background-position: right 0 center !important;
  }

  .inner-hero-section::before {
    background: linear-gradient(
      90deg,
      rgba(244, 245, 243, 0.96) 0%,
      rgba(244, 245, 243, 0.88) 45%,
      rgba(244, 245, 243, 0.40) 72%,
      rgba(244, 245, 243, 0.00) 95%
    ) !important;
  }

  .inner-hero-section .text-h1,
  .inner-hero-section h1 {
    font-size: 28px !important;
  }
}

/* E. Mobile Landscape & Large Phones (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .inner-hero-section {
    min-height: 130px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    background-size: cover !important;
    background-position: right -15px center !important;
  }

  .inner-hero-section::before {
    background: linear-gradient(
      90deg,
      rgba(244, 245, 243, 0.97) 0%,
      rgba(244, 245, 243, 0.90) 48%,
      rgba(244, 245, 243, 0.45) 75%,
      rgba(244, 245, 243, 0.10) 100%
    ) !important;
  }

  .inner-hero-section .text-h1,
  .inner-hero-section h1 {
    font-size: 26px !important;
  }
}

/* F. Standard Mobile (375px - 575.98px) */
@media (max-width: 575.98px) {
  .inner-hero-section {
    min-height: 108px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    background-size: cover !important;
    background-position: right -10px center !important;
  }

  /* Stronger left protection so title text is crisp over any bicycle overlap */
  .inner-hero-section::before {
    background: linear-gradient(
      90deg,
      rgba(244, 245, 243, 0.98) 0%,
      rgba(244, 245, 243, 0.92) 52%,
      rgba(244, 245, 243, 0.50) 78%,
      rgba(244, 245, 243, 0.15) 100%
    ) !important;
  }

  .inner-hero-section .text-h1,
  .inner-hero-section h1 {
    font-size: 24px !important;
    max-width: 65% !important;
    display: inline-block !important;
  }

  .inner-hero-section .text-h2,
  .inner-hero-section h2 {
    font-size: 20px !important;
    max-width: 65% !important;
  }
}

/* G. Ultra-compact Mobile (< 375px, e.g. 320px - 360px) */
@media (max-width: 374.98px) {
  .inner-hero-section {
    min-height: 98px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    background-size: cover !important;
    background-position: right -20px center !important;
  }

  .inner-hero-section::before {
    background: linear-gradient(
      90deg,
      rgba(244, 245, 243, 0.99) 0%,
      rgba(244, 245, 243, 0.94) 55%,
      rgba(244, 245, 243, 0.55) 82%,
      rgba(244, 245, 243, 0.20) 100%
    ) !important;
  }

  .inner-hero-section .text-h1,
  .inner-hero-section h1 {
    font-size: 21px !important;
    max-width: 62% !important;
  }
}

/* =============================================================================
   4. MOBILE NAVIGATION DRAWER POLISH
   =============================================================================
   Upgrade default clumsy lime-green drawer to a clean, modern off-white drawer.
   ============================================================================= */

@media (max-width: 991.98px) {
  .navbar-area {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(85vw, 360px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.16) !important;
    z-index: 1050 !important;
    padding: 24px 20px !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .navbar-area.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Reset default green background (#7D8877) from style.css */
  .navbar-area .nav-menu-items {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .navbar-area .nav-menu-items .menu-link,
  .navbar-area .nav-menu-items .menu-item {
    width: 100% !important;
    display: block !important;
  }

  .navbar-area .nav-menu-items .menu-link a,
  .navbar-area .nav-menu-items .menu-item button {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: #1a1a1a !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    text-align: left !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
  }

  .navbar-area .nav-menu-items .menu-link a:hover,
  .navbar-area .nav-menu-items .menu-link a.active,
  .navbar-area .nav-menu-items .menu-item button:hover {
    background: #f4f5f3 !important;
    color: var(--secondary2, #eb453b) !important;
  }

  .navbar-area .nav-menu-items .slide-vertical,
  .navbar-area .nav-menu-items .slide-vertical .char,
  .navbar-area .nav-menu-items .slide-vertical .char::before,
  .navbar-area .nav-menu-items .slide-vertical .char::after {
    color: inherit !important;
    font-family: inherit !important;
  }

  .navbar-area .menu-close-btn {
    border: none !important;
    background: transparent !important;
    padding: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
  }

  .navbar-area .menu-close-btn span {
    background: #f4f5f3 !important;
    color: #1a1a1a !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 0 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
  }

  .navbar-area .menu-close-btn:hover span {
    background: #eb453b !important;
    color: #ffffff !important;
  }
}

/* Mobile Nav Backdrop Overlay: Clean, elegant semi-transparent overlay without full-page blur */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Ensure floating WhatsApp button does not overlap or distract from open drawer */
body.overflow-hidden .wh-btn,
.header-section.menu-open ~ .wh-btn,
.mobile-nav-backdrop.active ~ .wh-btn {
  z-index: 1030 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease !important;
}
