/* 1. Globally block horizontal overflow */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

/* 2. Prevent any element from exceeding viewport width */
* {
  max-width: 100%;
}

/* 3. Ensure sections don’t inadvertently overflow */
.hero,
.menu-section,
#branches,
footer {
  overflow-x: hidden;
}

/* 4. Off-canvas nav */
.nav-links {
  position: fixed;
  top: 65px;
  right: 0;
  width: 75%;
  max-width: 240px;
  height: calc(100vh - 65px);
  background: linear-gradient(180deg,#640D5F,#B12C00);
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-x: hidden;
}
.nav-links.show {
  transform: translateX(0);
}

/* Google Font Poppins is already included in HTML */
/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #333;
  background: #fdfdfd;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: linear-gradient(90deg, #640D5F, #B12C00);
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 45px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  transition: transform 0.3s ease;
}

/* Desktop nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #FFCC00;
}

/* Hero Section with Fade and Responsive Fit */
.hero {
  background: linear-gradient(120deg, #640D5F 0%, #B12C00 100%);
  min-height: 430px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 40px 0;
  position: relative;
}
.hero-content {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 40px 60px;
  margin-top: 40px;
  text-align: center;
  max-width: 600px;
  width: 90vw;
  box-sizing: border-box;
}
.hero-content h1 {
  font-size: 44px;
  margin-bottom: 15px;
  animation: zoomIn 1.2s ease-out;
  font-weight: bold;
  word-break: break-word;
}
.hero-content p {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
.tagline {
  font-size: 20px;
  color: #FFCC00;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-navbar {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 1s ease-out forwards;
}
@keyframes fadeDown {
  to { opacity: 1; transform: translateY(0); }
}

/* Menu Section */
.menu-section {
  padding: 80px 8%;
  text-align: center;
  background: #fdfdfd;
}
.section-title {
  font-size: 32px;
  color: #640D5F;
  margin-bottom: 40px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.menu-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}
.menu-card h3 {
  font-size: 20px;
  color: #B12C00;
  margin: 10px 0;
}
.menu-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}
.price {
  font-size: 18px;
  font-weight: bold;
  color: #EB5B00;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Filter */
.menu-filter {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.menu-filter::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  flex: 0 0 auto;
  background: #fff;
  border: 2px solid #640D5F;
  color: #640D5F;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.filter-btn:hover {
  background: #640D5F;
  color: #fff;
}
.filter-btn.active {
  background: #EB5B00;
  border-color: #EB5B00;
  color: #fff;
}

/* Branch Section */
#branches {
  padding: 60px 8%;
  background: #fdfdfd;
}
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.branch-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  transition: transform 0.3s ease;
}
.branch-card:hover {
  transform: translateY(-5px);
}
.branch-card h3 {
  font-size: 1.2rem;
  color: #B12C00;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #640D5F, #B12C00);
  color: #fff;
  padding: 50px 8%;
  text-align: left;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand img.footer-logo {
  height: 60px;
  margin-bottom: 10px;
}
.footer-brand h3 {
  font-size: 22px;
  margin-bottom: 5px;
  color: #FFCC00;
}
.footer-info, .footer-branches {
  flex: 1;
  min-width: 200px;
}
.footer-info h4, .footer-branches h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #FFCC00;
}
.footer-info p, .footer-branches ul li {
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-info a {
  color: #fff;
  text-decoration: none;
}
.footer-info a:hover {
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
}

/* Section Headings */
.menu-subheading {
  grid-column: 1 / -1;
  font-size: 1.2em;
  color: #B12C00;
  margin: 24px 0 8px 0;
  font-weight: bold;
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 65px;
    right: 0;
    width: 75%;
    max-width: 240px;
    height: calc(100vh - 65px);
    background: linear-gradient(180deg, #640D5F, #B12C00);
    flex-direction: column;
    padding-top: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .nav-links.show {
    transform: translateX(0);
  }
  .nav-links li {
    margin-bottom: 25px;
    text-align: center;
  }
  .nav-links li a {
    font-size: 18px;
  }
  .hero {
    min-height: 330px;
    padding: 15px 0;
  }
  .hero-content {
    padding: 18px 8px;
    margin-top: 18px;
    border-radius: 10px;
    max-width: 96vw;
    width: 100%;
  }
  .hero-content h1 {
    font-size: 1.7em;
    margin-bottom: 10px;
  }
  .hero-content p {
    font-size: 1em;
    margin-bottom: 5px;
  }
}
