/* ============================================================
   Edestine — veřejný web www.lifevital.cz
   Samostatný stylesheet. Bootstrap ani proměnné --lv-* z portálu
   se sem záměrně netahají: portál je administrace, tohle je
   prezentace a nemají spolu sdílet nic než doménu.
   ============================================================ */

/* --- Fonty ---------------------------------------------------
   Servírované odsud, ne z Google CDN. Načtení z CDN by odeslalo
   IP adresu návštěvníka do zahraničí a ze stránky, která
   nezpracovává žádné osobní údaje, by udělalo stránku, která je
   zpracovává — i s povinnou lištou souhlasu.

   Oba fonty jsou variabilní, takže jeden soubor pokrývá řezy 400
   i 700; deklarace jsou dvě jen proto, aby si prohlížeč o řez
   uměl říct jménem.
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/web/fonts/libre-baskerville-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/web/fonts/libre-baskerville-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url(/web/fonts/libre-baskerville-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url(/web/fonts/libre-baskerville-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/web/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/web/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url(/web/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url(/web/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Proměnné ------------------------------------------------
   Paleta odečtená přímo ze zdrojové prezentace.
   ------------------------------------------------------------ */
:root {
  --web-cream:        #FFFDFA;
  --web-sand:         #F7EDD4;
  --web-beige:        #DDD3BA;
  --web-ink:          #454240;
  --web-ink-deep:     #5C4E3D;
  --web-bronze:       #AB8421;
  --web-bronze-light: #B88E23;
  --web-wine:         #824E5C;
  --web-dark:         #1C1815;

  --web-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --web-sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --web-wrap:   72rem;
  --web-gutter: clamp(1.25rem, 5vw, 3rem);
  --web-radius: 4px;

  /* Výška horního řádku hlavičky. Visí na ní tři věci, které se nesmí
     rozejít: samotný řádek, tlačítko rozbalovacího menu vytažené z toku
     a odsazení kotev, aby cíl neskončil pod lepivou hlavičkou. */
  --web-headrow: 4.75rem;
}

/* --- Základ -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Kotvy nesmí zalézt pod lepivou hlavičku. */
  scroll-padding-top: calc(var(--web-headrow) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--web-cream);
  color: var(--web-ink);
  font-family: var(--web-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--web-serif);
  font-weight: 400;
  color: var(--web-ink-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--web-bronze); }
a:hover { color: var(--web-wine); }

:focus-visible {
  outline: 2px solid var(--web-bronze);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--web-wrap);
  margin-inline: auto;
  padding-inline: var(--web-gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 20;
  padding: .6rem 1rem;
  background: var(--web-cream);
  border: 1px solid var(--web-bronze);
  border-radius: var(--web-radius);
  text-decoration: none;
}

/* --- Hlavička ------------------------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #FFFDFAEE;
  background: color-mix(in srgb, var(--web-cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--web-beige);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--web-headrow);
}

.site-head__brand {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.site-head__links {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-head__links a {
  color: var(--web-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--web-beige);
  padding-bottom: 1px;
}
.site-head__links a:hover {
  color: var(--web-bronze);
  border-bottom-color: var(--web-bronze);
}

.wordmark {
  font-family: var(--web-serif);
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: var(--web-ink-deep);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: .875rem;
  letter-spacing: .04em;
}
.site-nav a {
  color: var(--web-ink);
  text-decoration: none;
  padding-block: .25rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--web-bronze); }

/* --- Rozbalovací menu pro úzké displeje ----------------------
   Nad zlomem se nezobrazuje vůbec; pod ním nahradí řádkové menu.
   Zlom je 44rem (704 px): pět položek se značkou se do řádku
   vejde zhruba do 700 px, níž už ne. Tablet na výšku (768 px)
   tedy menu v řádku má, telefon na výšku dostane hamburger.
   ------------------------------------------------------------ */
.site-menu { display: none; }

.site-menu__bar {
  cursor: pointer;
  list-style: none;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--web-ink);
}
/* Safari kreslí u summary vlastní trojúhelníček i při list-style: none. */
.site-menu__bar::-webkit-details-marker { display: none; }

.site-menu__icon {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--web-ink);
}
.site-menu__icon::before,
.site-menu__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--web-ink);
}
.site-menu__icon::before { top: -6px; }
.site-menu__icon::after  { top: 6px; }

/* Otevřené menu má místo tří čárek křížek — proužky se složí přes sebe
   a otočí, prostřední zmizí. */
