/* ============================================
   HOME PAGE — index.html
   Postaveno na system.css (--hw-* tokeny)
   ============================================ */

/* ---------- HERO ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--hw-charcoal);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 2;
}

/* Obsah hero — leží nad videem, je odsazen o výšku fixed headeru
   aby nezačínal pod ním. Video stále vykukuje za headerem (přes celý viewport). */
.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero__inner {
  max-width: 720px;
  width: 100%;
}

.hero__rule {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hw-gold);
  margin-bottom: var(--hw-space-5);
}

.hero__title {
  color: var(--hw-paper);
  margin-bottom: var(--hw-space-4);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--hw-space-6);
  max-width: 560px;
}

.hero__buttons {
  display: flex;
  gap: var(--hw-space-4);
  flex-wrap: wrap;
}

/* Invertovaná secondary varianta — pro hero přes video.
   Má jemný tmavý backdrop + blur aby zůstal čitelný i na světlých scénách. */
.hw-button--invert {
  --hw-btn-bg: var(--hw-paper);
  --hw-btn-color: var(--hw-charcoal);
  --hw-btn-border: var(--hw-paper);
}

.hw-button--invert:hover:not(:disabled) {
  --hw-btn-bg: var(--hw-sand);
  --hw-btn-color: var(--hw-charcoal);
  --hw-btn-border: var(--hw-sand);
}

.hero__scroll {
  position: absolute;
  left: var(--hw-gutter);
  bottom: var(--hw-space-6);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hw-space-3);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  animation: heroPulse 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll {
    animation: none;
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 90vh;
    min-height: 500px;
  }
  .hero__scroll {
    display: none;
  }
}

/* ---------- O NÁS ---------- */

.about {
  background: var(--hw-paper);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--hw-gutter);
  align-items: center;
}

.about__image {
  grid-column: 1 / 7;
  aspect-ratio: 4 / 5;
  border-radius: var(--hw-radius-lg);
  overflow: hidden;
  background: var(--hw-sand);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text {
  grid-column: 8 / 13;
}

.about__title {
  margin-top: var(--hw-space-2);
  margin-bottom: var(--hw-space-5);
}

.about__paragraph {
  color: var(--hw-charcoal);
  margin-bottom: var(--hw-space-4);
}

.about__divider {
  margin: var(--hw-space-6) 0;
  background: var(--hw-grain);
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: var(--hw-space-5);
}

.feature {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--hw-space-4);
  align-items: start;
}

.feature__icon {
  color: var(--hw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature__title {
  margin-bottom: var(--hw-space-1);
}

.feature__desc {
  color: var(--hw-on-surface-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .about__image {
    grid-column: 1 / 6;
  }
  .about__text {
    grid-column: 7 / 13;
  }
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--hw-space-6);
  }
  .about__image,
  .about__text {
    grid-column: 1;
  }
}

/* ---------- REFERENCE ---------- */

.references {
  background: var(--hw-sand);
}

.references__intro {
  max-width: 720px;
  margin-bottom: var(--hw-space-7);
}

.references__label {
  color: var(--hw-gold);
  display: block;
  margin-top: var(--hw-space-2);
  margin-bottom: var(--hw-space-4);
}

.references__title {
  margin-bottom: var(--hw-space-4);
}

.references__lead {
  color: var(--hw-on-surface-muted);
  max-width: 60ch;
}

.references__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hw-space-5);
  margin-bottom: var(--hw-space-7);
}

.references__cta {
  text-align: center;
}

/* Lehká úprava .hw-spec-card pro homepage — fotka rozumně rostoucí */
.references__grid .hw-spec-card__media {
  transition: transform 600ms var(--hw-ease);
}

.references__grid .hw-spec-card:hover .hw-spec-card__media {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .references__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .references__grid {
    grid-template-columns: 1fr;
    gap: var(--hw-space-4);
  }
}
