@font-face { font-family: 'SaveurSans'; src: url('fonts/SaveurSans-Regular.otf') format('opentype'); font-weight: 400; }
@font-face { font-family: 'SaveurSans'; src: url('fonts/SaveurSans-Semi-bold.otf') format('opentype'); font-weight: 600; }
@font-face { font-family: 'SaveurSans'; src: url('fonts/SaveurSans-Bold.otf') format('opentype'); font-weight: 700; }
@font-face { font-family: 'BrittiSans'; src: url('fonts/BrittiSans-Light.ttf') format('truetype'); font-weight: 300; }
@font-face { font-family: 'BrittiSans'; src: url('fonts/BrittiSans-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'BrittiSans'; src: url('fonts/BrittiSans-Semibold.ttf') format('truetype'); font-weight: 600; }

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

:root {
  --linen:       #F1EFD8;
  --brown:       #31261D;
  --brick:       #FF4712;
  --sky:         #96D9E8;
  --white:       #FFFFFF;
  --brown-muted: #5C4A3A;
  --font-display: 'SaveurSans', sans-serif;
  --font-body:    'BrittiSans', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--linen);
  color: var(--brown);
  font-family: var(--font-body);
  min-height: 100dvh;
  padding-bottom: var(--nav-h);
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* HEADER */
header { background: var(--brown); position: sticky; top: 0; z-index: 100; }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: center; min-height: 60px;
}
@media (min-width: 768px) {
  .header-inner { justify-content: space-between; }
}
.brand-logo { height: 44px; width: auto; }
.tabs-desktop { display: none; gap: 4px; }
@media (min-width: 768px) { .tabs-desktop { display: flex; } }

.tab-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .875rem;
  color: var(--linen); background: transparent; border: 2px solid transparent;
  border-radius: 999px; padding: 8px 20px; cursor: pointer;
  transition: all 200ms var(--ease-out); opacity: .6;
}
.tab-btn:hover { opacity: 1; }
.tab-btn.active { background: var(--brick); border-color: var(--brick); color: var(--white); opacity: 1; }

/* HERO */
.hero { background: var(--brown); overflow: hidden; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 36px 24px 0;
  display: flex; align-items: flex-end; gap: 24px; position: relative; z-index: 1;
}
.hero-text { flex: 1; padding-bottom: 36px; }
.hero-label { font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin-bottom: 10px; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.03em; color: var(--linen); margin-bottom: 14px; }
.hero-sub { font-family: var(--font-body); font-weight: 300; font-size: .95rem; color: rgba(241,239,216,.6); line-height: 1.6; max-width: 380px; }
.hero-mascot { width: clamp(140px, 22vw, 240px); flex-shrink: 0; align-self: flex-end; filter: drop-shadow(0 -8px 24px rgba(255,71,18,.2)); }

/* HERO CAROUSEL */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid var(--brown);
}
.carousel-track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  flex-shrink: 0;
  display: block;
  height: auto;
}
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer; padding: 0;
  transition: background 200ms;
}
.carousel-dot.active { background: #fff; }

/* ANCHOR NAV */
.anchor-nav {
  background: var(--linen); border-bottom: 1.5px solid rgba(49,38,29,.1);
  position: sticky; top: 60px; z-index: 90;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  max-width: 100vw;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav-inner { display: flex; padding: 0 16px; min-width: max-content; }
.anchor-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .04em;
  color: var(--brown-muted); background: transparent; border: none;
  border-bottom: 2.5px solid transparent; padding: 12px 14px; cursor: pointer; white-space: nowrap;
  transition: all 180ms;
}
.anchor-btn:hover { color: var(--brown); }
.anchor-btn.active { color: var(--brick); border-bottom-color: var(--brick); }

/* MAIN */
main { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; }

.menu-panel { display: none; }
.menu-panel.active { display: block; }

/* SECTION */
.menu-section { padding-top: 48px; margin-bottom: 8px; }
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.section-rule { flex: 1; height: 1.5px; background: var(--brown); opacity: .1; }
.section-desc { font-family: var(--font-body); font-weight: 300; font-size: .875rem; color: var(--brown-muted); line-height: 1.65; margin-bottom: 24px; font-style: italic; }

/* INFO STRIP */
.info-strip {
  background: var(--sky); border: 1.5px solid rgba(49,38,29,.15); border-radius: 12px;
  padding: 14px 18px; margin: 24px 0 8px;
  font-family: var(--font-body); font-size: .85rem; color: var(--brown);
  display: flex; align-items: center; gap: 10px;
}
.info-strip strong { font-weight: 600; }

/* CARD GRID */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* CARD BASE */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card {
  background: var(--white); border: 2px solid var(--brown); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--brown); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  animation: fadeUp 400ms var(--ease-out) both;
}
@media (hover: hover) {
  .card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--brown); }
}

