:root {
  --primary-color: #2D5F3E;
  --secondary-color: #7A5C3A;
  --bg-color: #ffffff;
  --text-color: #171717;
  --text-muted: #555555;
  --border-color: #e0e0e0;
  --accent-light: rgba(45, 95, 62, 0.05);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
  display: block;
}

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

/* Dropdown Menu Styles */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  list-style: none;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
}

.nav-links li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

.dropdown a:hover {
  background-color: var(--accent-light);
  color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem; border-left: 4px solid var(--secondary-color); padding-left: 1rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
  cursor: pointer;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: transparent;
  color: #7A5C3A;
  border-color: #7A5C3A;
}

/* Article & Content */
article {
  padding: 4rem 0;
}

.ingredient-card {
  background: var(--accent-light);
  border: 1px solid var(--primary-color);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.ingredient-card::before {
  content: "SCIENTIFIC ANALYSIS";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.meta {
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(20%);
}

/* Reviews Specific */
.rating-bar {
  height: 4px;
  width: 100%;
  background: #eee;
  margin: 10px 0;
}

.rating-fill {
  height: 100%;
  background: var(--secondary-color);
}

/* Sidebar Elements */
.sidebar-box {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: #f9f9f9;
  padding: 4rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-about p {
  font-size: 0.9rem;
}

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

input[type="email"]:focus {
  border-color: var(--primary-color);
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}