/*
 * ATV Centrum — homepage.css — Úvodní stránka
 * Závisí na: base.css, components.css
 */


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  margin-top: 80px;
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Pozadí — slidy s obrázky */
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}
.hero-bg.active {
  opacity: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(15,30,46,0.88) 0%,
    rgba(15,30,46,0.65) 45%,
    rgba(15,30,46,0.25) 100%
  );
}

/* Content vrstva */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}
.hero-content { animation: fadeInUp 0.8s var(--ease-out) both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--white);
  margin: 0 0 28px 0; line-height: 1.4;
  text-transform: none; letter-spacing: 0;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--teal); border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Staggered line reveal — jen u aktivního slidu */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
}
.hero-slide-text.active .hero-line {
  animation: heroLineReveal 0.7s var(--ease-out) forwards;
}
@keyframes heroLineReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title .accent {
  color: var(--teal);
  -webkit-text-stroke: 3px var(--teal);
  paint-order: stroke fill;
}

.hero-description {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.7); max-width: 480px;
  margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero slide text přechod */
.hero-slide-text {
  display: none;
}
.hero-slide-text.active {
  display: block;
  animation: fadeInUp 0.6s var(--ease-out) both;
}

/* Indikátory slidů */
.hero-indicators {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.4s ease;
}
.hero-dot::after {
  content: '';
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: -4px;
  right: -4px;
}
.hero-dot.active {
  width: 48px;
  background: var(--teal);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-primary);
  font-weight: 700; font-size: 16px;
  letter-spacing: 0.5px;
  padding: 16px 36px; border-radius: 10px;
  border: none; cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--teal); color: var(--white);
  box-shadow: 0 4px 16px rgba(30,154,171,0.3);
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 24px rgba(30,154,171,0.4);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white); color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-arrow { transition: transform var(--transition-base); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}
.trust-item strong {
  color: var(--white);
  font-weight: 600;
}
.trust-item + .trust-item::before {
  content: '';
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
  margin-right: 0px;
}
@media (max-width: 768px) {
  .trust-bar-inner {
    gap: 14px 24px;
    justify-content: center;
  }
  .trust-item + .trust-item::before {
    display: none;
  }
  .trust-item {
    font-size: 13px;
  }
}

/* ============================================
   DEALS CAROUSEL
   ============================================ */
.deals-section {
  background: linear-gradient(135deg, #EAF4F7 0%, #D8EEF2 100%);
  position: relative; overflow: hidden;
}
.deals-section::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(30,154,171,0.06) 100%);
  pointer-events: none;
}

/* Carousel wrapper */
.deals-carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}
.deals-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}
.deals-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 480px;
}
.deals-content {
  padding: 60px 40px 60px;
  padding-left: calc(max((100vw - var(--container-max)) / 2, var(--container-padding)));
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}
.deals-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  padding: 6px 16px; border-radius: 6px;
  font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  width: fit-content; margin-bottom: 24px;
}
.deals-tag--novinka { background: var(--teal); }
.deals-tag--doprodej { background: var(--orange); }
.deals-title {
  font-family: var(--font-primary); font-weight: 700;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1; color: var(--navy);
  text-transform: uppercase; margin-bottom: 16px;
}
.deals-title .teal { color: var(--teal); }
.deals-description {
  font-size: 16px; line-height: 1.7;
  color: var(--gray-500); max-width: 440px;
  margin-bottom: 28px;
}
.deals-price {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 32px;
}
.deals-price-old {
  font-size: 20px; color: var(--gray-400);
  text-decoration: line-through; font-weight: 500;
}
.deals-price-new {
  font-family: var(--font-primary);
  font-size: 44px; font-weight: 700;
  color: var(--teal);
}
.deals-price-new small { font-size: 22px; font-weight: 600; }

/* Varianta ceny bez přeškrtnuté (pro akce typu "příslušenství zdarma") */
.deals-price-only {
  font-family: var(--font-primary);
  font-size: 44px; font-weight: 700;
  color: var(--navy);
}
.deals-price-only small { font-size: 22px; font-weight: 600; }

