/* ==========================================================================
   ALPINE PRO — concept homepage (autumn 2026 edition)
   Plain CSS, no build step. Mobile first; breakpoints 640 / 900 / 1024 px.
   Palette tokens are redefined per html[data-season]. Layout CSS never
   names a colour directly.
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------ */
:root {
  /* podzim 2026: lake teal, burgundy, moss, lake blue */
  --c-dark:   #17292b;
  --c-accent: #5f2a3a;
  --c-sup1:   #4b5a36;
  --c-sup2:   #3b5e86;

  --c-bg:     #f3f1ec;   /* page background, every season */
  --c-cat:    #ffffff;   /* catalogue */
  --c-footer: #0e0f0f;   /* footer, every season */
  --c-ink:    var(--c-dark);
  --c-paper:  #ffffff;
  --c-muted:  rgba(23, 41, 43, .76);
  --c-line:   rgba(23, 41, 43, .14);

  --font-display: "AP Display", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --font-text: "AP Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.8125rem;                                  /* 13px labels */
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);    /* body */
  --step-1:  clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); /* lead */
  --step-2:  clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);   /* section titles */
  --step-3:  clamp(2.25rem, 1.7rem + 2.6vw, 4rem);       /* big statements */
  --step-5:  clamp(3.75rem, 12vw, 9rem);                 /* hero headline */

  --gutter: 16px;
  --wrap: 1280px;
  --tracking: .16em;
  --radius: 2px;
}
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

html[data-season="zima"] {
  --c-dark: #0f1f33; --c-accent: #1d3557; --c-sup1: #7fa7c9; --c-sup2: #e63946;
  --c-muted: rgba(15, 31, 51, .76); --c-line: rgba(15, 31, 51, .14);
}
html[data-season="jaro"] {
  --c-dark: #2f4a2a; --c-accent: #b8541f; --c-sup1: #2b4c7e; --c-sup2: #e9b949;
  --c-muted: rgba(47, 74, 42, .76); --c-line: rgba(47, 74, 42, .14);
}
html[data-season="leto"] {
  --c-dark: #1b4d4a; --c-accent: #b07a2a; --c-sup1: #2a6f97; --c-sup2: #e8e3d8;
  --c-muted: rgba(27, 77, 74, .76); --c-line: rgba(27, 77, 74, .14);
}
html[data-season="podzim"] {
  --c-dark: #17292b; --c-accent: #5f2a3a; --c-sup1: #4b5a36; --c-sup2: #3b5e86;
}

/* ---------- base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* brand casing survives uppercase contexts ("ALPINE PROgram") */
.keep-case { text-transform: none; }

