@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap&subset=latin-ext');

/* ============================================================
   VESTFROST — brand landing CSS (pro e-shop na Upgates)
   Scoped pod .vf-brand, aby se nedotkl stylů šablony e-shopu.

   Vzor implementace: apollostore.com/cz/top-model
   DEPLOY: samostatný soubor přes FTP -> /shop-data/campaign/vestfrost.css
   Nacita se vlastnim <link ...?N> v hlavicce (viz README).
   Po kazde zmene: upload + zvednout cache-buster ?N v <link>.

   Design prevzat 1:1 z vestfrosthome.eu (oficialni web znacky):
   - font Open Sans (300/400/600/700), nadpisy weight 300
   - navy #182F42 (nadpisy, overlay dlazdic, CTA pas)
   - sede texty #706F6F / #858A8E, odkazy #2F4455
   ============================================================ */

.vf-brand {
  /* design tokens */
  --vf-navy:       #182F42;
  --vf-navy-2:     #183042;
  --vf-navy-dark:  #122433;
  --vf-ink:        #232323;
  --vf-gray:       #706F6F;
  --vf-gray-light: #858A8E;
  --vf-link:       #2F4455;
  --vf-line:       #E3E3E3;
  --vf-white:      #FFFFFF;
  --vf-font: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  font-family: var(--vf-font);
  color: var(--vf-ink);
  font-size: 17px;
  font-weight: 300;
  line-height: 24px;
  margin: 0 auto;
  max-width: none;      /* šířku určuje .container, viz prolomení níže */
}

.vf-brand *,
.vf-brand *::before,
.vf-brand *::after { box-sizing: border-box; }

.vf-brand img { max-width: 100%; height: auto; display: block; border: 0; }

.vf-brand a { text-decoration: none; }

/* Klavesnicova fokusace: obrys currentColor funguje na bilem i na navy plose. */
.vf-brand a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- typografie ---------- */

.vf-brand .vf-h2 {
  color: var(--vf-navy);
  font-family: var(--vf-font);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 47px;
  margin: 0 0 2.5rem;
  text-transform: none;
}

.vf-brand .vf-h2 b,
.vf-brand .vf-h2 strong { font-weight: 700; }

.vf-brand p { margin: 0 0 1rem; }

/* sipka -> (bila / navy) jako na oficialnim webu */
.vf-arrow-w::after,
.vf-arrow-n::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 22px;
  margin-left: 14px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M13 2l9 9-9 9M22 11H1' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}

.vf-arrow-n::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M13 2l9 9-9 9M22 11H1' fill='none' stroke='%23183042' stroke-width='2'/%3E%3C/svg%3E");
}

/* ============================================================
   1. HERO SLIDER (bez JS – radio inputy; volitelny autoplay
      skript viz README)
   ============================================================ */

.vf-hero {
  position: relative;
  margin-bottom: 50px;
  overflow: hidden;
}

.vf-hero input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vf-hero__slides {
  position: relative;
  aspect-ratio: 1920 / 700;
  min-height: 220px;
}

.vf-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;
  pointer-events: none;
}

.vf-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text hera v HTML (2026-09-30). Slidy z oficialniho webu mely nadpis, popis i tlacitko
   vypalene do obrazku a po zmenseni na sirku stranky byly necitelne; obrazky jsou ted
   bez textu (scripts/vestfrost_hero_bez_textu.py) a text lezi tam, kde byl puvodne:
   od 16,7 % sirky, svisle na stred. Pod 992 px jde pod fotku (viz media dole). */
