@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* Hurley varianta C — port designu z Lovable code base (lovable-hurley/src).
   Scope .hl-brand (samostatný, nekoliduje s .hu-brand variant A/B).
   Design systém 1:1 dle src/styles.css: bílá plocha, inkoustový text #1b1b1b,
   signální červená #d6001c pro slevy, VŠECHNY hrany hranaté (radius 0),
   Roboto 900 uppercase s letter-spacing -0.02em. Tailwind hodnoty přepočtené
   na px (max-w-7xl = 1280, py-20 = 80, text-5xl = 48 …). */
.hl-brand {
  --hl-ink: #1b1b1b;
  --hl-paper: #ffffff;
  --hl-surface: #f5f5f5;
  --hl-muted: #6b6b6b;
  --hl-border: #e5e5e5;
  --hl-sale: #d6001c;
  --hl-black: #000000;
  --hl-body: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  color: var(--hl-ink);
  background: var(--hl-paper);
  font-family: var(--hl-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hl-brand :where(*, *::before, *::after) { box-sizing: border-box; }
.hl-brand :where(h1, h2, h3, p, ul, figure) { margin: 0; }
/* Nadpisy MUSÍ mít font-family explicitně, ne jen dědění z wrapperu: šablona e-shopu
   má vlastní pravidlo pro h1–h4 (myriad-pro) a PŘÍMÉ pravidlo přebije dědění. Naživo
   se pak nadpis kreslí fontem šablony a znaky, které nemá v subsetu (ě, ž, ů), padají
   na systémový fallback → v nadpisu jsou nápadně tlustší. Na náhledu to nevidíš,
   protože tam žádná šablona není. Změřeno 2026-08-25 na /cz/tesla a /cz/g3ferrari. */
.hl-brand :where(h1, h2, h3, h4, h5, h6) { font-family: var(--hl-body); }
.hl-brand :where(ul) { padding: 0; list-style: none; }
.hl-brand :where(img) { max-width: 100%; display: block; }
.hl-brand :where(a) { color: inherit; text-decoration: none; }
/* @layer base z Lovable: nadpisy jsou vždy 900 / uppercase / stažený tracking */
.hl-brand :where(h1, h2, h3) { font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }

.hl-wrap { max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.hl-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hl-muted); }

/* Tlačítka: hranatá, 12px bold uppercase, tracking .14em (Lovable px-8 py-3) */
.hl-btn { display: inline-block; padding: 12px 32px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; border: 1px solid transparent; cursor: pointer; transition: background .18s ease, color .18s ease, opacity .18s ease; }
.hl-btn--paper { background: #fff; color: var(--hl-ink); }
.hl-btn--paper:hover { background: var(--hl-sale); color: #fff; }
.hl-btn--ink { background: var(--hl-black); color: #fff; }
.hl-btn--ink:hover { opacity: .85; }
.hl-btn--ghost { border-color: #fff; color: #fff; }
.hl-btn--ghost:hover { background: #fff; color: var(--hl-ink); }

/* ---------- HERO: full-bleed foto 70vh + spodní gradient, text vlevo dole ---------- */
.hl-hero { position: relative; }
.hl-hero__img { width: 100%; height: 70vh; min-height: 420px; object-fit: cover; object-position: center 30%; }
.hl-hero__veil { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%); }
.hl-hero__inner { width: 100%; max-width: 1280px; margin-inline: auto; padding: 0 20px 56px; }
.hl-hero__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,.8); }
.hl-brand .hl-hero__title { margin-top: 8px; font-size: clamp(40px, 7vw, 72px); line-height: 1; color: #fff; }
.hl-hero__cta { margin-top: 24px; }

/* ---------- SPLIT: foto + textový panel, druhý blok zrcadlově ---------- */
.hl-split { display: grid; }
.hl-split__img { width: 100%; height: 380px; object-fit: cover; }
.hl-split__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--hl-surface); padding: 56px 32px; }
.hl-brand .hl-split__title { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.hl-brand .hl-split__text { max-width: 28rem; font-size: 14px; line-height: 1.7; color: var(--hl-muted); }
.hl-split__cta { margin-top: 8px; align-self: flex-start; }
@media (min-width: 1024px) {
  .hl-split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hl-split__img { height: 520px; }
  .hl-split__body { padding: 56px 64px; }
  .hl-split--mirror .hl-split__img { order: 2; }
}

/* ---------- PRODUKTOVÝ REGÁL (grid 2/4 sloupce) ---------- */
.hl-shelf { padding: 80px 0; background: var(--hl-paper); }
.hl-shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hl-brand .hl-shelf__title { font-size: clamp(28px, 3.4vw, 36px); }
.hl-shelf__all { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; text-decoration: underline; text-underline-offset: 4px; }
.hl-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
@media (min-width: 1024px) { .hl-grid { grid-template-columns: repeat(4, 1fr); } }

/* Produktová karta: 4:5 rám, bílé pozadí (produkty vždy na bílé), badge vlevo nahoře.
   Odchylka od Lovable: object-fit contain místo cover — náš katalog má produktovky
   na bílém, cover by je uřízl. */
.hl-card { display: block; }
/* display:block je nutný — karta je z <span>ů (jsme uvnitř <a>), a nad inline boxem
   se aspect-ratio ignoruje a absolutní badge se váže na špatný containing block
   (badge se pak kreslil u karty v předchozím řádku). */
.hl-card__media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--hl-paper); border: 1px solid var(--hl-border); }
.hl-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .5s ease; }
.hl-card:hover .hl-card__media img { transform: scale(1.05); }
.hl-card__badge { position: absolute; left: 0; top: 0; padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--hl-sale); }
.hl-card__badge--ink { background: var(--hl-ink); }
/* min-height sjednotí výšku názvů, ať jsou ceny v řádku zarovnané */
.hl-brand .hl-card__name { display: block; margin-top: 12px; min-height: 2.7em; font-size: 14px; font-weight: 500; line-height: 1.35; }
.hl-card__prices { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hl-card__price { font-weight: 700; }
.hl-card__price--sale { color: var(--hl-sale); }
.hl-card__old { color: var(--hl-muted); text-decoration: line-through; }

/* ---------- DLAŽDICE 3:4 s tmavým překryvem ---------- */
.hl-tiles { display: grid; grid-template-columns: 1fr; gap: 4px; padding-bottom: 80px; }
@media (min-width: 640px) { .hl-tiles { grid-template-columns: repeat(3, 1fr); } }
.hl-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--hl-surface); }
.hl-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hl-tile:hover img { transform: scale(1.05); }
.hl-tile__label { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 24px; background: rgba(0,0,0,.25); color: #fff; font-size: 24px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }

/* ---------- INKOUSTOVÝ MANIFEST PÁS ---------- */
.hl-manifest { background: var(--hl-ink); color: #fff; padding: 80px 0; text-align: center; }
.hl-manifest__inner { max-width: 896px; margin-inline: auto; padding-inline: 20px; }
.hl-manifest__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,.6); }
.hl-brand .hl-manifest__title { margin-top: 16px; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.1; color: #fff; }
.hl-brand .hl-manifest__text { margin: 24px auto 0; max-width: 42rem; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.7); }
.hl-manifest__cta { margin-top: 32px; }

