/* ═══════════════════════════════════════════
   NATTOKINASE GUIDE — Shared Stylesheet
   Palette: Bianco & Verde
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --ink:          #0f1f10;
  --white:        #ffffff;
  --off-white:    #f4f9f4;
  --light-green:  #e8f3e8;
  --mid-green:    #c8e6c8;
  --green:        #2e7d32;
  --green-light:  #4caf50;
  --green-dark:   #1b5e20;
  --green-pale:   #a5d6a7;
  --accent:       #388e3c;
  --muted:        #4a6741;
  --muted-light:  #6a9b6e;
  --border:       rgba(46,125,50,0.20);
  --shadow:       0 4px 24px rgba(15,31,16,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 5vw;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(46,125,50,0.08);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600;
  color: var(--green-dark); text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { font-style: italic; color: var(--green); }

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.nav-links li:first-child a { border-left: 1px solid var(--border); }
.nav-links a:hover,
.nav-links a.active { color: var(--green-dark); background: var(--light-green); }

/* ── HERO ── */
.page-hero {
  padding: 9rem 5vw 5rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  color: var(--white);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -20%; right: -5%;
  width: 50vw; height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -10%; left: -5%;
  width: 30vw; height: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 860px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-pale); margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 1.5rem; height: 1px; background: var(--green-pale);
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.05; font-weight: 700;
  color: var(--white); margin-bottom: 1.25rem;
}
.page-hero h1 em { font-style: italic; color: var(--green-pale); }
.hero-lead {
  font-size: 1.05rem; color: rgba(255,255,255,0.90);
  font-weight: 300; max-width: 55ch; line-height: 1.8;
}
.hero-meta {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.20);
  padding-top: 2rem;
}
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--green-pale); line-height: 1;
}
.hero-stat-label {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); margin-top: 0.2rem;
}

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 5.5rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--green-dark); color: var(--white); }

.section-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); border: 1px solid var(--border);
  padding: 0.3rem 0.8rem; margin-bottom: 1rem;
  background: var(--light-green);
}
.section-dark .section-tag {
  border-color: rgba(255,255,255,0.25);
  color: var(--green-pale);
  background: rgba(255,255,255,0.10);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 0.75rem; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--green); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-title em { color: var(--green-pale); }

.section-lead {
  font-size: 0.97rem; color: var(--muted); font-weight: 300;
  max-width: 55ch; line-height: 1.9; margin-bottom: 3rem;
}
.section-dark .section-lead { color: rgba(255,255,255,0.88); }

/* ── CARDS ── */
.card-grid-3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.2rem 1.8rem;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
  border-radius: 4px;
}
.card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card:hover::after { transform: scaleX(1); }

.card-dark {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 4px;
  padding: 2.2rem 1.8rem;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card-dark:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.card-icon {
  width: 2.5rem; height: 2.5rem;
  color: var(--green); margin-bottom: 1.2rem;
}

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.6rem; color: var(--ink);
}
.card-dark h3 { color: var(--white); }

.card p { font-size: 0.86rem; color: var(--muted); font-weight: 300; line-height: 1.8; }
.card-dark p { color: rgba(255,255,255,0.88); }

/* ── STUDY REF LINK ── */
.study-ref {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; color: var(--green); font-weight: 500;
  text-decoration: none; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(46,125,50,0.3);
  padding-bottom: 1px; margin-top: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}
.study-ref:hover { color: var(--green-dark); border-color: var(--green-dark); }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 0.8rem 1rem;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); border-bottom: 2px solid var(--green);
  background: var(--green);
}
.data-table td {
  padding: 1.2rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.84rem; color: var(--muted); font-weight: 300;
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--light-green); }
.data-table td:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; color: var(--ink); font-weight: 600;
}
.data-table a {
  color: var(--green); font-size: 0.75rem; text-decoration: none;
  display: inline-block; margin-top: 0.25rem;
  border-bottom: 1px solid rgba(46,125,50,0.3);
  transition: color 0.2s;
}
.data-table a:hover { color: var(--green-dark); }
.highlight-row { background: var(--light-green) !important; }
.highlight-row td:first-child { color: var(--green-dark); }

/* ── WARNING BOX ── */
.warning-box {
  background: #fff8e1; border: 1px solid #ffc107;
  border-left: 3px solid #f57c00;
  padding: 1.5rem 1.75rem; margin-top: 1.5rem;
  border-radius: 2px;
}
.warning-box h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; color: #e65100; margin-bottom: 0.6rem; font-weight: 700;
}
.warning-box ul { list-style: none; padding: 0; }
.warning-box li {
  font-size: 0.81rem; color: #5d4037;
  padding: 0.25rem 0 0.25rem 1.2rem;
  position: relative; font-weight: 300;
}
.warning-box li::before { content: '—'; position: absolute; left: 0; color: #f57c00; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 1.8rem; transition: all 0.2s;
  border-radius: 2px;
}
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateX(3px); }
.btn-outline { border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: white; }
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ── BADGE ── */
.badge {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 2px;
}
.badge-amber { background: var(--green); color: white; }
.badge-sage { background: var(--green-dark); color: white; }
.badge-outline { border: 1px solid var(--border); color: var(--green); background: var(--light-green); }
.badge-dark { background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.30); }

