/* cbd.eu.com — design system
   Direction: laboratory dossier × European apothecary
   WordPress: copy :root tokens into theme customizer or child theme */

:root {
  --paper: #f6f4ef;
  --paper-warm: #edeae2;
  --surface: #ffffff;
  --ink: #18241e;
  --ink-muted: #5a6760;
  --ink-faint: #8a9690;
  --sage: #3a5244;
  --sage-light: #4d6b58;
  --sage-pale: #e4ebe6;
  --stamp: #9a7b2f;
  --stamp-pale: #f3ecd8;
  --line: #d2dbd4;
  --line-strong: #b8c4bb;
  --disclosure: #eef2ed;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 2px 24px rgba(24, 36, 30, 0.06);
  --shadow-card: 0 4px 32px rgba(24, 36, 30, 0.08);
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;
  --max-width: 1120px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(58, 82, 68, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(154, 123, 47, 0.05) 0%, transparent 40%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--sage-light); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 38rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
}

/* ── Layout ── */

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: var(--nav-height);
  padding-block: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__inner > nav:last-of-type {
  flex: 1 1 100%;
}

@media (min-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
    height: var(--nav-height);
    padding-block: 0;
  }

  .site-header__inner > nav:last-of-type {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
  }
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo__domain {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--line);
  }

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

/* ── Disclosure bar ── */

.disclosure-bar {
  background: var(--disclosure);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
}

.disclosure-bar a { color: var(--sage); font-weight: 500; }

/* ── Hero ── */

.hero {
  padding-block: clamp(3rem, 10vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* ── COA Passport (signature element) ── */

.coa-passport {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.coa-passport__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coa-passport__stamp {
  background: var(--stamp);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-size: 0.625rem;
}

.coa-passport__body { padding: 1.25rem; }

.coa-passport__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.coa-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.coa-row:last-child { border-bottom: none; }

.coa-row__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coa-row__value { font-weight: 500; }

.coa-row__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: var(--sage-pale);
  color: var(--sage);
}

.coa-row__status--check {
  background: var(--stamp-pale);
  color: var(--stamp);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

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

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

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--secondary:hover {
  border-color: var(--sage);
  color: var(--sage);
}

/* ── Trust strip ── */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.trust-strip__item {
  background: var(--surface);
  padding: 1.25rem 1rem;
  text-align: center;
}

.trust-strip__num {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--sage);
  display: block;
}

.trust-strip__label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
  display: block;
}

/* ── Cards ── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.card__image {
  aspect-ratio: 16 / 10;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.card__body { padding: 1.375rem; }

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--stamp);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin: 0 0 0.625rem;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover { color: var(--sage); }

.card__excerpt {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Methodology ── */

.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: method;
}

.method-list li {
  counter-increment: method;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.method-list li::before {
  content: counter(method, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--stamp);
  padding-top: 0.25rem;
}

.method-list h3 { margin: 0 0 0.375rem; font-size: 1.125rem; }
.method-list p { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }

/* ── Prose (legal / blog) ── */

.prose { max-width: 42rem; }
.prose--wide { max-width: 52rem; }

.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.375rem; }

.prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
}

.prose-table th,
.prose-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--line);
}

.affiliate-table-link {
  color: inherit;
  text-decoration: none;
}

.affiliate-table-link:hover {
  color: inherit;
  text-decoration: none;
}

.prose-table th {
  background: var(--sage-pale);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.6); }

.callout {
  background: var(--stamp-pale);
  border-left: 3px solid var(--stamp);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.callout--disclosure {
  background: var(--disclosure);
  border-left-color: var(--sage);
}

/* ── Page header ── */

.page-header {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-header h1 { margin: 0.5rem 0 0.75rem; }

.page-header__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ── Footer ── */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 3.5rem 2rem;
  margin-top: 4rem;
}

/* Beat body.cbd-eucom-site a:not(.btn) from theme overrides */
.site-footer a,
.site-footer a:not(.btn),
body .site-footer a:not(.btn),
body.cbd-eucom-site .site-footer a:not(.btn),
body.cbd-eucom .site-footer a:not(.btn) {
  color: #fff;
}

.site-footer a:hover,
body .site-footer a:not(.btn):hover,
body.cbd-eucom-site .site-footer a:not(.btn):hover,
body.cbd-eucom .site-footer a:not(.btn):hover {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__brand .logo__mark { color: #fff; }
.site-footer__brand .logo__domain { color: rgba(255, 255, 255, 0.4); }

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 0.5rem; }

.site-footer__legal {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.newsletter-form {
  margin-top: 0.75rem;
}

.newsletter-form__desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form__row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.newsletter-form__row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
}

.newsletter-form__row input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form__row input[type="email"]:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: transparent;
}

.newsletter-form__row .btn {
  flex-shrink: 0;
  padding-inline: 1rem;
  font-size: 0.8125rem;
}

.newsletter-form__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.newsletter-form__consent input {
  margin-top: 0.15rem;
  accent-color: var(--sage);
}

.newsletter-form__consent a {
  color: #fff;
  text-decoration: underline;
}

.newsletter-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-form__status {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.newsletter-form__status--success {
  color: #b8e0c8;
}

.newsletter-form__status--error {
  color: #f5b8b8;
}

@media (max-width: 480px) {
  .newsletter-form__row {
    flex-direction: column;
  }

  .newsletter-form__row .btn {
    width: 100%;
  }
}

/* ── Language switcher ── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.lang-switcher a {
  padding: 0.25rem 0.4rem;
  text-decoration: none;
  color: var(--ink-faint);
  border-radius: 2px;
}

.lang-switcher a:hover { color: var(--ink); }

.lang-switcher a[aria-current="true"] {
  color: var(--sage);
  font-weight: 500;
  background: var(--sage-pale);
}

.lang-switcher__sep {
  color: var(--line-strong);
  user-select: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .header-tools {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .lang-switcher { justify-content: center; }
}

/* ── GDPR cookie banner ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -4px 32px rgba(24, 36, 30, 0.12);
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner .btn {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.625rem 0.75rem;
}

.btn--ghost:hover { color: var(--ink); }

.cookie-settings {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cookie-settings.is-open { display: block; }

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.cookie-option:last-child { border-bottom: none; }

.cookie-option input { margin-top: 0.2rem; accent-color: var(--sage); }

.cookie-option__label { font-weight: 600; display: block; }
.cookie-option__desc { color: var(--ink-muted); font-size: 0.8125rem; }

body.has-cookie-banner { padding-bottom: 0; }