/* ---------- příběh značky ----------
   Manifest nad tím je nálada (tmavý, na střed), tady jsou fakta: text vlevo,
   čtyři čísla vpravo. Data jsou z eu.hurley.com/pages/about-us. */
.hl-story { background: var(--hl-surface); padding: 80px 0; }
.hl-story__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 5vw, 72px); align-items: start; }
.hl-story__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--hl-muted); }
.hl-brand .hl-story__title { margin-top: 14px; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
.hl-brand .hl-story__lead { margin-top: 20px; font-size: 16px; line-height: 1.7; }
.hl-brand .hl-story__text { margin-top: 16px; font-size: 14.5px; line-height: 1.75; color: var(--hl-muted); }
.hl-brand .hl-story__text strong { color: var(--hl-ink); font-weight: 700; }
.hl-story__facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 22px; }
.hl-fact { border-top: 2px solid var(--hl-ink); padding-top: 12px; }
.hl-fact__num { display: block; font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.hl-fact__lbl { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--hl-muted); }
@media (max-width: 900px) {
  .hl-story { padding: 56px 0; }
  .hl-story__grid { grid-template-columns: 1fr; }
  .hl-story__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .hl-story__facts { grid-template-columns: 1fr; } }

/* ============================================================
   ŠÍŘKA — prolomení Upgates description wrapperu (.max-w-xl)
   ============================================================
   Brand HTML sedí v shellovém kontejneru `.max max-w-xl text` s max-width:1140px →
   obsah by byl užší než produktový výpis i než ostatní brand pages (1440 px při
   kontejneru 1504). Cap rušíme jen pro wrapper s brand obsahem; tenhle CSS soubor
   se přes `custom_style` načítá pouze na této stránce.
   Dva selektory zámerně: shell může mít cap na `.max-w-xl` i na `.max.max-w-xl.text`
   (3 třídy = vyšší specificita, přebilo by :has() s jednou třídou). */
.max-w-xl:has(.hl-brand-wrapper),
.max.max-w-xl.text:has(.hl-brand-wrapper) { max-width: none; margin-left: 0; margin-right: 0; }

/* ŠÍŘKA sekcí s position:relative — shell je zužuje na shrink-to-fit (naměřeno
   2026-08-25 u Hurley i Tesly shodně 1238 px z 1440 při viewportu 1600). Příčinu
   v šabloně nešlo dohledat, ale explicitní width:100% to ruší: `width:auto` → 1238,
   `width:100%` → 1440. */
.hl-hero { width: 100%; }

/* Šablona kategorie vykresluje nad obsahem vlastní H1 s názvem stránky — brand page
   má svůj nadpis v hero, takže by na stránce byly dva. Skrýváme jen tam, kde je
   náš wrapper. */
body:has(.hl-brand-wrapper) h1.ph-main { display: none; }