/* ── NEWS CARDS ── */
.news-card {
  border: 1px solid var(--border); background: var(--white);
  border-radius: 4px; overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-body { padding: 1.6rem 1.5rem; }
.news-card-date {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 0.5rem; font-weight: 400;
}
.news-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 700; line-height: 1.3;
  color: var(--ink); margin-bottom: 0.6rem;
}
.news-card p { font-size: 0.84rem; color: var(--muted); font-weight: 300; line-height: 1.8; }
.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--light-green);
}
.news-card-footer .source {
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em;
}

/* ── NEWS FEATURED ── */
.news-featured {
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  background: var(--white);
  border-radius: 0 4px 4px 0;
  padding: 2rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  align-items: start; margin-bottom: 1.5rem;
  transition: box-shadow 0.25s;
}
.news-featured:hover { box-shadow: var(--shadow); }
.news-featured-date {
  writing-mode: vertical-rl;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green); font-weight: 500; padding-top: 0.25rem;
}
.news-featured h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700; line-height: 1.25;
  color: var(--ink); margin-bottom: 0.6rem;
}
.news-featured p { font-size: 0.85rem; color: var(--muted); font-weight: 300; line-height: 1.8; }

/* ── SIDEBAR ── */
.sidebar-sticky { position: sticky; top: 5.5rem; }
.sidebar-box {
  border: 1px solid var(--border); background: var(--off-white);
  border-radius: 4px;
  padding: 1.75rem; margin-bottom: 1.25rem;
}
.sidebar-box h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--ink);
}
.sidebar-box p { font-size: 0.82rem; color: var(--muted); font-weight: 300; line-height: 1.8; }

/* ── PRODUCT CARDS ── */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.8rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; color: var(--ink); margin-bottom: 0.3rem; font-weight: 700;
}
.product-brand { font-size: 0.74rem; color: var(--muted-light); margin-bottom: 0.75rem; }
.product-fu { font-size: 0.8rem; color: var(--green); font-weight: 500; margin-bottom: 1.25rem; }
.product-features { list-style: none; margin-bottom: 1.25rem; }
.product-features li {
  font-size: 0.78rem; color: var(--muted);
  padding: 0.25rem 0 0.25rem 1.2rem; position: relative; font-weight: 300;
}
.product-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 0.75rem; font-weight: 600; }
.product-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: var(--green-dark); font-weight: 700;
}
.product-price small {
  font-family: 'Outfit', sans-serif; font-size: 0.7rem;
  color: var(--muted-light); display: block;
}
.buy-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--green); color: white; text-decoration: none;
  padding: 0.6rem 1.1rem; font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.2s;
}
.buy-btn:hover { background: var(--green-dark); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  gap: 1rem; transition: color 0.2s;
}
.faq-question:hover { color: var(--green); }
.faq-icon { width: 1.2rem; height: 1.2rem; min-width: 1.2rem; color: var(--green); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 0 1.5rem; font-size: 0.87rem; color: var(--muted); font-weight: 300; line-height: 1.9; }
.faq-answer a { color: var(--green); }

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.88);
  padding: 4rem 5vw 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  color: var(--white); margin-bottom: 0.6rem;
}
.footer-logo span { font-style: italic; color: var(--green-pale); }
.footer-desc { font-size: 0.81rem; line-height: 1.8; font-weight: 300; color: rgba(255,255,255,0.82); }
.footer-col h5 {
  font-size: 0.68rem; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--green-pale); margin-bottom: 1.1rem; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 0.81rem; font-weight: 300; transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-pale); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem; display: flex;
  align-items: center; justify-content: space-between;
  font-size: 0.74rem; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap; gap: 0.5rem;
}
.disclaimer-bar {
  background: #fff3e0; border: 1px solid #ffb74d;
  border-left: 3px solid #f57c00;
  padding: 1.25rem 1.75rem; margin-bottom: 2rem;
  font-size: 0.77rem; line-height: 1.7; font-weight: 300; color: #4e342e;
}
.disclaimer-bar strong {
  display: block; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #e65100; margin-bottom: 0.35rem;
}

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ── IMAGES ── */
.hero-image { width: 100%; height: 420px; object-fit: cover; display: block; }
.section-image { width: 100%; height: 280px; object-fit: cover; display: block; }
.image-caption {
  font-size: 0.72rem; color: var(--muted); text-align: center;
  padding: 0.5rem 0; font-style: italic; letter-spacing: 0.03em;
}
.unsplash-credit { font-size: 0.68rem; color: var(--muted); text-align: right; padding: 0.3rem 0.5rem; opacity: 0.7; }
.unsplash-credit a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(74,103,65,0.3); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0.9rem 1.5rem; }
  .nav-links { display: none; }
  .card-grid-3, .product-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 1.5rem; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-date { writing-mode: horizontal-tb; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
