:root {
  --primary: #9E3F6A;
  --secondary: #3D3D3D;
  --background: #ffffff;
  --text: #171717;
  --text-muted: #555555;
  --border-color: #f0f0f0;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 4px; margin-bottom: 2rem; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

/* Header & Navigation */
header {
  padding: 0.8rem 5%;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
  padding: 0.4rem 0;
}

/* Dropdown Navigation */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--background);
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1001;
  padding: 0.5rem 0;
  list-style: none;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown-menu a {
  padding: 0.6rem 1.2rem;
  text-transform: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dropdown-menu a:hover {
  background-color: #fff9fb;
  color: var(--primary);
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

/* Hero Section */
.hero {
  padding: 6rem 5%;
  text-align: center;
  background-color: #fff9fb;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.card {
  border: 1px solid var(--border-color);
  padding: 0;
  transition: var(--transition);
  background: white;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f7f7f7;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.card-content {
  padding: 1.5rem;
}

.category-tag {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover {
  background-color: var(--secondary);
  color: #ffffff;
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Ingredient Highlights */
.ingredient-badge {
  background: #fff0f5;
  color: var(--secondary);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  border: 1px solid var(--primary);
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: #ffffff;
  padding: 4rem 5%;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-section p, .footer-section a {
  color: #cccccc;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  h1 {
    font-size: 2rem;
  }
}

/* Forms */
input[type="email"] {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  width: 100%;
  margin-bottom: 1rem;
  font-family: var(--font-family);
}

input:focus {
  outline: none;
  border-color: var(--primary);
}