/* ============================================================
   SONDRUMS PIZZERIA — responsive.css
   Breakpoints: 320 → 480 → 768 → 1024 → 1280 → 1440 → 1920 → 2560 → 3840
   ============================================================ */

/* ── iOS Safe Area ── */
@supports (padding: env(safe-area-inset-top)) {
  #navbar { padding-top: env(safe-area-inset-top); height: calc(var(--nav-h) + env(safe-area-inset-top)); }
  .hero   { padding-top: calc(var(--nav-h) + env(safe-area-inset-top)); }
  #mobile-menu { top: calc(var(--nav-h) + env(safe-area-inset-top)); }
  #cart-sidebar { padding-bottom: env(safe-area-inset-bottom); }
  footer  { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  #scroll-top { bottom: calc(clamp(20px,4vw,32px) + env(safe-area-inset-bottom)); }
  #live-chat  { bottom: calc(clamp(20px,4vw,32px) + env(safe-area-inset-bottom)); }
}

/* ── 320px → 480px: Very Small Mobile ── */
@media (max-width: 480px) {
  :root { --nav-h: 64px; }

  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta .btn-primary { padding: 9px 16px; font-size: 13px; }

  .hero-title { font-size: clamp(28px, 8vw, 36px); }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .hero-stat-item strong { font-size: 32px; }

  .trust-bar-inner { gap: 12px; }
  .trust-item { font-size: 12px; }
  .trust-item span { display: none; }
  .trust-item:nth-child(1) span, .trust-item:nth-child(2) span { display: block; }

  .pizza-carousel {
    padding-left: 16px; padding-right: 16px; gap: 12px;
  }
  .pizza-card { flex: 0 0 220px; }

  .promo-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-bottom-links { justify-content: center; }

  #live-chat .chat-text { display: none; }
  #live-chat { padding: 14px; border-radius: 50%; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }

  .section { padding: 48px 0; }
  .section-title { font-size: clamp(24px, 7vw, 30px); }

  .page-hero h1 { font-size: clamp(26px, 8vw, 36px); }

  /* No horizontal scroll */
  body, .hero, .trust-bar, .section { max-width: 100vw; overflow-x: hidden; }

  /* Prevent zoom on input focus */
  input, select, textarea { font-size: 16px !important; }
}

/* ── 480px → 768px: Large Mobile / Small Tablet ── */
@media (min-width: 481px) and (max-width: 767px) {
  :root { --nav-h: 68px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta .btn-outline { display: none; }

  .hero-title { font-size: clamp(32px, 7vw, 48px); }
  .pizza-card { flex: 0 0 260px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  input, select, textarea { font-size: 16px !important; }
}

/* ── 768px: Tablet Portrait ── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --nav-h: 70px; }

  .nav-links { display: flex; gap: 20px; }
  .nav-links a { font-size: 13px; }
  .nav-hamburger { display: none; }
  .nav-cta .btn-outline { display: none; }

  .hero-title { font-size: clamp(40px, 6vw, 58px); }

  .trust-bar-inner { gap: 24px; }

  .pizza-card { flex: 0 0 260px; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }

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

/* ── 1024px: Small Laptop ── */
@media (min-width: 1024px) {
  .nav-hamburger { display: none; }
  .nav-links { display: flex; }
  .nav-cta .btn-outline { display: inline-flex; }

  .hero-title { font-size: clamp(52px, 5.5vw, 68px); }

  .pizza-card { flex: 0 0 clamp(260px, 22vw, 300px); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 1280px: Standard Laptop ── */
@media (min-width: 1280px) {
  .hero-title { font-size: clamp(60px, 5vw, 72px); }
  .hero-content { max-width: 900px; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 1440px: Full HD / MacBook Pro ── */
@media (min-width: 1440px) {
  .hero-title { font-size: 76px; }
  .section-title { font-size: 54px; }
}

/* ── 1920px: Full HD Standard ── */
@media (min-width: 1920px) {
  :root { --nav-h: 80px; }
  body { font-size: 17px; }
  .hero-title { font-size: 88px; }
  .promo-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── 2560px: 2K / QHD ── */
@media (min-width: 2560px) {
  :root { --nav-h: 90px; --max-w: 1600px; }
  body { font-size: 18px; }
  .hero-title { font-size: clamp(88px, 4.5vw, 108px); }
  .section-title { font-size: clamp(52px, 3vw, 64px); }
  .pizza-card { flex: 0 0 340px; }
  .btn-primary, .btn-outline, .btn-green { padding: 16px 36px; font-size: 17px; }
}

/* ── 3840px: 4K / UHD ── */
@media (min-width: 3840px) {
  :root { --nav-h: 100px; --max-w: 2400px; }
  body { font-size: 22px; }
  .hero-title { font-size: 144px; }
  .section-title { font-size: 80px; }
  .pizza-card { flex: 0 0 480px; }
  .btn-primary, .btn-outline { padding: 20px 48px; font-size: 20px; border-radius: 12px; }
  #navbar { border-bottom-width: 2px; }
  #scroll-top { width: 72px; height: 72px; font-size: 30px; }
  .nav-logo svg { width: 56px; height: 56px; }
  .nav-logo { font-size: 32px; }
  .toast { font-size: 18px; padding: 20px 28px; max-width: 480px; }
  .cart-header h3 { font-size: 28px; }
}

/* ── Ultra-Wide: 2560×1080 and 3440×1440 ── */
@media (min-width: 2560px) and (max-height: 1200px) {
  .hero { min-height: 100vh; }
  .hero-bg img { object-position: center 30%; }
}
@media (min-width: 3440px) {
  :root { --max-w: 2800px; }
  .hero-title { font-size: clamp(100px, 3.5vw, 120px); }
  .hero-bg img { object-position: center 40%; }
}

/* ── Landscape Mobile ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero-content { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 24px; }
  .hero-title { font-size: clamp(24px, 5vh, 40px); }
  .hero-stats { gap: 20px; margin-top: 24px; }
  .hero-stat-item strong { font-size: 28px; }
}

/* ── Tablet Landscape ── */
@media (min-width: 768px) and (max-height: 768px) {
  .hero { min-height: 700px; }
}

/* ── Galaxy Z Fold5: Folded (344px) ── */
@media (max-width: 344px) {
  :root { --nav-h: 60px; }
  .nav-logo svg { width: 28px; height: 28px; }
  .nav-logo { font-size: 16px; }
  .hero-title { font-size: 24px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { font-size: 14px; padding: 10px 16px; }
  .pizza-card { flex: 0 0 200px; }
  .trust-item span { display: none; }
}

/* ── Print ── */
@media print {
  #navbar, #cookie-banner, #scroll-top, #live-chat,
  #cart-sidebar, #cart-overlay, #toast-container { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
  .hero { min-height: auto; background: none; }
  .hero-overlay { display: none; }
  .hero-content { padding-top: 20pt; }
  .hero-title, .hero-subtitle { color: #000; }
}

/* ── High-DPI / Retina ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body { -webkit-font-smoothing: antialiased; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Menu Page Specific ── */
.menu-filter-bar {
  position: sticky; top: var(--nav-h); z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--grey-2);
  padding: 12px 0; box-shadow: var(--shadow-sm);
}
.filter-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0; padding: 9px 20px; border-radius: var(--radius-xl);
  font-size: clamp(13px, 1.3vw, 15px); font-weight: 600;
  background: var(--grey-1); color: var(--grey-5);
  border: 2px solid transparent; transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover { background: var(--cream); border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

.menu-section-title {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 800;
  color: var(--black); margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: 12px; border-bottom: 3px solid var(--red);
  display: inline-block;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 30vw, 320px), 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1440px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1920px) {
  .menu-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Sides grid */
.sides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.side-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: clamp(16px, 2vw, 24px); box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-2); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red); }
.side-card-img {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 12px;
}
.side-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.side-card:hover .side-card-img img { transform: scale(1.05); }
.side-card-name { font-size: clamp(14px, 1.5vw, 16px); font-weight: 700; margin-bottom: 8px; }
.side-card-footer { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.side-price { font-size: clamp(16px, 1.8vw, 20px); font-weight: 800; color: var(--red); }

/* ── Order Page ── */
.order-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 32px;
  align-items: start;
}
@media (max-width: 1023px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { order: -1; }
}
.order-type-tabs {
  display: flex; border: 2px solid var(--grey-2);
  border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 32px;
}
.order-tab {
  flex: 1; padding: clamp(12px, 2vw, 16px); font-size: 15px; font-weight: 700;
  text-align: center; transition: all var(--transition); color: var(--grey-4);
}
.order-tab.active { background: var(--red); color: var(--white); }
.order-tab:hover:not(.active) { background: var(--grey-1); color: var(--red); }
.order-summary {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--grey-2); box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 28px); position: sticky; top: calc(var(--nav-h) + 20px);
}
.order-tracking {
  display: flex; justify-content: space-between; gap: 4px;
  margin-top: 32px;
}
.tracking-step {
  flex: 1; text-align: center; position: relative;
}
.tracking-step::after {
  content: ''; position: absolute; top: 18px; left: 50%; right: -50%;
  height: 2px; background: var(--grey-2);
}
.tracking-step:last-child::after { display: none; }
.tracking-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grey-2); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 8px; font-size: 16px;
  position: relative; z-index: 1; transition: all var(--transition);
}
.tracking-step.active .tracking-icon { background: var(--red); color: var(--white); }
.tracking-step.done .tracking-icon { background: var(--green); color: var(--white); }
.tracking-label { font-size: 11px; font-weight: 600; color: var(--grey-4); }

/* ── Locations Page ── */
.locations-filter {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}
.locations-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.location-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: clamp(20px, 2.5vw, 28px); border: 1px solid var(--grey-2);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red); }
.location-name { font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; margin-bottom: 8px; }
.location-address { font-size: clamp(13px, 1.3vw, 14px); color: var(--grey-4); line-height: 1.6; margin-bottom: 12px; }
.location-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.loc-tag {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: var(--radius-xl); background: var(--cream);
  color: var(--green-dark);
}
.loc-tag.closed { background: var(--grey-1); color: var(--grey-4); }
.location-hours { font-size: 13px; color: var(--grey-5); font-weight: 600; margin-bottom: 16px; }
.location-card .btn-primary { font-size: 13px; padding: 10px 20px; width: 100%; justify-content: center; }

/* ── About Page ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 767px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.value-card {
  background: var(--cream); border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px); text-align: center; transition: all var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { font-size: clamp(36px, 5vw, 48px); margin-bottom: 16px; }
.value-title { font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; margin-bottom: 8px; }
.value-desc { font-size: clamp(13px, 1.3vw, 15px); color: var(--grey-4); line-height: 1.6; }
.timeline { max-width: 700px; margin: 0 auto; }
.timeline-item { display: flex; gap: clamp(20px, 4vw, 40px); margin-bottom: 40px; }
.timeline-year {
  flex-shrink: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 900;
  color: var(--red); line-height: 1; min-width: 80px;
}
.timeline-content h4 { font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; margin-bottom: 8px; }
.timeline-content p { font-size: clamp(13px, 1.3vw, 15px); color: var(--grey-4); line-height: 1.7; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.team-card { text-align: center; }
.team-img {
  width: clamp(100px, 15vw, 140px); height: clamp(100px, 15vw, 140px);
  border-radius: 50%; overflow: hidden; margin: 0 auto 16px;
  border: 4px solid var(--cream); box-shadow: var(--shadow-sm);
}
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: clamp(15px, 1.5vw, 17px); font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: clamp(12px, 1.2vw, 14px); color: var(--red); font-weight: 600; }
