:root {
  --gold:        #d4a853;
  --gold-light:  #f0d89a;
  --cream:       #faf5eb;
  --dark:        #1a1612;
  --dark-card:   rgba(26, 22, 18, 0.55);
  --glass-border:rgba(212, 168, 83, 0.25);
  --glass-bg:    rgba(26, 22, 18, 0.45);
  --text:        #eee5d6;
  --text-muted:  #b8a992;
  --radius:      16px;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}
.video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,8,6,0.65) 0%,
      rgba(10,8,6,0.40) 40%,
      rgba(10,8,6,0.75) 100%);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}
.hero-content {
  animation: fadeUp 1s ease-out both;
}
.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.hero-sub {
  max-width: 460px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
}
.hero-btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.recipes-section {
  position: relative;
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}
.recipe-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.recipe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,168,83,0.08), transparent 60%);
  pointer-events: none;
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}
.recipe-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.35);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,8,6,0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: linear-gradient(145deg, rgba(32,28,22,0.92), rgba(22,18,14,0.96));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  width: 92%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s ease;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
  display: flex; align-items: center; justify-content: center;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.modal-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.3);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 1.75rem;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.modal-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.modal-body ul,
.modal-body ol {
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.modal-body li {
  margin-bottom: 0.35rem;
}

.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

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

@media (max-width: 600px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 2rem 1.25rem;
  }
}
