/* ===================== ZUNO THEME — MAIN CSS ===================== */

:root {
  --ink: #2E3325;
  --olive: #515B42;
  --olive-dark: #3B4230;
  --olive-light: #8A9376;
  --cream: #FBF6EC;
  --paper: #F3ECDC;
  --pink: #F8ADAD;
  --pink-deep: #E88E93;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--ink);
}
.font-display { font-family: 'Baloo 2', cursive; }

::selection { background: var(--pink); color: var(--ink); }

/* paper grain texture */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.steam-line {
  stroke: var(--olive);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: steam 3.2s ease-in-out infinite;
}
.steam-line.d2 { animation-delay: .5s; }
.steam-line.d3 { animation-delay: 1s; }
@keyframes steam {
  0% { stroke-dashoffset: 40; opacity: 0; }
  15% { opacity: .55; }
  55% { stroke-dashoffset: 0; opacity: .55; }
  85% { opacity: 0; }
  100% { stroke-dashoffset: -40; opacity: 0; }
}

.stamp { transform: rotate(-8deg); }

.scallop {
  -webkit-mask-image: radial-gradient(circle at 10px 0, transparent 9px, black 9.5px);
  -webkit-mask-size: 20px 20px;
  -webkit-mask-repeat: repeat-x;
  mask-image: radial-gradient(circle at 10px 0, transparent 9px, black 9.5px);
  mask-size: 20px 20px;
  mask-repeat: repeat-x;
}

/* ---------- Testimonial slider ---------- */
.testimonial-slider {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
}
.testimonial-track {
  display: flex;
  align-items: stretch;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding-inline: .75rem;
}
@media (min-width: 480px) {
  .testimonial-slide { flex-basis: 50%; min-width: 50%; }
}
@media (min-width: 768px) {
  .testimonial-slide { flex-basis: 33.3333%; min-width: 33.3333%; }
}
.testimonial-slide figure {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-slide blockquote {
  flex: 1 1 auto;
}
.testimonial-slide figcaption {
  margin-top: 1.25rem;
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.testimonial-nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(81, 91, 66, .35);
  background: transparent;
  color: var(--olive);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.testimonial-nav:hover {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
  transform: translateY(-2px);
}
.testimonial-dots {
  display: flex;
  gap: .5rem;
}
.testimonial-dot {
  width: .6rem;
  height: .6rem;
  border-radius: 9999px;
  background: rgba(81, 91, 66, .3);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color .3s ease, transform .3s ease;
}
.testimonial-dot.active {
  background: var(--pink-deep);
  transform: scale(1.25);
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { transition: none; }
}

/* ---------- Menu cards ---------- */
.menu-card {
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}
.menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.menu-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .14);
  border-color: rgba(248, 173, 173, .55);
  box-shadow: 0 22px 40px -18px rgba(46, 51, 37, .45);
}
.menu-card:hover::after {
  transform: translateX(120%);
}
.menu-card:hover .price-dots {
  border-color: rgba(248, 173, 173, .6);
}
.menu-card:hover .btn-primary {
  transform: scale(1.05);
}

.price-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(255, 246, 235, .35);
  margin: 0 .6rem;
  transform: translateY(-4px);
}

.tab-btn {
  border: 2px solid rgba(251, 246, 236, .30); /* var(--cream) at 30% */
  transition: all .25s ease;
}
.tab-btn.active {
  background: var(--olive);
  color: var(--cream);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* Skip link — visually hidden until keyboard focus (accessibility). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 9999;
  background: var(--olive);
  color: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--pink-deep);
}

/* Active nav item */
.nav-link[aria-current="page"],
.mobile-link[aria-current="page"] {
  color: var(--pink-deep);
  font-weight: 600;
}

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--pink-deep);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.hero-blob {
  background: radial-gradient(60% 60% at 50% 40%, rgba(248, 173, 173, .55), rgba(248, 173, 173, 0) 70%);
}

.btn-primary {
  background: var(--olive);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--pink-deep);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink-deep); }
.btn-primary:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--pink-deep); }

.btn-outline {
  border: 2px solid var(--olive);
  color: var(--olive);
}

.chip-tag {
  font-size: .65rem;
  letter-spacing: .08em;
}

#back-to-top { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#back-to-top.show { opacity: 1; pointer-events: auto; }

.lantern {
  animation: sway 5s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

input:focus, textarea:focus { outline: 2px solid var(--pink-deep); outline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }

/* ============ Blog / content typography ============ */
.prose-content { font-size: 1.05rem; line-height: 1.8; color: rgba(46, 51, 37, .85); }
.prose-content h2, .prose-content h3, .prose-content h4 {
  font-family: 'Baloo 2', cursive;
  color: var(--olive);
  margin: 1.75rem 0 .75rem;
  line-height: 1.3;
}
.prose-content h2 { font-size: 1.75rem; }
.prose-content h3 { font-size: 1.4rem; }
.prose-content p { margin-bottom: 1.1rem; }
.prose-content img { border-radius: 1.25rem; margin: 1.5rem 0; height: auto; max-width: 100%; }
.prose-content a { color: var(--pink-deep); text-decoration: underline; text-underline-offset: 4px; }
.prose-content a:hover { color: var(--olive); }
.prose-content blockquote {
  border-left: 4px solid var(--pink-deep);
  background: var(--paper);
  padding: 1rem 1.25rem;
  border-radius: 0 1rem 1rem 0;
  margin: 1.5rem 0;
  font-style: italic;
}
.prose-content ul, .prose-content ol { margin: 0 0 1.1rem 1.4rem; }
.prose-content ul { list-style: disc; }
.prose-content ol { list-style: decimal; }
.prose-content li { margin-bottom: .4rem; }
.prose-content code {
  background: var(--paper);
  padding: .15rem .4rem;
  border-radius: .375rem;
  font-size: .9em;
}
.prose-content pre {
  background: var(--olive-dark);
  color: var(--cream);
  border-radius: 1rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.prose-content pre code { background: transparent; color: inherit; padding: 0; }
.prose-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose-content th, .prose-content td { border: 1px solid rgba(81, 91, 66, .25); padding: .6rem .8rem; text-align: left; }
.prose-content th { background: var(--paper); color: var(--olive); }

/* ============ Cart drawer ============ */
#cart-drawer { overscroll-behavior: contain; }
#cart-drawer.open { transform: translateX(0); }
#cart-overlay.open { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
