/* ============================================================
   DIVOKÉ SLOVENSKO – Štýly pre domovskú stránku (home.css)
   ============================================================ */

/* ── HERO ── */
.hero {
  height: calc(100vh - var(--nav-h));
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  margin-top: 0;
  padding-top: calc(var(--nav-h) + 32px); 
  background-image: url('../img/babiahora03.jpg');
  background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,58,42,0.97) 0%,
    rgba(45,90,64,0.82) 50%,
    rgba(26,58,42,0.94) 100%
  );
  z-index: 1;
}

.hero-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle at 1px 1px, rgba(201,168,76,0.07) 1px, transparent 0);
  background-size: 48px 48px;
}

.hero-img-mask {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  overflow: hidden;
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-img-mask img,
.hero-img-mask .img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 64px;
  max-width: 620px;
  animation: heroFade 0.9s ease both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 20px;
}

.hero h1 em { font-style: italic; color: var(--gold-light); }

.hero p {
  font-size: 17px;
  color: rgba(245,240,232,0.68);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 64px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: rgba(245,240,232,0.35);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  animation: heroFade 1s ease 0.5s both;
}

.scroll-line { width: 40px; height: 1px; background: rgba(245,240,232,0.2); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--forest);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  display: flex;
}

.stat-item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(245,240,232,0.07);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: rgba(245,240,232,0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── FEATURED ── */
.featured-section { background: var(--cream); }

.featured-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,58,42,0.1);
}

.featured-img {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.featured-img img,
.featured-img .img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.featured-wrap:hover .featured-img img { transform: scale(1.03); }

.featured-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--forest);
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  z-index: 1;
}

.featured-body {
  padding: 52px 48px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1.2;
}

.featured-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 24px;
}

.featured-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pill {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 2px;
  background: var(--cream-dark);
  color: var(--stone-dark);
}

.pill.accent {
  background: rgba(74,140,92,0.1);
  color: var(--forest-mid);
}

/* ── SEKCIA HEADER ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── PROMO SECTION ── */
.promo-section { background: var(--forest-mid); }

.promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,58,42,0.1);
}

.blog-img { overflow: hidden; }
.blog-img img { width: 100%; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-body { padding: 22px; }

.blog-meta {
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.blog-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--forest);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 16px;
}

.blog-link {
  font-size: 13px;
  color: var(--forest-light);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.blog-link:hover { color: var(--forest); }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--forest);
  padding: 80px 48px;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--cream);
  margin-bottom: 12px;
}

.newsletter-inner h2 em { font-style: italic; color: var(--gold-light); }

.newsletter-inner p {
  font-size: 16px;
  color: rgba(245,240,232,0.55);
  font-weight: 300;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  border-right: none;
  color: var(--cream);
  outline: none;
  border-radius: 2px 0 0 2px;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: rgba(201,168,76,0.5); }
.newsletter-form input::placeholder { color: rgba(245,240,232,0.25); }

.newsletter-form .btn {
  border-radius: 0 2px 2px 0;
}

.nl-success {
  display: none;
  color: var(--gold-light);
  font-size: 14px;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ── KAM DNES BANNER ── */
.kamdnes-banner {
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  padding: 72px 48px;
  overflow: hidden;
}
.kamdnes-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}
.kamdnes-banner-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}
.kamdnes-banner-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.2vw, 42px);
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 14px;
}
.kamdnes-banner-text h2 em {
  font-style: italic;
  color: var(--gold);
}
.kamdnes-banner-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 28px;
}
.kamdnes-banner-btn {
  background: var(--forest) !important;
  color: var(--gold-light) !important;
  border-color: var(--forest) !important;
  padding: 13px 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(26,58,42,0.18);
}
.kamdnes-banner-btn:hover {
  background: var(--forest-light) !important;
  border-color: var(--forest-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,58,42,0.22);
}

/* Vizuálna dekorácia */
.kamdnes-banner-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.kamdnes-banner-card {
  width: 148px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 20px 18px 18px;
  box-shadow: 0 8px 32px rgba(26,58,42,0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: kamdnesBob 3.6s ease-in-out infinite;
}
.kamdnes-banner-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px; right: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--forest));
  border-radius: 0 0 2px 2px;
}
.kamdnes-banner-card-icon {
  font-size: 32px;
  line-height: 1;
  text-align: center;
}
.kamdnes-banner-card-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.kamdnes-banner-card-lines span {
  display: block;
  height: 7px;
  border-radius: 100px;
  background: var(--cream-dark);
}
.kamdnes-banner-card-lines span:nth-child(1) { width: 100%; }
.kamdnes-banner-card-lines span:nth-child(2) { width: 75%; }
.kamdnes-banner-card-lines span:nth-child(3) { width: 55%; }

.kamdnes-banner-dots {
  display: flex;
  gap: 7px;
}
.kamdnes-banner-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.2;
  animation: kamdnesDot 1.4s ease-in-out infinite;
}
.kamdnes-banner-dots span:nth-child(2) { animation-delay: 0.2s; }
.kamdnes-banner-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes kamdnesBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes kamdnesDot {
  0%, 100% { opacity: 0.18; transform: scale(0.85); }
  50%       { opacity: 0.7;  transform: scale(1.15); background: var(--gold); }
}

@media (max-width: 768px) {
  .kamdnes-banner { padding: 56px 24px; }
  .kamdnes-banner-inner { grid-template-columns: 1fr; gap: 36px; }
  .kamdnes-banner-visual { flex-direction: row; justify-content: flex-start; }
  .kamdnes-banner-text p { max-width: 100%; }
  .kamdnes-banner-btn { width: 100%; text-align: center; display: block; }
}
@media (max-width: 480px) {
  .kamdnes-banner-visual { display: none; }
}

/* ── BG VARIÁCIE ── */
.bg-white { background: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-inner { grid-template-columns: 1fr; gap: 36px; }
  .promo-img { display: none; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-img-mask { display: none; }
  .hero-scroll { display: none; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 11px; }
  .stat-item { padding: 16px 12px; }
  .featured-wrap { grid-template-columns: 1fr; }
  .featured-img { min-height: 280px; }
  .featured-body { padding: 32px 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-section { padding: 56px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(201,168,76,0.2); border-bottom: none; border-radius: 2px 2px 0 0; }
  .newsletter-form .btn { border-radius: 0 0 2px 2px; }
}

/* ── CARDS SCROLL ── */
.cards-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  cursor: grab;
}

.cards-scroll:active {
  cursor: grabbing;
}

.cards-scroll::-webkit-scrollbar {
  height: 4px;
}

.cards-scroll::-webkit-scrollbar-track {
  background: var(--cream-dark);
  border-radius: 2px;
}

.cards-scroll::-webkit-scrollbar-thumb {
  background: var(--forest-light);
  border-radius: 2px;
}

.cards-scroll .card {
  display: flex;
  flex-direction: column;
  flex: 0 0 340px;
  scroll-snap-align: start;
  border: 1px solid rgba(26,58,42,0.1);
  text-decoration: none;
  color: inherit;
}

.cards-scroll .card:hover {
  border-color: rgba(26,58,42,0.2);
}