.site-menu[open] .site-menu__icon { background: transparent; }
.site-menu[open] .site-menu__icon::before { transform: translateY(6px) rotate(45deg); }
.site-menu[open] .site-menu__icon::after  { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: no-preference) {
  .site-menu__icon,
  .site-menu__icon::before,
  .site-menu__icon::after { transition: transform .15s, background-color .15s; }
}

.site-menu__panel {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--web-beige);
  padding-block: .25rem 1rem;
}
.site-menu__panel a {
  color: var(--web-ink);
  text-decoration: none;
  padding-block: .85rem;
  border-bottom: 1px solid #DDD3BA80;
  border-bottom: 1px solid color-mix(in srgb, var(--web-beige) 50%, transparent);
}
.site-menu__panel a:last-child { border-bottom: none; }

@media (max-width: 44rem) {
  .site-nav { display: none; }
  .site-menu { display: block; }

  /* Hlavička zůstává lepivá i tady — značka a menu mají být po ruce
     bez rolování nahoru. Že rozbalené menu po výběru nezůstane viset
     přes obsah, řeší skript na konci layoutu.

     Absolutně umístěné tlačítko níž se vztahuje právě k téhle
     hlavičce: `sticky` není `static`, takže je pro ně vztažným
     rámcem stejně jako `relative`. */

  /* Tlačítko sedí v řádku se značkou; je vytažené z toku, aby se
     panel pod ním mohl roztáhnout přes celou šířku hlavičky. */
  .site-menu__bar {
    position: absolute;
    top: 0;
    right: var(--web-gutter);
    height: var(--web-headrow);
    display: flex;
    align-items: center;
    gap: .6rem;
  }
}

/* --- Sekce --------------------------------------------------- */
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section--sand { background: var(--web-sand); }

.kicker {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--web-bronze);
  margin-bottom: 1rem;
}
.kicker--light { color: var(--web-sand); }

.h-section {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.h-section--wide { max-width: 26ch; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  max-width: 56ch;
  margin-bottom: 3rem;
}
.lead--center { max-width: 52ch; margin-inline: auto; text-align: center; }

/* --- Hero ---------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 48rem) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; }
}

.hero__title {
  font-size: clamp(3rem, 1.5rem + 7vw, 6.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero__claim {
  font-family: var(--web-serif);
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.75rem);
  color: var(--web-bronze);
  letter-spacing: .01em;
}

.hero__figure img {
  width: 100%;
  border-radius: var(--web-radius);
  /* Fotka má stejně krémové pozadí jako stránka, takže se nemá
     ohraničovat rámečkem — stačí ji posadit jemným stínem. */
  box-shadow: 0 24px 60px -30px rgba(92, 78, 61, .55);
}

/* --- Tmavé pásy s fotkou ------------------------------------- */
.band {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem);
  background-color: var(--web-dark);
  background-position: center;
  background-size: cover;
  color: var(--web-sand);
  text-align: center;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
              rgba(28, 24, 21, .82), rgba(28, 24, 21, .62));
}
.band__inner { position: relative; }

.band--otazka { background-image: url(/web/img/aminokyseliny-v-tele.jpg); }
.band--edestin { background-image: url(/web/img/konopne-semeno.jpg); }

.band__title {
  color: var(--web-cream);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.5rem);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.band__lead {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
  max-width: 46ch;
  margin-inline: auto;
  color: #F7EDD4E0;
  color: color-mix(in srgb, var(--web-sand) 88%, transparent);
}
.band__lead--strong {
  color: var(--web-cream);
  font-family: var(--web-serif);
}

.band__wordmark {
  font-family: var(--web-serif);
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--web-bronze-light);
  margin: 2.5rem 0 1.5rem;
}

/* --- Dvousloupec s fotkou ------------------------------------ */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 0.85fr 1.15fr; }
}
.split__figure img {
  width: 100%;
  border-radius: var(--web-radius);
  box-shadow: 0 24px 60px -32px rgba(28, 24, 21, .7);
}

/* --- Karty --------------------------------------------------- */
.cards {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--web-cream);
  border-top: 2px solid var(--web-beige);
  padding: 1.5rem 1.25rem;
}
.section:not(.section--sand) .card { background: var(--web-sand); }

.card__title {
  font-size: 1.125rem;
  margin-bottom: .35rem;
}
.card__note {
  font-size: .9375rem;
  color: #45424096;
  color: color-mix(in srgb, var(--web-ink) 78%, transparent);
}

.card--accent {
  border-top-color: var(--web-bronze);
  background: var(--web-cream);
}
.section:not(.section--sand) .card--accent {
  background: color-mix(in srgb, var(--web-bronze) 10%, var(--web-cream));
}
.card--accent .card__title { color: var(--web-bronze); }

