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

/* Mobile base */
@media (max-width: 880px) {
  html, body { overflow-x: hidden; }

  /* 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; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0a0a0a;
  border-top: 1px solid #2a2a2a;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #ccc;
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(.22,.61,.36,1);
  direction: rtl;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { max-width: 640px; line-height: 1.5; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #333;
  background: #fff;
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 200ms;
}
.cookie-banner button.ghost {
  background: transparent;
  color: #fff;
}
.cookie-banner button:hover { opacity: 0.8; }
@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    font-size: 12px;
  }
  .cookie-banner .cookie-actions { justify-content: flex-end; }
}
