/* ==========================================================================
   FIT EZ - LAYOUT OVERRIDES (shared by dark AND light mode)
   This is the structural half of the old dark "glass revamp": centred hero,
   mobile slide-out drawer geometry, spacing and sizing. It contains NO colours.
   All dark-mode colours live in css/theme-dark.css, which is switched off in
   light mode (see js/theme-init.js). Light-only extras: css/theme-light.css.
   ========================================================================== */

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  position: relative;
}

.hero-section {
  text-align: center !important;
}

.hero-section::before,
.hero-section::after {
  display: none !important;
}

.hero-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}

.hero-visual-wrap {
  display: none !important;
}

.hero-content {
  text-align: center !important;
  max-width: 780px !important;
  margin: 0 auto !important;
}

.hero-h1 {
  font-size: 4rem !important;
}

.hero-tagline {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-proof-row {
  justify-content: center !important;
}

.hero-cta-wrapper {
  margin: 0 auto !important;
  align-items: center !important;
}

.hero-cta-row {
  justify-content: center !important;
}

.hero-pricing-line {
  justify-content: center !important;
}

.results-img-wrap,
.before-after-wrap {
  border-radius: 14px;
}

.pricing-tabs {
  padding: 0.35rem !important;
  border-radius: 50px !important;
}

.pricing-tab-btn {
  border-radius: 50px !important;
}

.pricing-tab-btn.active {
  font-weight: 700 !important;
}

.nav-backdrop-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9990 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1023px) {
  html,
  body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    width: 100% !important;
  }

  body.nav-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  .header {
    z-index: 10000 !important;
    overflow: visible !important;
  }

  body.nav-open .header,
  .header:has(.nav-menu.open) {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  .navigation-bar {
    display: contents !important;
    overflow: visible !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    order: 10 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    z-index: 10003 !important;
    transition: all 0.25s ease !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -105% !important;
    width: min(320px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 5.5rem 1.6rem 3rem !important;
    gap: 0.65rem !important;
    z-index: 10002 !important;
    transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .nav-menu.open {
    right: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-menu .nav-item {
    width: 100% !important;
  }

  .nav-menu .nav-item a {
    display: flex !important;
    align-items: center !important;
    padding: 0.82rem 1.25rem !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.01em !important;
  }

  .nav-menu .nav-item.active a,
  .nav-menu .nav-item a.active {
    font-weight: 700 !important;
  }

  .nav-menu li:last-child {
    margin-top: 1.25rem !important;
    width: 100% !important;
  }

  .nav-menu #nav-cta-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.95rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
  }

  .hero-h1 {
    font-size: 2.8rem !important;
  }

}

@media (max-width: 640px) {
  .hero-h1 {
    font-size: 2.2rem !important;
  }

}

