/* ══════════════════════════════════════════
   FOOD PAGE 
   ══════════════════════════════════════════ */
 html { visibility: hidden; }  
/* ── Page-level noise texture overlay ── */
.food-container::before {
  content: '';
  position: fixed;
  inset: 0;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ── Container ── */
.food-container {
  padding: 9rem 5% 7rem;
  background: #dbe7e4;
  position: relative;
  overflow: hidden;
}

/* Decorative ambient blobs */
.food-container::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(197,160,89,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: blobDrift 14s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 60px) scale(1.08); }
}

/* ── Header ── */
.food-header {
  text-align: center;
  margin-bottom: 5.5rem;
  position: relative;
  z-index: 1;
}

/* Decorative rule above title */
.food-header::before {
  content: '✦  CAFE MILANGE  ✦';
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  opacity: 0.75;
  animation: fadeSlideDown 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.food-header h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  color: var(--primary-brown);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.05;
  animation: fadeSlideUp 0.9s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.food-header h1 span {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 400;
  position: relative;
}

/* Animated underline on spans */
.food-header h1 span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineReveal 0.8s 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* Thin decorative line below title */
.food-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 1.8rem auto 0;
  animation: fadeSlideUp 0.9s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── Category List ── */
.food-category-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Vertical timeline accent line */
.food-category-list::before {
  content: '';
  position: absolute;
  left: 109px;           /* centre of 220px circle frame */
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(197,160,89,0.25) 10%,
    rgba(197,160,89,0.25) 90%,
    transparent
  );
  pointer-events: none;
}

/* ── Animate-on-scroll initial state ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.22,1,0.36,1),
    transform 0.7s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.4s ease,
    background 0.3s ease;
}

.animate-on-scroll.appeared {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays when appeared */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }

/* ── Category Row ── */
.category-row {
  display: flex;
  align-items: center;
  background: var(--cream);
  border-radius: 120px 24px 24px 120px;
  overflow: hidden;
  box-shadow:
    8px 8px 0 var(--warm-beige),
    0 2px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 1.5px solid rgba(197,160,89,0.12);
  isolation: isolate;
}

/* Gold shimmer sweep on hover */
.category-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(197,160,89,0.08) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

/* Bottom border accent */
.category-row::after {
  content: '';
  position: absolute;
  bottom: 0; left: 110px; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.category-row:hover {
  transform: translateX(10px) scale(1.015);
  box-shadow:
    14px 14px 0 rgba(197,160,89,0.20),
    0 8px 40px rgba(0,0,0,0.10);
  background: #fff;
  border-color: rgba(197,160,89,0.35);
}

.category-row:hover::before {
  transform: translateX(100%);
}

.category-row:hover::after {
  transform: scaleX(1);
}

/* ── Cat Frame (circular image) ── */
.cat-frame {
  flex: 0 0 220px;
  height: 220px;
  border-radius: 50%;
  margin: 12px;
  overflow: hidden;
  border: 5px solid var(--white);
  background: var(--white);
  flex-shrink: 0;
  position: relative;
  /* Golden ring on hover via box-shadow transition */
  box-shadow:
    0 0 0 0px rgba(197,160,89,0),
    0 4px 20px rgba(0,0,0,0.08);
  transition:
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

.category-row:hover .cat-frame {
  box-shadow:
    0 0 0 4px rgba(197,160,89,0.55),
    0 6px 30px rgba(0,0,0,0.12);
  transform: scale(1.03);
}

/* Number badge */
.cat-frame::after {
  content: attr(data-num);
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  z-index: 2;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-row:hover .cat-frame::after {
  opacity: 1;
  transform: scale(1);
}

.cat-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165,0.84,0.44,1);
  filter: saturate(0.92);
}

.category-row:hover .cat-frame img {
  transform: scale(1.12);
  filter: saturate(1.1);
}

/* ── Cat Info ── */
.cat-info {
  flex: 1;
  padding: 0 2.5rem;
  position: relative;
  z-index: 2;
}

.cat-info h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary-brown);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  transition: color 0.3s ease, letter-spacing 0.4s ease;
}

.category-row:hover .cat-info h2 {
  color: var(--accent-gold);
  letter-spacing: 2.5px;
}

.cat-info p {
  font-size: 0.95rem;
  color: var(--secondary-brown);
  opacity: 0.75;
  line-height: 1.6;
  max-width: 280px;
  transition: opacity 0.3s ease;
}

.category-row:hover .cat-info p {
  opacity: 1;
}

/* Small "Explore →" tag that appears on hover */
.cat-info::after {
  content: 'Explore menu';
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 0.7rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.category-row:hover .cat-info::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── Arrow ── */
.go-arrow {
  padding: 0 2.5rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Pulsing ring behind arrow */
.go-arrow::before {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(197,160,89,0.0);
  transition: border-color 0.3s ease, transform 0.4s ease;
}

.category-row:hover .go-arrow::before {
  border-color: rgba(197,160,89,0.45);
  transform: scale(1);
  animation: ringPulse 1.6s ease-in-out infinite;
}

@keyframes ringPulse {
  0%   { transform: scale(0.85); opacity: 1; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}

.go-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}

.category-row:hover .go-arrow svg {
  transform: translateX(8px);
}

/* ── Keyframes ── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 0.75; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes underlineReveal {
  to { transform: scaleX(1); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .food-container::after { display: none; }
  .food-category-list::before { display: none; }

  .food-header h1 { letter-spacing: -1.5px; }

  .category-row {
    flex-direction: column;
    border-radius: 24px;
    text-align: center;
    padding-bottom: 1.8rem;
    overflow: visible;
  }

  .category-row::after { display: none; }

  .cat-frame {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  .cat-info { padding: 1.2rem 1rem 0; }
  .cat-info h2 { font-size: 1.7rem; }
  .cat-info p { max-width: 100%; margin: 0 auto; }
  .cat-info::after { display: none; }

  .go-arrow { padding: 0.5rem 1rem 0; }
}
html { visibility: visible; }