/* ============================================================
   PROMOTION CORNER — responsive.css
   All Breakpoint Overrides — Mobile First
   ============================================================ */

/* ─── BASE: 375px (default mobile) ─────────────────────────
   All base styles in style.css are mobile-first.
   These overrides go progressively up.
────────────────────────────────────────────────────────── */

/* ─── 414px tweaks ────────────────────────────────────────── */
@media (min-width: 414px) {
  .hero-title { font-size: 2.625rem; }

  .hero-stats-row {
    max-width: 100%;
  }
}

/* ─── 540px (small tablets) ─────────────────────────────── */
@media (min-width: 540px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

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

/* ─── 768px (tablets) ────────────────────────────────────── */
@media (min-width: 768px) {
  /* Navbar */
  .nav-links { display: flex; }
  .nav-menu-btn { display: none; }

  /* Hero */
  #hero {
    padding: 8rem 0 5rem;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-left { order: 1; }
  .hero-visual { order: 2; display: flex; }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Us */
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  /* Process */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Case Studies */
  .case-study-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  /* Process steps - 2 col */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ─── 1024px (laptop) ────────────────────────────────────── */
@media (min-width: 1024px) {
  /* Container */
  .container { padding: 0 2rem; }
  .nav-container { padding: 0 2rem; }
  .hero-container { padding: 0 2rem; }

  /* Section padding */
  .section-pad { padding: 6.5rem 0; }
  .section-pad-lg { padding: 8.5rem 0; }

  /* Hero */
  #hero { padding: 9rem 0 6rem; }
  .hero-title { font-size: clamp(3rem, 5.5vw, 4.75rem); }

  /* Services - 3 col */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Process - linear row */
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 780px;
    margin: 0 auto;
  }

  /* Why us features - 3 col */
  .why-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Floating cards visible */
  .hero-float-card { display: flex; }

  /* Footer */
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* ─── 1280px (desktop) ───────────────────────────────────── */
@media (min-width: 1280px) {
  .hero-title { font-size: 4.75rem; }
  .hero-subtitle { font-size: 1.1875rem; }

  /* Services - 4 col on wide */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Portfolio - 3 col large */
  .portfolio-card .portfolio-title {
    font-size: 1.125rem;
  }

  /* Case studies - 3 col */
  .case-study-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Bigger hero mockup */
  .hero-mockup { max-width: 520px; }

  /* Floating shapes visible */
  .hero-shape { animation-play-state: running; }
}

/* ─── 1440px (large desktop) ─────────────────────────────── */
@media (min-width: 1440px) {
  html { font-size: 17px; }

  .container { max-width: 1360px; }

  .hero-container {
    gap: 5rem;
  }

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

  /* Services back to wrapping grid */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── 1920px (ultra wide) ────────────────────────────────── */
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  .hero-title { font-size: 5.75rem; }
}

/* ─── Mobile-only overrides ──────────────────────────────── */
@media (max-width: 767px) {
  /* Hero */
  .hero-float-card { display: none; }
  .hero-shape { display: none; }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }

  .hero-cta-group .btn {
    justify-content: center;
    width: 100%;
  }

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

  .hero-visual {
    display: none;
  }

  /* Navbar */
  .nav-actions .btn { display: none; }

  /* Why us */
  .why-features-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Case studies */
  .case-results {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-step { flex-direction: column; gap: 0.75rem; }
  .step-number { font-size: 2rem; }

  /* Stats */
  .stat-card { padding: 1.5rem 0.75rem; }
}

/* ─── Tablet-only ────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: 3.25rem; }
  .hero-visual { min-height: 360px; }
  .hero-mockup { max-width: 360px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-float-card.card-2 { left: -2%; }
  .hero-float-card.card-1 { right: -2%; }
}

/* ─── Accessibility: Reduced Motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .orb, .marquee-track, .tech-track { animation: none; }
  
  html { scroll-behavior: auto !important; }
}

/* ─── Smooth Scrolling Optimization ──────────────────────── */
@supports (scroll-behavior: smooth) {
  html:not(.lenis) {
    scroll-behavior: smooth;
  }
}

/* Better scroll performance on mobile */
@media (max-width: 1023px) {
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    overscroll-behavior-y: none;
  }
}

/* ─── Dark mode support (future) ────────────────────────── */
@media (prefers-color-scheme: dark) {
  /* Currently using explicit dark sections;
     light theme is default as per spec. */
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  #navbar, .floating-cta, .cursor-dot, .cursor-circle,
  #page-loader, .scroll-indicator { display: none !important; }

  #hero { min-height: auto; padding: 2rem 0; }
  body { background: white; color: black; }
}
