/* ========== GLOBAL ========= */
:root {
  --accent: #c89d3d;
  --accent-soft: #f3e2b7;
  --text-main: #222222;
  --text-muted: #666666;
  --bg: #faf7f2;
  --card-bg: #ffffff;
  --border-soft: #e5dfd5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

h1, h2, h3, p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ========== STICKY NAVBAR ========= */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.nav-brand {
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 16px;
  padding-bottom: 4px;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Page spacing */
.page {
  padding: 40px 0 60px;
}

/* ========== HERO SECTION ========= */
.hero {
  position: relative;
  height: 70vh;
  min-height: 380px;
  background-image: url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 24px;
  color: #f0f0f0;
}

/* ========== BUTTONS ========= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: #a97c25;
}

.btn.secondary {
  background: #f4b641;
  color: #3b2a0b;
}

.btn.secondary:hover {
  background: #d99c2d;
}

/* ========== HOME FEATURES ========= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0 50px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--border-soft);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== MENU PAGE ========= */
.menu-section h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.menu-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}

.menu-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-card h3 {
  font-size: 20px;
  margin: 14px 16px 4px;
}

.menu-card .desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 16px 8px;
}

.tags {
  margin: 0 16px 6px;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-right: 4px;
  margin-bottom: 4px;
  color: #5b4b1a;
}

.tag.veg { background: #4caf50; color: #ffffff; }
.tag.cold { background: #00aaff; color: #ffffff; }
.tag.popular { background: #ff9800; color: #ffffff; }
.tag.sweet { background: #b44b83; color: #ffffff; }

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 6px 16px 12px;
}

/* ========== ABOUT PAGE ========= */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.2fr);
  gap: 32px;
}

.about-text h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--border-soft);
}

/* ========== CONTACT PAGE ========= */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.2fr);
  gap: 32px;
}

.contact-info h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--border-soft);
  margin-top: 12px;
}

.contact-form-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--border-soft);
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form-card input,
.contact-form-card textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.small-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.success-message {
  font-size: 13px;
  color: green;
  margin-top: 6px;
}

/* ========== CART MODAL ========= */
.hidden {
  display: none !important;
}

.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.cart-modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 480px;
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  position: relative;
  animation: fadeIn 0.2s ease-in-out;
}

.cart-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

#cart-items {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 12px;
  margin-bottom: 8px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.cart-item-title {
  font-weight: 500;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-controls button {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f6f6f6;
  cursor: pointer;
}

.cart-total {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ========== RESPONSIVE ========= */
@media (max-width: 768px) {
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .nav-links {
    gap: 14px;
    font-size: 14px;
  }
}
