/**
 * Sikkora Responsive Design Media Queries
 */

/* Global Hides (Desktop) */
.nav-actions-mobile {
  display: none;
}

/* ==========================================================================
   1. LAPTOP & SMALL DESKTOP (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-wrapper {
    gap: 2rem;
  }
  
  .footer-links {
    gap: 3rem;
  }
}

/* ==========================================================================
   2. TABLET PORTRAIT & LANDSCAPE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Spacing */
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Typography */
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
  }

  /* Navigation Mobile Menu Overlay */
  .nav-actions-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1100;
  }

  .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px var(--color-primary-glow);
    transition: transform var(--transition-fast), background var(--transition-fast);
  }

  .nav-cta-mobile:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-secondary-hover));
    transform: translateY(-1px);
  }

  .nav-toggle {
    display: block;
    z-index: 1100;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-surface);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem;
    gap: 2rem;
    z-index: 1050;
    transition: right var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

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

  .nav-menu .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
  }

  /* Hero Section */
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: calc(var(--header-height) + 1.5rem);
    text-align: center;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-mockup {
    order: -1; /* Place phone mockup on top of text on mobile for instant visual engagement */
  }

  /* How It Works Section - Vertical Stack */
  .steps-wrapper {
    flex-direction: column;
    gap: 3rem;
  }

  .steps-wrapper::before {
    display: none; /* Hide horizontal connector */
  }

  .step-item {
    position: relative;
  }

  /* Vertical connector for mobile steps */
  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 24px;
    background: repeating-linear-gradient(to bottom, var(--color-border) 0, var(--color-border) 4px, transparent 4px, transparent 8px);
  }

  .step-number {
    margin-bottom: 1rem;
  }

  /* Screenshots Slider Navigation */
  .slider-nav-btn {
    width: 40px;
    height: 40px;
  }

  .slider-nav-btn.prev {
    left: -10px;
  }

  .slider-nav-btn.next {
    right: -10px;
  }

  /* Footer Layout */
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-column:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.5rem;
  }

  /* Legal Page Padding */
  .legal-card {
    padding: 1.75rem;
  }

  .legal-content-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 4rem;
  }
}

/* ==========================================================================
   3. MOBILE SMALL (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-store, .btn-apk {
    width: 100%;
    justify-content: center;
  }

  .phone-mockup {
    width: 260px;
    height: 530px;
    border-radius: 36px;
  }

  .phone-notch {
    width: 100px;
  }

  .mock-app-body {
    gap: 1rem;
  }

  .mock-wheel-container {
    padding: 12px;
  }

  .mock-wheel-outer {
    width: 90px;
    height: 90px;
  }

  .slide-screenshot-mockup {
    width: 220px;
    height: 440px;
  }
  
  .cookie-banner {
    left: 1rem;
    right: 1rem;
  }
  
  .cookie-banner.show {
    bottom: 1rem;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
  }
  
  .btn-cookie-accept, .btn-cookie-decline {
    width: 100%;
    text-align: center;
  }
}
