/* ============================================
   CASA MAYA — Mexikanisches Restaurant
   Vibrant Mexican Palette
============================================ */

:root {
  --chili: #d62828;
  --chili-dark: #a51e1e;
  --lime: #5a9216;
  --lime-light: #8fbc44;
  --maize: #f4b400;
  --maize-light: #ffd960;
  --cream: #fff8ec;
  --cream-warm: #fbeed9;
  --terracotta: #c44e2d;
  --ink: #2a1810;
  --ink-soft: #5a4133;
  --line: rgba(42, 24, 16, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== HEADER ===== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--chili);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 32px;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--chili);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--chili);
}

.cta-btn {
  background: var(--chili);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--chili-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 40, 40, 0.3);
}

.cta-btn.outline {
  background: transparent;
  color: var(--chili);
  border: 2px solid var(--chili);
}

.cta-btn.outline:hover {
  background: var(--chili);
  color: var(--cream);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--chili);
}

/* ===== HERO ===== */
.hero {
  background: var(--chili);
  color: var(--cream);
  padding: 60px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero-title {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title .script {
  font-family: 'Caveat', cursive;
  font-size: 0.6em;
  color: var(--maize-light);
  display: inline-block;
  transform: rotate(-4deg);
  margin: 0 8px;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 32px;
  opacity: 0.95;
}

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

.hero .cta-btn {
  background: var(--cream);
  color: var(--chili);
}

.hero .cta-btn:hover {
  background: var(--maize);
  color: var(--ink);
}

.hero .cta-btn.outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.hero .cta-btn.outline:hover {
  background: var(--cream);
  color: var(--chili);
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  transform: rotate(2deg);
}

/* Doodles in hero */
.doodle {
  position: absolute;
  opacity: 0.85;
  pointer-events: none;
}

.doodle-1 { top: 10%; left: 4%; font-size: 48px; transform: rotate(-15deg); }
.doodle-2 { bottom: 12%; left: 38%; font-size: 40px; transform: rotate(20deg); }
.doodle-3 { top: 6%; right: 8%; font-size: 36px; transform: rotate(15deg); }

/* Hero stamp */
.hero-stamp {
  position: absolute;
  top: 40px;
  right: 60px;
  width: 110px;
  height: 110px;
  border: 2px dashed var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  text-align: center;
  letter-spacing: 2px;
  transform: rotate(-12deg);
  z-index: 3;
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--maize);
  color: var(--ink);
  padding: 18px 0;
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 700;
}

.marquee-track span {
  display: flex;
  align-items: center;
  gap: 60px;
}

.marquee-track .sep {
  color: var(--chili);
  font-size: 28px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 32px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--chili);
  letter-spacing: 3px;
  line-height: 1;
}

.section-title .script {
  font-family: 'Caveat', cursive;
  color: var(--lime);
  font-weight: 400;
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-3deg);
  margin: 0 8px;
}

.section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== INTRO (Home) ===== */
.intro {
  background: var(--cream);
  padding: 100px 32px;
}

.intro-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--chili);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 24px;
}

.intro-text h2 .script {
  font-family: 'Caveat', cursive;
  color: var(--lime);
  font-weight: 400;
  letter-spacing: 0;
}

.intro-text p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.intro-image {
  position: relative;
}

.intro-image img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.intro-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 120px;
  height: 120px;
  background: var(--maize);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.2;
  padding: 12px;
  transform: rotate(-8deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== SIGNATURE CARDS ===== */
.signature {
  background: var(--cream-warm);
  position: relative;
}

.signature::before,
.signature::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  background-image: 
    repeating-linear-gradient(45deg, var(--chili) 0 8px, transparent 8px 16px);
  opacity: 0.4;
}

.signature::before { top: 0; }
.signature::after { bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stamp-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px dashed var(--line);
}

.stamp-card:nth-child(1) { background: var(--cream); }
.stamp-card:nth-child(2) { background: #e7f0d6; }
.stamp-card:nth-child(3) { background: #fff0d0; }
.stamp-card:nth-child(4) { background: #fde2dc; }

.stamp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.stamp-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--cream);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.stamp-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--chili);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.stamp-card p {
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 60px;
}

.stamp-card .tag {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--lime);
  margin-top: 12px;
}

/* ===== WELCOME (split) ===== */
.welcome-split {
  background: var(--chili);
  color: var(--cream);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.welcome-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.welcome-text {
  padding: 80px 60px;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  color: var(--chili);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
}

.welcome-text h2 .script {
  font-family: 'Caveat', cursive;
  color: var(--lime);
  font-weight: 400;
  letter-spacing: 0;
}

.welcome-text p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 460px;
}

