/* Life Nutra Care — shared stylesheet
   Clean, professional health-information design.
   Palette: soft leaf green + warm off-white/cream background,
   gentle honey-orange accent. Calm, fresh, trustworthy nutrition feel. */
:root {
  --teal: #3d7a4c;          /* leaf green (primary) */
  --teal-dark: #2a5a36;     /* deep leaf green */
  --teal-light: #e6f2e8;    /* pale leaf */
  --green: #5a9e6a;
  --green-light: #eef6ef;
  --orange: #d98a2b;        /* honey accent */
  --orange-light: #fdf3e3;
  --ink: #2b332a;
  --muted: #6b7568;
  --line: #e6e0d0;
  --bg: #fdfbf4;            /* warm off-white / cream */
  --bg-soft: #f6f1e3;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(61, 122, 76, 0.08);
  --max: 1140px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--teal-dark); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; margin-bottom: .6rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: .35rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Header ---------- */
.topbar { background: var(--teal-dark); color: #e6f2e8; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; padding-bottom: 4px; flex-wrap: wrap; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 8px; padding: 8px 8px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--teal-dark); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; flex-wrap: nowrap; }
.main-nav a { display: block; padding: 6px 6px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: var(--teal-light); color: var(--teal-dark); text-decoration: none; }
.lang-switcher { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.lang-switcher a, .lang-switcher button {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: .82rem; font-weight: 700; cursor: pointer;
}
.lang-switcher a.active, .lang-switcher button.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.lang-switcher a:hover, .lang-switcher button:hover { text-decoration: none; border-color: var(--teal); }
.lang-switcher svg { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #4a8c5c 0%, #2f6b3c 55%, #234d2b 100%); color: #fff; padding: 64px 0 72px; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; max-width: 640px; }
.hero p { color: #e3f0e4; font-size: 1.15rem; max-width: 620px; }
.hero .btn { margin-top: 8px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-art { width: auto; max-width: none; margin-left: 0; }
.btn { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer; font-size: 1rem; }
.btn:hover { background: #b06d1e; text-decoration: none; }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Trust badges ---------- */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 2; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.trust-card .icon { font-size: 1.7rem; margin-bottom: 6px; }
.trust-card strong { display: block; color: var(--teal-dark); }
.trust-card span { font-size: .88rem; color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--teal-light); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.card .read-more { font-weight: 700; margin-top: 12px; }
.card-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.thumb-teal { background: linear-gradient(135deg, #dcefdf, #bfe3c6); }
.thumb-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.thumb-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.thumb-cream { background: linear-gradient(135deg, #fdf3e3, #f3e2b8); }

/* ---------- Article ---------- */
.article { max-width: 780px; }
.article h2 { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.article h2:first-of-type { border-top: none; margin-top: 1rem; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.article-hero { border-radius: var(--radius); background: linear-gradient(135deg, var(--teal-light), var(--green-light)); padding: 36px; text-align: center; font-size: 3.4rem; margin-bottom: 24px; }
.key-points { background: var(--green-light); border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.key-points h3 { margin-bottom: 8px; }
.disclaimer-box { background: var(--orange-light); border: 1px solid #fdba74; border-left: 5px solid var(--orange); border-radius: 10px; padding: 16px 20px; margin: 24px 0; font-size: .95rem; }
.disclaimer-box strong { color: #8a5a12; }
.sources { font-size: .9rem; color: var(--muted); }
table.compare { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .94rem; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.compare th { background: var(--teal-dark); color: #fff; }
table.compare tr:nth-child(even) td { background: var(--bg-soft); }
.example-note { font-size: .88rem; color: var(--muted); font-style: italic; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--teal-dark); }
.faq p { margin: 8px 0 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 4px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-note { font-size: .88rem; color: var(--muted); }
.form-success { display: none; background: var(--green-light); border: 1px solid #86efac; color: #14532d; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.newsletter { background: var(--teal-dark); color: #fff; border-radius: var(--radius); padding: 36px; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #e3f0e4; }
.newsletter form { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 999px; border: none; font-size: 1rem; }

/* ---------- Breadcrumbs, misc ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); }
.page-head { padding: 40px 0 8px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: #fff; }
.team-card .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 12px; }
.checklist li { list-style: none; margin-left: 0; }
.checklist li::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: #223d28; color: #cbd5e1; margin-top: 64px; }
.site-footer .container { padding-top: 48px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #94a3b8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; padding-top: 16px; color: #94a3b8; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 18px 20px; display: none; max-width: 720px; margin: 0 auto; }
.cookie-banner.show { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1; min-width: 240px; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4, .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art img { height: 220px; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .main-nav { order: 3; width: 100%; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .team-grid, .trust-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  table.compare { font-size: .85rem; }
}

/* ---------- Real photos: figures, card thumbs, hero ---------- */
.card-thumb img { width: 100%; height: 120px; object-fit: cover; }
.card-thumb { padding: 0; }
.hero-art img { width: 100%; height: 340px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.article figure { margin: 22px 0; }
.article figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article figure.featured-img img { max-height: 440px; object-fit: cover; }
.article figure.article-img img { max-height: 380px; object-fit: cover; }
.article figcaption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 8px; }
.cat-hero { border-radius: var(--radius); overflow: hidden; margin: 8px 0 20px; }
.cat-hero img { width: 100%; max-height: 320px; object-fit: cover; }

/* ---------- Affiliate product cards ---------- */
.aff-product { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 22px; margin: 26px 0; }
.aff-product h3 { margin-bottom: 4px; }
.aff-badge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.aff-badge.best { background: var(--teal-dark); }
.aff-product figure { margin: 14px 0; }
.aff-product figure img { max-height: 340px; object-fit: contain; background: #fff; }
.aff-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.aff-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; }
.aff-card img { width: 100%; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; margin-bottom: 10px; }
.aff-card h4 { font-size: 1rem; margin-bottom: 6px; }
.aff-card .stars { color: var(--orange); font-weight: 700; font-size: .92rem; }
.aff-card .price { font-weight: 800; color: var(--teal-dark); font-size: 1.1rem; margin: 4px 0 10px; }
.aff-card p { font-size: .9rem; color: var(--muted); flex: 1; }
.aff-card .btn { text-align: center; margin-top: 10px; padding: 10px 16px; font-size: .95rem; }
.aff-note { font-size: .86rem; color: var(--muted); font-style: italic; margin-top: 10px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pros-cons h4 { font-size: 1rem; margin-bottom: 6px; }
.pros-cons ul { margin-bottom: 0; }
@media (max-width: 560px) {
  .aff-cards, .pros-cons { grid-template-columns: 1fr; }
}

/* ---------- Compact language dropdown ---------- */
.lang-switcher { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.lang-current:hover { border-color: var(--teal); }
.lang-current svg { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-caret { font-size: .7rem; color: var(--muted); }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 6px; z-index: 100; }
.lang-switcher.open .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.lang-menu a:hover { background: var(--teal-light); text-decoration: none; }
.lang-menu a.active { background: var(--teal); color: #fff; }
.lang-menu a svg { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }

/* ---------- Responsive layout fixes (mobile / tablet) ----------
   Fixes the broken mobile view without changing design, colours or
   content. These rules sit last so they win over earlier ones. */

/* 1. Sticky header: on phones the nav wrapped into two rows and the
   language button dropped onto its own row (ES/DE taglines are long),
   making the sticky header 157-194px tall. Keep the nav on ONE
   horizontally scrollable row and keep logo + language on one row. */
@media (max-width: 900px) {
  .main-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav ul::-webkit-scrollbar { display: none; }
  .article h2 { scroll-margin-top: 120px; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.08rem; }
  .logo small { display: none; }
  .header-inner { padding: 6px 8px; }
}

/* 2. Hero image: the 220px tablet rule above was dead — the later
   340px rule overrode it at every width, so the hero photo was
   340px tall on a 390px phone. Restore the intended heights. */
@media (max-width: 900px) {
  .hero-art img { height: 220px; }
}
@media (max-width: 560px) {
  .hero-art img { height: 200px; }
}

/* 3. Comparison tables: at phone widths 4 columns were squeezed into
   350px and wrapped word-by-word. Let the table keep readable
   columns and scroll sideways inside its own box instead. */
@media (max-width: 640px) {
  table.compare { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .9rem; }
  table.compare th, table.compare td { min-width: 90px; }
  table.compare th:first-child, table.compare td:first-child { min-width: 150px; }
}
