/* Kalyvera — Fresh, natural, alive */
:root {
  --green: #2d6a4f;
  --green-light: #40916c;
  --green-pale: #d8f3dc;
  --cream: #fefae0;
  --warm: #e9c46a;
  --brown: #5c4033;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #faf9f6;
  --card: #ffffff;
  --radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e8e8;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.5px;
}
nav .logo span { color: var(--brown); }
nav .nav-links { display: flex; gap: 1.5rem; align-items: center; }
nav .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--green); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}
.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subtitle {
  font-size: 1rem;
  color: var(--brown);
  font-weight: 500;
}

/* Sections */
section { padding: 4rem 0; }
section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}
section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
section p { margin-bottom: 1.2rem; color: var(--text); max-width: 720px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--green);
}
.card p { font-size: 0.95rem; color: var(--text-light); }

/* Story block */
.story {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--warm);
}
.story h3 { margin-top: 0; }
.story em { color: var(--green-light); }

/* Comparison table mockup */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.comparison-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid #e8e8e8;
}
.comparison-item h4 { margin-bottom: 0.5rem; }
.comparison-item .bad { color: #c1121f; }
.comparison-item .good { color: var(--green); }

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--green-pale);
  border-radius: var(--radius);
}
.stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
}
.stat .label { font-size: 0.85rem; color: var(--text-light); margin-top: 0.3rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover { background: #1b4d3d; transform: translateY(-1px); }
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: white; }

/* WhatsApp section */
.whatsapp-section {
  text-align: center;
  background: linear-gradient(135deg, #25D36611, #25D36622);
  border-radius: var(--radius);
  padding: 3rem;
  margin: 2rem 0;
}
.whatsapp-section h2 { margin-bottom: 0.5rem; }
.whatsapp-section p { margin: 0 auto 1.5rem; }

/* Footer */
footer {
  background: var(--text);
  color: #aaa;
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: var(--green-light); text-decoration: none; }

/* Articles */
.article-header {
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, var(--green-pale), var(--cream));
}
.article-header h1 { font-size: 2.5rem; color: var(--green); }
.article-body { max-width: 720px; margin: 2rem auto; padding: 0 1.5rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 2rem; }
.article-body li { margin-bottom: 0.5rem; color: var(--text); }

.references {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.9rem;
}
.references h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.references ol { margin-left: 1.5rem; }
.references li { margin-bottom: 0.5rem; color: var(--text-light); word-break: break-word; }

/* Nutrition table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.nutrition-table th, .nutrition-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}
.nutrition-table th {
  background: var(--green);
  color: white;
  font-weight: 600;
}
.nutrition-table tr:last-child td { border-bottom: none; }
.nutrition-table tr:hover { background: #f5faf7; }

/* Atmospheric background sections */
.section-image {
  position: relative;
  overflow: hidden;
}
.section-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.section-image .container {
  position: relative;
  z-index: 1;
}
.section-nature {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.section-nature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/kalyvera-forest.png') center/cover no-repeat;
  opacity: 0.08;
  z-index: 0;
}
.section-nature .container {
  position: relative;
  z-index: 1;
}
.section-coconut {
  position: relative;
  overflow: hidden;
}
.section-coconut::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/kalyvera-coconut.png') center/cover no-repeat;
  opacity: 0.06;
  z-index: 0;
}
.section-coconut .container {
  position: relative;
  z-index: 1;
}

/* Hero with pour background */

/* Context visuals - inline images within content */
.context-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  margin: 2rem auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #e8e8e8;
}
.context-img-half {
  width: 45%;
  border-radius: var(--radius);
  margin: 1rem 0 1rem 2rem;
  float: right;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #e8e8e8;
}
@media (max-width: 768px) {
  .context-img-half { width: 100%; float: none; margin: 1rem 0; }
}

/* Hero with pour background */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/kalyvera-pour.png') center/cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .comparison { grid-template-columns: 1fr; }
  nav .nav-links { gap: 0.8rem; }
  nav .nav-links a { font-size: 0.8rem; }
}
