/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-alt: #f4f7f5;
  --color-text: #1f2a24;
  --color-muted: #5a6b62;
  --color-primary: #1f7a4d;
  --color-primary-dark: #155c39;
  --color-border: #dfe6e1;
  --radius: 10px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3 {
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.8em; }
h3 { font-size: 1.15rem; }

p { margin-bottom: 1em; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(180deg, var(--color-alt), #ffffff);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero .subheadline {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-alt);
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  color: var(--color-primary-dark);
}

.note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
}

.ingredient-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 520px;
}

.ingredient-table th,
.ingredient-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.ingredient-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.ingredient-table tbody tr:last-child td {
  border-bottom: none;
}

.ingredient-table tbody tr:nth-child(even) {
  background: #fafcfb;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff8e6;
  border-left: 3px solid #e0a800;
  border-radius: 4px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 420px;
}

.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-weight: 700;
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 0 1rem;
  color: var(--color-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #14251c;
  color: #cfd9d2;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #cfd9d2;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2c4034;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #8fa196;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 20px 1rem;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav li:last-child { border-bottom: none; }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav ul {
    gap: 1rem;
  }
}