.welcome-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== GALLERY ===== */
.gallery {
  background: var(--cream-warm);
  position: relative;
}

.gallery::before,
.gallery::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  background-image: 
    repeating-linear-gradient(45deg, var(--lime) 0 8px, transparent 8px 16px);
  opacity: 0.4;
}

.gallery::before { top: 0; }
.gallery::after { bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 2/1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid .big {
  grid-row: span 2;
}

/* ===== MENU PAGE ===== */
.menu-section {
  padding: 80px 32px;
}

.menu-category {
  margin-bottom: 72px;
}

.menu-cat-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--chili);
  letter-spacing: 3px;
  margin-bottom: 8px;
  border-bottom: 3px dashed var(--chili);
  padding-bottom: 12px;
  display: inline-block;
}

.menu-cat-desc {
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-style: italic;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.menu-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}

.menu-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.menu-item-info h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.menu-item-info p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.menu-item-info .vegan-tag {
  display: inline-block;
  background: var(--lime);
  color: var(--cream);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 6px;
}

.menu-item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--chili);
  font-weight: 900;
}

/* ===== PAGE HERO (smaller) ===== */
.page-hero {
  background: var(--chili);
  color: var(--cream);
  padding: 70px 32px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 100px);
  letter-spacing: 3px;
  line-height: 1;
}

.page-hero h1 .script {
  font-family: 'Caveat', cursive;
  color: var(--maize-light);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.6em;
}

.page-hero p {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0.92;
}

/* ===== ABOUT PAGE ===== */
.about-story {
  background: var(--cream);
  padding: 100px 32px;
}

.story-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.story-grid:nth-child(even) {
  direction: rtl;
}
.story-grid:nth-child(even) > * { direction: ltr; }

.story-grid img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.story-grid h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--chili);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.story-grid p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 12px;
}

.values-grid {
  background: var(--cream-warm);
  padding: 80px 32px;
}

.values-cards {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 32px;
  background: var(--cream);
  border-radius: 16px;
  border: 2px dashed var(--line);
}

.value-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.value-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--chili);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ===== RESERVATION ===== */
.reservation-section {
  background: var(--cream);
  padding: 80px 32px;
}

.reservation-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.reservation-info h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--chili);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.reservation-info p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 24px;
}

.info-list {
  list-style: none;
  margin-top: 24px;
}

.info-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.info-list li strong {
  color: var(--ink);
}

.reservation-form {
  background: var(--cream-warm);
  padding: 40px;
  border-radius: 16px;
  border: 2px dashed var(--chili);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--chili);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit {
  width: 100%;
  background: var(--chili);
  color: var(--cream);
  padding: 16px;
  border: none;
  border-radius: 999px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--chili-dark); }

.form-notice {
  margin-top: 16px;
  padding: 14px;
  background: var(--lime);
  color: var(--cream);
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-notice.show { display: block; }

/* ===== CONTACT ===== */
.contact-section { padding: 80px 32px; background: var(--cream); }

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-card {
  background: var(--cream-warm);
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 20px;
  border-left: 4px solid var(--chili);
}

.contact-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--chili);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.contact-card p, .contact-card a {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

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

.map-placeholder {
  background: var(--cream-warm);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  border: 2px dashed var(--chili);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 32px 30px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 3px;
  color: var(--maize);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.8;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--maize);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--maize); }

