/*
 Theme Name:   Quantum Child Theme
 Theme URI:    https://quantum.ancorathemes.com/
 Description:  Quantum Child Theme
 Author:       AncoraThemes
 Author URI:   https://ancorathemes.com/
 Template:     quantum
 Version:      1.0.0
 Tested up to: 6.6
 Requires at least: 5.0
 Requires PHP: 7.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
 Text Domain:  quantum
*/


/* =Theme customization starts here
------------------------------------------------------------ */

html, body {
    -webkit-hyphens: none !important;
    hyphens: none !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
h1, h2, h3, h4, h5, h6, p, span, div {
    -webkit-hyphens: none;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}


section.scheme_dark_alter {
    background-color: var(--theme-color-bg_color);
}
section.scheme_dark_alter,
section.scheme_dark_alter .elementor-column > .elementor-widget-wrap {
    border-color: var(--theme-color-bd_color)!important;
}
.overflow-hidden {
    overflow: hidden;
}

@media (max-width: 479px) {        .width-reset .trx_addons_columns_wrap:not(.columns_fluid)>.trx_addons_column-1_2-mobile {
    width: 50%;
}
}




/* Активная якорная ссылка без ховера — скрываем линию, но оставляем на месте */
.menu_hover_zoom_line li.current-menu-item a[href*="#"]:not(:hover)::after {
    width: 0 !important;
    opacity: 0 !important;
    transition: width 0.25s ease, opacity 0.25s ease !important;
}

.social_name {
    padding-bottom: 3px;
}

#hero {
    overflow:hidden;
}


.anima-gradient {
    position: relative;
    z-index: 0;
}
.anima-gradient::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.hero-gradient::before {
    top: 40%;
    left: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle closest-side at center, rgba(0, 102, 255, 0.4) 0%, rgba(0, 102, 255, 0) 100%);
}

.who-we-are-gradient::before {
    top: 20%;
    left: -75%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle closest-side at center, rgba(0, 102, 255, 0.4) 0%, rgba(0, 102, 255, 0) 100%);
}


.how-we-help-gradient::before {
    top: -80%;
    left: -75%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle closest-side at center, rgba(0, 102, 255, 0.4) 0%, rgba(0, 102, 255, 0) 100%);
}





/* 🔹 Показывать WhatsApp-кнопку, когда активна scroll-to-top */
.trx_addons_scroll_to_top_show .whatsapp-float-link {
    display: flex;
}

/* 🔹 WhatsApp fixed-кнопка */
.whatsapp-float-link {
    display: none;
    position: fixed;
    right: 1.5rem;
    bottom: 4em;
    width: 2.5em;
    height: 2.5em;
    background-color: var(--theme-color-text_dark);
    border-radius: 50%;
    color: var(--theme-color-inverse_hover);
    font-size: 1.5em;
    z-index: 7999;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: var(--theme-color-text_hover);
}

.whatsapp-float-link:hover {
    background-color: var(--theme-color-text_link);
}

.whatsapp-float-link .icon-whatsapp {
    margin-bottom: -0.2em;
}
/* 🔹 Иконка WhatsApp через fontello */
.whatsapp-float-link .icon-whatsapp::before {
    content: '\e995';
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    line-height: 2.5em;
    text-align: center;
    font-size: 1.4em;
    color: var(--theme-color-inverse_hover);
}

@media (max-width: 1023px) {
    .whatsapp-float-link {
        right: .25em;
        bottom: 3em;
    }
}











/* 🔹 Отключаем анимации во время якорного скролла */
body.scrolling-to-anchor .words .anim {
    animation: none !important;
}

/* 🔹 Контейнер всей текстовой части */
.hero-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

/* 🔹 Каждое фиксированное слово: STRATEGY. TECHNOLOGY. EMOTIONS. */
.hero-headline .line {
    display: block;
}
.hero-headline .line,
.hero-headline .anim {
    /*   font-size: max(6.6vw, 5vh); */
    font-size: clamp(48px, 6.6vw, 150px);
    line-height: 0.85;
}

/* 🔹 Контейнер для анимированных слов */
.word-slider {
    display: block;
    position: relative;
    overflow: hidden;
    height: 1.5em; /* запас по высоте */
    line-height: 1em;
    width: 100%;
}

/* 🔹 Внутренний блок со всеми словами */
.words {
    position: relative;
    width: 100%;
    height: 100%;
    contain: layout style; /* 📱 помогает Safari предсказывать размеры */
}

/* 🔹 Этот элемент просто резервирует высоту */
.words .visible-for-size {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* 🔹 Анимируемые слова */
.words .anim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1em;
    opacity: 0;
    transform: translateY(100%);
    white-space: nowrap;
    pointer-events: none;

    /* 🌈 Градиентный текст */
    background: linear-gradient(45deg, var(--theme-color-text_dark), var(--theme-color-text_link_07));
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* ⚙ Анимации */
    animation: wordFade 8s infinite, gradient_anim 5s ease infinite reverse;

    /* 📱 Багфиксы для iOS */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 🔹 Паузы между словами */
.words .anim:nth-child(2) { animation-delay: 0s, 0s; }
.words .anim:nth-child(3) { animation-delay: 2s, 0s; }
.words .anim:nth-child(4) { animation-delay: 4s, 0s; }
.words .anim:nth-child(5) { animation-delay: 6s, 0s; }

/* 🔹 Анимация появления и исчезновения слов */
@keyframes wordFade {
    0%   { opacity: 0; transform: translateY(100%); }
    10%  { opacity: 1; transform: translateY(0); }
    25%  { opacity: 1; transform: translateY(0); }
    35%  { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/* 🔹 Анимация движения градиента */
@keyframes gradient_anim {
    0%   { background-position: 0% 0; }
    50%  { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}