/* Site-wide tweaks added after the WordPress conversion (loaded on every public page). */

:root {
    --spm-green: var(--e-global-color-primary, #033F2D);
    --spm-lime: var(--e-global-color-accent, #C7F268);
    --spm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ─────────────────────────── Preloader: logo with shine ─────────────────────────── */

.theme-preloader {
    background: radial-gradient(circle at 50% 45%, #0a5a41 0%, var(--spm-green) 55%, #022a1e 100%);
    transition: opacity .5s var(--spm-ease), visibility .5s;
}
.theme-preloader.spm-done { opacity: 0; visibility: hidden; }
.theme-preloader .loading-container { width: auto; height: auto; margin: 0; border-radius: 0; }

.spm-loader { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.spm-loader-logo {
    position: relative;
    width: min(260px, 62vw);
    animation: spm-logo-in .8s var(--spm-ease) both, spm-float 3s ease-in-out .8s infinite;
    transition: transform .5s var(--spm-ease);
}
.spm-loader-logo img { display: block; width: 100%; height: auto; }
.theme-preloader.spm-done .spm-loader-logo { transform: scale(1.08); }

/* The shine is masked to the logo's own shape, so only the logo glints. */
.spm-loader-shine {
    position: absolute;
    inset: 0;
    -webkit-mask: var(--spm-logo) center / contain no-repeat;
            mask: var(--spm-logo) center / contain no-repeat;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%);
    background-size: 250% 100%;
    background-repeat: no-repeat;
    animation: spm-shine 1.8s ease-in-out .3s infinite;
    mix-blend-mode: screen;
}

.spm-loader-bar {
    width: 140px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
    animation: spm-fade-in .6s ease .4s both;
}
.spm-loader-bar span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--spm-lime), transparent);
    animation: spm-bar 1.2s ease-in-out infinite;
}

@keyframes spm-logo-in { from { opacity: 0; transform: scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spm-float { 50% { transform: translateY(-5px); } }
@keyframes spm-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes spm-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes spm-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ─────────────────────────── Header: glass bar + capsule menu ─────────────────────────── */

.ekit-template-content-header .main-header-menu .ekit-menu-nav-link,
.ekit-template-content-header .ata-site-logo-img { -webkit-tap-highlight-color: transparent; }

/* Logo: gentle lift and glow on hover. */
.ekit-template-content-header .ata-site-logo-container { position: relative; display: inline-block; }
.ekit-template-content-header .ata-site-logo-img { transition: transform .4s var(--spm-ease), filter .4s; }
.ekit-template-content-header .ata-site-logo a:hover .ata-site-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 10px rgba(199, 242, 104, .35));
}

@media (min-width: 1025px) {
    /* The bar holding logo, menu and button. */
    .ekit-template-content-header .e-parent > .e-con-inner > .e-con:first-child {
        background: rgba(3, 40, 29, .28) !important;
        -webkit-backdrop-filter: blur(14px) saturate(140%);
                backdrop-filter: blur(14px) saturate(140%);
        border: 1px solid rgba(255, 255, 255, .14) !important;
        border-radius: 22px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
        transition: background .3s, border-color .3s, box-shadow .3s, border-radius .3s;
    }

    /* Let the menu take the free space and keep every item on one line. */
    .ekit-template-content-header .e-con:has(> .main-header-menu) { flex: 1 1 auto !important; min-width: 0; }
    .ekit-template-content-header .main-header-menu .elementskit-menu-container { height: auto !important; }
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin: 0 auto !important;
        padding: 0 16px !important;
    }
    /* The theme adds 10px side margins per item on the home header; the gap handles spacing now. */
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li { margin: 0 !important; }

    /* Capsule buttons. */
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li > a {
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        padding: 9px 17px !important;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, .16);
        background: rgba(255, 255, 255, .05) !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        letter-spacing: .01em;
        transition: color .3s var(--spm-ease), background .3s var(--spm-ease),
                    border-color .3s var(--spm-ease), transform .3s var(--spm-ease), box-shadow .3s var(--spm-ease);
    }
    /* Light sweep across the capsule on hover. */
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li > a::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0; left: -60%;
        width: 50%;
        background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
        transform: skewX(-20deg);
        pointer-events: none;
        transition: left .6s var(--spm-ease);
    }
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li:hover > a::before { left: 120%; }

    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li:hover > a,
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li > a:focus-visible {
        color: var(--spm-lime) !important;
        background: rgba(255, 255, 255, .12) !important;
        border-color: rgba(199, 242, 104, .55);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    }
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li > a:focus-visible { outline: 2px solid var(--spm-lime); outline-offset: 2px; }

    /* Current page. */
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li.current-menu-item > a,
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li.current-menu-ancestor > a {
        color: var(--spm-lime) !important;
        background: rgba(199, 242, 104, .14) !important;
        border-color: rgba(199, 242, 104, .7);
        box-shadow: 0 0 0 3px rgba(199, 242, 104, .08);
    }

    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li > a .elementskit-submenu-indicator {
        color: inherit !important;
        fill: currentColor !important;
        margin-left: 6px;
        transition: transform .3s var(--spm-ease);
    }
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li:hover > a .elementskit-submenu-indicator { transform: rotate(180deg); }

    /* Dropdown (Gallery). */
    .ekit-template-content-header .main-header-menu .elementskit-submenu-panel {
        margin-top: 8px;
        padding: 8px !important;
        border-radius: 18px !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, .22) !important;
    }
    .ekit-template-content-header .main-header-menu .elementskit-submenu-panel > li > a {
        border-radius: 999px;
        transition: background .25s, padding-left .25s;
    }
    .ekit-template-content-header .main-header-menu .elementskit-submenu-panel > li > a:hover {
        background: rgba(3, 63, 45, .1) !important;
        padding-left: 26px !important;
    }

    /* Sign in button: matching capsule. */
    .ekit-template-content-header .ekit_creative_button {
        border-radius: 999px !important;
        transition: transform .3s var(--spm-ease), box-shadow .3s var(--spm-ease);
    }
    .ekit-template-content-header .ekit_creative_button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(199, 242, 104, .35);
    }
}

/* Narrower desktops: tighten so the menu still fits on one line. */
@media (min-width: 1025px) and (max-width: 1280px) {
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav { gap: 4px; padding: 0 8px !important; }
    .ekit-template-content-header .main-header-menu .elementskit-navbar-nav > li > a {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
}

/* ─────────────────────────── Sticky header ─────────────────────────── */
/* The header sits absolutely over the hero; once the visitor scrolls past it,
   JS adds .spm-sticky and it becomes a fixed bar. */
.ekit-template-content-header > .elementor > .e-parent.spm-sticky {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    margin: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    z-index: 999 !important;
    background: rgba(3, 63, 45, .9);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
            backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
    animation: spm-slide-down .45s var(--spm-ease);
}
.ekit-template-content-header > .elementor > .e-parent.spm-sticky > .e-con-inner > .e-con:first-child {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
@keyframes spm-slide-down { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .spm-loader-logo, .spm-loader-shine, .spm-loader-bar span,
    .ekit-template-content-header > .elementor > .e-parent.spm-sticky { animation: none !important; }
}