/* FOTO EM CIMA (featured + leve para casa) */
.card-photo { width: 100%; aspect-ratio: 4/5; overflow: hidden; flex-shrink: 0; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CARD HORIZONTAL — foto à esquerda, info à direita */
.card-horiz { flex-direction: row; }
.card-horiz .card-photo {
  width: 110px; aspect-ratio: unset; flex-shrink: 0; align-self: stretch;
}
@media (min-width: 480px) {
  .card-horiz .card-photo { width: 130px; }
  /* em seção com destaque, não-featured viram verticais no desktop */
  .cards-grid--mixed .card-horiz { flex-direction: column; }
  .cards-grid--mixed .card-horiz .card-photo { width: 100%; aspect-ratio: 4/5; align-self: auto; }
}

/* TAG NOVIDADE */
.card-photo { position: relative; }
.tag-novo {
  font-family: var(--font-body); font-weight: 600; font-size: .65rem;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--brick); color: var(--white);
  border-radius: 999px; white-space: nowrap;
}
/* sobre a foto */
.tag-novo--foto {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(255,71,18,.35);
}
/* inline ao lado do nome */
.tag-novo--inline {
  display: inline-block; vertical-align: middle;
  padding: 2px 8px; margin-left: 6px;
  font-size: .6rem; position: relative; top: -1px;
}

/* flavor color backgrounds (usados nos cards do leve para casa) */
.flavor-pistache   { background: linear-gradient(135deg,#8aad6e,#b8d49a); }
.flavor-chocolate  { background: linear-gradient(135deg,#3d1f0e,#7a3d1a); }
.flavor-doce-leite { background: linear-gradient(135deg,#c47c2b,#e8b86d); }
.flavor-frutas     { background: linear-gradient(135deg,#8b1a3a,#d4507a); }
.flavor-ricota     { background: linear-gradient(135deg,#d4a853,#ede0c0); }

.card-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.card-name  { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.card-price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--brick); }
.card-desc  { font-family: var(--font-body); font-weight: 300; font-size: .85rem; color: var(--brown-muted); line-height: 1.6; }
.card-allergens { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.allergen-tag {
  font-family: var(--font-body); font-weight: 600; font-size: .62rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--brown-muted);
  background: var(--linen); border: 1px solid rgba(49,38,29,.18);
  border-radius: 999px; padding: 2px 8px;
}

/* SIZE OPTIONS — leve para casa: preços em destaque */
.size-options { display: flex; gap: 10px; margin-top: 10px; }
.size-chip {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  background: var(--linen); border: 2px solid rgba(49,38,29,.2); border-radius: 12px; padding: 10px 8px;
}
.size-chip-label { font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brown-muted); margin-bottom: 4px; }
.size-chip-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--brick); }

/* SEÇÃO LEVE PARA CASA — destaque extra */
#sec-leve { padding-top: 56px; }
#sec-leve .section-title { font-size: 1.5rem; }
#sec-leve .cards-grid { grid-template-columns: 1fr; }
#sec-leve .card { flex-direction: column; }
#sec-leve .card .card-photo { width: 100%; aspect-ratio: 4/5; align-self: auto; }
@media (min-width: 600px) {
  #sec-leve .cards-grid { grid-template-columns: repeat(5, 1fr); }
}
#sec-leve .section-desc {
  background: var(--brown); color: rgba(241,239,216,.75);
  border-radius: 12px; padding: 14px 18px; font-style: normal;
  font-weight: 400; margin-bottom: 28px;
}

/* FEATURED */
.card-featured { background: var(--brown); border-color: var(--brown); box-shadow: 4px 4px 0 var(--brick); }
.card-featured .card-name  { color: var(--linen); }
.card-featured .card-price { color: var(--sky); }
.card-featured .card-desc  { color: rgba(241,239,216,.6); }
.card-featured .allergen-tag { background: rgba(241,239,216,.1); border-color: rgba(241,239,216,.2); color: rgba(241,239,216,.65); }
.card-featured .size-chip  { background: rgba(241,239,216,.1); border-color: rgba(241,239,216,.2); }
.card-featured .size-chip-label { color: rgba(241,239,216,.6); }
.card-featured .size-chip-price { color: var(--sky); }
@media (hover: hover) {
  .card-featured:hover { box-shadow: 6px 6px 0 var(--brick); }
}

/* FOOTER */
footer { background: var(--brown); padding: 36px 24px; text-align: center; margin-top: 48px; }
.footer-logo { height: 100px; width: auto; margin-bottom: 14px; }
.footer-tagline { font-family: var(--font-body); font-weight: 300; font-size: .8rem; color: rgba(241,239,216,.5); letter-spacing: .04em; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 20px; }
.footer-links a { font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: var(--sky); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* BOTTOM NAV */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--brown); border-top: 2px solid rgba(241,239,216,.12);
  display: flex; height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  color: rgba(241,239,216,.5); font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; transition: color 200ms; padding: 10px 0 6px;
}
.bottom-nav-btn svg { width: 28px; height: 28px; }
.bottom-nav-btn.active { color: var(--brick); }