.vf-hero__slide { color: #fff; text-decoration: none; }
.vf-hero__text {
  position: absolute;
  left: 16.7%;
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  max-width: 520px;
  color: #fff;
  text-align: left;   /* sablona dava obsahu kategorie text-align:center */
}
.vf-hero__text--dark { color: #1d2b3a; }
.vf-brand .vf-hero__title {
  font-family: var(--vf-font);
  font-size: clamp(28px, 3.3vw, 56px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -.5px;
  margin: 0 0 .5em;
  color: inherit;
}
.vf-brand .vf-hero__title b { font-weight: 700; }
.vf-hero__lead {
  display: block;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.45;
  margin-bottom: 1.4em;
}
.vf-hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vf-hero__note { font-size: 14px; line-height: 1.3; max-width: 14em; }
.vf-hero__note i { font-size: 17px; font-weight: 300; display: block; }
.vf-hero__btn {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: 40px;
  padding: 8px 20px;
}
.vf-hero__btn.vf-arrow-w::after { margin-left: 10px; }
.vf-hero__text--dark .vf-hero__btn.vf-arrow-w::after { filter: invert(1) brightness(.2); }
.vf-hero__slide:hover .vf-hero__btn { background: #fff; color: #1d2b3a; }
.vf-hero__slide:hover .vf-hero__text--dark .vf-hero__btn { background: #1d2b3a; color: #fff; }
/* barva plochy pod fotkou na mobilu = barva pozadi slidu */
.vf-hero__slide:nth-child(1) { --vf-slide-bg: #e1dad2; }
.vf-hero__slide:nth-child(2) { --vf-slide-bg: #000; }
.vf-hero__slide:nth-child(3) { --vf-slide-bg: #260a06; }
.vf-hero__slide:nth-child(4) { --vf-slide-bg: #3f9fcc; }

/* Nadpis kategorie ze sablony Upgates (h1.ph-page, driv ph-main) — hero ma vlastni h1.
   Guard mely vsechny brand pages, Vestfrostu chybel (nadpis „Vestfrost" nad herem). */
body:has(.vf-brand-wrapper) h1.ph-main,
body:has(.vf-brand-wrapper) h1.ph-page { display: none; }

/* Pod 992 px by text pres fotku mel sloupec 30 % (~200 px) — jde pod ni na plochu v barve
   slidu. Slidy se skladaji do jedne bunky mrizky, takze vyska = nejvyssi slide a prepinani
   pruhlednosti zustava. Fotka se orizne na 16:9 k prave strane (vlevo je prazdne pozadi). */
@media (max-width: 991px) {
  .vf-hero__slides { aspect-ratio: auto; min-height: 0; display: grid; }
  .vf-hero__slide {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    background: var(--vf-slide-bg);
  }
  .vf-hero__slide:nth-child(4) { --vf-slide-bg: #2a7fae; }
  .vf-hero__slide img { height: auto; aspect-ratio: 16 / 9; object-position: 80% center; }
  .vf-hero__text {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    padding: 22px 20px 40px;
  }
}

#vf-s1:checked ~ .vf-hero__slides .vf-hero__slide:nth-child(1),
#vf-s2:checked ~ .vf-hero__slides .vf-hero__slide:nth-child(2),
#vf-s3:checked ~ .vf-hero__slides .vf-hero__slide:nth-child(3),
#vf-s4:checked ~ .vf-hero__slides .vf-hero__slide:nth-child(4) {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* tecky – jako na oficialnim webu: 12px kruh, bily ramecek, aktivni plna */
.vf-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.vf-hero__dots label {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
}

#vf-s1:checked ~ .vf-hero__dots label[for="vf-s1"],
#vf-s2:checked ~ .vf-hero__dots label[for="vf-s2"],
#vf-s3:checked ~ .vf-hero__dots label[for="vf-s3"],
#vf-s4:checked ~ .vf-hero__dots label[for="vf-s4"] { background: #fff; }

/* sipky vlevo/vpravo */
.vf-hero__arrows label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: none;
  opacity: .85;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 22px;
}

.vf-hero__arrows label:hover { opacity: 1; }

.vf-hero__arrows .vf-prev {
  left: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M11 2l-9 9 9 9M2 11h21' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}

.vf-hero__arrows .vf-next {
  right: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M13 2l9 9-9 9M22 11H1' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}

#vf-s1:checked ~ .vf-hero__arrows label[for="vf-s4"].vf-prev,
#vf-s1:checked ~ .vf-hero__arrows label[for="vf-s2"].vf-next,
#vf-s2:checked ~ .vf-hero__arrows label[for="vf-s1"].vf-prev,
#vf-s2:checked ~ .vf-hero__arrows label[for="vf-s3"].vf-next,
#vf-s3:checked ~ .vf-hero__arrows label[for="vf-s2"].vf-prev,
#vf-s3:checked ~ .vf-hero__arrows label[for="vf-s4"].vf-next,
#vf-s4:checked ~ .vf-hero__arrows label[for="vf-s3"].vf-prev,
#vf-s4:checked ~ .vf-hero__arrows label[for="vf-s1"].vf-next { display: block; }

/* ============================================================
   2. ODDELOVAC „v" (linka – v – linka)
   ============================================================ */

.vf-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 40px;
  color: var(--vf-navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.vf-divider::before,
.vf-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--vf-navy);
}

/* ============================================================
   3. DLAZDICE KATEGORII (2x2, navy overlay dole)
   ============================================================ */

.vf-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 70px;
}

.vf-tile {
  position: relative;
  overflow: hidden;
}

.vf-tile__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 270px;
  background-color: rgba(24, 47, 66, .9);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.vf-tile__info h3 {
  color: #fff;
  font-family: var(--vf-font);
  font-size: clamp(26px, 2.8vw, 37px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 1.1rem;
  text-align: left;
}

.vf-tile__info h3 i,
.vf-tile__info h3 b { font-size: clamp(23px, 2.5vw, 33px); }

.vf-tile__info h3 b { font-weight: 700; }

.vf-tile__info p {
  color: #fff;
  font-size: 17px;
  font-weight: 300;
  line-height: 24px;
  text-align: left;
  margin: 0;
}

/* Pruh je <footer> a sablona Upgates (_critical.scss) dava kazdemu `footer` kremove
   pozadi #f4efe6 jako paticce webu — bily text a bile tlacitko na nem zmizely
   (Apollo 2026-09-30). Proto pozadi vynulovat. */
.vf-tile__footer {
  background: none;
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vf-tile__footer b {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Proklik z dlazdice: puvodne jen bily text v bilem textu overlaye, cili
   nesel poznat od popisku vedle nej. Stejna pilulka jako v CTA pasu (sekce 6),
   aby stranka mela jeden tvar tlacitka. */
.vf-tile__footer a {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  white-space: nowrap;
  border: 1px solid #fff;
  border-radius: 40px;
  padding: 8px 24px;
  transition: background .2s, color .2s;
}

.vf-tile__footer a.vf-arrow-w::after { margin-left: 10px; }

.vf-tile__footer a:hover { background: #fff; color: var(--vf-navy); }

.vf-tile__footer a:hover.vf-arrow-w::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M13 2l9 9-9 9M22 11H1' fill='none' stroke='%23182F42' stroke-width='2'/%3E%3C/svg%3E");
}

/* ============================================================
   4. O ZNACCE (text vlevo, foto vpravo)
   ============================================================ */

.vf-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.vf-about h3 {
  color: var(--vf-navy);
  font-family: var(--vf-font);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 50px;
  margin: 0 0 3rem;
}

.vf-about h3 b { font-weight: 600; }

.vf-about p {
  color: var(--vf-navy);
  font-size: 17px;
  font-weight: 300;
  line-height: 24px;
}

/* „Seznamte se s nami" byl navy text 27px bez ramecku, tedy k nerozeznani od
   nadpisu nad nim. Ted obrysova pilulka v navy, na hover se vypln obrati. */
.vf-about .vf-btn-more {
  display: inline-block;
  float: right;
  color: var(--vf-navy-2);
  font-size: 20px;
  font-weight: 300;
  margin-top: 1rem;
  margin-bottom: 30px;
  border: 1px solid var(--vf-navy-2);
  border-radius: 40px;
  padding: 10px 30px;
  transition: background .2s, color .2s;
}

.vf-about .vf-btn-more.vf-arrow-n::after { margin-left: 10px; }

.vf-about .vf-btn-more:hover { background: var(--vf-navy-2); color: #fff; }

.vf-about .vf-btn-more:hover.vf-arrow-n::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M13 2l9 9-9 9M22 11H1' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}

.vf-about::after { content: ""; display: block; clear: both; }

/* ============================================================
   5. BLOG / CLANKY (3 karty)
   ============================================================ */

.vf-blog { margin-bottom: 70px; }

.vf-blog__deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.vf-card { display: flex; flex-direction: column; }

.vf-card__categories {
  color: var(--vf-gray);
  font-size: 10px;
  padding-bottom: 10px;
}

.vf-card__categories a {
  color: var(--vf-gray);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vf-card__title {
  color: var(--vf-navy-2);
  font-family: var(--vf-font);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 32px;
  margin: 1.3rem 0;
}

.vf-card__text {
  color: var(--vf-gray);
  font-size: 12px;
  font-weight: 300;
  line-height: 17px;
}

/* „cist dal" v sedem odstavci: puvodni #2F4455 se od textu #706F6F skoro
   nelisilo. Navy + podtrzeni, at je proklik videt i v malem pismu. */
.vf-card__text .vf-read-more {
  color: var(--vf-navy-2);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vf-card__text .vf-read-more:hover { color: #909BA5; }

.vf-card__footer {
  margin-top: auto;
  border-top: 1px solid var(--vf-line);
  padding-top: .75rem;
  font-size: 11px;
  color: var(--vf-gray-light);
}

.vf-card__footer a { color: var(--vf-gray-light); }

/* ============================================================
   6. CTA PAS (navy) – odkaz do e-shopu
   ============================================================ */

.vf-cta {
  background: var(--vf-navy);
  color: #fff;
  text-align: center;
  padding: 60px 30px;
  margin-bottom: 70px;
}

.vf-cta .vf-h2 { color: #fff; margin-bottom: 1rem; }

.vf-cta p {
  color: #fff;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.vf-cta__btn {
  display: inline-block;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 40px;
  font-size: 20px;
  font-weight: 300;
  padding: 12px 38px;
  transition: background .2s, color .2s;
}

.vf-cta__btn:hover { background: #fff; color: var(--vf-navy); }
.vf-cta__btn:hover.vf-arrow-w::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M13 2l9 9-9 9M22 11H1' fill='none' stroke='%23182F42' stroke-width='2'/%3E%3C/svg%3E");
}

/* ============================================================
   7. PRIBEH ZNACKY (SEO text)
   ============================================================ */

.vf-story { margin-bottom: 40px; }

.vf-story p {
  color: var(--vf-ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  margin-bottom: 1.2rem;
}

/* ============================================================
   RESPONSIVITA
   ============================================================ */

@media (max-width: 1199px) {
  .vf-tile__info { min-height: 240px; padding: 1.5rem; }
}

@media (max-width: 991px) {
  .vf-brand .vf-h2 { font-size: 38px; line-height: 40px; }
  .vf-about h3 { font-size: 38px; line-height: 42px; margin-bottom: 2rem; }
  .vf-blog__deck { grid-template-columns: 1fr; gap: 40px; }
  .vf-tile__info { position: relative; background: var(--vf-navy); min-height: 0; }
}

@media (max-width: 767px) {
  .vf-brand .vf-h2 { font-size: 32px; line-height: 34px; letter-spacing: -.5px; }
  .vf-tiles { grid-template-columns: 1fr; gap: 20px; margin-bottom: 50px; }
  .vf-about { grid-template-columns: 1fr; }
  .vf-about h3 { font-size: 32px; line-height: 36px; }
  .vf-about .vf-btn-more { font-size: 18px; padding: 9px 24px; }
  .vf-hero { margin-bottom: 30px; }
  .vf-hero__slides { min-height: 0; }
  .vf-hero__dots { bottom: 6px; }
  .vf-hero__dots label { width: 9px; height: 9px; }
  .vf-hero__arrows label { display: none !important; }
  .vf-cta { padding: 40px 20px; }
  .vf-tile__footer { flex-wrap: wrap; }
}

/* ============================================================
   ŠÍŘKA — prolomení Upgates description wrapperu (.max-w-xl)
   ============================================================
   Brand HTML sedí v shellovém kontejneru `.max max-w-xl text`, který má
   max-width:1140px → brand obsah byl UŽŠÍ než produktový výpis i než ostatní
   brand pages (Top Model / Severin měří 1376 px při kontejneru 1440). Cap
   rušíme JEN pro wrapper s brand obsahem (`:has()`); tenhle CSS soubor se
   načítá přes `custom_style` pouze na téhle stránce, takže jinde nic neovlivní.
   Vlastní cap .vf-brand (1320 px) je proto zrušený — šířku určuje `.container`.
   Měřeno 2026-08-24: před opravou 1140 px, po ní 1376 px jako Top Model. */
/* Dva selektory zamerne: shell muze mit cap na `.max-w-xl` i na `.max.max-w-xl.text`
   (3 tridy = vyssi specificita, prebilo by :has() s jednou tridou). */
.max-w-xl:has(.vf-brand-wrapper),
.max.max-w-xl.text:has(.vf-brand-wrapper) { max-width: none; margin-left: 0; margin-right: 0; }
