/* =========================================
   CONFIGURAÇÕES GERAIS
========================================= */

:root {
  --green: #365b45;
  --green-dark: #264332;
  --green-light: #e9f0e8;

  --cream: #fffaf1;
  --white: #ffffff;

  --terracotta: #c66b4e;

  --text: #30352f;
  --muted: #777b73;

  --border: #e8e5dc;
  --shadow: 0 8px 28px rgba(43, 55, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.header,
.section,
.hero,
.notice,
.order-section {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* =========================================
   CABEÇALHO
========================================= */

.header {
  min-height: 86px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--green);
}

.logo-icon {
  font-size: 35px;
}

.logo-text strong,
.logo-text small {
  display: block;
  line-height: 1.2;
}

.logo-text strong {
  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.logo-text small {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-nav a {
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--terracotta);
}

.header-cart {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 11px 17px;

  background: var(--green);
  color: white;

  border-radius: 30px;

  font-size: 13px;
  font-weight: 700;
}

#cart-count {
  display: grid;
  place-items: center;

  min-width: 23px;
  height: 23px;
  padding: 0 5px;

  background: white;
  color: var(--green);

  border-radius: 50px;
}

/* =========================================
   CAPA DO SITE
========================================= */

.hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 60px;

  padding: 55px 0 70px;
}

.eyebrow {
  color: var(--terracotta);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 18px 0;

  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.13;
}

.hero h1 span {
  display: block;
  color: var(--green);
}

.hero-content > p {
  max-width: 480px;
  margin-bottom: 28px;

  color: var(--muted);
  font-size: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 24px;

  background: var(--terracotta);
  color: white;

  border-radius: 7px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;

  transition: 0.2s;
}

.btn-primary:hover {
  background: #a95137;
  transform: translateY(-2px);
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;

  margin-top: 25px;

  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.hero-image {
  position: relative;
  min-width: 0;
}

.hero-image > img {
  width: 100%;
  height: 420px;

  object-fit: cover;

  border-radius: 48% 48% 12px 12px;
}

.hero-label {
  position: absolute;
  left: -25px;
  bottom: 25px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 15px 20px;

  background: white;
  border-radius: 12px;

  box-shadow: var(--shadow);
}

.hero-label > span {
  font-size: 30px;
}

.hero-label strong,
.hero-label small {
  display: block;
}

.hero-label strong {
  font-size: 14px;
}

.hero-label small {
  color: var(--muted);
  font-size: 11px;
}

/* =========================================
   AVISO DOS ACOMPANHAMENTOS
========================================= */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  padding: 24px 30px;

  background: var(--green-light);

  border: 1px solid #dce7d9;
  border-radius: 12px;
}

.notice-icon {
  font-size: 32px;
}

.notice h3 {
  margin-bottom: 5px;

  color: var(--green-dark);
  font-size: 16px;
}

.notice p {
  color: #59665a;
  font-size: 13px;
}

/* =========================================
   SEÇÕES DO CARDÁPIO
========================================= */

.section,
.order-section {
  padding-top: 90px;
  padding-bottom: 30px;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0;

  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 42px);
}

.section-heading > p {
  color: var(--muted);
  font-size: 14px;
}

.menu-heading {
  margin: 35px 0 20px;
}

.menu-heading h3 {
  font-family: "Playfair Display", serif;
  font-size: 25px;
}

.menu-heading p {
  color: var(--muted);
  font-size: 13px;
}

.extra-heading {
  margin-top: 65px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.small-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================
   CARTÕES DOS PRODUTOS
========================================= */

.menu-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  background: white;

  border: 1px solid var(--border);
  border-radius: 12px;

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.menu-card img {
  width: 100%;
  height: 210px;

  object-fit: cover;

  background: #eee8dd;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 20px;
}

.day-tag {
  align-self: flex-start;

  margin-bottom: 10px;
  padding: 5px 10px;

  background: var(--green-light);
  color: var(--green);

  border-radius: 20px;

  font-size: 10px;
  font-weight: 700;
}

.card-content h4 {
  margin-bottom: 8px;

  font-family: "Playfair Display", serif;
  font-size: 21px;
  line-height: 1.3;
}

.card-description {
  flex: 1;

  margin-bottom: 15px;

  color: var(--muted);
  font-size: 12px;
}

.card-description strong {
  color: var(--green);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: auto;
}

.product-price {
  color: var(--green);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.add-button {
  padding: 10px 14px;

  background: var(--green);
  color: white;

  border: none;
  border-radius: 6px;

  font-size: 12px;
  font-weight: 700;

  transition: background 0.2s;
}

.add-button:hover {
  background: var(--green-dark);
}

.small-grid .menu-card img {
  height: 150px;
}

.small-grid .card-content {
  padding: 16px;
}

.small-grid .card-content h4 {
  font-size: 17px;
}

/* =========================================
   CARRINHO
========================================= */

.order-section {
  padding-bottom: 90px;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 25px;
}

.cart-box,
.checkout-box {
  min-width: 0;
  padding: 26px;

  background: white;

  border: 1px solid var(--border);
  border-radius: 12px;

  box-shadow: var(--shadow);
}

.cart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 20px;
}

.cart-title h3,
.checkout-box h3 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
}

