/* Domov (design F2): hero bento, sortiment block, realizácie, žurnál row, newsletter. */

.home {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  padding: 0 24px 24px;
}

/* ── Hero card ────────────────────────────────────────────────────────── */

.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: 48px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-forest);
  color: var(--color-cream);
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--color-clay);
  opacity: 0.25;
  pointer-events: none;
}

.home-hero__title {
  position: relative;
  margin: 24px 0 0;
  max-width: 14ch;
  font-size: clamp(3rem, 1.5rem + 4.5vw, 5rem);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: 0.92;
}

.home-hero__accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--color-clay-light);
}

.home-hero__lead {
  position: relative;
  margin: 24px 0 0;
  max-width: 42ch;
  font-size: 16px;
  color: rgba(244, 240, 231, 0.75);
}

.home-hero__cta {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 32px;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}

.home-hero__btn--clay {
  background: var(--color-clay);
  color: var(--color-cream-light);
}

.home-hero__btn--clay:hover {
  background: var(--color-clay-deep);
  color: var(--color-cream-light);
}

.home-hero__btn--ghost {
  background: rgba(237, 231, 212, 0.12);
  color: var(--color-cream);
}

.home-hero__btn--ghost:hover {
  background: rgba(237, 231, 212, 0.2);
  color: var(--color-cream);
}

/* ── Stat card ────────────────────────────────────────────────────────── */

.home-stat {
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--color-cream-light);
}

.home-stat__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-clay-deep);
}

.home-stat__number {
  margin: auto 0 0;
  font-size: clamp(5rem, 3rem + 6vw, 8rem);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: 0.85;
}

.home-stat__label {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--color-ink-soft);
}

/* ── Featured product card ────────────────────────────────────────────── */

.home-featured {
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--color-cream-light);
}

.home-featured__pills {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.home-featured__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-mute);
}

.home-featured__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
  overflow: hidden;
  margin-bottom: 16px;
}

.home-featured__media img,
.home-featured__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-featured__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: 1.05;
}

.home-featured__title a {
  color: var(--color-ink);
  text-decoration: none;
}

.home-featured__sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-ink-mute);
}

/* ── Kategória cards ──────────────────────────────────────────────────── */

.home-kat {
  border-radius: var(--radius-card);
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  background: var(--color-cream-light);
  color: var(--color-ink);
  text-decoration: none;
}

.home-kat--clay {
  background: var(--color-clay);
  color: var(--color-cream-light);
}

.home-kat--split {
  flex-direction: row;
  gap: 20px;
}

.home-kat--split > div:first-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-kat__media {
  flex: 1;
  border-radius: var(--radius-media);
  overflow: hidden;
}

.home-kat__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.home-kat__title {
  margin: auto 0 0;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
}

.home-kat__count {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

/* ── Kalkulačka card ──────────────────────────────────────────────────── */

.home-kalkulacka {
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-cream-light);
}

.home-kalkulacka__title {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: 1.1;
}

.home-kalkulacka__value {
  margin: auto 0 0;
  font-size: 3.25rem;
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: 1;
  color: var(--color-clay);
}

.home-kalkulacka__sub {
  margin: 0;
  font-size: 13px;
  color: var(--color-ink-mute);
}

/* ── Sortiment block ──────────────────────────────────────────────────── */

.home-sortiment {
  border-radius: var(--radius-card);
  padding: 48px;
  background: var(--color-forest);
  color: var(--color-cream);
}

.home-sortiment__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.home-sortiment__title {
  margin: 16px 0 0;
  max-width: 18ch;
  font-size: clamp(2.25rem, 1rem + 3.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
}

.home-sortiment__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  background: var(--color-clay);
  color: var(--color-cream-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.home-sortiment__cta:hover {
  background: var(--color-clay-deep);
  color: var(--color-cream-light);
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-tile {
  display: flex;
  flex-direction: column;
  min-height: 140px;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
}

.home-tile--clay {
  background: var(--color-clay);
  color: var(--color-cream-light);
}

.home-tile--forest-soft {
  background: var(--color-forest-soft);
  color: var(--color-cream);
}

.home-tile--cream-light {
  background: var(--color-cream-light);
  color: var(--color-ink);
}

.home-tile__count {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
}

.home-tile__title {
  margin: auto 0 0;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
}

/* ── Realizácie teaser ────────────────────────────────────────────────── */

.home-realizacie__header,
.home-zurnal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 8px 4px 0;
}

.home-realizacie__title,
.home-zurnal__title {
  margin: 16px 0 0;
  font-size: clamp(2.25rem, 1rem + 3.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
}

.home-real {
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--color-cream-light);
}

.home-real--big .home-real__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-media);
  overflow: hidden;
  margin-bottom: 20px;
}

.home-real__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-clay-deep);
}

.home-real__title {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: 1.05;
}

.home-real__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-ink-mute);
}

.home-real-stack {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.home-real-stack .home-real {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.home-real-stack .home-real__title {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.home-real__media--sq {
  flex: 0 0 140px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-media);
  overflow: hidden;
}

/* ── Žurnál row ───────────────────────────────────────────────────────── */

.home-zurnal__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-clay-deep);
  text-decoration: none;
}

.home-zurnal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.home-zurnal__grid .article-card {
  border-radius: var(--radius-card);
  padding: 24px;
}

/* ── Newsletter ───────────────────────────────────────────────────────── */

.home-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  border-radius: var(--radius-card);
  padding: 48px;
  background: var(--color-forest);
  color: var(--color-cream);
}

.home-newsletter__title {
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
}

.home-newsletter__row {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-btn-lg);
  background: rgba(237, 231, 212, 0.1);
}

.home-newsletter__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 14px;
}

.home-newsletter__row input::placeholder {
  color: rgba(237, 231, 212, 0.5);
}

.home-newsletter__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  background: var(--color-clay);
  color: var(--color-cream-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.home-newsletter__btn:hover {
  background: var(--color-clay-deep);
  color: var(--color-cream-light);
}

.home-newsletter__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(237, 231, 212, 0.5);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .home-tiles,
  .home-zurnal__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-newsletter {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .home {
    gap: var(--grid-gap-m);
    padding: 0 12px 12px;
  }

  .home-hero {
    border-radius: var(--radius-card-sm);
    padding: 24px;
    min-height: 0;
  }

  .home-hero::before {
    width: 160px;
    height: 160px;
    top: -40px;
    right: -40px;
  }

  .home-hero__cta {
    width: 100%;
  }

  .home-hero__btn {
    flex: 1;
    justify-content: center;
  }

  .home-stat,
  .home-featured,
  .home-kat,
  .home-kalkulacka,
  .home-real {
    border-radius: var(--radius-card-sm);
    padding: 20px;
  }

  .home-kat {
    min-height: 0;
  }

  .home-kat__title {
    margin-top: 16px;
    font-size: 2rem;
  }

  .home-sortiment,
  .home-newsletter {
    border-radius: var(--radius-card-sm);
    padding: 28px 20px;
  }

  .home-tiles {
    gap: 8px;
  }

  .home-tile {
    min-height: 90px;
    padding: 16px;
    border-radius: var(--radius-btn);
  }

  .home-tile__title {
    font-size: 1.5rem;
  }

  .home-zurnal__grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-m);
  }

  .home-real__media--sq {
    flex-basis: 96px;
  }
}