/* Promo text pod cenou (např. "+ kufry ZDARMA") */
.deals-promo-text {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 700; font-size: 16px;
  margin-top: -20px; margin-bottom: 32px;
}
.deals-promo-text svg { flex-shrink: 0; }

.btn-navy { background: var(--navy); color: var(--white); align-self: flex-start; }
.btn-navy:hover {
  background: var(--teal); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30,154,171,0.3);
}

.deals-image {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 10px;
  transform: translateX(-100px);
}
.deals-image-inner {
  position: relative;
  display: inline-block;
  max-width: 680px;
  width: 100%;
}
.deals-image img {
  max-width: 100%;
  height: auto; object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(15,30,46,0.18));
}
.discount-badge {
  position: absolute; top: 12px; right: 12px;
  width: 100px; height: 100px;
  background: var(--red); border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-primary); font-weight: 700;
  font-size: 28px; line-height: 1;
  box-shadow: 0 4px 16px rgba(229,62,62,0.3);
  z-index: 5;
}
.discount-badge small { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; margin-top: 2px; }

/* Textová promo akce badge (zaoblený obdélník) */
.promo-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 14px 22px;
  background: var(--teal); border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-primary); font-weight: 700;
  font-size: 15px; line-height: 1.3;
  text-align: center; text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(30,154,171,0.3);
  z-index: 5;
  max-width: 160px;
}
.promo-badge span { font-size: 12px; font-weight: 600; opacity: 0.85; letter-spacing: 1px; }

/* Carousel controls — inside the light blue section, below slides */
.deals-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 20px 0 28px;
  background: linear-gradient(135deg, #EAF4F7 0%, #D8EEF2 100%);
  position: relative; z-index: 5;
}
.deals-dots {
  display: flex; gap: 8px;
}
.deals-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(15,30,46,0.15);
  border: none; cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
}
.deals-dot::after {
  content: '';
  position: absolute;
  inset: -17px -8px;
}
.deals-dot.active {
  background: var(--teal);
  width: 32px; border-radius: 5px;
}
.deals-nav {
  display: flex; gap: 8px;
}
.deals-nav button {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(30,154,171,0.15);
  color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-base);
}
.deals-nav button:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ============================================
   BRANDS BAR
   ============================================ */
.brands {
  padding: 50px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  background: var(--navy);
}
.brands-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 80px; flex-wrap: wrap;
}
.brand-item {
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}
.brand-item:hover { opacity: 1; }
.brand-item img {
  height: 48px; width: auto;
  object-fit: contain;
  transition: opacity var(--transition-base);
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
}
.benefits .section-label { color: var(--teal); }
.benefits .section-title { color: var(--white); }
.benefits .section-subtitle { color: rgba(255,255,255,0.65); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.benefit-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 36px 28px; text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-base);
}
.benefit-card:hover {
  border-color: var(--teal); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30,154,171,0.2);
  background: rgba(255,255,255,0.1);
}
.benefit-icon {
  width: 64px; height: 64px;
  background: rgba(30,154,171,0.15); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--teal);
}
.benefit-title {
  font-family: var(--font-primary); font-weight: 700;
  font-size: 20px; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px;
}
.benefit-text { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ============================================
   ABOUT / CTA
   ============================================ */
.about-cta-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-content h2 {
  font-family: var(--font-primary); font-weight: 700;
  font-size: clamp(36px, 3.5vw, 48px);
  text-transform: uppercase; line-height: 1.05;
  color: var(--navy); margin-bottom: 24px;
}
.about-content p {
  font-size: 16px; line-height: 1.8;
  color: var(--gray-500); margin-bottom: 20px;
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 40px; padding-top: 40px;
  border-top: 1px solid var(--gray-100);
}
.stat-number {
  font-family: var(--font-primary); font-weight: 700;
  font-size: 38px; color: var(--teal); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--gray-400); margin-top: 6px; }
