/* ============================================
   Back To Reality – hlavní stylesheet
   Tmavý režim | Fonty: Prata (nadpisy), Hanken Grotesk (text)
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600&family=Prata&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #121212;
  --bg-light:    #1a1a1a;
  --bg-card:     #1f1f1f;
  --accent:      #d0a36a;
  --accent-dark: #80502e;
  --text:        #c8a882;
  --text-muted:  #7a6050;
  --text-light:  #e8d5c0;
  --white:       #ffffff;
  --border:      rgba(208, 163, 106, 0.15);
  --radius:      8px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-light); }

h1, h2, h3, h4 {
  font-family: 'Prata', serif;
  color: var(--text-light);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--dark { background: var(--bg-light); }

.text-center { text-align: center; }
.text-accent  { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--text-light);
  color: var(--bg);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem 0.5rem;
}

.site-logo {
  margin-bottom: 0.5rem;
}
.site-logo img {
  height: 50px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: rgba(208, 163, 106, 0.08);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-light);
  font-size: 1.5rem;
  align-self: flex-end;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/main_banner_1922_1080.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 2rem 1.5rem;
}

.hero__logo {
  height: 100px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.hero__title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* ---------- Section heading ---------- */
.section-heading {
  margin-bottom: 3rem;
}
.section-heading h2 {
  margin-bottom: 0.75rem;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1rem auto;
}

/* ---------- Game cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.game-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.game-card__badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--accent-dark);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.game-card__body {
  padding: 1.5rem;
}

.game-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.game-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.game-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.game-card__meta span::before {
  margin-right: 0.3rem;
}

/* ---------- Steps (Jak to funguje) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Prata', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Media-text (O nás sekce) ---------- */
.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.media-text--reverse { direction: rtl; }
.media-text--reverse > * { direction: ltr; }

.media-text__img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 380px;
}

.media-text__content h2 {
  margin-bottom: 1.25rem;
}

/* ---------- Values grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

.value-card h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Game detail ---------- */
.game-hero {
  position: relative;
  height: 55vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.game-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.game-hero__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.game-hero__content h1 { margin-bottom: 0.5rem; }

.game-params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.param-item { display: flex; flex-direction: column; gap: 0.2rem; }
.param-item__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.param-item__value {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.story-block {
  border-left: 3px solid var(--accent);
  padding-left: 1.75rem;
  margin: 2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.25rem; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.contact-detail strong {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-msg {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.form-msg--ok  { background: rgba(25, 135, 84, 0.15); border: 1px solid #198754; color: #75c793; }
.form-msg--err { background: rgba(190, 87, 75, 0.15); border: 1px solid #be574b; color: #e08a82; }

/* ---------- Partners ---------- */
.partners {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.partners__title {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.partners__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.partners__logos a {
  opacity: 0.65;
  transition: opacity var(--transition);
}
.partners__logos a:hover { opacity: 1; }

.partners__logos img {
  height: 33px;
  width: auto;
  background: transparent;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.partners__logos a.partner--white-bg img {
  background: white;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-hero .divider { margin: 0.75rem auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .media-text {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .media-text--reverse { direction: ltr; }
  .media-text__img { height: 260px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav.open { max-height: 500px; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }
  .site-nav a { text-align: center; padding: 0.6rem; }
  .hero { min-height: 70vh; }
  .game-params { grid-template-columns: 1fr 1fr; }
}
