/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

@media (max-width: 767px) {
  .menu-hero {
    min-height: 30vh;
    padding: 2rem 1rem;
  }
  
  .menu-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .menu-container {
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
  }
  
  .filter-btn {
    padding: 0.6em 1em;
    font-size: 0.9rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 0 15px;
    height: 40px;
  }

  nav::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== BASE STYLES ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #fffaf0;
  font-size: 16px;
  line-height: 1.6;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .site-title, .menu-title, .category-header {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: #2e1a47;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 50px;
  width: auto;
  border-radius: 50%;
}

.site-title {
  font-size: 1.2rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  font-weight: 500;
}

/* ===== HERO SECTIONS ===== */
.hero, .menu-hero {
  position: relative;
  height: 100svh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.hero {
  background-image: url('pictures/Display.jpeg');
}

.menu-hero {
  background: linear-gradient(rgba(106, 27, 154, 0.8), rgba(106, 27, 154, 0.8)), 
              url('pictures/Display.jpeg') center/cover;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 2rem 1rem;
  height: auto;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

.hero h1, .menu-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.menu-title {
  color: white;
  margin: 0 0 1rem;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.5em;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 44px;
  line-height: 1.3;
}

.btn span {
  position: relative;
  top: 1px;
}

.btn-primary {
  background-color: #6A1B9A;
  color: white;
}

.btn-primary:hover {
  background-color: #4a126a;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #6A1B9A;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-buttons .btn {
  min-height: 50px;
}

.filter-btn {
  padding: 0.7em 1.2em;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.filter-btn:hover, .filter-btn.active {
  background: white;
  color: #6A1B9A;
}

.menu-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* ===== CONTENT SECTIONS ===== */
.features {
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.feature-card i {
  font-size: 2rem;
  color: #6A1B9A;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #2e1a47;
  margin-bottom: 0.5rem;
}

.contact-section {
  padding: 1.5rem 1rem;
  background: linear-gradient(to bottom, #2e1a47, #1a0d2b);
  color: white;
  margin-top: 0;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info h3, .social-links h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.social-icons a {
  color: #AB47BC;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
  color: #6A1B9A;
}

.order-cta {
  text-align: center;
  margin: 1rem auto;
  padding: 1rem;
  background: rgba(106, 27, 154, 0.1);
  border-radius: 8px;
  max-width: 800px;
}

.order-cta p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.order-cta a {
  display: inline-flex;
  align-items: center;
  background: #6A1B9A;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.order-cta a:hover {
  background: #4a126a;
  transform: translateY(-2px);
}

.order-cta .phone-icon {
  margin-right: 8px;
}

/* ===== MENU PAGE ===== */
.menu-container {
  padding: 1rem;
  padding-bottom: 0;
}

.menu-section {
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease;
}

.category-header {
  color: #6A1B9A;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6A1B9A;
  margin-bottom: 1rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.menu-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.menu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.menu-details {
  padding: 1rem;
  padding-bottom: 0.5rem;
}

.menu-details h3 {
  color: #6A1B9A;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.size-options {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.size-options li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #eee;
}

.size-options li:last-child {
  border-bottom: none;
}

.size-options li span:last-child,
.price {
  font-weight: bold;
  color: #6A1B9A;
}

.popular-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF5722;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* ===== FOOTER ===== */
footer {
  background: #1a0d2b;
  color: white;
  padding: 0.75rem 1rem;
  margin-top: auto;
  border-top: none;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: #2e1a47;
    flex-direction: column;
    padding: 1rem;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  nav.active {
    left: 0;
  }
  
  .hero h1, .menu-title {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .social-links {
    margin-top: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero {
    background-attachment: fixed;
  }
  
  .hero h1, .menu-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .features {
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .site-title {
    font-size: 1.5rem;
  }
  
  nav {
    gap: 1.5rem;
  }
}

/* Add to your existing menu styles */
.menu-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.menu-title {
  margin-bottom: 1.5rem; /* Space between title and filters */
  width: 100%;
}

.menu-filter {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.menu-hero {
  background: linear-gradient(rgba(106, 27, 154, 0.85), rgba(106, 27, 154, 0.85)),
              url('pictures/Display.jpeg') center/cover no-repeat;
  color: white;
  min-height: 300px; /* Reduced from full viewport */
}

/* For the menu items section */
.menu-container {
  background: white;
  position: relative;
  z-index: 1;
  border-radius: 20px 20px 0 0;
  margin-top: -20px; /* Pulls up over the hero */
  padding-top: 2rem;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.menu-title {
  font-size: 2.8rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.category-header {
  font-size: 1.8rem;
  margin-top: 1.5rem;
}

.filter-btn {
  padding: 0.8em 1.5em;
  margin: 0.5em;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-btn.active {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: auto;
  height: 50px;
  border-radius: 25px;
  background: #6A1B9A;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #4a126a;
  transform: translateY(-3px);
}

/* Logo link styles */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.9;
}

/* Ensure logo and text stay aligned */
.brand {
  display: flex;
  align-items: center;
}

/* Add close button at bottom of sidebar */
nav::after {
  content: '✕ Close';
  display: block;
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

nav {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu Styles */
nav {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 80%;
  height: calc(100vh - 80px);
  background: #2e1a47;
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 2rem;
}

nav.active {
  left: 0;
}

.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
}
