/* ==========================================================================
   RESPONSIVE.CSS — Ellite Pizzas
   Os estilos em style.css já são mobile-first (360px–430px é a prioridade:
   1 produto por linha, cards baixos). Este arquivo cuida apenas dos ajustes
   progressivos para telas maiores.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile grande — >= 480px
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  :root {
    --gutter: 1.25rem;
  }

  .product-card--featured {
    flex-basis: 80%;
  }

  /* Bebidas ganham o rótulo "Adicionar" quando há espaço. */
  .product-card__add--icon {
    width: auto;
    padding: 0 .85rem 0 .7rem;
  }

  .product-card__add--icon .product-card__add-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

/* --------------------------------------------------------------------------
   Tablet — >= 640px
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --header-top: 16px;
    --nav-top: 74px;
  }

  .products-grid:not(.products-grid--drinks) {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .crust-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .crust-banner__inner {
    padding: 1.75rem;
  }

  .product-card--featured {
    flex-basis: 44%;
  }

  .menu-section__banner {
    aspect-ratio: 21 / 8;
  }

  /* Hero no tablet: banner mais panorâmico, card de destaque compacto. */
  .hero {
    padding-block: calc(var(--nav-top) + 2rem) 3rem;
  }

  /* Card volta para dentro da moldura; recorte levemente acima do centro
     preserva a borda superior das pizzas salgadas e quase toda a doce. */
  .hero__visual {
    padding-bottom: 0;
  }

  .hero__frame {
    aspect-ratio: 4 / 3;
  }

  .hero__media-img {
    object-position: 50% 45%;
  }

  .hero__feature {
    left: 1.25rem;
    right: auto;
    bottom: 1.25rem;
    width: min(340px, 60%);
  }

  .hero__feature-desc {
    -webkit-line-clamp: 2;
  }

  .hero__seal {
    top: 1.25rem;
    right: 1.25rem;
    width: 100px;
    height: 100px;
  }

  .store-info__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
  }

  .site-footer__details {
    gap: .6rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Notebook — >= 1024px
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --gutter: 2rem;
    --nav-h: 72px;
  }

  /* Marca no header respira um pouco mais no desktop. */
  .brand__logo {
    width: 42px;
    height: 42px;
  }

  .brand__wordmark {
    height: 38px;
  }

  /* Hero: duas colunas — conteúdo | banner visual. */
  .hero {
    padding-block: calc(var(--nav-top) + 2.25rem) 4rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .hero__eyebrow {
    margin-bottom: 1.6rem;
  }

  .hero__title {
    margin-bottom: 1.4rem;
  }

  .hero__subtitle {
    font-size: 1.08rem;
    margin-bottom: 1.05rem;
  }

  .hero__verse {
    margin-bottom: 1.6rem;
  }

  .hero__verse-text {
    font-size: 1rem;
  }

  .hero__info {
    margin-bottom: 2.1rem;
  }

  .hero__frame {
    aspect-ratio: 1 / 1.02;
  }

  /* Moldura quase quadrada: a foto aparece praticamente inteira. */
  .hero__media-img {
    object-position: 50% 50%;
  }

  /* Card de destaque "sai" levemente da moldura, criando profundidade. */
  .hero__feature {
    left: -2rem;
    right: auto;
    bottom: 2rem;
    width: min(320px, 78%);
  }

  .hero__seal {
    top: 1.5rem;
    right: 1.5rem;
    width: 112px;
    height: 112px;
  }

  /* Busca + categorias na mesma linha. */
  .menu-nav__inner {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .search-box {
    flex: 0 0 300px;
  }

  .category-nav {
    flex: 1;
    width: auto;
    margin-inline: 0;
    padding-inline: 0;
  }

  /* Faixa de marca respira mais no desktop. */
  .brand-strip {
    padding-block: 1.6rem;
  }

  .brand-strip__item {
    height: 42px;
    margin-inline: 2.75rem;
  }

  /* Cabeçalho da seção + banner lado a lado, quando houver foto. */
  .menu-section__intro {
    margin-bottom: 2rem;
  }

  .menu-section__intro.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: end;
    gap: 2.5rem;
  }

  .menu-section__header {
    margin-bottom: 2rem;
  }

  /* Grade compacta de 3 colunas. */
  .products-grid:not(.products-grid--drinks) {
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
  }

  .product-card__body {
    padding: 1rem 1.1rem 1.05rem;
  }

  /* Destaques: 4 colunas, sem rolagem horizontal. */
  .featured-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  /* Bebidas: garrafas e latas lado a lado, como uma carta de bebidas. */
  .drinks-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
  }

  /* Título à esquerda, os dois grupos à direita. */
  .crust-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 2.25rem;
  }

  .crust-banner__heading {
    flex: 0 0 30%;
  }

  .crust-groups {
    flex: 1;
    gap: 1.5rem;
  }

  .store-info__card {
    padding: 3rem 4rem;
  }

  /* Rodapé em duas colunas: informações / contato | mapa. */
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    gap: 3rem;
  }

  .site-footer__info {
    align-items: flex-start;
    gap: 1.1rem;
  }

  .site-footer__contact {
    justify-content: flex-start;
  }

  .site-footer__contact-item {
    align-items: flex-start;
  }

  .site-footer__copy {
    margin-top: 0;
  }

  .site-footer__location {
    flex: 0 0 380px;
    justify-items: start;
  }

  .footer-map {
    height: 200px;
  }

  .footer-map__cta {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   Desktop grande — >= 1536px
   -------------------------------------------------------------------------- */
@media (min-width: 1536px) {
  :root {
    --container-width: 1320px;
  }
}
