:root {
  --primary-brown: #6b4f3f;
  --dark-brown: #3d2b1f;
  --bg-dark: #ffffff;
  --text-light: #321d1d;
  --accent-pink: #ffb7c5;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Poppins", sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =========================================
    2. NAVBAR STYLING
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 8%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
}

.logo a {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =========================================
    3. MENU HERO & HEADER
   ========================================= */
.menu-hero-section {
  position: relative;
  text-align: center;
}

.mini-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary-brown);
  object-fit: cover;
  margin-bottom: 15px;
}

.welcome-text {
  color: var(--accent-pink);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 20px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* =========================================
    4. MENU CONTAINER & CATEGORY TITLE
   ========================================= */
.menu-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 5%;
  background: white;
  box-sizing: border-box;
}

/* DESIGN PARA SA LINYA AFTER NG CATEGORY TITLES */
.category-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--primary-brown);
  margin-bottom: 25px;
  text-transform: uppercase;
}

.category-title::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(to right, rgba(107, 79, 63, 0.4), transparent);
}

.category-title span {
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  color: #888;
  margin-left: 5px;
}

/* =========================================
    5. MEAL ITEM WITH TABLE LAYOUT
   ========================================= */
.meal-item {
  margin-bottom: 22px;
  width: 100%;
}

/* Menu Row - Table Header and Items */
.menu-row {
  display: flex;
  align-items: baseline;
  width: 100%;
  padding: 10px 0;
}

.menu-row.header {
  font-weight: bold;
  color: #888;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 5px;
}

.menu-row > span:first-child {
  flex: 1;
  padding-right: 15px;
}

.price-col {
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

/* Meal Header Layout */
.meal-header {
  display: flex;
  align-items: baseline;
  width: 100%;
  gap: 10px;
}

.meal-header > span:first-child {
  font-weight: 600;
  color: var(--dark-brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.dots {
  flex-grow: 1;
  border-bottom: 2px dotted #aaa;
  position: relative;
  top: -4px;
  min-width: 20px;
}

.meal-header .price-col {
  font-weight: 800;
  color: #000;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.meal-desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  max-width: 90%;
  line-height: 1.5;
  font-style: italic;
}

/* =========================================
    6. GRID & SPLIT LAYOUT (STACKED 1:1 PICS)
   ========================================= */
.menu-section.split {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-bottom: 80px;
}

.menu-section.reverse {
  flex-direction: row-reverse;
}

/* Vertical Stacking for Multiple Pics */
.menu-side-img {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 1:1 SQUARE LOGIC */
.menu-side-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.menu-side-img img:hover {
  transform: scale(1.03);
}

.menu-side-content {
  flex: 1.5;
}

.menu-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* =========================================
    7. SAKURA PETALS EFFECT
   ========================================= */
/* Container must cover the full screen */
.sakura-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows clicking through petals */
  z-index: 9999;
  overflow: hidden;
}

.petal {
  position: absolute;
  background-color: #ffb7c5; /* Sakura Pink */
  border-radius: 150% 0 150% 0;
  width: 15px;
  height: 15px;
  top: -20px;
  opacity: 0.8;
  animation: fall linear infinite;
}

/* Create unique positions and speeds for each petal */
.petal:nth-child(1) {
  left: 10%;
  animation-duration: 7s;
  animation-delay: 0s;
}
.petal:nth-child(2) {
  left: 25%;
  animation-duration: 9s;
  animation-delay: 2s;
}
.petal:nth-child(3) {
  left: 40%;
  animation-duration: 6s;
  animation-delay: 4s;
}
.petal:nth-child(4) {
  left: 55%;
  animation-duration: 8s;
  animation-delay: 1s;
}
.petal:nth-child(5) {
  left: 70%;
  animation-duration: 10s;
  animation-delay: 3s;
}
.petal:nth-child(6) {
  left: 85%;
  animation-duration: 7s;
  animation-delay: 5s;
}
.petal:nth-child(7) {
  left: 15%;
  animation-duration: 11s;
  animation-delay: 2.5s;
}
.petal:nth-child(8) {
  left: 50%;
  animation-duration: 9s;
  animation-delay: 0.5s;
}
.petal:nth-child(9) {
  left: 80%;
  animation-duration: 12s;
  animation-delay: 1.5s;
}
.petal:nth-child(10) {
  left: 95%;
  animation-duration: 8s;
  animation-delay: 4.5s;
}

@keyframes fall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(20px) rotate(45deg);
  }
  50% {
    transform: translateX(-20px) rotate(90deg);
  }
  75% {
    transform: translateX(20px) rotate(135deg);
  }
  100% {
    top: 110%;
    transform: translateX(-20px) rotate(180deg);
  }
}

/* =========================================
    8. CATEGORY CARDS & FOOTER
   ========================================= */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  text-decoration: none;
  text-align: center;
  transition: 0.3s;
}