.text-button {
  background: none;
  border: none;

  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
}

.empty-cart {
  padding: 35px 10px;
  text-align: center;
}

.empty-cart span {
  font-size: 42px;
}

.empty-cart p {
  margin-top: 8px;
  font-weight: 700;
}

.empty-cart small {
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;

  padding: 17px 0;

  border-bottom: 1px solid var(--border);
}

.cart-item h4 {
  font-size: 14px;
}

.cart-item-price {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.quantity-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 9px;
}

.quantity-controls button {
  width: 27px;
  height: 27px;

  background: var(--green-light);
  color: var(--green);

  border: none;
  border-radius: 5px;

  font-weight: 700;
}

.quantity-controls span {
  min-width: 15px;
  text-align: center;
  font-size: 13px;
}

.remove-button {
  align-self: center;

  padding: 5px;

  background: none;
  border: none;

  color: #b34f40;
  font-size: 12px;
}

.add-more {
  display: inline-block;
  margin-top: 22px;

  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

/* =========================================
   ENTREGA E RETIRADA
========================================= */

.checkout-box h3 {
  margin-bottom: 18px;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-bottom: 20px;
}

.delivery-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;

  padding: 15px 8px;

  border: 1px solid var(--border);
  border-radius: 8px;

  cursor: pointer;
  font-size: 12px;
}

.delivery-option:has(input:checked) {
  background: var(--green-light);
  border-color: var(--green);
}

.delivery-option input {
  accent-color: var(--green);
}

.delivery-option span {
  font-size: 23px;
}

/* =========================================
   FORMULÁRIO
========================================= */

.checkout-box > label,
#delivery-fields > label {
  display: block;

  margin: 15px 0 6px;

  font-size: 12px;
  font-weight: 700;
}

.checkout-box input[type="text"],
.checkout-box input[type="tel"],
.checkout-box textarea {
  width: 100%;
  min-width: 0;

  padding: 12px;

  background: #fffefa;

  border: 1px solid var(--border);
  border-radius: 7px;

  outline: none;
  font-size: 13px;
}

.checkout-box input:focus,
.checkout-box textarea:focus {
  border-color: var(--green);
}

.checkout-box textarea {
  min-height: 85px;
  resize: vertical;
}

.extras {
  margin-top: 24px;
  padding: 17px;

  background: #faf8f2;
  border-radius: 8px;
}

.extras h4 {
  margin-bottom: 12px;
  font-size: 13px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-top: 9px;

  font-size: 13px;
}

.check-option input {
  accent-color: var(--green);
}

/* =========================================
   RESUMO DOS VALORES
========================================= */

.price-summary {
  margin-top: 25px;
  padding-top: 15px;

  border-top: 1px solid var(--border);
}

.price-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  padding: 7px 0;

  font-size: 13px;
}

.price-summary > div strong {
  white-space: nowrap;
}

.total-row {
  margin-top: 8px;
  padding-top: 15px !important;

  border-top: 1px dashed var(--border);

  font-size: 16px !important;
  font-weight: 700;
}

.total-row strong {
  color: var(--green);
  font-size: 21px;
}

/* =========================================
   BOTÃO WHATSAPP
========================================= */

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  margin-top: 22px;
  padding: 16px 12px;

  background: #218c50;
  color: white;

  border: none;
  border-radius: 7px;

  font-size: 12px;
  font-weight: 700;

  transition: background 0.2s;
}

.btn-whatsapp:hover {
  background: #176d3c;
}