/* type helpers */
.kicker {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: .005em;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--light  { background: #fff; color: var(--c-dark); }
.btn--light:hover { background: var(--c-bg); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { filter: brightness(1.12); }
.btn--dark   { background: var(--c-dark); color: #fff; }
.btn--dark:hover { filter: brightness(1.25); }
.btn--ghost  { border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: .2em;
}
.link-arrow:hover { opacity: .75; }

:root { --fold-reserve: 87px; }                       /* promo strip 35px + ribbon 52px */
@media (min-width: 640px) { :root { --fold-reserve: 95px; } } /* ribbon grows to 60px */

/* ---------- 1. promo strip --------------------------------------------- */
.strip {
  background: var(--c-accent);
  color: #fff;
  text-align: center;
  padding: 9px var(--gutter);
}
.strip__text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* the loyalty line is a link: shows where ALPINE PROgram sits in the hierarchy (demo, target is the live program page) */
.strip__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.55); transition: text-decoration-color .15s ease; }
.strip__link:hover { text-decoration-color: #fff; }
.strip__more { display: none; }
@media (min-width: 640px) { .strip__more { display: inline; } }

/* ---------- 2. header (over the photo) ---------------------------------- */
.top { position: relative; }

.site-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 5;
  color: #fff;
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.site-header__brand { display: inline-flex; align-items: center; margin-right: auto; }
.wordmark { height: 20px; width: auto; }

.site-header__nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 4px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-link, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: background-color .15s ease;
}
.icon-link:hover, .menu-btn:hover { background: rgba(255,255,255,.14); }
.icon-link--wide { display: none; }
.menu-btn { margin-left: -10px; }

@media (min-width: 1024px) {
  .site-header__inner { height: 80px; gap: 40px; }
  .wordmark { height: 24px; }
  .menu-btn { display: none; }
  .site-header__brand { margin-right: 0; }
  .site-header__nav {
    display: flex; gap: 28px; margin-right: auto;
    font-size: var(--step--1); font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
  }
  .site-header__nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
  .site-header__nav a:hover { border-bottom-color: rgba(255,255,255,.7); }
  .icon-link--wide { display: inline-flex; }
}

/* ---------- 3. hero ----------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  /* phones: taller than 4:5 so the faces fill the top and the headline sits on the torsos */
  min-height: min(calc(100svh - 150px), 150vw);
  /* the hero never pushes the category ribbon below the fold: it is capped at the viewport
     minus the promo strip and the ribbon (--fold-reserve), so ŽENY / MUŽI / DĚTI / PLUS SIZE / OUTLET
     are visible on load — on a 13" MacBook as much as on a phone */
  max-height: calc(100svh - var(--fold-reserve));
  overflow: hidden;
  width: 100%;
  background: var(--c-dark);
  color: #fff;
}
.hero__picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 35%; }
/* scrims for header (top) and headline (bottom) legibility */
.hero::before, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
}
.hero::before { top: 0; height: 30%; background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.hero::after  { bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }

.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding-bottom: 36px;
}
.hero__kicker { margin-bottom: 10px; opacity: .92; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
  max-width: 10ch;
}
.hero__cta { margin-top: 24px; }

@media (min-width: 641px) {
  .hero {
    aspect-ratio: 16 / 9;
    /* landscape phones: the viewport cap must win over the 480 px floor */
    min-height: min(480px, calc(100svh - 40px));
    max-height: calc(100svh - var(--fold-reserve));
  }
  .hero__img { object-position: 50% 40%; }
  .hero__content { padding-bottom: 56px; }
  .hero__cta { margin-top: 32px; }
}
@media (min-width: 1024px) {
  .hero__content { padding-bottom: 72px; }
}

/* hero fade-in (Task 6 wires the class; CSS ready now) */
.hero__img { opacity: 0; transition: opacity .5s ease; }
.hero.is-loaded .hero__img, html.no-js .hero__img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__img { opacity: 1; transition: none; }
}