.about-image {
  background: var(--gray-50); border-radius: 24px;
  aspect-ratio: 1;
  position: relative; overflow: hidden;
}
.about-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.about-slide.active {
  opacity: 1;
}
.about-dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.about-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  cursor: default;
}
.about-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { text-align: center; padding-top: 60px; padding-bottom: 80px; }  .hero { min-height: 63vh; }
  .hero-description { margin: 0 auto 40px; }
  .hero-buttons { justify-content: center; }
  .hero-bg::after { background: rgba(15,30,46,0.75); }
  .deals-slide { grid-template-columns: 1fr; }
  .deals-image { transform: none; padding: 10px 20px; max-height: 250px; }
  .deals-image img { max-height: 220px; margin: 0 auto; }
  .deals-content { padding: 32px var(--container-padding); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .about-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-height: 400px; max-width: 400px; margin: 0 auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .header-inner { height: 70px; }
  .hero { margin-top: 70px; }
  .logo img { height: 48px; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .contact-strip-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .brands-inner { gap: 40px; }
  .brand-item img { height: 36px; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .stat-number { font-size: 28px; }
}

/* ============================================
   PRODUCT SHOWCASE
   ============================================ */
.showcase {
  padding: 80px 0 60px;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.showcase-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0;
}
.showcase-tab {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 600;
  color: var(--gray-400);
  padding: 0 0 14px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}
.showcase-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.showcase-tab.active { color: var(--navy); }
.showcase-tab.active::after { transform: scaleX(1); }
.showcase-tab:hover { color: var(--navy); }

.showcase-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  margin-bottom: 32px;
}
.showcase-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-family: var(--font-heading);
  font-size: clamp(140px, 18vw, 280px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gray-200);
  opacity: 0;
  letter-spacing: 0.08em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 0;
  text-transform: uppercase;
}
.showcase-product {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  width: 100%;
}
.showcase-product-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}
.showcase-product-img.slide-in {
  animation: driveIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.showcase-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.showcase-arrow:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 4px 16px rgba(30,154,171,0.15);
}
.showcase-arrow--prev { left: 0; }
.showcase-arrow--next { right: 0; }

.showcase-cta {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.showcase-cta a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1.5px solid var(--gray-300);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}
.showcase-cta a:hover { color: var(--teal); border-color: var(--teal); }

.showcase-categories {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--gray-300);
  position: relative;
  z-index: 1;
}
.showcase-cat {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 16px 36px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}
.showcase-cat::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.showcase-cat.active { color: var(--navy); }
.showcase-cat.active::before { transform: scaleX(1); }
.showcase-cat:hover { color: var(--navy); }

.showcase-panel { display: none; }
.showcase-panel.active {
  display: block;
  animation: showcaseFadeIn 0.4s ease;
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Drive-in: stroj prijede zleva (čelem vpřed) s mírným odrazem */
@keyframes driveIn {
  0%   { opacity: 0; transform: translateX(-200px) scaleX(0.98); }
  60%  { opacity: 1; transform: translateX(12px) scaleX(1); }
  80%  { transform: translateX(-4px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes showcaseFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .showcase-arrow--prev { left: 8px; }
  .showcase-arrow--next { right: 8px; }
}
@media (max-width: 768px) {
  .showcase { padding: 48px 0 40px; }
  .showcase-stage { min-height: 280px; }
  .showcase-arrow { width: 40px; height: 40px; }
  .showcase-cat { padding: 12px 16px; font-size: 0.8rem; }
  .showcase-tabs { gap: 20px; }
}
@media (max-width: 480px) {
  .showcase-cat { padding: 10px 12px; font-size: 0.75rem; letter-spacing: 0.04em; }
  .showcase-categories { gap: 0; }
}

/* Watermark: scale-up z pozadí s fade-in */
@keyframes watermarkReveal {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.showcase-watermark.slide-in-right {
  animation: watermarkReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
