:root {
  --primary: #1e3a5f;
  --primary-light: #2b5282;
  --secondary: #319795;
  --secondary-light: #e6fffa;
  --accent: #d69e2e;
  --dark: #1a202c;
  --text: #2d3748;
  --text-muted: #718096;
  --bg: #f7fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.25s ease-in-out;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 20px;
}

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

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 4px;
}

nav a:hover, nav a.active {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(49, 151, 149, 0.15);
  color: var(--secondary);
  font-weight: 600;
  font-size: 13px;
  border-radius: 30px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #4a5568;
  margin-bottom: 28px;
}

/* Legal Notice Banner */
.disclaimer-banner {
  background-color: #fffaf0;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  color: #744210;
  margin-bottom: 30px;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin: 40px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
}

.card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  color: #4a5568;
  font-size: 15px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.nutrient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.nutrient-tag {
  background-color: #edf2f7;
  color: #4a5568;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Feature Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Interactive Filter / Planner */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Food Table */
.data-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 30px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.data-table tr:hover {
  background-color: #fbfcfe;
}

/* CTA & Form */
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  margin: 40px 0;
}

.cta-box h3 {
  font-size: 28px;
  margin-bottom: 14px;
}

.cta-box p {
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto 24px;
}

.form-group {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 10px;
}

.form-input {
  flex-grow: 1;
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #285e61;
}

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

.btn-light:hover {
  background-color: #edf2f7;
}

/* Footer */
footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 50px 0 24px;
  border-top: 1px solid #2d3748;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #a0aec0;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  padding: 18px 24px;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cookie-text {
  font-size: 14px;
  color: #4a5568;
  flex: 1 1 500px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Checklist & Interactive Items */
.check-list {
  list-style: none;
  margin: 20px 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Legal text formatting */
.legal-page-content {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 40px 0;
}

.legal-page-content h1 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 24px;
}

.legal-page-content h2 {
  font-size: 22px;
  color: var(--primary);
  margin: 28px 0 14px;
}

.legal-page-content p {
  margin-bottom: 14px;
  color: #4a5568;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  nav ul {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .form-group {
    flex-direction: column;
  }
}
