@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary-color: #2d5a27;
  --accent-color: #f1c40f;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f9fbf9;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

h1, h2, h3, .navbar-brand {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
              url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&q=80&w=2070');
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* Section Styling */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: clamp(2rem, 5vw, 3rem);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Recipe Grid & Cards */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.recipe-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  transform: translateY(-10px);
  shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.recipe-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 Aspect Ratio */
  overflow: hidden;
}

.recipe-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.recipe-card:hover .recipe-image-wrapper img {
  transform: scale(1.05);
}

.recipe-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.recipe-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.recipe-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-item {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem !important;
  font-weight: 600 !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-dark) !important;
}

.faq-question:hover {
  color: var(--primary-color) !important;
}

.faq-answer {
  border: none !important;
  border-top: 1px solid rgba(0,0,0,0.05) !important;
  color: var(--text-light);
  background: #fcfcfc;
}

/* Footer */
footer {
  background: #0f2614;
  color: rgba(255,255,255,0.8);
  padding: 5rem 0 3rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

footer h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

footer a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  
  .section-title {
    margin-bottom: 2.5rem;
  }
  
  .recipes-grid {
    gap: 1.5rem;
  }
}
