/* Brand Days - sdílený styl pro rozcestník i detaily akcí.
   Tmavá rumová paleta je společná, jednotlivé akce mění jen proměnnou
   --accent (a odvozené) inline v <style> na své stránce. */

/* Self-hosted fonty (Google Fonts variable, latin + latin-ext) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0f0d0b;
  --bg-card: #1a1610;
  --bg-card2: #211d14;
  --accent: #c47a2a;          /* jantar - výchozí barva Brand Days */
  --accent-dark: #a06220;
  --accent-soft: rgba(196,122,42,0.12);
  --text: #f0e8d8;
  --text-soft: #c2b6a1;
  --text-muted: #8b7a63;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(196,122,42,0.35);
  --radius: 14px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; font-weight: 700; }

/* Teplé světlo na pozadí - dává tmavé stránce hloubku */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 45% at 12% -8%, var(--accent-soft), transparent 70%),
    radial-gradient(45% 40% at 96% 4%, rgba(255,255,255,0.045), transparent 70%);
}
nav, main, footer { position: relative; z-index: 1; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* NAVIGACE */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,13,11,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--text-muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* TLAČÍTKA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #17110a; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: var(--border-hover); background: var(--bg-card); }

/* SPOLEČNÉ PRVKY */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  padding: 7px 15px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-soft); max-width: 62ch; }
/* Odkazy uvnitř textu - v navigaci a tlačítkách si barvu řeší vlastní třídy */
.lead a, .card p a, .program a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lead a:hover, .card p a:hover, .program a:hover { color: var(--text); }
.muted { color: var(--text-muted); }

section { padding: 72px 0; }
section + section { padding-top: 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }

/* HERO */
.hero { padding-block: 88px 64px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.02em; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* MŘÍŽKA MĚSÍCŮ */
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr)); gap: 20px; }
/* Sekce proběhlých akcí: auto-fill drží u jediné karty šířku jednoho sloupce.
   S auto-fit by se jedna karta roztáhla přes celou stránku. */
.months.months-past { grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr)); }
.month {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: border-color .2s, transform .2s;
}
a.month:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.month-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.month-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.month h3 { font-size: 25px; margin-bottom: 8px; }
.month-date { font-size: 15px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.month p { font-size: 15px; color: var(--text-soft); margin-bottom: 20px; }
.month-foot { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.month.is-teaser { opacity: .85; }
.month.is-teaser .month-date { color: var(--text-muted); }
.month.is-teaser p:last-child { margin-bottom: 0; }
.month.is-past { opacity: .8; }
.month.is-past .month-date, .month.is-past .month-foot { color: var(--text-muted); }

/* FOTKY
   Pevný poměr stran plus atributy width a height v HTML drží místo dopředu,
   takže se obsah po načtení fotky nepohne (CLS). */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}
/* Šest fotek: na telefonu dva sloupce, od tabletu tři, aby poslední řada nezůstala poloprázdná. */
.gallery.gallery-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .gallery.gallery-6 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.credit { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
/* Dvě fotky: vždy dva sloupce, ať se u dvou obrázků nerozběhnou na celou šířku. */
.gallery.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
@media (min-width: 760px) { .gallery.gallery-2 { gap: 18px; } }

/* VIDEO (svislé, 9:16)
   Rámeček má pevný poměr stran shodný s videem, takže se po načtení nic nepohne (CLS).
   preload="none" a poster: video se nestahuje, dokud ho návštěvník nespustí. */
.video-row { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 28px; align-items: center; }
.video-frame { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card2); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .video-row { grid-template-columns: 1fr; } .video-frame { margin: 0 auto; } }

/* Fotka v kartě měsíce sahá až k okrajům karty, proto záporné odsazení.
   max-width: none přebíjí globální pravidlo pro img, height: auto zase
   atribut height v HTML - jinak by se poměr stran neuplatnil. */
.month-img {
  width: calc(100% + 48px); max-width: none; height: auto;
  margin: -26px -24px 18px;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 13px 13px 0 0;
}

/* DETAIL AKCE */
.detail-hero { padding-block: 64px 40px; }
.detail-hero h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.02em; margin: 18px 0 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 36px 0 0; }
.fact { background: var(--bg-card); padding: 20px 22px; }
.fact dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.fact dd { font-size: 17px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }

.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h2 { font-size: 24px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-soft); }
.card p + p { margin-top: 12px; }

/* Mapa místa konání. Pevná výška plus width/height na iframe drží místo
   dopředu, takže načtení mapy nezpůsobí posun obsahu (CLS). */
.map { margin-top: 22px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-card2); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (max-width: 620px) { .map iframe { height: 260px; } }

/* Program akce */
.program { list-style: none; display: grid; gap: 18px; }
.program li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.program .dot { width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.program strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; }
.program span { color: var(--text-soft); font-size: 15px; }

/* Seznam nalévaných rumů */
.pours { list-style: none; display: grid; }
.pours li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 16px; }
.pours li:last-child { border-bottom: 0; padding-bottom: 0; }
.pours .note { font-size: 14px; color: var(--text-muted); font-family: 'Space Grotesk', sans-serif; white-space: nowrap; }

/* Kroky přihlášení */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--text-soft); }

/* Výzva k přihlášení */
.signup { background: linear-gradient(160deg, var(--bg-card2), var(--bg-card)); border: 1px solid var(--border-hover); border-radius: var(--radius); padding: 36px; }
.signup h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.signup p { color: var(--text-soft); }
.signup .price { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; color: var(--accent); margin: 18px 0; }
.signup .price small { display: block; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.pay { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.pay strong { color: var(--text); font-weight: 600; }

/* PATIČKA */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 72px; font-size: 14px; color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-inner a { color: var(--accent); }
.footer-inner a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* RESPONZIVITA */
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  section { padding: 52px 0; }
  .hero { padding-block: 60px 44px; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .card, .signup { padding: 22px; }
  .hero-actions .btn, .signup .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.month:hover { transform: none; }
}
