/* ==========================================================================
   Rekreace BOHEMIA — design system
   Paleta: jezero / les / písek / uhlíky (viz docs/design.md)
   ========================================================================== */

/* ---- Fonts (self-hosted, latin + latin-ext) ---- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/sourcesans3-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/sourcesans3-normal-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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  --ink: #1f2d33;
  --ink-soft: #46565e;
  --lake: #175e75;
  --lake-deep: #0f4557;
  --pine: #2e5b41;
  --sand: #f6f1e7;
  --sand-deep: #ede4d3;
  --ember: #c25a1f;
  --ember-deep: #a34712;
  --sun: #e9a13b;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 3px rgb(31 45 51 / 0.08), 0 6px 20px rgb(31 45 51 / 0.07);
  --shadow-lift: 0 4px 10px rgb(31 45 51 / 0.1), 0 14px 34px rgb(31 45 51 / 0.13);
  --container: 72rem;
}

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin: 0 0 var(--s-4); }
a {
  color: var(--lake);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--lake-deep); }
ul { padding-left: 1.25rem; }
:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: var(--sun); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---- Utility ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--lake-deep);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ember);
  color: #fff;
}
.btn-primary:hover { background: var(--ember-deep); color: #fff; }
.btn-outline {
  border-color: currentColor;
  color: var(--lake);
  background: transparent;
}
.btn-outline:hover { color: var(--lake-deep); background: rgb(23 94 117 / 0.08); }
.btn-light {
  background: #fff;
  color: var(--lake-deep);
}
.btn-light:hover { color: var(--lake-deep); background: var(--sand); }
.btn-outline-light {
  border-color: rgb(255 255 255 / 0.85);
  color: #fff;
  background: rgb(15 69 87 / 0.25);
}
.btn-outline-light:hover { color: #fff; background: rgb(255 255 255 / 0.15); }
.btn svg { flex: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(246 241 231 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(31 45 51 / 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand svg { flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3em;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: var(--s-2);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--sand-deep); color: var(--ink); }
.site-nav a[aria-current="page"] {
  background: var(--lake);
  color: #fff;
}
.nav-phone {
  white-space: nowrap;
  font-size: 0.95rem;
  padding: 0.55em 1.1em;
}
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--sand);
    border-bottom: 1px solid rgb(31 45 51 / 0.1);
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
    gap: var(--s-1);
  }
  .site-nav a { padding: var(--s-3) var(--s-4); border-radius: var(--radius); }
  .nav-phone { margin-top: var(--s-2); justify-content: center; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 88svh, 46rem);
  color: #fff;
  isolation: isolate;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(15 40 51 / 0.82) 0%,
    rgb(15 40 51 / 0.35) 45%,
    rgb(15 40 51 / 0.18) 100%
  );
}
.hero .container {
  width: 100%;
  padding-block: var(--s-12) var(--s-16);
}
.hero h1 {
  color: #fff;
  max-width: 22ch;
  margin-bottom: var(--s-4);
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.35);
}
.hero p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  max-width: 46ch;
  margin-bottom: var(--s-6);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.4);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero--page {
  min-height: clamp(18rem, 48svh, 26rem);
}
.hero-kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: var(--s-3);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.5);
}

/* ---- Sections ---- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--sand-deep); }
.section--white { background: #fff; }
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: var(--s-2);
}
.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.prose { max-width: 65ch; }
.prose ul li { margin-bottom: var(--s-2); }

/* ---- Feature grid ---- */
.features {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.feature {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.feature-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--lake);
  color: #fff;
  border-radius: var(--radius);
}
.feature h3 { font-size: 1.15rem; margin-bottom: var(--s-1); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---- Cards ---- */
.cards {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card > a.card-media { display: block; }
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.card-body h3 { margin-bottom: 0; }
.card-body p { margin: 0; color: var(--ink-soft); }
.card-body .card-cta { margin-top: auto; padding-top: var(--s-3); }
.price-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--pine);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}
.card-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.card-list li { margin-bottom: 0.35em; }

/* ---- Price tables ---- */
.price-table-wrap { overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}
.price-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  padding: var(--s-4) var(--s-6);
  background: var(--lake-deep);
  color: #fff;
}
.price-table caption small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.85);
  margin-top: 0.25em;
}
.price-table th,
.price-table td {
  padding: var(--s-3) var(--s-6);
  text-align: left;
  border-bottom: 1px solid rgb(31 45 51 / 0.08);
}
.price-table thead th {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sand);
}
.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th { font-weight: 600; }
.price-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: var(--s-3);
}
.price-note strong { color: var(--ink); }

/* ---- Gallery ---- */
.gallery {
  columns: 3 16rem;
  gap: var(--s-4);
}
.gallery figure {
  margin: 0 0 var(--s-4);
  break-inside: avoid;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.gallery img { width: 100%; }
.gallery figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-top: var(--s-2);
}
.gallery-section-title {
  margin-top: var(--s-12);
}
.gallery-section-title:first-of-type { margin-top: 0; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgb(10 22 28 / 0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(92vw, 100rem);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 60px rgb(0 0 0 / 0.5);
}
.lightbox-caption {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 0.9);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}
.lightbox button {
  position: absolute;
  background: rgb(255 255 255 / 0.12);
  border: 0;
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.28); }
.lightbox .lb-close { top: var(--s-4); right: var(--s-4); }
.lightbox .lb-prev { left: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s-4); top: 50%; transform: translateY(-50%); }

/* ---- Trip cards ---- */
.tips {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
}
.tip-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}
.tip-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  background: rgb(46 91 65 / 0.12);
  padding: 0.25em 0.8em;
  border-radius: 999px;
  align-self: flex-start;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--lake-deep);
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-band h2 { color: #fff; }
.cta-band p {
  color: rgb(255 255 255 / 0.88);
  max-width: 52ch;
  margin-inline: auto;
}
.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.cta-band .note {
  margin-top: var(--s-4);
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.7);
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--s-6);
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1.15rem;
}
.contact-card p { color: var(--ink-soft); margin-bottom: var(--s-2); }
.contact-card .big {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
address { font-style: normal; }
dl.legal {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  font-size: 0.98rem;
}
dl.legal dt { font-weight: 700; }
dl.legal dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 639px) {
  dl.legal { grid-template-columns: 1fr; gap: 0; }
  dl.legal dd { margin-bottom: var(--s-3); }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.85);
  padding-block: var(--s-12) var(--s-6);
  font-size: 0.98rem;
}
.site-footer a { color: #fff; }
.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: var(--s-3);
}
.footer-grid {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  margin-bottom: var(--s-8);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: var(--s-2); }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.15);
  padding-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.65);
}

/* ---- Misc ---- */
.two-col {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.media-right > .col-media { order: 2; }
}
.col-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  object-fit: cover;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--s-3);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--pine)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M4 8.5 7 11l5-6" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 0.8rem no-repeat;
}

/* ---- Utility spacing ---- */
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.center-cta { text-align: center; margin-top: var(--s-8); }
.page-404 { min-height: 50vh; }
.page-404 .container { text-align: center; padding-block: var(--s-16); }