.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ===== MOBILE ===== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .mobile-toggle { display: block; }
  .nav-wrap > .cta-btn { display: none; }

  .hero { padding: 50px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stamp { top: 24px; right: 24px; width: 88px; height: 88px; font-size: 9px; }

  .intro-grid,
  .story-grid,
  .welcome-split,
  .reservation-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .welcome-split { min-height: auto; }
  .welcome-image { min-height: 280px; }
  .welcome-text { padding: 50px 32px; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .menu-items { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 1/1;
  }
  .gallery-grid .big { grid-row: span 1; }

  .values-cards { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 60px 24px; }
}

@media (max-width: 580px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; aspect-ratio: auto; }
  .form-row { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: 80px 1fr; }
  .menu-item img { width: 80px; height: 80px; }
  .menu-item-price { grid-column: 2; padding-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DYNAMICS — Animations, Reveals, Hovers
============================================ */

/* === Animierte Doodles === */
.doodle-1 {
  animation: floatDoodle 4s ease-in-out infinite;
}
.doodle-2 {
  animation: floatDoodle 5s ease-in-out infinite reverse;
}
.doodle-3 {
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes floatDoodle {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50% { transform: rotate(-15deg) translateY(-18px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(15deg); }
  25% { transform: rotate(25deg) scale(1.05); }
  75% { transform: rotate(5deg) scale(0.95); }
}

/* === Rotierender Stamp === */
.hero-stamp {
  animation: rotateStamp 22s linear infinite;
}

@keyframes rotateStamp {
  from { transform: rotate(-12deg); }
  to { transform: rotate(348deg); }
}

/* Intro-Badge bouncy */
.intro-badge {
  animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-12px); }
}

/* === Hero Title staggered entry === */
.hero-title,
.hero-subtitle,
.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntry 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.35s; }
.hero-buttons { animation-delay: 0.55s; }
.hero-image img {
  opacity: 0;
  animation: heroImageEntry 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes heroEntry {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageEntry {
  from { opacity: 0; transform: rotate(8deg) scale(0.85); }
  to { opacity: 1; transform: rotate(2deg) scale(1); }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered cards */
.stamp-card {
  opacity: 0;
  transform: translateY(40px) rotate(-3deg);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s;
}
.stamp-card.visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
.stamp-card:nth-child(1).visible { transition-delay: 0.05s; }
.stamp-card:nth-child(2).visible { transition-delay: 0.15s; }
.stamp-card:nth-child(3).visible { transition-delay: 0.25s; }
.stamp-card:nth-child(4).visible { transition-delay: 0.35s; }

/* Stamp-Card Hover dynamics */
.stamp-card {
  position: relative;
  overflow: hidden;
}

.stamp-card img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stamp-card:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.stamp-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.stamp-card:hover::after {
  left: 130%;
}

/* === Gallery hover === */
.gallery-grid img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.15);
  z-index: 2;
  position: relative;
}

/* === Menu item hover === */
.menu-item {
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 12px;
  border-radius: 12px;
  margin: -12px -12px 0;
}

.menu-item:hover {
  background: var(--cream-warm);
  transform: translateX(8px);
}

.menu-item img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:hover img {
  transform: scale(1.08) rotate(2deg);
}

/* === Buttons === */
.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-btn:hover::before {
  left: 100%;
}

/* === Logo wiggle on hover === */
.logo-icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-icon {
  transform: rotate(-20deg) scale(1.2);
}

/* === Section title — script word slight wiggle on hover === */
.section-title .script,
.hero-title .script {
  display: inline-block;
  transition: transform 0.4s ease, color 0.3s ease;
}

.section-title:hover .script {
  transform: rotate(2deg) scale(1.05);
}

/* === Marquee speed boost on hover === */
.marquee:hover .marquee-track {
  animation-duration: 12s;
}
.marquee-track {
  transition: animation-duration 0.3s ease;
}

/* === Value cards === */
.value-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              background 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  background: #fff;
}

.value-card .icon {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .icon {
  transform: rotate(15deg) scale(1.2);
}

/* === Contact cards === */
.contact-card {
  transition: transform 0.3s ease, border-left-width 0.3s ease;
}

.contact-card:hover {
  transform: translateX(6px);
  border-left-width: 8px;
}

/* === Form inputs === */
.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--chili);
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.15);
}

/* === Header shadow on scroll === */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* === Story-grid image hover === */
.story-grid img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s;
}

.story-grid:hover img {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

/* === Hero image floating === */
.hero-image {
  animation: heroFloat 6s ease-in-out infinite;
  animation-delay: 1.7s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* === AUDIO PLAYER === */
.audio-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--chili);
  color: var(--cream);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(214, 40, 40, 0.35);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.audio-player:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(214, 40, 40, 0.5);
}

.audio-player.playing {
  background: var(--lime);
  box-shadow: 0 12px 30px rgba(90, 146, 22, 0.4);
}

.audio-player.playing:hover {
  box-shadow: 0 16px 40px rgba(90, 146, 22, 0.5);
}

.audio-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--chili);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.audio-player.playing .audio-btn {
  color: var(--lime);
}

.audio-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 0 18px 0 14px;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.5s ease, opacity 0.4s ease, padding 0.5s ease;
}

.audio-player:hover .audio-label,
.audio-player.playing .audio-label {
  max-width: 220px;
  opacity: 1;
}

.audio-player.playing .audio-label::before {
  content: '♪ ';
  display: inline-block;
  animation: noteBounce 0.8s ease-in-out infinite;
}

@keyframes noteBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Pulse ring when playing */
.audio-player.playing::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--lime);
  opacity: 0;
  animation: pulseRing 1.8s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 580px) {
  .audio-player { bottom: 16px; right: 16px; }
  .audio-btn { width: 46px; height: 46px; font-size: 18px; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .stamp-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
