/* =========================================================================
   Barber Camp — jeden stylesheet, žádný build, žádné externí zdroje.
   Paleta značky (kontrasty ověřené skriptem scripts/check-contrast.mjs):
     #1E2424 tmavá (pozadí)   #37B1A6 tyrkysová (tlačítka, odkazy, focus)
     #B59137 zlatá (detaily)  #FCFDFE světlá (text)
   Breakpointy: 360 / 768 / 1200 px.
   ========================================================================= */

/* Nadpisový font Oswald 600 (SIL OFL, licence v public/fonts/OSWALD-LICENSE.txt).
   Kondenzovaný, self-hosted, žádné Google Fonts CDN.
   Latin-ext kvůli české diakritice. */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/oswald-latin-600-normal.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: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/oswald-latin-ext-600-normal.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;
}

:root {
  --bc-dark: #1e2424;
  --bc-dark-soft: #232b2b;
  --bc-teal: #37b1a6;
  --bc-gold: #b59137;
  --bc-light: #fcfdfe;
  --bc-muted: #c5c7c8;      /* 9.29:1 na tmavé */
  --bc-line: #33403f;
  --bc-danger: #ff7b72;     /* 6.25:1 na tmavé */

  --max-width: 1200px;
  --gap: 1.5rem;
  --radius: 4px;
  --nav-height: 4rem;

  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bc-dark);
  color: var(--bc-light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--bc-teal); }
a:hover { color: var(--bc-light); }

:focus-visible {
  outline: 3px solid var(--bc-teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bc-teal);
  color: var(--bc-dark);
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  color: var(--bc-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}
.container--narrow { max-width: 46rem; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--bc-teal);
  border-radius: var(--radius);
  background: transparent;
  color: var(--bc-teal);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
/* Světlý text na tyrkysové má jen 2.58:1, proto je text v tlačítku tmavý. */
.btn--accent {
  background: var(--bc-teal);
  color: var(--bc-dark);
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--bc-light);
  border-color: var(--bc-light);
  color: var(--bc-dark);
}
.btn--lg { padding: 0.9rem 1.75rem; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- 1. navigace ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(30, 36, 36, 0.94);
  border-bottom: 1px solid var(--bc-line);
  backdrop-filter: blur(6px);
}
.nav__inner {
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.nav__logo { color: var(--bc-light); display: flex; align-items: center; }
.nav__logo img { width: 3.25rem; height: 3.25rem; }
.nav__links {
  display: none;
  margin-left: auto;
  gap: 1.5rem;
}
.nav__links a {
  color: var(--bc-light);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.nav__links a:hover { color: var(--bc-teal); }
.nav__cta { margin-left: auto; padding: 0.5rem 1rem; }

/* ---------- 2. hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-height) + 2rem) 1rem 3rem;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  /* tmavý překryv v barvě značky, aby text držel kontrast nad libovolnou fotkou */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 36, 36, 0.55) 0%, rgba(30, 36, 36, 0.45) 40%, rgba(30, 36, 36, 0.94) 100%);
}
.hero__content {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}
.hero__kicker {
  margin: 0 0 0.5rem;
  color: var(--bc-teal);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__subtitle {
  margin: 0.75rem 0 0;
  font-size: clamp(1.0625rem, 3.5vw, 1.5rem);
  font-weight: 600;
}
.hero__perex {
  margin: 1rem 0 1.75rem;
  max-width: 38rem;
  color: var(--bc-muted);
}

/* ---------- sekce ---------- */
.section { padding: 3.5rem 0; }
.section--dark { background: var(--bc-dark-soft); }
.section + .section { border-top: 1px solid var(--bc-line); }
.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* zlatá jen jako jemný detail, ne jako barva textu */
.section__title::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--bc-gold);
}
.section__lead { margin: 0 0 2rem; color: var(--bc-muted); }

/* ---------- o akci ---------- */
.oakci__text {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--bc-light);
}

