/* =========================================================
   Ambarisha Wisdom — kujundus
   Värvid ja kirjatüübid on siin üleval. Muuda neid siin,
   siis muutub kogu leht korraga.
   ========================================================= */

:root {
  --bg: #FBF5EC;          /* kreemjas taust */
  --surface: #FFFDF9;     /* kaardid */
  --sand: #F4E7D4;        /* liivane vahetaust */
  --sand-deep: #EAD5B6;
  --text: #3A2A1F;        /* soe tumepruun tekst */
  --muted: #6B5646;
  --line: #E9D9C3;

  --terra: #A9502F;       /* terrakota — peamised nupud */
  --terra-hover: #8C3F23;
  --saffron: #E3A23B;     /* safran */
  --saffron-soft: #F8E5C2;
  --saffron-text: #7A4E12;
  --sage: #5F7548;        /* salvei roheline */
  --sage-soft: #E4EAD8;
  --sage-text: #3F5230;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 14px 34px -16px rgba(110, 60, 25, .35);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--terra); }
a:hover { color: var(--terra-hover); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { color: var(--terra); font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--terra); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 100;
}
.skip-link:focus { left: 16px; color: #fff; }

/* ---------- Päis ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 245, 236, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 20px; min-height: 78px; padding: 10px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600;
}
.logo:hover { color: var(--text); }
.logo em { color: var(--terra); font-style: italic; font-weight: 500; }
.logo svg { width: 38px; height: 38px; }

.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.main-nav a:not(.btn) {
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1rem;
  padding: 10px 16px; border-radius: 999px;
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"]:not(.btn) { background: var(--sand); }
.main-nav .btn { margin-left: 8px; }

/* ---------- Nupud ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 14px 32px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1.15rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--terra-hover); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--sand-deep); }
.btn-secondary:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }
.btn-small { min-height: 48px; padding: 8px 24px; font-size: 1.02rem; box-shadow: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Avalehe algus ---------- */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(circle at 85% 20%, rgba(227, 162, 59, .22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(169, 80, 47, .10), transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 20px;
  background: var(--saffron-soft); color: var(--saffron-text);
  font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  padding: 6px 16px; border-radius: 999px;
}
.lead { font-size: 1.3rem; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }

.trust-row {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  color: var(--muted); font-size: 1rem; font-weight: 700;
}
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before {
  content: "✓"; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage); font-size: .8rem;
}

.hero-art { width: 100%; max-width: 460px; margin-left: auto; }
.hero-art svg { width: 100%; height: auto; }
.venn text { font-family: var(--font-body); font-weight: 800; fill: var(--text); }
.venn .center-label { font-family: var(--font-head); font-weight: 600; fill: var(--terra); }

/* ---------- Sektsioonid ---------- */
.section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.2rem; }
.section-cta { margin-top: 44px; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px;
}
.card p { color: var(--muted); margin: 0; }
.card-dot { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px; }
.dot-ayur { background: radial-gradient(circle at 35% 35%, #F2C26E, var(--saffron)); }
.dot-tcm { background: radial-gradient(circle at 35% 35%, #D9805C, var(--terra)); }
.dot-sci { background: radial-gradient(circle at 35% 35%, #9DB07F, var(--sage)); }

.fourth {
  margin-top: 24px; display: flex; gap: 22px; align-items: flex-start;
  background: transparent; border: 2px dashed var(--sand-deep);
  border-radius: var(--radius-lg); padding: 26px 30px;
}
.fourth .card-dot { flex: none; width: 44px; height: 44px; margin: 4px 0 0; background: var(--surface); border: 2px dashed var(--muted); }
.fourth h3 { font-size: 1.25rem; margin-bottom: .3em; }
.fourth p { color: var(--muted); margin: 0; }

/* Sammud */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px;
}
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px;
  border-radius: 50%; background: var(--terra); color: #fff;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
}

/* Teemad */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic {
  position: relative; display: flex; align-items: center; gap: 18px; min-height: 104px;
  padding: 34px 24px 22px; background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.topic:hover { color: var(--text); border-color: var(--terra); transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-icon {
  flex: none; display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 18px; background: var(--saffron-soft); color: var(--terra);
}
.topic-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topic strong { display: block; font-size: 1.22rem; line-height: 1.3; }
.topic .sub { display: block; color: var(--muted); font-size: .98rem; line-height: 1.4; }
.tag {
  position: absolute; top: 12px; right: 14px;
  font-size: .75rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--saffron-text); background: var(--saffron-soft);
  padding: 2px 10px; border-radius: 999px;
}

/* Lubadused */
.promise { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.promise li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.promise strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.promise span { color: var(--muted); }
.check {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--sage-soft); color: var(--sage); font-weight: 900;
}

/* Oluline teade */
.notice {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--sage-soft); color: var(--sage-text);
  border-radius: var(--radius-lg); padding: 32px 36px;
}
.notice-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--surface); color: var(--sage);
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
}
.notice h2, .notice h3 { color: var(--sage-text); font-size: 1.4rem; margin-bottom: .35em; }
.notice p { margin: 0; }
.notice a { color: var(--sage-text); font-weight: 800; }
.notice-warm { background: var(--saffron-soft); color: var(--saffron-text); }
.notice-warm h2, .notice-warm h3, .notice-warm a { color: var(--saffron-text); }
.notice-warm .notice-icon { color: var(--terra); }

/* ---------- Alamlehed ---------- */
.page-hero {
  padding: 64px 0 40px;
  background: radial-gradient(circle at 90% 10%, rgba(227, 162, 59, .2), transparent 45%);
}
.page-hero .lead { max-width: 46ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--terra); }

.levels { display: grid; gap: 12px; margin: 24px 0; }
.level {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
}
.level p { margin: 0; color: var(--muted); }
.level strong { color: var(--text); }
.level-badge {
  flex: none; min-width: 190px; text-align: center;
  font-weight: 800; font-size: .95rem; padding: 8px 14px; border-radius: 999px;
}
.lv-3 { background: var(--sage-soft); color: var(--sage-text); }
.lv-2 { background: var(--saffron-soft); color: var(--saffron-text); }
.lv-x { background: var(--sand); color: var(--muted); }
.lv-no { background: #F6DCD3; color: #7E2F18; }

.chips { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 700; margin: 0;
}

.stack { display: grid; gap: 24px; }

/* ---------- Jalus ---------- */
.site-footer { background: #3A2A1F; color: #EADBC8; padding: 56px 0 28px; margin-top: 0; }
.site-footer .logo { color: #FFF7EC; }
.site-footer .logo em { color: #F2B866; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.footer-grid p { color: #CDB9A3; margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #FFF7EC; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: #F2B866; text-decoration: underline; }
.footer-note {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(234, 219, 200, .2);
  font-size: .95rem; color: #CDB9A3;
}
.footer-note p { margin: 0 0 .5em; }

/* ---------- Väiksemad ekraanid ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; margin: 8px auto 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .lead { font-size: 1.18rem; }
  .hero-actions .btn, .section-cta .btn { width: 100%; }
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .main-nav a:not(.btn) { padding: 8px 12px; font-size: .95rem; }
  .topics, .promise, .footer-grid { grid-template-columns: 1fr; }
  .notice, .fourth { flex-direction: column; padding: 26px 22px; }
  .level { flex-direction: column; align-items: flex-start; }
  .level-badge { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
