/* Menu Board Styles - matches in-restaurant board design */

:root {
  --brand-red: #da121a;
  --ink-black: #1f1f1f;
  --muted-ink: #444444;
  --board-bg: #f3eee2; /* warm off-white like the photo */
  --divider: #d9cdbb;
}

/* Menu Hero Banner */
.menu-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.menu-hero-image {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.menu-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-hero:hover .menu-hero-image img {
  transform: scale(1.15);
}

.menu-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(218, 18, 26, 0.75) 0%,
    rgba(41, 110, 115, 0.65) 50%,
    rgba(235, 179, 55, 0.7) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1px);
}

.menu-hero-overlay .container {
  text-align: center;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.menu-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4),
               -1px -1px 8px rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.menu-subtitle {
  font-family: "Playfair Display", cursive;
  font-size: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

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

.menu-content {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (max-width: 768px) {
  .menu-hero-image {
    height: 360px;
  }
  
  .menu-hero h1 {
    font-size: 48px;
    letter-spacing: 3px;
  }
  
  .menu-subtitle {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .menu-hero-image {
    height: 280px;
  }
  
  .menu-hero h1 {
    font-size: 36px;
    letter-spacing: 2px;
  }
  
  .menu-subtitle {
    font-size: 20px;
  }
}

.menu-board {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.menu-board-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid rgba(235, 179, 55, 0.2);
  position: relative;
}

.menu-board-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--red);
}

.menu-board-header .font-la {
  font-family: "Alex Brush", cursive;
  color: var(--blue);
  font-size: 48px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
  margin-right: 10px;
}

.menu-board-header .font-scacciata {
  font-family: "Playfair Display", serif;
  color: var(--red);
  font-size: 48px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

/* Zig-Zag Layout Styles */
.menu-section-block {
  display: flex;
  align-items: stretch;
  margin-bottom: 80px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  /* Minimalist and sharp */
}

/* Alternating Zig-Zag: Odd sections (Header is 1st child) reverse order (Image Right) */
/* Sandwich (2, even) -> Default (Image Left) */
/* Pasta (3, odd) -> Reverse (Image Right) */
.menu-section-block:nth-child(odd) {
  flex-direction: row-reverse;
}

.menu-section-image {
  flex: 1;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.menu-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.menu-section-block:hover .menu-section-image img {
  transform: scale(1.03);
}

.menu-section-content {
  flex: 1;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--board-bg);
}

/* White background for alternating text content for contrast */
.menu-section-block:nth-child(odd) .menu-section-content {
    background: #fff;
}
.menu-section-block:nth-child(even) .menu-section-content {
    background: var(--board-bg);
}


.menu-section-title {
  text-align: center;
  letter-spacing: 3.5px;
  font-family: "Playfair Display", serif;
  color: var(--ink-black);
  font-size: 28px;
  margin: 0 0 30px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.menu-section-title::after {
  content: '◆';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brand-red);
  font-size: 10px;
  opacity: 0.7;
}


/* Responsive for Zig-Zag */
@media (max-width: 992px) {
  .menu-section-content {
    padding: 40px 30px;
  }
  
  .menu-section-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .menu-section-block,
  .menu-section-block:nth-child(even) {
    flex-direction: column;
    margin-bottom: 60px;
  }
  
  .menu-section-image {
    min-height: 250px;
    max-height: 300px;
  }
  
  .menu-section-content {
    padding: 30px 20px;
  }

  .menu-section-block:hover .menu-section-image img {
    transform: scale(1.0); /* Disable zoom on mobile scroll */
  }
}

/* Menu Items Styling */
.section-body {
  /* border-top: 1.5px solid rgba(217, 205, 187, 0.6); */
  padding-top: 10px;
  /* margin-top: 4px; */
}

.column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column h3 {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-align: center;
  color: var(--blue);
  margin: 16px 0 16px;
  padding: 8px 0;
  position: relative;
}

.column h3::before {
  content: '—';
  margin-right: 10px;
  color: var(--brand-red);
  opacity: 0.5;
}

.column h3::after {
  content: '—';
  margin-left: 10px;
  color: var(--brand-red);
  opacity: 0.5;
}

.menu-item {
  margin-bottom: 16px;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: all 0.2s ease !important;
  padding: 8px 6px !important;
  position: relative;
}

.menu-item:hover {
  transform: translateX(4px) !important;
  background: rgba(218, 18, 26, 0.02) !important;
  border-radius: 4px !important;
}

.menu-item:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: linear-gradient(180deg, var(--red), var(--terracotta));
  border-radius: 2px;
}

.menu-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap; /* keep leader on one line */
}

.menu-item-top .item-name {
  font-family: "Playfair Display", serif;
  color: var(--brand-red);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  order: 1;
  white-space: nowrap;
  font-size: 15.5px;
  transition: color 0.2s ease;
}

.menu-item:hover .item-name {
  color: var(--blue);
}

/* Dotted leader between name and price */
.menu-item-top::before {
  content: "";
  order: 2;
  flex: 1 1 auto;
  border-bottom: 2px dotted rgba(218, 18, 26, 0.3);
  margin: 0 8px 3px;
  display: block;
  height: 0;
  align-self: center;
  transition: border-color 0.2s ease;
}

.menu-item:hover .menu-item-top::before {
  border-bottom-color: rgba(41, 110, 115, 0.4);
}

.menu-item-top .item-price {
  order: 3;
  font-family: "Playfair Display", serif;
  color: var(--brand-red);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.menu-item:hover .item-price {
  color: var(--blue);
  transform: scale(1.05);
}

.menu-item-top .item-price sup {
  font-size: 58%;
  margin-left: 2px;
  vertical-align: super;
}

.menu-item .item-desc {
  width: 100%;
  color: var(--muted-ink);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
  text-transform: none;
  font-style: italic;
  opacity: 0.85;
  padding-left: 2px;
}

.menu-item:hover .item-desc {
  opacity: 1;
}

.menu-subsection {
  margin-top: 12px;
}

.menu-item-highlight {
  background: linear-gradient(135deg, rgba(218, 18, 26, 0.05), rgba(235, 179, 55, 0.08)) !important;
  border: 1.5px solid rgba(218, 18, 26, 0.2) !important;
  border-radius: 8px !important;
  padding: 12px 10px !important;
  margin: 20px 0 !important;
}

.menu-item-highlight:hover {
  background: linear-gradient(135deg, rgba(218, 18, 26, 0.08), rgba(235, 179, 55, 0.12)) !important;
  border-color: rgba(218, 18, 26, 0.35) !important;
  transform: translateX(6px) scale(1.01) !important;
}

.menu-item-highlight .item-name {
  font-size: 17px !important;
  color: var(--blue) !important;
}

.menu-item-highlight .item-price {
  font-size: 18px !important;
}

.menu-note {
  text-align: center;
  color: var(--muted-ink);
  font-size: 13px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 205, 187, 0.4);
  font-style: italic;
}

@media (max-width: 480px) {
  .menu-board-header .font-la,
  .menu-board-header .font-scacciata {
    font-size: 28px;
  }

  .menu-item {
    padding: 6px 4px !important;
    margin-bottom: 10px;
  }

  .menu-item-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: baseline;
  }

  .menu-item-top .item-name {
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    order: 1;
    padding-right: 4px;
  }

  .menu-item-top::before {
    display: none;
  }

  .menu-item-top .item-price {
    font-size: 13px;
    order: 2;
    white-space: nowrap;
    text-align: right;
    min-width: fit-content;
  }

  .menu-item .item-desc {
    font-size: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 4px;
  }
}
