/* O&Y Studio — Responsive overrides (mobile + tablet) */

/* Mobile base */
@media (max-width: 880px) {
  /* IMPORTANT: do NOT use `overflow-x: hidden` on html/body — it breaks
     `position: sticky` on the topbar (iOS Safari + Chrome Android).
     `overflow-x: clip` prevents horizontal scroll without creating a scroll
     container, so sticky descendants still work. */
  html, body { overflow-x: clip; }

  /* TOP BAR: stack compact */
  .topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
  }
  .topbar .nav-center {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    font-size: 11px;
  }
  .topbar .top-right {
    gap: 8px;
  }
  .topbar .top-right .btn-pill {
    padding: 8px 14px;
    font-size: 12px;
  }
  .topbar .brand small { display: none; }

  /* HERO */
  .hero-stage {
    min-height: 520px;
    padding: 80px 16px 40px;
  }
  .hero-center { padding: 0 8px; }
  .hero-headline {
    font-size: clamp(48px, 14vw, 88px) !important;
    line-height: 0.95;
  }
  .hero-deck {
    font-size: 16px;
    line-height: 1.5;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .hero-cta-row .btn-pill { width: 80%; text-align: center; }
  /* Hide scattered floats on small screens (performance + clutter) */
  .float-thumbs { display: none; }

  /* PAGE wrappers */
  .page { padding: 0 16px; }

  /* Ribbon-dark titles */
  .ribbon-dark {
    padding: 24px 0;
  }
  .ribbon-dark .title {
    font-size: clamp(36px, 10vw, 64px);
  }

  /* SHOWROOM grid → 1 col */
  .showroom-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .work-card .media { aspect-ratio: 4/3; }

  /* STATS row → 2x2 */
  .stat-row {
    grid-template-columns: 1fr 1fr !important;
    padding: 40px 16px;
    gap: 24px;
  }
  .stat-num { font-size: clamp(40px, 12vw, 72px) !important; }

  /* PRICING → 1 col */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .price-card { padding: 24px; }

  /* TESTIMONIALS */
  .ts-inner { padding: 48px 16px; }
  .ts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ts-title { font-size: clamp(36px, 10vw, 56px); }
  .ts-card {
    min-width: 85vw !important;
    padding: 28px !important;
  }
  .ts-quote { font-size: 18px !important; line-height: 1.5 !important; }

  /* CTA strip */
  .cta-strip {
    padding: 64px 16px;
  }
  .cta-strip h2 {
    font-size: clamp(36px, 9vw, 56px);
  }

  /* FOOTER */
  .foot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
    padding: 40px 16px;
  }
  .foot-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px;
  }

  /* ABOUT */
  .about-hero { padding: 80px 16px 32px; }
  .about-hero h1 { font-size: clamp(36px, 9vw, 64px); }
  .about-manifesto {
    grid-template-columns: 1fr !important;
    padding: 40px 16px;
    gap: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr !important;
    padding: 40px 16px;
    gap: 24px;
  }
  .stats .num { font-size: clamp(48px, 14vw, 88px) !important; }
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding: 0 16px;
  }

  /* SERVICES */
  .services-head { padding: 80px 16px 32px; }
  .services-head h1 { font-size: clamp(40px, 11vw, 72px); }
  .service-row {
    grid-template-columns: 40px 1fr !important;
    padding: 24px 16px !important;
    gap: 12px;
  }
  .service-row .name {
    grid-column: 2;
    font-size: 22px;
  }
  .service-row .desc {
    grid-column: 1 / -1;
    font-size: 14px;
  }
  .service-row .arrow { display: none; }

  /* CONTACT */
  .contact-inner {
    grid-template-columns: 1fr !important;
    padding: 40px 16px;
    gap: 32px;
  }
  .contact-wrap h1 {
    font-size: clamp(32px, 8.5vw, 52px) !important;
  }
  .submit-pill { width: 100%; }

  /* MARQUEE */
  .marquee-item { font-size: 32px !important; }

  /* Hide cursor trail on touch */
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Tablet */
@media (min-width: 881px) and (max-width: 1100px) {
  .showroom-grid { grid-template-columns: 1fr 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 640px; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-row { grid-template-columns: 1fr 1fr !important; }
}

/* Old cookie banner removed — see assets/cookie-consent.css for the active GDPR banner */