/* ---------- 4. ribbon --------------------------------------------------- */
.ribbon {
  background: var(--c-dark);
  color: #fff;
}
.ribbon__list {
  display: flex; align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  height: 52px;
}
.ribbon__list::-webkit-scrollbar { display: none; }
.ribbon__list li { display: flex; align-items: center; flex: none; }
.ribbon__list li + li::before {
  content: ""; display: block; width: 1px; height: 14px;
  background: rgba(255,255,255,.3); margin-inline: 18px;
}
.ribbon__list a {
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: var(--tracking); text-transform: uppercase;
  padding: 8px 0; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.ribbon__list a:hover { border-bottom-color: rgba(255,255,255,.7); }

@media (min-width: 640px) {
  .ribbon__list { justify-content: center; height: 60px; }
  .ribbon__list li + li::before { margin-inline: 30px; }
}

/* ---------- 5. brand + olympic ------------------------------------------ */
.brand { padding-block: 56px 48px; }
.brand__inner { display: grid; gap: 32px; }
.brand__kicker { color: var(--c-muted); margin-bottom: 18px; }
.brand__title { font-size: clamp(2rem, 1.2rem + 2.2vw, 2.75rem); text-transform: uppercase; margin-bottom: 20px; }
.brand__title .br { display: inline; }
.brand__body { font-size: var(--step-1); line-height: 1.5; max-width: 34em; color: var(--c-ink); }
.brand__cta { margin-top: 28px; }
.brand__photo { display: block; }
.brand__photo img { width: 100%; height: auto; border-radius: var(--radius); }

@media (min-width: 900px) {
  .brand { padding-block: 96px 80px; }
  .brand__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .brand__title .br { display: block; }
}

/* ---------- 6. catalogue ------------------------------------------------ */
.catalogue { background: var(--c-cat); padding-block: 56px 64px; }
.catalogue__head { margin-bottom: 28px; }
.catalogue__kicker { color: var(--c-muted); margin-bottom: 10px; }

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 12px;
}
.product__link { display: block; }
.product__media { background: #fff; overflow: hidden; border-radius: var(--radius); }
.product__media img { width: 100%; height: auto; aspect-ratio: 7 / 10; object-fit: cover; transition: transform .35s ease; }
.product__link:hover img { transform: scale(1.03); }
.product__name {
  display: block; margin-top: 12px;
  font-size: var(--step--1); font-weight: 600; line-height: 1.35;
  letter-spacing: .02em;
}
.product__link:hover .product__name { text-decoration: underline; text-underline-offset: 3px; }
.product__price { display: block; margin-top: 4px; font-size: var(--step--1); color: var(--c-muted); font-variant-numeric: tabular-nums; }
/* member price: ALPINE PRO+ line under the regular price, badge + discounted price */
.product__member {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: var(--step--1); font-weight: 600; color: var(--c-dark);
  font-variant-numeric: tabular-nums;
}
.badge-ap {
  /* small AP+ badge from ap-plus-assets (D3: black block, ridge, yellow type), master height 20 px */
  display: inline-block; flex: none; width: 41px; height: 20px;
  background: url("../assets/ap-plus/ap-plus-badge-d3-small.svg") no-repeat center / contain;
}
.catalogue__more { margin-top: 36px; }

@media (min-width: 640px) {
  .products { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
  .catalogue { padding-block: 72px 80px; }
}
@media (min-width: 1024px) {
  .products { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .catalogue__head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 36px; }
  .catalogue__kicker { margin: 0; order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .product__media img { transition: none; }
  .product__link:hover img { transform: none; }
}

/* ---------- 7. promo block ---------------------------------------------- */
.promo { background: var(--c-accent); color: #fff; padding-block: 40px; }
.promo__inner { display: grid; gap: 24px; }
.promo__title { font-size: var(--step-2); text-transform: uppercase; line-height: 1; }
.promo__sep { opacity: .5; margin-inline: .15em; }
.promo__line { margin-top: 10px; opacity: .9; max-width: 36em; }
.promo__cta { justify-self: start; }
@media (min-width: 900px) {
  .promo { padding-block: 48px; }
  .promo__inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
}

/* ---------- 8. outlet ---------------------------------------------------- */
.outlet {
  position: relative;
  width: 100%;              /* without it, aspect-ratio + max-height shrink the width on tablets */
  aspect-ratio: 4 / 5;
  max-height: 720px;
  overflow: hidden;
  background: var(--c-dark);
  color: #fff;
}
.outlet__picture, .outlet__img { width: 100%; height: 100%; }
.outlet__img { object-fit: cover; object-position: 50% 30%; }
.outlet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); pointer-events: none;
}
.outlet__content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 32px; }
.outlet__line { font-size: var(--step-2); text-transform: uppercase; max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.outlet__cta { margin-top: 20px; }
@media (min-width: 641px) {
  .outlet { aspect-ratio: 21 / 9; min-height: 420px; max-height: 640px; }
  .outlet__img { object-position: 50% 8%; }
  .outlet__content { padding-bottom: 48px; }
  .outlet__line { max-width: 22ch; }
}

/* ---------- 9. dark band ------------------------------------------------ */
.band { background: var(--c-dark); color: #fff; padding-block: 56px; }
.band__inner { display: grid; gap: 44px; }
.band__title { margin-bottom: 16px; }
/* ALPINE PRO+ column: yellow programme logo (D1, for dark grounds), bold lead, square yellow bullets, yellow CTA — per Jack's mockup */
.band__title--logo { margin-bottom: 20px; }
.band__logo { display: block; height: 48px; width: auto; }
.band__lead { font-weight: 600; font-size: var(--step-0); margin-bottom: 18px; }
.band__list.band__list--plus li::before { border-radius: 0; width: .42em; height: .42em; top: .68em; background: #F7D700; }
.band__cta { margin-top: 28px; }
.btn--plus { background: #F7D700; color: #111; }
.btn--plus:hover { background: #ffe433; }
.band__body { max-width: 34em; opacity: .88; }
.band__list { display: grid; gap: 8px; opacity: .88; }
.band__list li { padding-left: 1.1em; position: relative; }
.band__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45em; height: .45em; border-radius: 50%; background: var(--c-sup2); }
.band__link { margin-top: 22px; }
@media (min-width: 768px) {
  .band { padding-block: 80px; }
  .band__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- 10. blog ----------------------------------------------------- */
.blog { padding-block: 56px 64px; }
.blog__title { margin-bottom: 24px; }
.posts { counter-reset: post; border-top: 1px solid var(--c-line); }
.posts__item { border-bottom: 1px solid var(--c-line); }
.posts__link { display: grid; gap: 6px; padding-block: 20px; }
.posts__label { color: var(--c-accent); }
.posts__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.posts__link:hover .posts__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.blog__more { margin-top: 28px; }
@media (min-width: 900px) {
  .blog { padding-block: 88px 96px; }
  .blog__title { margin-bottom: 36px; }
  .posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 0; }
  .posts__item { border-top: 1px solid var(--c-line); border-bottom: 0; }
  .posts__link { padding-block: 24px 0; gap: 10px; }
  .posts__title { font-size: var(--step-2); }
}

/* ---------- 11. footer (the live alpinepro.cz footer, reused) ------------- */
.footer {
  position: relative;
  background: #000;
  color: #fff;
  font-size: var(--step--1);
  overflow: hidden;
  --footer-bg-h: 42.88vw;              /* image height at 100vw, same ratio as the live site */
  padding-top: calc(var(--footer-bg-h) * .7);
}
.footer__bg {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--footer-bg-h);
  pointer-events: none;
  opacity: .9;
}
.footer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.footer__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 72%, #000 95%);
}
.footer__inner { position: relative; padding-bottom: 32px; }
.footer__cols { display: grid; gap: 36px; }
.footer__head { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { opacity: .88; }
.footer__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer__contacts li { display: flex; gap: 14px; align-items: flex-start; }
.footer__contacts .icon { width: 24px; height: 24px; flex: none; margin-top: 2px; opacity: .9; }
.footer__contacts a { font-size: var(--step-1); font-weight: 600; opacity: 1; }
.footer__contacts small { display: block; font-size: var(--step-0); opacity: .75; margin-top: 2px; }
.footer__col ul.footer__social { display: flex; gap: 10px; margin-bottom: 36px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
  opacity: 1; transition: background-color .15s ease;
}
.footer__social a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.footer__social .icon { width: 22px; height: 22px; }
.footer__newsletter { color: #fff; border-color: #fff; }
.footer__legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); opacity: .6; text-align: center; }
@media (min-width: 768px) {
  .footer { padding-top: calc(var(--footer-bg-h) * .5); }
  .footer__cols { grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 32px; }
  .footer__inner { padding-bottom: 40px; }
}
@media (min-width: 1200px) {
  .footer { padding-top: calc(var(--footer-bg-h) * .4); }
}

/* ---------- mobile drawer ------------------------------------------------ */
.drawer {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.45);
  display: flex;
}
.drawer[hidden] { display: none; }
.drawer__panel {
  width: min(100%, 420px);
  height: 100%;
  overflow-y: auto;
  background: var(--c-dark);
  color: #fff;
  padding: 0 var(--gutter) 40px;
}
.drawer__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; margin-bottom: 20px; }
.drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; border-radius: 50%;
}
.drawer__close:hover { background: rgba(255,255,255,.14); }
.drawer__list { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.drawer__list a { display: block; padding: 10px 0; font-size: var(--step-1); font-weight: 600; }
.drawer__list--categories a { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); text-transform: uppercase; line-height: 1; padding: 12px 0; }
.drawer__list--account a { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; opacity: .82; }
@media (max-width: 1023px) { body.drawer-open { overflow: hidden; } }
@media (min-width: 1024px) { .drawer { display: none; } }

/* ---------- short viewports (landscape phones) --------------------------- */
@media (max-height: 520px) {
  .hero__kicker { display: none; }
  .hero__title { font-size: clamp(2.5rem, 14vh, 4.5rem); }
  .hero__cta { margin-top: 14px; }
  .hero__content { padding-bottom: 20px; }
}
