/* ── SHARED — Dio Mio Gelato ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Quicksand', sans-serif; background: #FDFAF4; color: #231616; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── TOKENS ── */
:root {
  --cream: #FDFAF4;
  --dark:  #231616;
  --red:   #8B2E2E;
  --gold:  #C9A05B;
  --muted: #7A5858;
  --nav-h: 70px;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h); display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 48px;
  background: #FDFAF4;
  box-shadow: 0 1px 0 rgba(35,22,22,0.07);
  transition: background 300ms ease, box-shadow 300ms ease;
}
.nav.scrolled { background: rgba(253,250,244,0.96); backdrop-filter: blur(20px); }
.nav-logo img { height: 44px; display: block; object-fit: contain; }
.nav-links { display: flex; gap: 6px; justify-content: center; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: lowercase;
  color: #231616; text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  white-space: nowrap; background: transparent; border: none; cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover { background: rgba(35,22,22,0.05); color: #8B2E2E; }
.nav-link.active { color: #8B2E2E; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 5px; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: white; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(35,22,22,0.12), 0 2px 8px rgba(35,22,22,0.06);
  border: 1px solid rgba(35,22,22,0.07);
  min-width: 180px; padding: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  pointer-events: none;
}
.dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); pointer-events: auto; }
.dropdown-item {
  display: block; padding: 9px 14px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: #231616; text-transform: lowercase;
  text-decoration: none; transition: background 120ms ease, color 120ms ease;
}
.dropdown-item:hover, .dropdown-item.active { background: #FDF5F5; color: #8B2E2E; }
.dropdown-divider { height: 1px; background: rgba(35,22,22,0.06); margin: 4px 8px; }
.nav-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.btn-nav-outline {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 9999px;
  background: transparent; color: #231616; border: 1.5px solid rgba(35,22,22,0.25);
  text-decoration: none; white-space: nowrap; cursor: pointer; font-family: 'Quicksand', sans-serif;
  transition: border-color 160ms ease, color 160ms ease;
}
.btn-nav-outline:hover { border-color: #8B2E2E; color: #8B2E2E; }
.btn-nav-primary {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 9px 22px; border-radius: 9999px;
  background: #8B2E2E; color: #fff; border: none; cursor: pointer;
  font-family: 'Quicksand', sans-serif; text-decoration: none; white-space: nowrap;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.btn-nav-primary:hover { background: #7E2020; box-shadow: 0 4px 16px rgba(139,46,46,0.3); }
.nav-hamburger { display: none; }
.mobile-menu { display: none; }

/* ── FOOTER ── */
footer { background: #100808; padding: 64px 80px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo img { height: 32px; margin-bottom: 16px; display: block; }
.footer-tagline { font-family: 'Playfair Display', serif; font-size: 15px; font-style: italic; color: rgba(255,255,255,0.25); line-height: 1.6; max-width: 220px; }
.footer-h { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 140ms ease; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.22); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: all 140ms ease;
}
.footer-social a:hover { border-color: rgba(255,255,255,0.4); color: white; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 9999px;
  background: #8B2E2E; color: #fff; border: none; cursor: pointer;
  font-family: 'Quicksand', sans-serif; text-decoration: none; white-space: nowrap;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn-primary:hover { background: #7E2020; box-shadow: 0 6px 20px rgba(139,46,46,0.3); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 9999px;
  background: transparent; color: #231616; border: 1.5px solid rgba(35,22,22,0.25);
  cursor: pointer; font-family: 'Quicksand', sans-serif; text-decoration: none; white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease;
}
.btn-ghost:hover { border-color: #8B2E2E; color: #8B2E2E; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 9999px;
}
.badge-sg   { background: #EEF8EE; color: #2A7A2A; }
.badge-collab { background: #FFF4E0; color: #8B5E1A; }
.badge-novo { background: #FFF0F0; color: #8B2E2E; }
.badge-agua  { background: #E8F4FA; color: #1A5F7A; }
.badge-vegan { background: #EDFAF0; color: #1A7A3A; }
.badge-gordura  { background: #E8F7F3; color: #1A7A6B; }
.badge-calorico { background: #F3EEFA; color: #6B4FA0; }

/* ── OVERLINE / SECTION LABEL ── */
.overline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: #8B2E2E; display: block; margin-bottom: 12px;
}
.script-label {
  font-family: 'Dancing Script', cursive;
  font-size: 26px; font-weight: 600; color: #B89090; display: block; margin-bottom: 4px;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 46px); font-weight: 400; line-height: 1.08;
  color: #231616; letter-spacing: -0.01em;
}
.sec-title em { font-style: italic; color: #8B2E2E; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }

/* ── ONDE ENCONTRAR STRIP ── */
.onde-strip {
  background: #231616;
  padding: 72px 80px;
  text-align: center;
  overflow: hidden;
}
.onde-strip-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 40px); font-weight: 400; font-style: italic;
  color: #fff; margin-bottom: 8px;
}
.onde-strip-sub {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.4);
  margin-bottom: 48px;
}
.logo-carousel-wrap { overflow: hidden; margin: 0 -80px 48px; }
.logo-carousel-track {
  display: flex; align-items: center; gap: 0;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.logo-carousel-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.logo-item {
  display: flex; align-items: center; justify-content: center;
  width: 180px; height: 72px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 0 28px;
}
.logo-item-inner {
  width: 120px; height: 40px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── PRODUCT MODAL ── */
.prod-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(14,5,5,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  padding: 24px;
}
.prod-modal-overlay.open { opacity: 1; visibility: visible; }
.prod-modal {
  background: #FDFAF4; border-radius: 20px;
  max-width: 860px; width: 100%; max-height: 90vh;
  display: grid; grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 300ms cubic-bezier(0.22,0.61,0.36,1);
  box-shadow: 0 32px 80px rgba(14,5,5,0.4);
}
.prod-modal-overlay.open .prod-modal { transform: none; }
.prod-modal-img {
  background: #231616;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  min-height: 0;
}
.prod-modal-img img { height: 85%; width: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
.prod-modal-img .modal-img-slot { width: 100%; height: 100%; }
.prod-modal-body { overflow-y: auto; padding: 40px; display: flex; flex-direction: column; gap: 24px; min-height: 0; }
.prod-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer; color: white;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background 160ms ease;
}
.prod-modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; color: #231616;
}
.modal-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 17px; color: #8B2E2E; }
.modal-desc { font-size: 15px; font-weight: 500; line-height: 1.75; color: #5A3C3C; }
.modal-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: #C9A05B; margin-bottom: 10px;
}
.modal-ingredientes { font-size: 13px; font-weight: 500; color: #7A5858; line-height: 1.7; }
.nutri-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nutri-table th {
  text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(35,22,22,0.4);
  padding: 6px 8px; border-bottom: 1px solid rgba(35,22,22,0.08);
}
.nutri-table td { padding: 7px 8px; border-bottom: 1px solid rgba(35,22,22,0.05); color: #231616; font-weight: 600; }
.nutri-table td:last-child { text-align: right; color: #5A3C3C; font-weight: 500; }
.nutri-table tr:last-child td { border-bottom: none; }
.nutri-dv { font-size: 10px; color: rgba(35,22,22,0.35); margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  footer { padding: 56px 48px 32px; }
  .onde-strip { padding: 64px 48px; }
  .logo-carousel-wrap { margin: 0 -48px 40px; }
}
/* mobile menu lowercase — outside media query so it applies at all widths */
.mobile-menu a.menu-link { text-transform: lowercase; }

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav { padding: 0 20px; height: 60px; gap: 0; display: flex; align-items: center; }
  .nav-links, .nav-actions { display: none; }
  .nav-logo img { height: 28px; }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-hamburger span { display: block; width: 22px; height: 2px; background: #231616; border-radius: 2px; transition: all 200ms ease; }
  .mobile-menu {
    display: flex; position: fixed; inset: 0; z-index: 2000;
    background: #FDFAF4; flex-direction: column; align-items: center; justify-content: flex-start;
    opacity: 0; visibility: hidden; overflow-y: auto; transition: opacity 280ms ease, visibility 280ms ease;
    padding: 80px 40px 48px; min-height: 100vh;
  }
  .mobile-menu.open { opacity: 1; visibility: visible; }
  .mobile-menu-links { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; margin-bottom: 32px; }
  .mobile-menu a.menu-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px; font-weight: 400; color: #231616; text-transform: lowercase;
    text-decoration: none; padding: 12px 0; width: 100%; text-align: center;
    border-bottom: 1px solid rgba(35,22,22,0.08); transition: color 160ms ease;
  }
  .mobile-menu a.menu-link:first-child { border-top: 1px solid rgba(35,22,22,0.08); }
  .mobile-menu a.menu-link:hover { color: #8B2E2E; }
  .mobile-submenu { display: none; flex-direction: column; width: 100%; background: #F8F2E6; border-bottom: 1px solid rgba(35,22,22,0.08); }
  .mobile-submenu.open { display: flex; }
  .mobile-submenu a { font-size: 16px; font-weight: 600; color: #8B2E2E; text-decoration: none; padding: 11px 0; text-align: center; letter-spacing: 0.04em; border-bottom: 1px solid rgba(139,46,46,0.08); transition: color 140ms ease; }
  .mobile-submenu a:last-child { border-bottom: none; }
  .menu-link-produtos { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .menu-link-produtos .prod-chevron { font-size: 11px; opacity: 0.45; transition: transform 220ms ease; }
  .menu-link-produtos.open .prod-chevron { transform: rotate(180deg); }
  .mobile-menu-close { position: absolute; top: 20px; right: 24px; font-size: 28px; background: none; border: none; cursor: pointer; color: #9A7878; font-family: 'Quicksand', sans-serif; line-height: 1; }
  .mobile-menu-ctas { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }
  footer { padding: 48px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .onde-strip { padding: 56px 24px; }
  .logo-carousel-wrap { margin: 0 -24px 36px; }
  .prod-modal { grid-template-columns: 1fr; }
  .prod-modal-img { min-height: 240px; }
  .prod-modal-body { padding: 28px 24px; }
  .modal-name { font-size: 32px; }
}
