/* ============================================
   style.css — Flavor Hub Restaurant Website
   ============================================ */

/* ---- 1. RESET & VARIABLES ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red:     #e63946;
  --orange:  #f4a261;
  --yellow:  #e9c46a;
  --dark:    #1a0a00;
  --brown:   #3d1c02;
  --cream:   #fff8f0;
  --white:   #ffffff;
  --gray:    #666;
  --border:  #f5dfc0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: #333;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 70px 8%;
}

/* ---- 2. DARK MODE ---- */
body.dark {
  background: #120800;
  color: #f5dfc0;
}
body.dark nav         { background: #1e0d00; border-color: #3d1c02; }
body.dark #about      { background: #1e0d00; }
body.dark #menu       { background: #120800; }
body.dark #specials   { background: #1e0d00; }
body.dark #gallery    { background: #120800; }
body.dark #reviews    { background: #1e0d00; }
body.dark #reserve    { background: #120800; }
body.dark #contact    { background: #1e0d00; }
body.dark .menu-card  { background: #2a1200; border-color: #3d1c02; }
body.dark .rev-card   { background: #2a1200; border-color: #3d1c02; }
body.dark .spec-card  { background: #2a1200; border-color: #3d1c02; }
body.dark input,
body.dark textarea,
body.dark select      { background: #2a1200; color: #f5dfc0; border-color: #5a2e00; }

/* ---- 3. NAVBAR ---- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--red);
  letter-spacing: 1px;
}

.logo span {
  color: var(--orange);
}

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

.nav-links a {
  font-size: 0.82rem;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--red); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#dark-btn {
  padding: 7px 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
}

.reserve-nav-btn {
  padding: 8px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.reserve-nav-btn:hover { background: var(--red); }

/* ---- 4. HERO ---- */
#home {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a0a00 0%, #3d1c02 50%, #6b3010 100%);
  padding: 80px 8%;
  position: relative;
  overflow: hidden;
}

/* Decorative circle behind hero */
#home::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(230,57,70,0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(244,162,97,0.2);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 20px;
}

#home h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

#home h1 span { color: var(--orange); }

#home p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 500px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-red {
  padding: 13px 32px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-red:hover { background: #c1121f; transform: translateY(-2px); }

.btn-outline {
  padding: 13px 32px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: #fff;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--orange);
  display: block;
}

.stat-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- 5. ABOUT ---- */
#about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  background: linear-gradient(135deg, #f4a261, #e63946);
  border-radius: 8px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  position: relative;
}

.about-img-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--dark);
  color: var(--orange);
  padding: 16px 20px;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.2;
}

body.dark .section-title { color: #f5dfc0; }

.section-title span { color: var(--red); }

.about-text {
  color: var(--gray);
  line-height: 1.9;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

body.dark .about-text { color: #b09070; }

/* ---- 6. MENU ---- */
#menu { background: var(--cream); }
body.dark #menu { background: #120800; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 8px 22px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
}

body.dark .tab-btn { background: #2a1200; color: #b09070; border-color: #3d1c02; }

.tab-btn:hover,
.tab-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Menu Cards Grid — React renders here */
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 240px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(230,57,70,0.12);
}

.menu-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  position: relative;
}

body.dark .menu-img { background: linear-gradient(135deg, #2a1200, #3d1c02); }

.veg-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid #2e7d32;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7d32;
}

.nonveg-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid #c62828;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nonveg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c62828;
}

.spicy-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  background: var(--red);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
}

.menu-body { padding: 14px 16px; }
.menu-name { font-size: 1rem; margin-bottom: 4px; }
.menu-desc { font-size: 0.75rem; color: #999; margin-bottom: 10px; line-height: 1.5; }
body.dark .menu-desc { color: #7a6050; }

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-price { color: var(--red); font-weight: 600; font-size: 0.95rem; }

.order-btn {
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s;
}

.order-btn:hover { background: #c1121f; }

/* ---- 7. SPECIALS ---- */
#specials { background: var(--white); }

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
}

.spec-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  width: 230px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(230,57,70,0.1);
}

.spec-icon { font-size: 2.5rem; margin-bottom: 12px; }
.spec-card h3 { font-size: 1.1rem; color: var(--red); margin-bottom: 6px; }
.spec-card p  { font-size: 0.78rem; color: var(--gray); line-height: 1.6; }
body.dark .spec-card p { color: #b09070; }

/* ---- 8. GALLERY ---- */
#gallery { background: var(--cream); }
body.dark #gallery { background: #120800; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.gal-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f4a261, #e63946);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  cursor: pointer;
  transition: transform 0.25s, opacity 0.25s;
}

.gal-item:hover { transform: scale(1.04); opacity: 0.9; }
.gal-item:nth-child(1) { background: linear-gradient(135deg, #f4a261, #e63946); }
.gal-item:nth-child(2) { background: linear-gradient(135deg, #e9c46a, #f4a261); }
.gal-item:nth-child(3) { background: linear-gradient(135deg, #e63946, #9d0208); }
.gal-item:nth-child(4) { background: linear-gradient(135deg, #3d1c02, #6b3010); }
.gal-item:nth-child(5) { background: linear-gradient(135deg, #e9c46a, #e63946); }
.gal-item:nth-child(6) { background: linear-gradient(135deg, #f4a261, #3d1c02); }

/* ---- 9. REVIEWS ---- */
#reviews { background: var(--white); }

.rev-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
}

.rev-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  max-width: 280px;
}

.stars     { color: var(--orange); font-size: 1rem; margin-bottom: 10px; }
.rev-text  { font-size: 0.83rem; color: var(--gray); font-style: italic; line-height: 1.7; margin-bottom: 14px; }
body.dark .rev-text { color: #b09070; }
.rev-name  { font-size: 0.8rem; font-weight: 500; color: var(--red); }
.rev-date  { font-size: 0.72rem; color: #aaa; }

/* ---- 10. RESERVATION ---- */
#reserve {
  background: linear-gradient(135deg, #1a0a00, #3d1c02);
  text-align: center;
  color: #fff;
}

#reserve .section-label { color: var(--orange); }
#reserve .section-title { color: #fff; }

.reserve-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 560px;
  margin: 32px auto 0;
  text-align: left;
}

.reserve-form input,
.reserve-form select {
  padding: 12px 15px;
  border: 1px solid rgba(244,162,97,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.reserve-form input::placeholder { color: rgba(255,255,255,0.4); }
.reserve-form select option       { background: #3d1c02; color: #fff; }

.reserve-form input:focus,
.reserve-form select:focus { border-color: var(--orange); }

.reserve-form .full-width { grid-column: 1 / -1; }

.err  { font-size: 0.74rem; color: #ff8a80; }
.ok-msg { background: rgba(244,162,97,0.15); color: var(--orange); padding: 12px; border-radius: 4px; font-size: 0.85rem; }

/* ---- 11. CONTACT ---- */
#contact { background: var(--cream); }
body.dark #contact { background: #1e0d00; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 36px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.contact-val   { font-size: 0.88rem; color: var(--gray); }
body.dark .contact-val { color: #b09070; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-form input,
.contact-form textarea {
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  background: var(--white);
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

body.dark .contact-form input,
body.dark .contact-form textarea { background: #2a1200; color: #f5dfc0; border-color: #5a2e00; }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }

.contact-form textarea { resize: vertical; min-height: 110px; }

/* ---- 12. FOOTER ---- */
footer {
  background: #0d0500;
  color: #a08060;
  padding: 40px 8% 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a1200;
  margin-bottom: 20px;
}

.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--red); margin-bottom: 10px; }
.footer-logo span { color: var(--orange); }
.footer-desc { font-size: 0.8rem; line-height: 1.8; }

.footer-col-title { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: #f5dfc0; margin-bottom: 14px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

footer span { color: var(--orange); }

/* ---- 13. RESPONSIVE ---- */
@media (max-width: 768px) {
  #about         { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 30px; }
  .reserve-form  { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-top    { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  #home h1    { font-size: 2.4rem; }
  .nav-links  { display: none; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}
