:root {
  --cyan: #7fd4de;
  --cyan-light: #eaf7f8;
  --red: #e85d5d;
  --red-soft: #f3a3a3;
  --beige: #fdf8f2;
  --beige-dark: #f4ead9;
  --text: #3a332e;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--beige);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-title .eyebrow {
  color: var(--red);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 8px;
}

.section-title.light .eyebrow {
  color: var(--white);
}

.section-title.light h2 {
  color: var(--white);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: nowrap;
}

.nav-links a {
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--red);
}

.btn-nav {
  background: var(--red);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

.btn-nav:hover {
  opacity: 0.85;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero-content {
  flex: 1;
}

.hero-tag {
  display: inline-block;
  background: var(--cyan-light);
  color: #3a8f9a;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 17px;
  max-width: 460px;
  color: #6b6259;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--cyan);
  transition: transform 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.stars {
  color: #f5b301;
  font-size: 18px;
  letter-spacing: 2px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

.hero-slogan {
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 700;
  margin-bottom: 14px;
  max-width: none;
}

.tp-cyan {
  color: var(--cyan);
}

.tp-red {
  color: var(--red);
}

/* PAGE HERO (tortas.html) */
.page-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 24px 20px;
}

.page-hero .eyebrow {
  color: var(--red);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 10px 0 16px;
}

.page-hero .hero-slogan {
  justify-content: center;
  margin-bottom: 16px;
}

.page-hero p:not(.hero-slogan) {
  color: #6b6259;
  font-size: 16px;
}

.active-link {
  color: var(--red) !important;
}

/* TORTAS GRID */
.tortas-grid-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px 100px;
}

.tortas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.torta-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--beige-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s;
}

.torta-card:hover {
  transform: translateY(-6px);
}

.torta-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 4px solid var(--cyan);
}

.torta-info {
  padding: 20px 22px 24px;
  text-align: left;
}

.torta-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.torta-info p {
  font-size: 14px;
  color: #6b6259;
  margin-bottom: 4px;
}

.festa-gallery-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.festa-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.festa-package {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.festa-package .flavor-list {
  flex: 1;
}

.festa-package .order-btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* CARDAPIO */
.cardapio {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.menu-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--beige-dark);
  transition: transform 0.25s, box-shadow 0.25s;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.menu-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.menu-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.menu-card p {
  font-size: 14px;
  color: #6b6259;
}

.menu-intro {
  margin-top: 12px;
  font-size: 15px;
  color: #6b6259;
  font-style: italic;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  background: var(--white);
  border: 2px solid var(--cyan);
  color: var(--text);
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:hover {
  background: var(--cyan-light);
}

.tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.tab-panel {
  display: none;
  max-width: 900px;
  margin: 0 auto;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-group {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.menu-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.menu-group-header h3 {
  font-size: 17px;
  color: var(--text);
}

.price-tag {
  background: var(--cyan-light);
  color: #2e7079;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.flavor-list {
  list-style: none;
  margin-top: 14px;
  font-size: 14px;
  color: #6b6259;
}

.flavor-list li {
  padding: 6px 0;
  border-top: 1px dashed var(--beige-dark);
}

.flavor-list li:first-child {
  border-top: none;
}

.flavor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flavor-item span {
  flex: 1;
}

.item-cart-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--cyan-light);
  color: #2e7079;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.item-cart-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.08);
}

.item-cart-btn.added {
  background: var(--red);
  color: var(--white);
}

.flavor-list.two-col {
  columns: 2;
  column-gap: 32px;
}

.flavor-list.two-col li {
  break-inside: avoid;
}

.menu-note {
  font-size: 13px;
  color: #8a8074;
  text-align: center;
  margin-top: 24px;
  line-height: 1.7;
}

.menu-note.top {
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  margin-bottom: 24px;
}

.caseiro-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.caseiro-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border: 3px solid var(--white);
}

.caseiro-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.caseiro-photo span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(58, 51, 46, 0.75));
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 20px 12px 10px;
  text-align: center;
}

/* BEBIDAS QUENTES */
.bebidas {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--beige) 0%, var(--cyan-light) 100%);
}

.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.drink-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--beige-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.25s;
}

.drink-card:hover {
  transform: translateY(-6px);
}

.drink-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 4px solid var(--red-soft);
}

.drink-card h3 {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text);
}

.drink-card p {
  padding: 8px 24px 24px;
  font-size: 14px;
  color: #6b6259;
}

.order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.order-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.order-btn::before {
  content: "🛒";
  font-size: 13px;
}

/* CART */
.cart-btn {
  position: relative;
  background: none;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.5);
  z-index: 200;
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 92vw);
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--beige-dark);
}

.cart-header h3 {
  font-size: 18px;
}

.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}

.cart-empty {
  color: #8a8074;
  font-size: 14px;
  text-align: center;
  margin-top: 30px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--beige-dark);
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--beige-dark);
  background: var(--beige);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.cart-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--beige-dark);
}

.cart-checkout {
  width: 100%;
  display: block;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.cart-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.zoomable {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 18, 16, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: min(80vw, 780px);
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--white);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  z-index: 1000;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .lightbox img {
    width: min(85vw, 620px);
  }
}

@media (max-width: 640px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    width: 92vw;
    max-height: 78vh;
  }

  .lightbox-close {
    top: 14px;
    right: 18px;
    font-size: 34px;
  }
}

/* GALERIA */
.galeria {
  padding: 100px 24px;
  background: var(--cyan-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-extra {
  display: none;
}

.gallery-extra.show {
  display: block;
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: var(--white);
  padding: 24px 20px 16px;
  font-weight: 600;
}

/* AVALIACOES */
.avaliacoes {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
}

.rating-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--red);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--beige-dark);
  text-align: left;
}

.review-card p {
  margin-top: 12px;
  font-size: 15px;
  color: #52493f;
}

.btn-link {
  color: var(--red);
  font-weight: 600;
  font-size: 15px;
}

/* CONTATO */
.contato {
  background: linear-gradient(135deg, var(--cyan) 0%, #5cb8c4 100%);
  padding: 100px 24px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 20px;
  border-radius: 18px;
}

.contact-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: #4a423a;
}

.contact-card a:hover {
  color: var(--red);
}

.btn-whatsapp {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 24px;
  background: var(--beige-dark);
}

.footer .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.footer p {
  font-size: 13px;
  color: #8a8074;
}

/* RESPONSIVE */
/* Nav colapsa bem mais cedo que o resto do layout, já que agora tem
   vários links (Cardápio, Bebidas, Tortas, Festa na Caixa, Galeria,
   Avaliações, Contato) e não cabem numa única linha em tablets/notebooks. */
@media (max-width: 1180px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--beige);
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 50;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 32px 24px;
  }

  .hero-image img {
    max-height: 280px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-rating {
    justify-content: center;
  }

  .caseiro-photos {
    grid-template-columns: 1fr;
  }

  .flavor-list.two-col {
    columns: 1;
  }
}