.btn-whatsapp span {
  font-size: 20px;
}

.checkout-note {
  margin-top: 12px;

  color: var(--muted);
  text-align: center;

  font-size: 11px;
}

/* =========================================
   RODAPÉ
========================================= */

.footer {
  padding: 45px 20px;

  background: var(--green-dark);
  color: white;

  text-align: center;
}

.footer-logo {
  justify-content: center;
  color: white;
}

.footer p {
  margin: 15px 0;

  color: #dce5db;
  font-size: 13px;
}

.footer > small {
  color: #b9c8ba;
  font-size: 11px;
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 900px) {
  .hero {
    gap: 30px;
  }

  .hero-image > img {
    height: 350px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CELULARES
========================================= */

@media (max-width: 600px) {
  .header {
    min-height: 75px;
    gap: 10px;
  }

  .logo-icon {
    font-size: 27px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .logo-text small {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .header-nav {
    display: none;
  }

  .header-cart {
    padding: 9px 11px;
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;

    padding: 35px 0 45px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-content > p {
    font-size: 14px;
  }

  .hero-image > img {
    height: 290px;
    border-radius: 20px;
  }

  .hero-label {
    left: 12px;
    bottom: 12px;

    padding: 11px 14px;
  }

  .notice {
    padding: 20px;
    gap: 12px;
  }

  .notice h3 {
    font-size: 14px;
  }

  .notice p {
    font-size: 12px;
  }

  .section,
  .order-section {
    padding-top: 60px;
  }

  .menu-grid,
  .small-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .menu-card img,
  .small-grid .menu-card img {
    height: 220px;
  }

  .card-content,
  .small-grid .card-content {
    padding: 18px;
  }

  .cart-box,
  .checkout-box {
    padding: 20px 16px;
  }

  .cart-title h3,
  .checkout-box h3 {
    font-size: 19px;
  }

  .footer {
    padding: 35px 15px;
  }
}

/* =========================================
   ACESSIBILIDADE
========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   ACOMPANHAMENTOS
   PADRÃO DOS DEMAIS PRODUTOS
========================================= */

/* A seção utiliza a mesma largura e espaçamento das demais */
#acompanhamentos {
  padding-top: 90px;
  padding-bottom: 30px;
}

/* Título padronizado com as outras seções */
#acompanhamentos .section-heading {
  margin-bottom: 38px;
  text-align: center;
}

#acompanhamentos .section-heading h2 {
  margin: 8px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 42px);
}

#acompanhamentos .section-heading > p {
  color: var(--muted);
  font-size: 14px;
}

/* Grade dos acompanhamentos */
#acompanhamentos .menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Cards no mesmo padrão dos pratos, sobremesas e bebidas */
#acompanhamentos .menu-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

#acompanhamentos .menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

#acompanhamentos .menu-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #eee8dd;
}

#acompanhamentos .card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

#acompanhamentos .card-content h4 {
  margin-bottom: 8px;
  font-family: "Playfair Display", serif;
  font-size: 19px;
  line-height: 1.3;
}

#acompanhamentos .card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

#acompanhamentos .product-price {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

/* Tablet: dois cards por linha */
@media (max-width: 900px) {
  #acompanhamentos .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celular: um card por linha, como no restante do site */
@media (max-width: 600px) {
  #acompanhamentos {
    padding-top: 60px;
  }

  #acompanhamentos .menu-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  #acompanhamentos .menu-card img {
    height: 220px;
  }

  #acompanhamentos .card-content {
    padding: 18px;
  }
}

/* =========================================
   PRATOS DOS DIAS INDISPONÍVEIS
========================================= */

/* Aparência dos pratos fora do dia */
.menu-card.prato-indisponivel {
  opacity: 0.55;
  filter: grayscale(65%);
  transform: none;
  box-shadow: none;
}

/* Impede o efeito de elevação */
.menu-card.prato-indisponivel:hover {
  transform: none;
  box-shadow: none;
}

/* Botão desativado */
.menu-card .add-button:disabled {
  background: #b8b8b8;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 1;
}

/* Etiqueta de indisponibilidade */
.menu-card .day-tag.indisponivel {
  background: #eeeeee;
  color: #777777;
}

/* Mensagem abaixo da descrição */
.prato-status {
  margin: 8px 0 12px;
  color: #a15a43;
  font-size: 12px;
  font-weight: 700;
}