/* --- Zvýrazněné odstavce ------------------------------------- */
.callout {
  border-left: 3px solid var(--web-bronze);
  padding-left: 1.25rem;
  font-size: 1.0625rem;
  max-width: 52ch;
}

.quote {
  margin: 0;
  font-family: var(--web-serif);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem);
  line-height: 1.4;
  color: var(--web-ink-deep);
  max-width: 30ch;
  text-wrap: balance;
}
.quote::before { content: '\201E'; }
.quote::after  { content: '\201C'; }
.quote--light {
  color: var(--web-cream);
  margin-inline: auto;
  margin-top: 3rem;
}

.closing {
  font-family: var(--web-serif);
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.625rem);
  max-width: 36ch;
  line-height: 1.45;
}
.closing__word {
  display: block;
  margin-top: .35rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--web-bronze);
}

/* --- Fotopás ------------------------------------------------- */
.figure-band {
  /* Fotopás jde přes celou šířku a sedí mezi sekcemi, ne uvnitř
     jedné — jinak by ho spodní odsazení sekce odtrhlo od další. */
  height: clamp(14rem, 28vw, 24rem);
  overflow: hidden;
}
.figure-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fotka je na výšku, pás na šířku: řez má sedět na věžích
     a hradbách, ne na obloze nad nimi. */
  object-position: center 40%;
}

/* --- Statistiky ---------------------------------------------- */
.stats {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  max-width: 48rem;
  margin-inline: auto;
}
@media (min-width: 40rem) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  border-top: 1px solid color-mix(in srgb, var(--web-sand) 40%, transparent);
  padding-top: 1.25rem;
}
.stat__value {
  display: block;
  font-family: var(--web-serif);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  line-height: 1;
  color: var(--web-bronze-light);
}
.stat__label {
  display: block;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: var(--web-cream);
  margin-top: .35rem;
}
.stat__note {
  display: block;
  font-size: .9375rem;
  margin-top: .5rem;
  color: color-mix(in srgb, var(--web-sand) 80%, transparent);
}

/* --- Velké číslo --------------------------------------------- */
.bignum {
  text-align: center;
  margin: clamp(2rem, 5vw, 3.5rem) 0 .25rem;
  line-height: 1;
  color: var(--web-bronze);
}
.bignum__value {
  font-family: var(--web-serif);
  font-size: clamp(4.5rem, 2rem + 14vw, 11rem);
  letter-spacing: -0.03em;
}
.bignum__unit {
  font-family: var(--web-serif);
  font-size: clamp(1.75rem, 1rem + 4vw, 3.5rem);
  margin-left: .15em;
  vertical-align: super;
}
.bignum__label {
  text-align: center;
  font-size: .9375rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #454240BF;
  color: color-mix(in srgb, var(--web-ink) 75%, transparent);
  margin-bottom: 3rem;
}

/* --- Postup separace ------------------------------------------
   Hotová grafika z prezentace, popisky má vypálené v obrázku.
   Zdroj má 374 px na šířku, takže se nesmí roztáhnout přes celou
   sekci — nad zhruba jedenapůlnásobek už by změkla.
   ------------------------------------------------------------ */
.process-img {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 34rem;
}
.process-img img { width: 100%; }

/* --- Závěr --------------------------------------------------- */
.section--final { text-align: center; }

.final {
  font-family: var(--web-serif);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.75rem);
  line-height: 1.35;
  color: var(--web-ink-deep);
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}
.final--accent {
  color: var(--web-bronze);
  margin-top: .75rem;
}

/* --- Patička ------------------------------------------------- */
.site-foot {
  background: var(--web-ink);
  color: #F7EDD4D1;
  color: color-mix(in srgb, var(--web-sand) 82%, transparent);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  font-size: .9375rem;
}
.site-foot__inner {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 48rem) {
  .site-foot__inner { grid-template-columns: repeat(3, 1fr); }
}
.wordmark--foot {
  color: var(--web-cream);
  font-size: 1.6rem;
  display: block;
  margin-bottom: .5rem;
}
.site-foot__by {
  color: var(--web-bronze-light);
  font-family: var(--web-serif);
}
.site-foot__h {
  font-family: var(--web-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #F7EDD499;
  color: color-mix(in srgb, var(--web-sand) 60%, transparent);
  margin-bottom: .75rem;
}
.site-foot a { color: var(--web-sand); }
.site-foot a:hover { color: var(--web-bronze-light); }

.site-foot__note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--web-sand) 18%, transparent);
  font-size: .8125rem;
  color: #F7EDD48C;
  color: color-mix(in srgb, var(--web-sand) 55%, transparent);
}
