/* ============================================================
   Lion – styles.css  •  dark theme
   ============================================================ */

/* ---------- 0) PREMENNÉ ---------- */
:root {
  --color-accent:        #f4601a;
  --color-accent-hover:  #d84e10;
  --color-on-accent:     #ffffff;

  --color-bg:         #111111;
  --color-surface:    #1c1c1c;
  --color-border:     #272727;
  --color-text:       #eeeeee;
  --color-text-muted: #888888;
  --color-dark:       #080808;
  --color-on-dark:    #eeeeee;

  --font-system:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Inter", var(--font-system);
  --font-heading: "Poppins", var(--font-system);

  --header-height: 4rem;
  --container-max: 1100px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition: 0.2s ease-in-out;
}

/* ---------- 1) RESET + ZÁKLAD ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  transition: all var(--transition);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-family: var(--font-heading); }

/* ---------- 2) POMOCNÉ TRIEDY ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: 880px; }

.section { padding-block: 4rem; }
.section--surface { background: var(--color-surface); }

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  text-align: center;
}
.section__lead {
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--small { padding: 0.6rem 1.25rem; font-size: 0.95rem; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem;
  background: var(--color-accent); color: var(--color-on-accent);
  padding: 0.5rem 1rem; border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---------- 3) HLAVIČKA + NAVIGÁCIA ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height);
  font-family: var(--font-system);
}
.nav__logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0;
}
.nav__logo-img {
  height: 2rem; width: auto; object-fit: contain;
  margin-right: 0.45rem;
}
.nav__logo span { color: var(--color-accent); }
.footer__logo-img {
  width: 180px; height: auto;
  object-fit: contain;
  display: block;
}

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; margin-inline: auto;
  background: var(--color-text);
}
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-height);
  flex-direction: column;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 0.5rem 0;
}
.nav__menu.is-open { display: flex; }

.nav__link {
  display: block; padding: 0.85rem 1.25rem;
  font-weight: 500; color: var(--color-text);
  border-left: 3px solid transparent;
}
.nav__link:hover { background: var(--color-surface); }

.nav__link.is-active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

/* ---------- 4) HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
    var(--color-dark) url("../images/hero.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero__content { max-width: 720px; margin-inline: auto; padding-block: 6rem; }
.hero__title { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 800; }
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

/* ---------- 5) TRÉNERI ---------- */
.trainers__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.trainer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.trainer-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}
.trainer-card img {
  width: 100%; height: auto; display: block;
  object-fit: cover; object-position: top;
}
.trainer-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.trainer-card__name { font-size: 1.25rem; margin-bottom: 0.25rem; }
.trainer-card__spec {
  color: var(--color-accent); font-weight: 600; margin: 0 0 1rem;
}
.trainer-card__contact {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.4rem;
}
.trainer-card__contact a { color: var(--color-text-muted); }
.trainer-card__contact a:hover { color: var(--color-accent); }

/* ---------- 5b) GALÉRIA ---------- */
.gallery__grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery__item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.15s ease-out;
}
.gallery__item:hover img { transform: scale(1.03); }

.gallery__item--more .gallery__more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  border-radius: var(--radius);
}
.gallery__more-btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
  font-family: var(--font-body);
}
.gallery__more-btn span {
  font-weight: 600;
  font-size: 1rem;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }

.lightbox__img-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.lightbox__strip {
  display: flex;
  width: 300%;
  height: calc(100vh - 8rem);
  transform: translateX(-33.3333%);
  will-change: transform;
  transition: none;
}
.lightbox__img {
  flex-shrink: 0;
  width: 33.3333%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  max-width: none;
  padding-inline: 0.3rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 1;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox__prev,
.lightbox__next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--color-accent); border-color: transparent; }
.lightbox__prev:focus,
.lightbox__next:focus,
.lightbox__prev:active,
.lightbox__next:active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible { outline: none; }

