/* Shared "Culinary Alchemy" theme — glassmorphism cards, reveal-on-scroll,
   accordion, nav-scroll shadow. Loaded on every redesigned page alongside
   the Tailwind CDN script + tailwind-config.js. */

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(212, 168, 83, 0.2);
  box-shadow: 0 24px 48px -12px rgba(29, 29, 31, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -16px rgba(123, 88, 4, 0.15);
}

.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 0.5px solid rgba(212, 168, 83, 0.15) !important;
}

/* Language pills — small, functional switcher (kept separate from the
   decorative "language" icon in the nav, which has no real menu behind it). */
.lang-switch { display: flex; justify-content: center; gap: 8px; }
.lang-switch a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; text-decoration: none;
  color: #6E6E73; padding: 4px 12px; border-radius: 999px; background: #fff;
  border: 0.5px solid rgba(212, 168, 83, 0.25);
}
.lang-switch a.active { color: #fff; background: #8B7200; border-color: #8B7200; }

/* Accordion (FAQ) — max-height is set inline by theme.js from the content's
   real scrollHeight on open (see toggle handler), not a fixed number here.
   A hardcoded cap (previously 600px) silently clipped any answer taller
   than that — no ellipsis, no fade, text just cut off mid-sentence. */
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-item.active .chevron-icon { transform: rotate(180deg); }
.chevron-icon { transition: transform 0.3s ease; }

/* Cart quantity bump feedback (Loja) */
.cart-bump { animation: bump 0.3s ease-out; }
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Mobile nav drawer. The pb-4 utility on the element would leak 16px of
   padding below the fixed header even when closed (max-height clips content,
   not padding) — zero it out unless open. */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out, padding 0.35s ease-out; }
.mobile-menu:not(.open) { padding-top: 0; padding-bottom: 0; }
.mobile-menu.open { max-height: 480px; }

/* Compact wordmark on phones — 36px eats too much of the h-20 bar next to
   the cart + menu icons. Targets the first link in the nav (the logo) on
   every page without touching 17 HTML files. */
@media (max-width: 767px) {
  #top-nav nav > div:first-child > a:first-child { font-size: 26px; line-height: 34px; }
}

/* Subtle artisanal-paper grain — inline SVG noise, no third-party host. */
.noise-overlay {
  position: fixed; inset: 0; z-index: -1; opacity: 0.025; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

input:focus { outline: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d2c5b2; border-radius: 10px; }

/* Respect reduced-motion: no reveal animation, no hover-lift, no bump. */
@media (prefers-reduced-motion: reduce) {
  .reveal-section, .glass-card, .accordion-content, .chevron-icon, .mobile-menu {
    transition: none !important;
  }
  .reveal-section { opacity: 1; transform: none; }
  .cart-bump { animation: none; }
}
