/* ===================== RESPONSIVE ===================== */

/* ---- Tablet: 1024px ---- */
@media (max-width: 1024px) {
  .container,
  .footer {
    margin-left: 0;
  }

  #sidebar {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
  }

  #sidebar h1 { font-size: 1.6em; margin-bottom: 0; }
  #sidebar .subtitle { display: none; }
  #sidebar hr { display: none; }
  #sidebar h3 { display: none; }
  #sidebar p { display: none; }

  #sidebar ul {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  #sidebar ul li { margin: 0; }

  #sidebar a {
    padding: 6px 12px;
    font-size: 0.82em;
  }

  #sidebar a:hover { padding-left: 12px; }

  /* HOME */
  .home-section {
    min-height: auto;
    padding: 60px 40px;
  }

  .home-container { gap: 40px; }

  .home-visual {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
  }

  .circle-large { width: 180px; height: 180px; }
  .circle-medium { width: 140px; height: 140px; top: 95px; right: 150px; }
  .circle-small { width: 155px; height: 155px; top: 115px; right: 10px; }

  /* SECTIONS */
  .section { padding: 70px 40px; min-height: auto; }

  /* FLAVORS */
  .flavors-section { padding: 60px 0 40px; }
  .section__header { padding: 0 40px; }

  /* BUILD */
  #build, .build-section { padding: 70px 40px; }
  .build-layout { grid-template-columns: 1fr; gap: 40px; }
  .build-visual { order: -1; }
  .build-card { max-width: 360px; padding: 32px 36px; }

  /* CATERING */
  .cards { grid-template-columns: 1fr 1fr; }
  #grand-parlor { grid-column: span 2; max-width: 480px; margin: 0 auto; width: 100%; }

  /* SEASONAL */
  .tabs { grid-template-columns: repeat(4, 1fr); }
  .season-content { grid-template-columns: 1fr; height: auto; }
  .season-image img { min-height: 260px; max-height: 320px; }

  /* REWARDS */
  .rewards-content { grid-template-columns: 1fr; gap: 36px; }

  /* FOOTER */
  .footer { padding: 48px 40px 24px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---- Mobile Large: 768px ---- */
@media (max-width: 768px) {
  #sidebar ul { gap: 2px; }
  #sidebar a { padding: 5px 10px; font-size: 0.78em; }

  /* HOME */
  .home-section { padding: 48px 24px; }

  .home-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .home-text { max-width: 100%; }

  .home-visual {
    width: 260px;
    height: 260px;
    align-self: center;
  }

  .home-title { font-size: clamp(1.8em, 6vw, 2.6em); }
  .home-description { max-width: 100%; }

  .circle-large { width: 160px; height: 160px; top: 0; right: 20px; }
  .circle-medium { width: 125px; height: 125px; top: 85px; right: 130px; }
  .circle-small { width: 140px; height: 140px; top: 105px; right: 0; }

  /* SECTIONS */
  .section { padding: 56px 24px; }

  /* FLAVORS */
  .flavors-section { padding: 48px 0 32px; }
  .section__header { padding: 0 24px; margin-bottom: 36px; }
  .flavor-card { width: 260px; }

  /* BUILD */
  #build, .build-section { padding: 56px 24px; }
  .build-card { padding: 28px 24px; }

  /* CATERING */
  .cards { grid-template-columns: 1fr; }
  #grand-parlor { grid-column: span 1; max-width: 100%; }

  /* SEASONAL */
  .tabs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tab { padding: 14px 10px; font-size: 0.82em; }

  /* REWARDS */
  .stamps { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .stamp-card { padding: 22px 18px 18px; }

  /* FOOTER */
  .footer { padding: 40px 24px 20px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---- Mobile Small: 480px ---- */
@media (max-width: 480px) {
  #sidebar {
    padding: 12px 16px;
    gap: 10px;
  }

  #sidebar h1 { font-size: 1.4em; }
  #sidebar a { padding: 5px 8px; font-size: 0.72em; border-radius: 6px; }

  /* HOME */
  .home-section { padding: 36px 16px 48px; }

  .home-visual { width: 220px; height: 220px; align-self: center; }

  .circle-large { width: 135px; height: 135px; }
  .circle-medium { width: 105px; height: 105px; top: 72px; right: 110px; }
  .circle-small { width: 118px; height: 118px; top: 88px; right: 0; }

  .home-title { font-size: 1.8em; }
  .home-buttons { flex-direction: column; gap: 10px; }
  .btn { width: 100%; justify-content: center; }

  /* SECTIONS */
  .section { padding: 48px 16px; }
  .section-title, .section__title { font-size: clamp(22px, 6vw, 32px); }

  /* FLAVORS */
  .flavors-section { padding: 40px 0 24px; }
  .section__header { padding: 0 16px; }
  .flavor-card { width: 230px; padding: 14px 14px 14px 12px; }
  .flavor-card__swatch { width: 44px; height: 44px; }
  .flavor-card__name { font-size: 13px; }

  /* BUILD */
  #build, .build-section { padding: 48px 16px; }
  .build-layout { gap: 28px; }
  .build-step { padding: 16px 18px; gap: 14px; }
  .build-step__num { width: 32px; height: 32px; font-size: 0.85em; }

  /* SEASONAL */
  .tabs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tab { padding: 12px 8px; font-size: 0.78em; gap: 4px; }
  .season-details { padding: 28px 24px; gap: 12px; }
  .season-details h3 { font-size: 1.4em; }

  /* REWARDS */
  .rewards-content { gap: 28px; }
  .stamps { gap: 6px; }
  .stamp { border-radius: 6px; }
  .stamp.free { font-size: 9px; }

  /* FOOTER */
  .footer { padding: 36px 16px 16px; }
  .footer-content { grid-template-columns: 1fr; gap: 20px; }
  .footer-about p { max-width: 100%; }
}