/* ============================================
   PURAVANKARA — RESPONSIVE STYLES
   Mobile-first breakpoints
   Breakpoints: >1200 desktop | 768-1199 tablet | <767 mobile
   ============================================ */

/* ════════════════ TABLET (768px – 1199px) ════════════════ */
@media (max-width: 1199px) {
  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero__content { max-width: 75%; }

  /* Stats bar */
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stats-bar__item:nth-child(2)::after { display: none; }

  /* Counters */
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item:nth-child(2)::after { display: none; }
  .counter-item { padding: 1.5rem 1rem; }

  /* Projects hero cards */
  .project-hero-row { grid-template-columns: 1fr 1fr; }
  .card--hero { height: auto; min-height: 420px; }

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

  /* Brand cards */
  .brand-cards { grid-template-columns: repeat(2, 1fr); }

  /* Split */
  .split--60-40, .split--40-60 { grid-template-columns: 1fr; }

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

/* ════════════════ MOBILE (<767px) ════════════════ */
@media (max-width: 767px) {
  /* Typography scale */
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }

  /* Hero */
  .hero__content {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .hero__eyebrow { text-align: center; }
  .hero__headline { font-size: 2.4rem; text-align: center; }
  .hero__sub { text-align: center; }
  .hero__ctas { justify-content: center; flex-wrap: wrap; }
  .hero__gold-rule { margin: 0.8rem auto; }

  /* Stats bar */
  .stats-bar { position: static; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(2)::after { display: none; }
  .stats-bar__item { padding: 0.75rem; }

  /* Section padding */
  :root { --section-padding: 4rem; }

  /* Counters */
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item:nth-child(2)::after { display: none; }
  .counter-item { padding: 1.25rem 0.75rem; }

  /* Hero project cards */
  .project-hero-row { grid-template-columns: 1fr; }
  .card--hero { height: auto; min-height: 460px; }

  /* Regular grid — 1 col */
  .projects-grid { grid-template-columns: 1fr; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-bar__group { flex-wrap: wrap; }

  /* Cities — horizontal scroll */
  .cities-grid {
    grid-template-columns: repeat(4, 240px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    gap: 12px;
  }
  .cities-grid::-webkit-scrollbar { height: 3px; }
  .city-card { scroll-snap-align: start; }

  /* Brand cards */
  .brand-cards { grid-template-columns: 1fr; }

  /* Split layout */
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse-mobile > *:first-child { order: 2; }
  .split--reverse-mobile > *:last-child  { order: 1; }

  /* Form */
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Nav overlay already handles mobile menu */

  /* WhatsApp — icon only */
  .whatsapp-fab { padding: 0.75rem; border-radius: 50%; }
  .whatsapp-fab span { display: none; }

  /* Exchange badge */
  .exchange-badge { text-align: center; }

  /* FAQ */
  .faq-list { max-width: 100%; }

  /* Section heading */
  .section-header { text-align: left; }

  /* Touch targets */
  .btn { min-height: 44px; min-width: 44px; }
  .filter-btn { min-height: 36px; }
  .nav__hamburger { min-height: 44px; min-width: 44px; justify-content: center; }

  /* Custom cursor — hide on touch devices */
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ════════════════ LARGE DESKTOP (>1440px) ════════════════ */
@media (min-width: 1440px) {
  .hero__content { max-width: 50%; }
  .hero__headline { font-size: 5.5rem; }
}

/* ════════════════ REDUCED MOTION ════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .reveal-left, .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-word { animation: none; opacity: 1; transform: none; }
  .awards-track { animation: none; }
  .counter-num { animation: none; }
  .whatsapp-fab { animation: none; }
}