/* ---------- textové (právní) stránky ---------- */
.section--legal { padding-top: calc(var(--nav-height) + 2.5rem); }
.section--legal h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3125rem;
  letter-spacing: 0.02em;
}
.section--legal p { color: var(--bc-muted); }
.section--legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--bc-muted);
}
.section--legal li { margin-bottom: 0.35rem; }
.section--legal li::marker { color: var(--bc-gold); }

/* ---------- 3. galerie ---------- */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* čtvercové dlaždice, na mobilu dva sloupce */
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.5rem;
}
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--bc-gold);
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery__btn:hover img,
.gallery__btn:focus-visible img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ---------- 4. video (lite-embed) ---------- */
.lite-embed {
  position: relative;
  border: 1px solid var(--bc-gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.lite-embed__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bc-light);
  cursor: pointer;
}
.lite-embed__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.lite-embed__play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--bc-teal);
}
.lite-embed__play::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 0.85rem 0 0.85rem 1.4rem;
  border-color: transparent transparent transparent var(--bc-dark);
}
.lite-embed__label {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  translate: -50% 0;
  background: rgba(30, 36, 36, 0.88);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.lite-embed iframe,
.lite-embed video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.lite-embed__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--bc-muted);
}

/* ---------- 5. formulář ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 0.35rem; }
.form__label { font-weight: 600; }
.form__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bc-line);
  border-radius: var(--radius);
  background: var(--bc-dark-soft);
  color: var(--bc-light);
  font: inherit;
}
.form__input:focus-visible { border-color: var(--bc-teal); }
.form__input--area { resize: vertical; min-height: 7rem; }
.form__input[aria-invalid='true'] { border-color: var(--bc-danger); }
.form__hint { margin: 0; font-size: 0.875rem; color: var(--bc-muted); }
.form__error {
  margin: 0;
  min-height: 0;
  font-size: 0.9375rem;
  color: var(--bc-danger);
}
.form__row--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.35rem 0.6rem;
}
.form__checkbox {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.25rem 0 0;
  accent-color: var(--bc-teal);
}
.form__label--check { font-weight: 400; }
.form__row--check .form__error { grid-column: 1 / -1; }
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__submit { justify-self: start; }
.form__note { margin: 0; font-size: 0.875rem; color: var(--bc-muted); }
.form__status { margin: 0; font-weight: 600; }
.form__status--ok { color: var(--bc-teal); }
.form__status--error { color: var(--bc-danger); }

.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(30, 36, 36, 0.35);
  border-top-color: var(--bc-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. patička ---------- */
.footer {
  background: var(--bc-dark-soft);
  border-top: 2px solid var(--bc-gold);
  padding: 3rem 0 2.5rem;
}
.footer__logo { width: 5rem; height: 5rem; margin-bottom: 1.25rem; }
.footer__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bc-teal);
}
.footer p { margin: 0 0 1rem; color: var(--bc-muted); }
.footer a { color: var(--bc-light); text-decoration: underline; }
.footer a:hover { color: var(--bc-teal); }
.footer__copy { font-size: 0.875rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(20, 25, 25, 0.97);
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lightbox__counter { margin: 0; color: var(--bc-muted); font-weight: 600; }
.lightbox__close,
.lightbox__nav {
  border: 1px solid var(--bc-line);
  background: rgba(35, 43, 43, 0.9);
  color: var(--bc-light);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.35rem 0.8rem;
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--bc-teal); color: var(--bc-teal); }
.lightbox__figure picture { display: contents; }
.lightbox__figure {
  grid-column: 2;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80svh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__caption { margin: 0; color: var(--bc-muted); text-align: center; font-size: 0.9375rem; }

/* ---------- breakpointy ---------- */
@media (min-width: 360px) {
  .container { padding-inline: 1.25rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  .nav__links { display: flex; }
  .nav__cta { margin-left: 1.5rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .lightbox { padding: 1.25rem; gap: 1rem; }
}

@media (min-width: 1200px) {
  .gallery { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .hero { padding-bottom: 5rem; }
}

.footer__grid { display: grid; gap: 2rem; }

/* ---------- méně pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .gallery__btn:hover img,
  .gallery__btn:focus-visible img { transform: none; }
}