.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ---------- 5c) DOPLNKOVÉ SLUŽBY (zigzag) ---------- */
.services__list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.service-row__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-row__image img {
  width: 100%; height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.service-row:hover .service-row__image img {
  transform: scale(1.03);
}

.service-row__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
}
.service-row__desc {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}
.service-row__meta {
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

/* ---------- 5d) CENNÍK ---------- */
.pricing__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pricing__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.pricing__table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.pricing__table td:first-child { font-weight: 500; }
.pricing__table td:last-child {
  text-align: right;
  color: var(--color-accent);
  font-weight: 700;
  white-space: nowrap;
  width: 5rem;
}
.pricing__table tr:last-child td { border-bottom: 0; }

.pricing__subheading {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
  color: var(--color-text-muted);
}

/* ---------- 6) OTVÁRACIE HODINY ---------- */
.hours__table {
  width: 100%; max-width: 540px; margin-inline: auto;
  border-collapse: collapse;
}
.hours__table th, .hours__table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.hours__table th { text-align: left; font-weight: 600; }
.hours__table td { text-align: right; color: var(--color-text-muted); white-space: nowrap; }
.hours__table tr:last-child th,
.hours__table tr:last-child td { border-bottom: 0; }
.hours__note {
  text-align: center; color: var(--color-text-muted);
  margin-top: 1.5rem; font-size: 0.95rem;
}

/* ---------- 7) PÄTIČKA / KONTAKT ---------- */
.footer {
  background: var(--color-dark); color: var(--color-on-dark);
  padding-block: 3.5rem 1.5rem;
  font-family: var(--font-system);
}
.footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
.footer a { color: rgba(238, 238, 238, 0.7); }
.footer a:hover { color: #fff; }

.footer__heading {
  color: #fff; font-size: 1.1rem; margin-bottom: 1rem;
  font-family: var(--font-system);
  text-transform: uppercase; letter-spacing: 0.05em;
}

.footer__brand {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1;
}
.footer__brand span { color: var(--color-accent); }
.footer__about {
  color: rgba(238, 238, 238, 0.7);
  max-width: 38ch; margin: 0 0 1.25rem;
}

.footer__social { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.footer__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.footer__social-link:hover {
  background: var(--color-accent); color: #fff;
  transform: translateY(-3px);
}

.footer__contact, .footer__links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.6rem;
}

.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center; color: rgba(238, 238, 238, 0.45); font-size: 0.9rem;
}

/* ---------- 8) MOBILE ---------- */
@media (max-width: 767px) {
  /* galéria: 1 stĺpec, zobraziť len prvé 3 + posledná s overlaym */
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item:nth-child(n+4):not(:last-child) { display: none; }

  /* lightbox: šípky nad obrázkom, obrázky na celú šírku */
  .lightbox { gap: 0; }
  .lightbox__prev,
  .lightbox__next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 2;
  }
  .lightbox__prev { left: 2rem; }
  .lightbox__next { right: 2rem; }

  /* doplnkové služby: fotka vždy pred textom, text na stred */
  .service-row__image { order: -1; }
  .service-row__text { text-align: center; }
  .service-row__text .btn { display: inline-block; }
}

/* ---------- 9) VÄČŠIE OBRAZOVKY ---------- */
@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex; position: static; flex-direction: row;
    background: none; border: 0; box-shadow: none; padding: 0;
    gap: 0.25rem;
  }
  .nav__link {
    border-left: 0; border-bottom: 3px solid transparent;
    padding: 0.5rem 0.9rem;
  }
  .nav__link:hover { background: none; color: var(--color-accent); }
  .nav__link.is-active { border-left: 0; border-bottom-color: var(--color-accent); }

  .trainers__grid { grid-template-columns: repeat(2, 1fr); }
  .trainer-card img { height: 420px; }
  .gallery__grid  { grid-template-columns: repeat(4, 1fr); }
  .footer__grid   { grid-template-columns: 1.6fr 1fr 1fr; }

  .pricing__cols {
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
  }

  .service-row {
    grid-template-columns: 1fr 1fr;
  }
  /* párny riadok (reverse): obrázok vľavo, text vpravo */
  .service-row--reverse .service-row__text { order: 2; }
  .service-row--reverse .service-row__image { order: 1; }

  .service-row__image img { height: 420px; }
}

/* ---------- 9) OBMEDZENIE POHYBU ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
