/*
	Theme Name: Ayara
	Theme URI: www.ayara.ee
	Description: Ayara
	Author URI: www.webadmin.ee
	Version: 1.0.1
	Stable tag: 1.0.0
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: ayara
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/

:root {
    --primary-deep: #392467;
    --primary-vibrant: #5d3587;
    --secondary-orchid: #a367b1;
    --accent-pink: #ffd1e3;
    --surface: #f8f7f9;
    --text-main: #33215b;
    --footer-start: #392467;
    --footer-end: #211633;
    --primary-midnight: #3b0764;
    --primary-vivid: #6b21a8;
    --primary-royal: #581c87;
    --accent-lavender: #f3e8ff;

    /* Modern Browsers with OKLCH Support */
    --primary-deep: oklch(28% 0.08 285);
    --primary-vibrant: oklch(45% 0.16 295);
    --secondary-orchid: oklch(65% 0.12 305);
    --accent-pink: oklch(92% 0.04 310);
    --surface: oklch(97% 0.01 300);
    --text-main: oklch(25% 0.06 285);
    --footer-start: oklch(28% 0.08 285);
    --footer-end: oklch(16% 0.04 295);
    --primary-midnight: oklch(15% 0.12 285);
    --primary-vivid: oklch(42% 0.22 300);
}

/* Headeri algolek (läbipaistev) */
.site-header,
#site-header,
#main-header {
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    padding: 20px 0;
}

/* On mobile, disable sticky header shrink animation entirely */
@media (max-width: 767px) {

    .site-header,
    #site-header,
    #main-header {
        transition: none !important;
    }

    .site-header.scrolled,
    #site-header.scrolled,
    #main-header.scrolled {
        padding: 20px 0 !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: transparent !important;
        box-shadow: none;
        border-bottom: none;
    }
}

/* Header skrollitud olekus (valge ja blur) */
.site-header.scrolled,
#site-header.scrolled,
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Logode vahetus */
.logo-white {
    display: block !important;
    transition: opacity 0.3s;
}

.logo-grad {
    display: none !important;
    transition: opacity 0.3s;
}

.scrolled .logo-white {
    display: none !important;
}

.scrolled .logo-grad {
    display: block !important;
}

/* Menüü linkide üleminekud */
.nav-link a,
.menu-item a {
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.scrolled .nav-link a,
.scrolled .menu-item a {
    color: var(--primary-deep) !important;
}

/* Hover efektid */
.nav-link a::after,
.menu-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link a:hover::after,
.menu-item a:hover::after {
    width: 100%;
}

/* Diplomite slaideri efektid */
.slider-transition {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-dot {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cert-dot.active {
    width: 24px !important;
    background-color: var(--primary-deep) !important;
    opacity: 1;
}

/* Zoom Overlay */
#cert-zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cert-zoom-modal.active {
    opacity: 1;
}

.zoom-img-container {
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cert-zoom-modal.active .zoom-img-container {
    transform: scale(1);
}

.zoom-content-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section Gradient Overlay */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(to bottom,
            rgba(57, 36, 103, 0.7) 0%,
            rgba(93, 53, 135, 0.6) 50%,
            rgba(163, 103, 177, 0.7) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* --- AYARA SPECIFIC UI ELEMENTS --- */

/* Laiendatavad sektsioonid (Read More efekt) */
/* Laiendatavad sektsioonid (Read More efekt) */
.expand-content .elementor-widget-container {
    max-height: 180px !important;
    overflow: hidden !important;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    mask-image: none;
    /* Reset if inherited */
}

/* Gradient hajumine - Tugevdatud */
.blur-mask .elementor-widget-container {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 95%) !important;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 95%) !important;
}

/* Avatud olek */
.expand-content.expanded .elementor-widget-container {
    max-height: 5000px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}



/* Üldised nupu animatsioonid (Premium Scale) */
.ayara-button,
.elementor-button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ayara-button:hover,
.elementor-button:hover {
    transform: scale(1.02) !important;
}

/* Ghost Button Hover (Valge kumaga efekt) */
.btn-ghost-white:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ikooni nihkumise efekt nuppudes */
.elementor-button:hover .elementor-align-icon-right,
.elementor-button:hover .elementor-align-icon-left {
    transition: transform 0.3s ease;
}

.elementor-button:hover .elementor-align-icon-right {
    transform: translateX(5px);
}