/* Hero v8 Animation Styles */

/* Initial fade — do NOT use Bootstrap .opacity-0 (it uses !important and blocks the animation end state) */
.hero-v8-fade--1,
.hero-v8-fade--2,
.hero-v8-fade--3,
.hero-v8-fade--4,
.hero-v8-fade--5 {
    opacity: 0;
}

.hero-v8-fade--1.animate-fade-in-up { animation-delay: 0.2s; }
.hero-v8-fade--2.animate-fade-in-up { animation-delay: 0.4s; }
.hero-v8-fade--3.animate-fade-in-up { animation-delay: 0.6s; }
.hero-v8-fade--4.animate-fade-in-up { animation-delay: 0.8s; }
.hero-v8-fade--5.animate-fade-in-up { animation-delay: 1s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(10px);
    }
}

.animate-wave {
    animation: wave 3s ease-in-out infinite;
}

.hero-v8-decor-top {
    position: absolute;
    top: -5rem;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-v8-dot--1 { animation-delay: 0s; top: 5rem; left: 4rem; }
.hero-v8-dot--2 { animation-delay: 1s; top: 8rem; right: 5rem; }
.hero-v8-dot--3 { animation-delay: 2s; bottom: 6rem; left: 5rem; }
.hero-v8-dot--4 { animation-delay: 3s; bottom: 8rem; right: 4rem; }
.hero-v8-dot--5 { animation-delay: 4s; top: 50%; left: 25%; }
.hero-v8-dot--6 { animation-delay: 5s; top: 33%; right: 33%; }

.hero-v8-blob--delayed { animation-delay: 2s; }

.hero-v8-glow--top { top: 5rem; left: 5rem; }
.hero-v8-glow--bottom { bottom: 5rem; right: 5rem; }

/* Description max width when Bootstrap omits max-w-2xl */
.hero-v8-desc-max {
    max-width: 42rem;
}

.hero-testimonial-overlay__wave-line {
    height: var(--wave-h);
    animation-delay: var(--wave-d);
}

/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
.gallery-cards__card {
    transition: transform 0.3s ease;
}
.gallery-cards__card:hover {
    transform: scale(1.05);
}
.gallery-cards__img {
    height: 16rem;
}

/* min-width: 0 — довгий текст/флекс у колонці не роздуває рядок */
.content-col-grow {
    min-width: 0;
}

.content-stack-col--text {
    overflow-wrap: anywhere;
}

.content-stack-col--text > :first-child {
    width: 100%;
    max-width: 65ch;
    margin-inline: auto;
}

/* gap лише для Tailwind (grid). У Bootstrap — відступи через g-* у component (row-cols + g-3), без CSS gap на .row */
.content-grid-gap:not(.row) {
    gap: 1rem;
}

.content-full-frame {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Третина рядка: стабільна висота прев’ю, без height:100% від сусіднього тексту */
.content-img-fullheight {
    display: block;
    width: 100%;
    max-width: min(100%, 28rem);
    margin-inline: auto;
    min-width: 0;
    aspect-ratio: 3 / 4;
    max-height: 28rem;
    height: auto;
    flex-shrink: 1;
    object-fit: cover;
    object-position: center;
}


.spark-boost__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.spark-boost__inner {
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .spark-boost__inner { min-height: 600px; }
}

/* Bootstrap: как у Tailwind p-sm → md:p-lg → lg:p-xl → xl:p-4xl (без фиксированных 6rem на мобиле) */
.spark-boost__vessel-bs {
    box-sizing: border-box;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .spark-boost__vessel-bs { padding: 1.5rem; }
}

@media (min-width: 992px) {
    .spark-boost__vessel-bs { padding: 2rem; }
}

@media (min-width: 1280px) {
    .spark-boost__vessel-bs { padding: 6rem; }
}

/* Bootstrap: две колонки + стабильный gap (row/g-* часто «съедаются» сбросами) */
.spark-boost__split-grid-bs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .spark-boost__split-grid-bs { gap: 1.5rem; }
}

.spark-boost__split-grid-bs > * {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .spark-boost__split-grid-bs {
        flex-wrap: nowrap;
    }

    .spark-boost__split-grid-bs > * {
        flex: 1 1 0;
        max-width: 50%;
    }
}

.spark-boost__slab--glass { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

@keyframes spark-boost-highlight-throb-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.spark-boost__highlight--throb {
    animation: spark-boost-highlight-throb-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

.spark-boost__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.spark-boost__control--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.spark-boost__surface--glow:hover { transform: scale(1.05); transition: transform .2s ease; }


