/* ================= DELIVERY ================= */
/* ================= DELIVERY ================= */
.delivery {
  width: 100%;
  height: 450px;
  position: relative;
  overflow: visible;

  /* FUNDO BASE + IMAGEM */
  background-color: #ffffff;
  background-image: url("../../images/bg-ifood.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}


/* ================= INNER ================= */
.delivery-inner {
  width: 100%;
  max-width: 90%;
  height: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  position: relative;
}

/* ================= TEXTO ================= */
.delivery-text {
  z-index: 2;
}

.section-kicker {
  font-size: 14px;
  letter-spacing: 4px;
  color: #2b2b2b;
  margin-bottom: 14px;
  display: inline-block;
}

.delivery-text h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #000000;
}

.delivery-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #2b2b2b;
  max-width: 520px;
}

/* ================= APP LINKS ================= */
.delivery-apps {
  display: flex;
  gap: 22px;
  margin-top: 22px;
}

.delivery-apps img {
  height: 52px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.delivery-apps a:hover img {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ================= IMAGEM ================= */
.delivery-image {
  position: relative;
  height: 100%;
}

/* imagem colada no fundo e vazando para cima */
.delivery-image img {
  position: absolute;
  bottom: 0;        /* COLADA NO FUNDO */
  right: 0;
  height: 620px;    /* MAIOR QUE A SESSÃO */
  max-width: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .delivery {
    height: auto;
    padding: 80px 0 0;
  }

  .delivery-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    text-align: center; /* 🔥 CENTRALIZA TEXTO */
  }

  .delivery-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* 🔥 CENTRALIZA CONTEÚDO */
  }

  .delivery-text p {
    max-width: 480px; /* melhor leitura no centro */
  }

  .delivery-apps {
    justify-content: center; /* 🔥 CENTRALIZA BOTÕES */
  }

  .delivery-image {
    position: relative;
    height: 320px;
    overflow: visible;
  }

  .delivery-image img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 420px;
    margin: 0;
  }

  .delivery-text h2 {
    font-size: 34px;
  }

  .delivery-text p {
    font-size: 15px;
  }
}
