/* ==========================================================================
   WAYONAA EV - Responsive Stylesheet (responsive.css)
   Breakpoints: 1920px, 1440px, 1024px, 768px, 390px, 375px
   ========================================================================== */

/* --- 1. Large Desktops (>= 1200px) --- */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.2rem;
  }

  .savings-metrics-track {
    padding: 2rem 2.25rem;
  }

  .metric-value.val-total {
    font-size: 2.35rem;
  }
}

@media (min-width: 1440px) {
  .hero-scooter-stage {
    max-width: 720px;
    transform: scale(1.1) translateY(-10px);
  }
}

/* --- 2. Laptops & Medium Desktops (992px to 1199.98px) --- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    background-position: 85% center;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .navbar-nav-center {
    gap: 1.25rem;
  }

  .savings-metrics-track {
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .metric-value.val-total {
    font-size: 1.85rem;
  }
}

/* --- 3. Tablets (< 992px) --- */
@media (max-width: 991.98px) {
  .wayonaa-navbar {
    padding: 0.75rem 0;
  }

  /* Mobile/Tablet Collapse Menu */
  .wayonaa-navbar .navbar-collapse {
    background-color: #FFFFFF;
    border: 1px solid var(--color-subtle-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav-center {
    gap: 0.35rem;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-subtle-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .wayonaa-navbar .nav-link {
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
    width: 100%;
  }

  .wayonaa-navbar .nav-link.active::after {
    display: none;
  }

  .wayonaa-navbar .nav-link.active {
    color: var(--color-wayonaa-orange);
  }

  /* Hide desktop mega menu on mobile & tablet */
  .wayonaa-mega-menu {
    display: none !important;
  }

  .wayonaa-navbar .dropdown-menu {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-subtle-border);
    margin: 0.25rem 0 0.5rem 0.5rem;
    width: calc(100% - 1rem);
    padding: 0.5rem;
    box-shadow: none;
  }

  .mobile-product-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--color-subtle-border);
    margin-bottom: 0.45rem;
    text-decoration: none;
    transition: var(--transition-fast);
  }

  .mobile-product-item:hover,
  .mobile-product-item:active {
    background: var(--color-bg-secondary);
    border-color: var(--color-wayonaa-orange);
  }

  .mobile-product-thumb {
    width: 48px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  }

  .mobile-product-meta {
    flex-grow: 1;
  }

  .mobile-product-name {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-primary-text);
    display: block;
  }

  .mobile-product-sub {
    font-size: 0.72rem;
    color: var(--color-secondary-text);
    display: block;
  }

  .mobile-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-nav);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-wayonaa-orange);
    padding: 0.5rem 0.75rem;
    text-decoration: none;
  }

  .navbar-actions {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .btn-nav-login,
  .btn-nav-signup {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
  }

  /* ==========================================================================
     Hero Section Responsive Suite (Multi-Model Showcase Carousel)
     ========================================================================== */
  .hero-section {
    padding: 0 !important;
    overflow: hidden;
  }

  .hero-carousel,
  .hero-carousel .carousel-inner {
    width: 100%;
  }

  .hero-slide {
    background-image: none !important;
    background-color: #FFFFFF !important;
    min-height: auto !important;
    height: auto !important;
    padding: 2.25rem 0 3.25rem 0 !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  /* Disable absolute gradient and blur overlays on mobile so they don't wash out or blur text and banner */
  .hero-slide::before,
  .hero-slide::after,
  .hero-background::after {
    display: none !important;
  }

  .hero-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(1.15rem, 4vw, 2rem) !important;
    padding-right: clamp(1.15rem, 4vw, 2rem) !important;
    margin: 0 auto !important;
  }

  .hero-editorial-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    top: 0 !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  /* Responsive Headline */
  /* Responsive Hero Editorial Typography (Sora & Inter) */
  .hero-eyebrow {
    font-size: clamp(0.68rem, 2vw, 0.76rem) !important;
    margin-bottom: 0.55rem !important;
  }

  .hero-title-mask {
    margin-bottom: 0.65rem !important;
  }

  .hero-model-title {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(2.4rem, 7vw, 3.6rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .hero-tagline {
    font-size: clamp(1.15rem, 3.8vw, 1.55rem) !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    margin: 0 0 0.85rem 0 !important;
    text-align: left !important;
  }

  .hero-description {
    font-size: clamp(0.85rem, 2.4vw, 0.94rem) !important;
    line-height: 1.55 !important;
    margin: 0 0 1.35rem 0 !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  /* Responsive Subtitle (Legacy Fallback) */
  .hero-model-subtitle {
    font-size: clamp(0.78rem, 2.2vw, 0.92rem) !important;
    letter-spacing: 0.12em !important;
    line-height: 1.3 !important;
    margin: 0 0 1.25rem 0 !important;
    text-align: left !important;
  }

  /* Responsive Hero Key Specs Group */
  .hero-stats-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 1.4rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-stat-item {
    gap: 0.7rem !important;
  }

  .hero-stat-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .hero-stat-value {
    font-size: clamp(1.4rem, 4vw, 1.85rem) !important;
  }

  .hero-stat-label {
    font-size: 0.8rem !important;
    margin-top: 0.15rem !important;
  }

  .hero-stat-divider {
    height: 34px !important;
  }

  /* Responsive Spec Pill (Fallback) */
  .hero-spec-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    padding: 0.45rem 1.15rem !important;
    gap: 0.45rem !important;
    font-size: clamp(0.68rem, 1.8vw, 0.78rem) !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1.5rem !important;
    border-radius: 999px !important;
    background: rgba(245, 247, 250, 0.95) !important;
    border: 1px solid rgba(23, 25, 27, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    max-width: 100% !important;
  }

  .hero-spec-pill .spec-divider {
    margin: 0 0.2rem !important;
    opacity: 0.35 !important;
  }

  /* Responsive Action Buttons */
  .hero-model-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .btn-hero-explore,
  .btn-hero-testdrive {
    padding: 0.72rem 1.5rem !important;
    font-size: 0.88rem !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    transition: all 0.22s ease !important;
  }

  /* Mobile Showroom Banner Presentation */
  .hero-mobile-banner-col {
    display: block !important;
    width: 100% !important;
    margin-top: 1.65rem !important;
    padding: 0 !important;
  }

  .hero-mobile-banner-box {
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08) !important;
    background: #FFFFFF !important;
  }

  .hero-mobile-banner-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Navigation Controls */
  .hero-carousel-control {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
    top: 60% !important;
    z-index: 20 !important;
  }

  .hero-control-prev {
    left: 10px !important;
  }

  .hero-control-next {
    right: 10px !important;
  }

  .hero-carousel-indicators {
    bottom: 0.85rem !important;
  }

  .hero-carousel-indicators [data-bs-target] {
    width: 24px !important;
    height: 3px !important;
  }

  .hero-carousel-indicators [data-bs-target].active {
    width: 28px !important;
  }


  /* Savings Section Tablet Adapter */
  .savings-intro-col {
    text-align: center;
    margin-bottom: 2rem;
  }

  .savings-metrics-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .metric-card {
    min-width: 140px;
  }

  .metric-symbol {
    display: none;
  }

  /* Major Section Spacing on Tablet (< 992px) */
  .savings-section,
  .products-section,
  .faq-section {
    padding: var(--section-space-tablet, 115px) 0 !important;
  }

  /* Features Section Tablet Stacking */
  .features-section {
    background-image: none !important;
    padding: var(--section-space-tablet, 115px) 0 !important;
  }

  .wayonaa-footer {
    padding: 5.5rem 0 1.75rem 0 !important;
  }

  .features-intro-col {
    text-align: left;
    margin-bottom: 2rem;
  }

  .features-desc {
    max-width: 100%;
  }

  .features-stage-col {
    min-height: auto;
    margin-bottom: 2.25rem;
  }

  .features-mobile-img {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
  }

  .features-list-col {
    max-width: 100%;
    margin: 0;
  }
}

/* --- 4. Mobile Phones (< 768px) --- */
@media (max-width: 767.98px) {

  /* Major Section Spacing on Mobile (< 768px) */
  .savings-section,
  .products-section,
  .faq-section {
    padding: var(--section-space-mobile, 90px) 0 !important;
  }

  .features-section {
    padding: var(--section-space-mobile, 90px) 0 !important;
  }

  .wayonaa-footer {
    padding: 4.85rem 0 1.5rem 0 !important;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .hero-feature-line {
    flex-direction: column;
    gap: 0.75rem;
  }

  .feature-line-sep {
    display: none;
  }

  /* Savings Metrics 2x2 Grid on Mobile */
  .savings-metrics-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
    padding: 1.5rem 1rem;
  }

  .metric-card-total {
    grid-column: span 2;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-subtle);
  }

  .metric-value {
    font-size: 1.55rem;
  }

  .metric-value.val-total {
    font-size: 1.95rem;
  }

  /* Product Cards Full Width Stack */
  .product-card {
    margin-bottom: 2rem;
  }

  .product-card-header {
    padding: 1.75rem 1.5rem 0.85rem 1.5rem;
  }

  .product-video-stage {
    aspect-ratio: 1.25 / 1;
    min-height: 280px;
    max-height: 420px;
  }

  .product-card-footer {
    padding: 1.25rem 1.5rem 1.65rem 1.5rem;
  }

  /* Footer Mobile Stacking */
  .footer-col-brand {
    margin-bottom: 1.5rem;
  }

  .footer-heading {
    margin-top: 1rem;
    margin-bottom: 0.85rem;
  }

  .footer-bottom-strip {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }
}

/* --- 5. Small Mobile Viewports (< 576px / 390px / 375px) --- */
@media (max-width: 575.98px) {
  .navbar-brand-logo {
    height: 28px;
  }

  /* Hero Showcase Small Mobile (< 576px / 390px / 375px) */
  .hero-slide {
    padding: 1.5rem 0 2.75rem 0 !important;
  }

  .hero-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-eyebrow {
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 0.45rem !important;
  }

  .hero-model-title {
    font-size: clamp(2.1rem, 8.5vw, 2.8rem) !important;
    margin: 0 !important;
  }

  .hero-tagline {
    font-size: clamp(1.05rem, 4.4vw, 1.25rem) !important;
    margin-bottom: 0.65rem !important;
  }

  .hero-description {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.15rem !important;
  }

  .hero-model-subtitle {
    font-size: 0.74rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 1rem !important;
  }

  .hero-stats-group {
    gap: 1.15rem !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-stat-item {
    gap: 0.55rem !important;
  }

  .hero-stat-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .hero-stat-value {
    font-size: 1.35rem !important;
  }

  .hero-stat-label {
    font-size: 0.74rem !important;
  }

  .hero-stat-divider {
    height: 28px !important;
  }

  .hero-spec-pill {
    padding: 0.38rem 0.85rem !important;
    gap: 0.35rem !important;
    font-size: 0.65rem !important;
    margin-bottom: 1.15rem !important;
  }

  .hero-model-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.55rem !important;
    width: 100% !important;
  }

  .btn-hero-explore,
  .btn-hero-testdrive {
    flex: 1 1 0 !important;
    padding: 0.65rem 0.65rem !important;
    font-size: 0.78rem !important;
    text-align: center !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .hero-mobile-banner-col {
    margin-top: 1.25rem !important;
  }

  .hero-mobile-banner-box {
    border-radius: 12px !important;
  }

  .hero-carousel-control {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.82rem !important;
  }

  .hero-control-prev {
    left: 6px !important;
  }

  .hero-control-next {
    right: 6px !important;
  }

  .hero-scooter-showcase {
    max-width: 320px;
  }

  .features-mobile-img {
    max-width: 100%;
  }

  .metric-value {
    font-size: 1.4rem;
  }

  .metric-value.val-total {
    font-size: 1.75rem;
  }

  .product-card-header {
    padding: 1.65rem 1.35rem 0.85rem 1.35rem;
  }

  .product-name {
    font-size: 1.45rem;
  }

  .product-video-stage {
    aspect-ratio: 1.25 / 1;
    min-height: 240px;
    max-height: 340px;
    margin: 0;
  }

  .product-card-footer {
    padding: 1.15rem 1.35rem 1.5rem 1.35rem;
  }
}

/* ==========================================================================
   Product Detail Showcase Responsive Enhancements
   ========================================================================== */
@media (max-width: 991.98px) {
  .product-showcase-section {
    padding: 2.5rem 0 2rem 0;
  }

  .product-showcase-section .order-1 {
    order: 1 !important;
    text-align: center;
  }

  .product-showcase-eyebrow {
    justify-content: center;
  }

  .product-showcase-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .product-showcase-ctas {
    justify-content: center;
  }

  .product-trust-badges {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .product-showcase-section .order-2 {
    order: 2 !important;
  }

  .product-showcase-section .order-3 {
    order: 3 !important;
    margin-top: 1.5rem;
  }

  .showcase-stage-wrapper {
    min-height: auto;
  }

  .showcase-main-scooter-img {
    max-height: 320px;
  }

  .engineering-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .variants-cards-row {
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }

  .variant-card {
    flex: 0 0 230px;
    scroll-snap-align: center;
  }
}

@media (max-width: 767.98px) {
  .product-showcase-title {
    font-size: 2.2rem;
  }

  .product-brand-wordmark {
    height: 26px;
  }

  .engineering-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lifestyle-card-img {
    height: 220px;
  }

  .thumb-card {
    width: 85px;
    height: 62px;
  }

  .showcase-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .product-showcase-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-showcase-primary,
  .btn-showcase-secondary {
    width: 100%;
    justify-content: center;
  }

  .engineering-stats-grid {
    grid-template-columns: 1fr;
  }

  .showcase-color-picker {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem;
  }

  .showcase-main-scooter-img {
    max-height: 250px;
  }

  .specs-full-card {
    padding: 1.25rem 1rem;
  }

  .specs-table-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0.65rem 0.25rem;
  }

  .specs-table-value {
    text-align: left;
  }
}

/* --- 6. Ultra-Compact Mobile Viewports (< 380px) --- */
@media (max-width: 380px) {
  .hero-model-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .btn-hero-explore,
  .btn-hero-testdrive {
    width: 100% !important;
  }

  .hero-stats-group {
    gap: 0.85rem !important;
    margin-bottom: 1.15rem !important;
  }

  .hero-stat-item {
    gap: 0.45rem !important;
  }

  .hero-stat-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .hero-stat-value {
    font-size: 1.2rem !important;
  }

  .hero-stat-label {
    font-size: 0.68rem !important;
  }

  .hero-stat-divider {
    height: 24px !important;
  }

  .hero-spec-pill {
    font-size: 0.6rem !important;
    padding: 0.32rem 0.65rem !important;
  }
}

/* ==========================================================================
   Pinned Scroll Storytelling Responsive & Accessibility
   ========================================================================== */
@media (max-width: 991.98px) {
  :root {
    --navbar-height: 72px;
  }

  .scroll-story-section {
    height: calc(100vh - var(--navbar-height, 72px));
    height: calc(100dvh - var(--navbar-height, 72px));
    background-color: #FFFFFF;
  }

  .story-slide {
    padding: 0.5rem;
  }

  .banner-image,
  .story-img {
    object-fit: contain !important;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: 575.98px) {
  :root {
    --navbar-height: 64px;
  }

  .scroll-story-section {
    height: calc(100vh - var(--navbar-height, 64px));
    height: calc(100dvh - var(--navbar-height, 64px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-story-section {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .scroll-story-viewport {
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 1rem;
  }

  .scroll-story-flash {
    display: none !important;
  }

  .story-slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .banner-image,
  .story-img {
    position: relative !important;
    object-fit: contain !important;
    height: auto !important;
    max-height: 80vh;
  }
}

/* ==========================================================================
   Pinned Scroll Storytelling Responsive & Accessibility
   ========================================================================== */
@media (max-width: 991.98px) {
  :root {
    --navbar-height: 72px;
  }

  .scroll-story-section {
    height: calc(100vh - var(--navbar-height, 72px));
    height: calc(100dvh - var(--navbar-height, 72px));
    background-color: #FFFFFF;
  }

  .story-slide {
    padding: 0.5rem;
  }

  .banner-image,
  .story-img {
    object-fit: contain !important;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: 575.98px) {
  :root {
    --navbar-height: 64px;
  }

  .scroll-story-section {
    height: calc(100vh - var(--navbar-height, 64px));
    height: calc(100dvh - var(--navbar-height, 64px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-story-section {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .scroll-story-viewport {
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 1rem;
  }

  .scroll-story-flash {
    display: none !important;
  }

  .story-slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .banner-image,
  .story-img {
    position: relative !important;
    object-fit: contain !important;
    height: auto !important;
    max-height: 80vh;
  }
}