/* =========================================================
   RVrodina – hlavní styly webu
   Barvy a písma se mění jen tady nahoře v :root
   Barvy jsou z oficiálního design manuálu (docs/design-manual.md, sekce 2.1)
   ========================================================= */
:root {
  --mustard: #DEB423;     /* hořčicová – primární barva značky, tlačítka */
  --brown-dark: #2C2320;  /* tmavě hnědá – text, patička */
  --brown: #583E2C;       /* středně hnědá – odkazy, pruh s newsletterem */
  --sand: #EEE5DE;        /* bledá písková – pozadí stránky */
  --gray: #7A7779;        /* středně šedá – zástupné plochy místo fotek */
  --white: #FFFFFF;       /* světlé sekce, karty, text na tmavém */
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --wrap: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown-dark);
  background: var(--sand);
}
img { max-width: 100%; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--brown-dark);
  outline-offset: 3px;
}
/* na tmavých plochách je obrys hořčicový, aby byl vidět */
.band--dark :focus-visible, .site-footer a:focus-visible { outline-color: var(--mustard); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; }
h2.big { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 60ch; }
ul { margin: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--tint { background: var(--white); }

/* ---------- Hlavička ---------- */
.site-header { background: var(--sand); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding: 1.5rem 0; flex-wrap: wrap;
}
.logo { display: block; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.nav a { color: var(--brown-dark); text-decoration: none; font-weight: 600; padding: .25rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--mustard); }

/* ---------- Fotky a zástupné plochy ----------
   Dokud soubor s fotkou neexistuje, je vidět šedá plocha s jeho názvem. */
.ph { position: relative; display: block; background: var(--gray); overflow: hidden; border-radius: 2px; }
.ph::before {
  content: attr(data-foto);
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: .5rem; text-align: center; color: var(--white); font-size: .8rem;
}
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.ph--wide { aspect-ratio: 4 / 3; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--tall { aspect-ratio: 2 / 3; }
.ph--square { aspect-ratio: 1; }
.ph--video { aspect-ratio: 16 / 9; }

/* ---------- Úvod (hero) ---------- */
.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(5rem, 10vw, 8rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1.1fr; align-items: center; position: relative; z-index: 1; }
.lead { font-size: 1.2rem; }
.hero__route { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; pointer-events: none; }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.collage__col { display: grid; gap: 1.25rem; }
.collage__col--shift { margin-top: 3rem; }

/* Pohlednice "Právě teď" – jediný hravý prvek webu */
.postcard {
  background: var(--white); color: var(--brown-dark);
  padding: 1rem 1rem .9rem; border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 14px 30px rgba(44, 35, 32, .25);
  position: relative; z-index: 1;
  margin: .5rem -1.5rem 0 -.5rem;
}
.postcard .ph { margin-bottom: .8rem; }
.postcard__stamp {
  position: absolute; top: -20px; right: -16px; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--mustard); color: var(--brown-dark);
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: .8rem; line-height: 1.1;
  transform: rotate(12deg); border: 3px dashed var(--brown-dark);
}
.postcard__now { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.postcard__next { font-size: .95rem; margin: .2rem 0 0; color: var(--brown); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 4px;
  background: var(--mustard); color: var(--brown-dark);
  border: 2px solid var(--mustard);
  font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--brown-dark); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Dvojice: text a fotky ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.pair > :last-child { margin-top: 3.5rem; }

/* ---------- Kde jsme byli ---------- */
.dests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.25rem; padding: 0; margin-top: 2rem; list-style: none; }
.dest { display: block; color: var(--brown-dark); text-decoration: none; }
.dest h3 { margin: .8rem 0 0; }
.dest:hover h3 { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- Barevné pruhy: HeroHero (hořčicový) a newsletter (hnědý) ---------- */
/* na hořčicové je text tmavě hnědý (bílý by nebyl čitelný) */
.band { background: var(--mustard); }
.band .btn { background: var(--brown-dark); border-color: var(--brown-dark); color: var(--white); }
.band .btn:hover { background: var(--brown); border-color: var(--brown); }
.band--dark { background: var(--brown); color: var(--white); }
.band--dark .btn { background: var(--mustard); border-color: var(--mustard); color: var(--brown-dark); }
.band--dark .btn:hover { background: var(--white); border-color: var(--white); color: var(--brown-dark); }
.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 14rem; padding: .8rem 1rem; border-radius: 4px; border: 2px solid var(--white); font: inherit; color: var(--brown-dark); background: var(--white); }

/* ---------- Nejnovější videa ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.25rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.video { display: block; color: var(--brown-dark); text-decoration: none; }
.video h3 { margin: .8rem 0 .25rem; }
.video:hover h3 { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.video__date { margin: 0; font-size: .9rem; color: var(--brown); }
#seznam-videi { margin-bottom: 2rem; }

/* ---------- Kde právě jsme (Instagram) ---------- */
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; padding: 0; margin: 1.5rem 0 2rem; list-style: none; }

/* ---------- Vybavení ---------- */
.notice { background: var(--white); border-left: 4px solid var(--mustard); padding: 1rem 1.25rem; border-radius: 4px; max-width: 60ch; }
.gear-category { margin-top: 3rem; }
.gear-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; padding: 0; list-style: none; }
.gear-item { background: var(--white); padding: 1.25rem; border-top: 4px solid var(--mustard); display: flex; flex-direction: column; }
.gear-item p { flex: 1; color: var(--brown); }
.gear-item .btn { align-self: flex-start; padding: .55rem 1.1rem; }

/* ---------- Spolupráce ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 2rem 0 0; }
.fact { background: var(--white); padding: 1.25rem; border-left: 4px solid var(--mustard); }
.fact strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.offer { padding-left: 1.2rem; max-width: 60ch; }
.offer li { margin-bottom: .6rem; }
.partners { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; font-size: 1.5rem; font-weight: 700; color: var(--brown); padding: 0; list-style: none; }

/* ---------- Patička ---------- */
.site-footer { background: var(--brown-dark); color: var(--sand); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { font-size: 1.1rem; letter-spacing: 0; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem clamp(2rem, 6vw, 5rem); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--brown); }
.footer-bottom p { margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .hero__grid, .split, .footer-cols { grid-template-columns: 1fr; }
  .logo img { height: 36px; }
  .site-header .wrap { padding: 1rem 0; }
  .nav { gap: 1.25rem; }
  /* koláž: pohlednice nahoře přes celou šířku, pod ní tři fotky vedle sebe */
  .collage { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .collage__col { display: contents; }
  .postcard { grid-column: 1 / -1; order: -1; transform: rotate(-2deg); max-width: 24rem; margin: 1rem 1rem 1.25rem 0; }
  .dests, .videos { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: 1fr; }
  .insta { grid-template-columns: repeat(3, 1fr); }
  .pair > :last-child { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