.cat-img-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card span {
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: white;
}

/* =========================================
    FOOTER - Complete Styling
   ========================================= */
footer {
  background: #e5d1c5;
  padding: 60px 10%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-sans);
}

/* Brand Wrapper Styles */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text h3 {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.brand-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
}

/* Left & Right Containers */
.footer-left {
  max-width: 500px;
}

.footer-right h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-right a {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 8px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-right a:hover {
  color: var(--primary-brown);
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.social-links a {
  color: var(--dark-brown);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* =========================================
    9. RESPONSIVE & MOBILE OPTIMIZATIONS
   ========================================= */
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Tablet Responsive - 992px */
@media (max-width: 992px) {
  .navbar {
    padding: 20px 5%;
  }

  .menu-container {
    padding: 40px 4%;
  }

  h1 {
    font-size: 2.8rem;
  }

  .category-title {
    font-size: 1.5rem;
  }
}

/* Mobile Responsive - 768px */
@media (max-width: 768px) {
  /* Navbar - FIXED FOR TEXT WRAP */
  .navbar {
    padding: 15px 5%;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    left: 0;
    top: 0;
  }

  .logo a {
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    text-align: center;
    display: block;
    line-height: 1.3;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
  }

  /* Hero Section */
  .menu-hero-section {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
  }

  .mini-logo {
    width: 60px !important;
    height: 60px !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  .welcome-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  /* Category Grid - Keep 3 columns on mobile */
  .category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }

  .cat-card span {
    font-size: 0.65rem;
  }

  .cat-img-wrapper {
    border-radius: 10px;
  }

  /* Menu Container */
  .menu-container {
    padding: 30px 5%;
  }

  /* Category Title */
  .category-title {
    font-size: 1.3rem !important;
    gap: 10px;
  }

  .category-title span {
    font-size: 0.75rem !important;
  }

  /* Menu Rows - Mobile - Keep table format */
  .menu-row {
    font-size: 0.8rem;
    display: flex;
    align-items: baseline;
  }

  .menu-row.header {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  .menu-row > span:first-child {
    flex: 1;
    padding-right: 10px;
  }

  .price-col {
    min-width: 55px;
    font-size: 0.8rem;
    text-align: center;
    padding: 0 3px;
  }

  /* Meal Items - Keep dots and columns */
  .meal-item {
    margin-bottom: 15px;
  }

  .meal-header {
    font-size: 0.8rem;
    display: flex;
    align-items: baseline;
  }

  .meal-header > span:first-child {
    font-size: 0.8rem;
    flex-shrink: 1;
    word-break: break-word;
  }

  .meal-header .price-col {
    min-width: 55px;
    font-size: 0.8rem;
    padding: 0 3px;
  }

  .dots {
    margin: 0 6px;
    min-width: 15px;
  }

  /* Split Sections */
  .menu-section.split,
  .menu-section.reverse {
    flex-direction: column !important;
    gap: 25px !important;
    margin: 50px 0 !important;
  }

  .menu-side-img {
    max-width: 100% !important;
    width: 100% !important;
  }

  .menu-side-content {
    width: 100% !important;
  }

  /* Grid Layouts */
  .menu-grid-two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Footer - Mobile Centered Layout */
  footer {
    flex-direction: column;
    gap: 30px;
    padding: 50px 8%;
    text-align: center;
    align-items: center;
  }

  .brand-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-logo {
    width: 70px;
    height: 70px;
  }

  .brand-text {
    text-align: center;
  }

  .brand-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .brand-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
  }

  .footer-left {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-right h4 {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }

  .footer-right a {
    margin-top: 12px;
    font-size: 0.9rem;
  }

  .social-links {
    justify-content: center;
    margin-top: 30px;
    gap: 30px;
  }

  .social-links a {
    font-size: 1.5rem;
  }

  /* Petals - Smaller on mobile */
  .petal {
    width: 10px;
    height: 15px;
  }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
  .navbar {
    padding: 12px 4%;
    gap: 8px;
  }

  .logo a {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  h1 {
    font-size: 1.6rem !important;
  }

  .category-title {
    font-size: 1.1rem !important;
  }

  /* Category Grid - Keep 3 columns on small mobile */
  .category-grid {
    gap: 8px !important;
  }

  .cat-card span {
    font-size: 0.6rem !important;
    letter-spacing: 1px;
  }

  /* Menu Rows - Smaller mobile */
  .menu-row {
    font-size: 0.75rem;
  }

  .menu-row.header {
    font-size: 0.6rem;
  }

  .menu-row > span:first-child {
    padding-right: 8px;
  }

  .price-col {
    min-width: 46px;
    font-size: 0.75rem;
    padding: 0 2px;
  }

  /* Meal Items - Smaller */
  .meal-header {
    font-size: 0.75rem;
  }

  .meal-header > span:first-child {
    font-size: 0.75rem;
  }

  .meal-header .price-col {
    min-width: 46px;
    font-size: 0.75rem;
    padding: 0 2px;
  }

  .dots {
    margin: 0 5px;
    min-width: 10px;
  }

  .menu-container {
    padding: 25px 4%;
  }

  .mini-logo {
    width: 50px !important;
    height: 50px !important;
  }

  .cat-img-wrapper {
    border-radius: 10px;
  }

  .menu-side-img img {
    border-radius: 10px;
  }

  /* Footer - Optimized for Small Mobile */
  footer {
    padding: 40px 6%;
    gap: 25px;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }

  .brand-text h3 {
    font-size: 1.15rem;
  }

  .brand-text p {
    font-size: 0.85rem;
    max-width: 350px;
  }

  .footer-right h4 {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }

  .footer-right a {
    font-size: 0.85rem;
    margin-top: 10px;
  }

  .social-links {
    margin-top: 25px;
    gap: 25px;
  }

  .social-links a {
    font-size: 1.3rem;
  }

  /* Reduce petal size */
  .petal {
    width: 8px;
    height: 12px;
  }
}

/* Extra Small Mobile - 375px */
@media (max-width: 375px) {
  .navbar {
    padding: 10px 3%;
    gap: 6px;
  }

  .logo a {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
  }

  .nav-links a {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
  }

  h1 {
    font-size: 1.4rem !important;
  }

  .category-title {
    font-size: 1rem !important;
  }

  /* Category Grid - Keep 3 columns on extra small mobile */
  .category-grid {
    gap: 5px !important;
  }

  .cat-card span {
    font-size: 0.55rem !important;
    letter-spacing: 0.5px;
  }

  /* Menu Rows - Extra Small */
  .menu-row {
    font-size: 0.7rem;
  }

  .menu-row.header {
    font-size: 0.58rem;
  }

  .menu-row > span:first-child {
    padding-right: 6px;
  }

  .price-col {
    min-width: 40px;
    font-size: 0.7rem;
    padding: 0 2px;
  }

  /* Meal Items - Extra Small */
  .meal-header {
    font-size: 0.7rem;
  }

  .meal-header > span:first-child {
    font-size: 0.7rem;
  }

  .meal-header .price-col {
    min-width: 40px;
    font-size: 0.7rem;
    padding: 0 2px;
  }

  .dots {
    margin: 0 4px;
    min-width: 8px;
  }

  /* Footer - Extra Small */
  footer {
    padding: 35px 5%;
  }

  .footer-logo {
    width: 55px;
    height: 55px;
  }

  .brand-text h3 {
    font-size: 1.05rem;
  }

  .brand-text p {
    font-size: 0.8rem;
    max-width: 320px;
  }

  .footer-right h4 {
    font-size: 0.9rem;
  }

  .footer-right a {
    font-size: 0.8rem;
  }

  .social-links {
    gap: 20px;
  }

  .social-links a {
    font-size: 1.2rem;
  }
}

/* Landscape Mobile Fix */
@media (max-width: 768px) and (orientation: landscape) {
  .menu-hero-section {
    padding: 100px 0 40px 0 !important;
  }

  .mini-logo {
    width: 50px !important;
    height: 50px !important;
  }

  h1 {
    font-size: 1.6rem !important;
  }

  .navbar {
    padding: 10px 5%;
    gap: 6px;
  }

  .logo a {
    font-size: 0.75rem;
  }

  .nav-links a {
    font-size: 0.65rem;
  }

  /* Footer - Landscape Mode */
  footer {
    flex-direction: column;
    gap: 25px;
    padding: 30px 6%;
    text-align: center;
    align-items: center;
  }

  .brand-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text h3 {
    font-size: 1.1rem;
  }

  .brand-text p {
    font-size: 0.85rem;
  }

  .footer-left {
    max-width: 100%;
  }

  .footer-right {
    width: 100%;
  }

  .social-links {
    justify-content: center;
    gap: 25px;
  }

  .social-links a {
    font-size: 1.3rem;
  }
}
