/* =========================================
   ROOT VARIABLES
========================================= */
:root {
  --primary: #B91C1C;
  --secondary: #F97316;
  --accent: #FACC15;
  --bg: #FFF7ED;
  --text: #292524;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(185, 28, 28, 0.12);
  --radius: 14px;
  --transition: all 0.35s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad { padding: 90px 0; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title span {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 10px;
  animation: fadeInDown 0.8s ease;
}
.section-title h2 {
  font-size: 42px;
  font-weight: 700;
  position: relative;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 4px;
}

/* =========================================
   PRELOADER
========================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-flame {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   NAVBAR
========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 247, 237, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.logo span { color: var(--secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: var(--transition);
}
.nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:not(.nav-btn):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }

.nav-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}
.nav-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}
.nav-btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.nav-btn-outline:hover { background: var(--primary); color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(185,28,28,0.25);
}
.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 25px rgba(249,115,22,0.35);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-full { width: 100%; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -200px; right: -150px;
  animation: float 6s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(250,204,21,0.15);
  border-radius: 50%;
  bottom: -150px; left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(40px); }
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 650px;
  padding-top: 75px;
}
.hero-content span.tagline {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}
.hero-content h1 {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-content p {
  font-size: 17px;
  margin-bottom: 35px;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-btns {
  display: flex;
  gap: 18px;
  animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   ANIMATE ON SCROLL
========================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-fade-up {
  animation: fadeInUp 0.8s ease both;
}

/* =========================================
   FEATURE / ABOUT CARDS
========================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}
.feature-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(185,28,28,0.18);
}
.feature-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--white);
  margin: 0 auto 20px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon { transform: rotate(360deg) scale(1.1); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #6b6b68; }

/* =========================================
   ABOUT SECTION
========================================= */
.about-section { display: flex; align-items: center; gap: 60px; }
.about-img { flex: 1; position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img::before {
  content: '';
  position: absolute;
  width: 90%; height: 90%;
  border: 4px solid var(--accent);
  border-radius: var(--radius);
  top: 20px; left: -20px;
  z-index: -1;
}
.about-text { flex: 1; }
.about-text span.label { color: var(--secondary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }
.about-text h2 { font-size: 36px; margin: 12px 0 18px; }
.about-text p { margin-bottom: 18px; color: #57534e; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-list li::before {
  content: '✓';
  background: var(--primary);
  color: var(--white);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* =========================================
   MENU / DISHES
========================================= */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}
.menu-tab-btn {
  padding: 10px 26px;
  border-radius: 30px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.menu-tab-btn.active, .menu-tab-btn:hover {
  background: var(--primary);
  color: var(--white);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.menu-card:hover { transform: translateY(-10px); }
.menu-card-img { height: 220px; overflow: hidden; position: relative; }
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.menu-card:hover .menu-card-img img { transform: scale(1.15); }
.menu-card-body { padding: 22px; }
.menu-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.menu-card-top h3 { font-size: 19px; }
.menu-price { color: var(--primary); font-weight: 700; font-size: 18px; }
.menu-card-body p { font-size: 14px; color: #6b6b68; margin-bottom: 16px; min-height: 42px; }
.add-cart-btn {
  width: 100%;
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.add-cart-btn:hover { background: var(--primary); }

/* =========================================
   TESTIMONIAL SLIDER
========================================= */
.testimonial-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.testimonial-section .section-title h2 { color: var(--white); }
.testimonial-section .section-title span { color: var(--accent); }
.testimonial-section .section-title h2::after { background: var(--accent); }

.testimonial-slider {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}
.testimonial-slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 20px 40px;
}
.testimonial-slide img {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid var(--accent);
  object-fit: cover;
}
.testimonial-stars { color: var(--accent); font-size: 18px; margin-bottom: 15px; }
.testimonial-slide p.quote { font-size: 18px; font-style: italic; margin-bottom: 20px; opacity: 0.95; }
.testimonial-slide h4 { color: var(--white); font-size: 18px; }
.testimonial-slide span { font-size: 13px; opacity: 0.8; }

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}
.slider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--accent); width: 30px; border-radius: 10px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 45px; height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition);
  z-index: 5;
}
.slider-arrow:hover { background: var(--accent); color: var(--primary); }
.slider-arrow.prev { left: -10px; }
.slider-arrow.next { right: -10px; }

/* =========================================
   CTA / RESERVATION BANNER
========================================= */
.cta-banner {
  background: var(--text);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); font-size: 34px; margin-bottom: 15px; }
.cta-banner p { margin-bottom: 25px; opacity: 0.85; }

/* =========================================
   FORMS / AUTH CARDS
========================================= */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 20px 60px;
  background: linear-gradient(135deg, rgba(185,28,28,0.06), rgba(249,115,22,0.08));
}
.auth-card {
  background: var(--white);
  padding: 45px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 460px;
  width: 100%;
}
.auth-card h2 { font-size: 30px; margin-bottom: 8px; text-align: center; }
.auth-subtitle { text-align: center; color: #6b6b68; margin-bottom: 28px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e7e5e4;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(185,28,28,0.08);
}
.form-row-between { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.link-muted { color: var(--secondary); font-size: 14px; font-weight: 500; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; }
.auth-switch a { color: var(--primary); font-weight: 600; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-error { background: #fee2e2; color: #b91c1c; border-left: 4px solid #b91c1c; }
.alert-success { background: #dcfce7; color: #15803d; border-left: 4px solid #15803d; }

/* =========================================
   CONTACT PAGE
========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info-card .info-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-card .info-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 25px; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 280px; border: 0; }

/* =========================================
   FOOTER
========================================= */
.site-footer { background: #1c1917; color: #d6d3d1; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { color: var(--white); font-size: 24px; margin-bottom: 15px; }
.footer-logo span { color: var(--secondary); }
.footer-col p { font-size: 14px; opacity: 0.8; margin-bottom: 18px; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 17px; }
.footer-col ul li { margin-bottom: 11px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--accent); }
.contact-info-list li { opacity: 0.85; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--secondary); transform: translateY(-4px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 22px 0;
  font-size: 13px;
  opacity: 0.7;
}

#backToTop {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
#backToTop:hover { background: var(--secondary); transform: translateY(-5px); }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 42px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 75px; right: -100%;
    width: 75%;
    height: calc(100vh - 75px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 35px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  }
  .nav-links.open { right: 0; }
  .menu-grid, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
  .hero-content h1 { font-size: 32px; }
  .about-list { grid-template-columns: 1fr; }
}

/* =========================================
   PAGE BANNER (used on inner pages)
========================================= */
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
  padding: 160px 20px 70px;
}
.page-banner h1 { color: var(--white); font-size: 42px; margin-bottom: 12px; }
.page-banner p { opacity: 0.9; }

/* =========================================
   CART / TABLES
========================================= */
.cart-floating-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  font-weight: 600;
}
.add-cart-form { display: flex; gap: 8px; }
.qty-input { width: 60px; padding: 10px; border-radius: 8px; border: 1.5px solid #e7e5e4; text-align: center; }
.cart-table-wrap { background: var(--white); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.cart-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.cart-table th, .cart-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid #f0ede8; }
.cart-table th { background: var(--bg); font-weight: 600; }
.remove-link { color: var(--primary); font-weight: 600; font-size: 13px; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 40px; }
.btn-outline-dark { background: transparent; border: 2px solid var(--text); color: var(--text); padding: 12px 28px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-outline-dark:hover { background: var(--text); color: var(--white); }
.checkout-card { background: var(--white); padding: 35px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 500px; margin: 0 auto; }

.status-badge { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing, .status-out_for_delivery { background: #dbeafe; color: #1e40af; }
.status-completed, .status-delivered, .status-confirmed, .status-approved { background: #dcfce7; color: #15803d; }
.status-cancelled, .status-blocked { background: #fee2e2; color: #b91c1c; }

/* =========================================
   DASHBOARD
========================================= */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
@media (max-width: 992px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* =========================================
   LEGAL PAGES
========================================= */
.legal-content h3 { margin: 28px 0 10px; font-size: 20px; color: var(--primary); }
.legal-content p { color: #57534e; margin-bottom: 8px; }
.legal-content h3:first-child { margin-top: 0; }