/* ===== Base ===== */
:root {
  --bg: #121820;
  --text: #ffffff;
  --accent: #6eb8ff;
  --text-muted: rgba(255, 255, 255, 0.92);
  --max-width: 1260px;
  --section-padding: 1.75rem 1.5rem;
  --gap: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

main {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ===== Header (uvnitř hero) ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem max(2rem, 5vw);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  color: var(--text);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem 4rem;
  padding-left: max(2rem, 5vw);
  padding-right: max(2rem, 5vw);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 85%;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.6);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  min-width: 100%;
  min-height: 100%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: center 22.5%;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-sub {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero-image {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-image img.hero-img-main {
  max-height: 80vh;
  width: auto;
  object-fit: contain;
  object-position: right bottom;
  transform: scaleX(-1) translateY(25%);
}

/* ===== Content sections ===== */
.content-section {
  padding: var(--section-padding);
}

.content-section h2 {
  text-align: center;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1.15rem;
  letter-spacing: -0.02em;
}

.section-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.section-image {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-image img {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.section-image img.section-image--mirror {
  transform: scaleX(-1);
}

.section-body h3 {
  font-size: 1.5rem;
  margin: 0 0 0.85rem;
}

.section-body p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Bullet list – light blue circles */
.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  background: url("favicon.ico") no-repeat center;
  background-size: contain;
}

.bullet-list a {
  color: var(--text);
}

.bullet-list a:hover {
  color: var(--accent);
}

/* Sekce s obrázkem vpravo (zrcadlený) */
.content-section--reverse .section-body {
  text-align: left;
}

/* Reference section ===== */
.content-section--reference {
  text-align: center;
}

.reference-text {
  max-width: 700px;
  margin: 0 auto;
}

.reference-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer-col:first-child {
  text-align: left;
}

.footer-col:last-child {
  text-align: right;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col a {
  color: var(--text);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-bg {
    display: none;
  }

  .hero-image {
    order: -1;
    justify-self: center;
    align-items: center;
    justify-content: center;
  }

  .hero-image img {
    max-height: 50vh;
  }

  .hero-image img.hero-img-main {
    transform: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-section--reverse .section-grid {
    direction: ltr;
  }

  .section-image {
    order: -1;
    min-height: 220px;
  }

  .section-image img {
    max-height: 340px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-col:first-child,
  .footer-col:last-child {
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 3rem 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .content-section h2 {
    margin-bottom: 1.5rem;
  }
}
