/* =========================================
   iPush.click – CLEAN HERO BUILD (no vh)
   Jediný soubor CSS, bez úprav šablon
========================================= */

/* --------- Root / base --------- */
:root {
  --body-bg: #f5f5ff;
  --hero-bg-color: #0b0113;
  --hero-bg-img: url("https://ipushclick.s3.eu-central-1.amazonaws.com/assets/images/background-01.jpg");
  --curve-color: #ffffff;

  /* Lottie desktop geometry (bez vh) */
  --hero-box-width: clamp(540px, 44vw, 680px);
  --hero-box-right: clamp(-140px, -10vw, -80px);
  --hero-box-radius: 24px;
}

html, body { overflow-x: hidden; background: var(--body-bg); }
img, svg { max-width: 100%; height: auto; display: block; }

/* --------- Navbar --------- */
.navbar-main {
  background: linear-gradient(to right, #ffffff 0%, #ffffffa1 70%);
  backdrop-filter: blur(10px);
}
@media (min-width: 992px) {
  .navbar.rounded-2x { border-radius: calc(10 * var(--border-radius)); }
}
.navbar-main .navbar-nav > li > a { color: #000 !important; }
[data-theme-style="dark"] .navbar-main .navbar-nav > li > a { color: #fff !important; }

/* --------- Typo / badges --------- */
.badge-primary {
  color: #a855f7;
  background: #f3e8ff1a;
  padding: .45em .9em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}
.index-header { color: #fff; line-height: 1.12; font-weight: 800; }
@media (min-width: 920px) { .index-header { font-size: 3.2rem; } }
.index-subheader { color: #fff !important; font-size: 1.05rem; }
.text-gray-700 { color: #e5e7eb !important; }
[data-theme-style="dark"] .text-gray-700 { color: #c6c9d2 !important; }

/* =========================================
   HERO – BACKGROUND & CURVE (inside section)
========================================= */

/* vypnout starý helper */
.index-background-container,
.index-background-image,
.index-cover-container { display: none !important; }

/* hero sekce je kotva vrstvení */
.index-container {
  position: relative;
  isolation: isolate;         /* nové vrstvy bez ovlivnění okolí */
  padding-top: 1.25rem;
  padding-bottom: 6rem;       /* prostor pro CTA nad křivkou */
  margin-top: -120px; /* výška navbaru (můžeš doladit: 70–100px) */
  padding-top: calc(120px + 1.25rem); /* kompenzace vnitřku */

}

/* pozadí plátno (roluje s obsahem sekce) */
.index-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg-color) var(--hero-bg-img) center / cover no-repeat;
  z-index: -1;                /* pouze v rámci sekce */
  pointer-events: none;
}

/* spodní křivka – perfektně vycentrovaná */
.index-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  padding-bottom: 12%; /* výška jako % šířky sekce */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 25' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q50,30 100,0 L100,25 L0,25 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
  z-index: 0;
  pointer-events: none;
}
/* =========================================
   HERO GRID / SPACING
========================================= */
.hero-row {
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 6.25rem;
}
.index-button {
  padding: .85rem 1.25rem;
  font-weight: 600;
  border-radius: 35px;
}

/* =========================================
   LOTTIE / RIGHT VISUAL
   Desktop: absolutní přesah vpravo
   Tablet/Mobil: staticky pod textem
========================================= */

.hero-visual { position: relative; overflow: visible; }

/* DESKTOP ≥ 992px */
@media (min-width: 992px) {
  #lottie-hero {
    position: absolute;
    top: 50%;
    right: var(--hero-box-right);
    transform: translateY(-50%);
    width: var(--hero-box-width);
    aspect-ratio: 670 / 640;
    border-radius: var(--hero-box-radius);
    overflow: hidden;
  }

  #lottie-hero {
    z-index: 2;
    background: transparent;
    pointer-events: none;
  }
}

/* TABLET & MOBILE < 992px: žádné překryvy, 100% šířky kontejneru */
@media (max-width: 991.98px) {
  #lottie-hero {
    position: static;
    transform: none;
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 1rem auto 0;
    aspect-ratio: 670 / 640;
    border-radius: 20px;
    overflow: hidden;
  }
}

/* ultra-small phones */
@media (max-width: 576px) {
  .index-container { padding-bottom: 5rem; }
  #lottie-hero { max-width: none; width: calc(100% - 32px); }
}

/* =========================================
   CARDS / ICONS / BRANDS (nice defaults)
========================================= */

.icon-zoom-animation i { transform: translateZ(0); }
.index-icon-container {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
}
[data-theme-style="dark"] .index-icon-container {
  background: rgba(255,255,255,0.1);
}
.mt-10 { margin-top: 4rem !important; }
.p-4.mt-10 .bg-gray-100 { background: #f7f7f8 !important; }
[data-theme-style="dark"] .p-4.mt-10 .bg-gray-100 { background: #16181c !important; }

.index-brand-icon-container {
  width: 92px; height: 92px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.index-brand-icon-container svg { width: 56px; height: 56px; }

/* =========================================
   OPTIONAL – Dark theme swap for other blocks
========================================= */
.cc--darkmode .bg-recenze {
  background:
    url('https://skiptoclickmain.s3.eu-central-1.amazonaws.com/assets/images/index/bg_recenze_dark.webp')
    no-repeat center / cover !important;
}

/* registrační sekce (ponechávám, jak máš) */
.index-register-container {
  background-image: url("https://www.ipush.click/themes/altum/assets/css/bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Dropdowny nad vším potřebným */
.dropdown-menu,
.navbar .dropdown-menu { z-index: 1002; }