
/* -------header button price list------- */
.price-list-link {
    display: flex;
}

.price-list-link {
    color: white;
    font-size: clamp(1rem, 0.6667rem + 1.0667vw, 2rem);
    font-family: 'IranYekan', Sans-Serif;
    font-weight: 500;
}

.price-list-link span:hover {
    color: #FECC00;
}

/* -------header button demo -------- */
.demo-cta {
    font-size: clamp(1rem, 0.6667rem + 1.0667vw, 2rem);
    font-family: 'IranYekan', Sans-Serif;
    font-weight: 500;
    padding: 3px 32px 7px 32px;
    display: grid;
    place-content: center;
    color: white;
    text-shadow: 0 1px 0 #000;
    --border-angle: 0turn;
    --main-bg: conic-gradient(from var(--border-angle), black, black 5%, #112 60%, black 95%);
    border: solid 3px transparent;
    border-radius: 2em;
    --gradient-border: conic-gradient(from var(--border-angle), transparent 25%, #FECC00, #e0b400 99%, transparent);
    background: var(--main-bg) padding-box, var(--gradient-border) border-box, var(--main-bg) border-box;
    background-position: center center;
    animation: bg-spin 3s linear infinite;
    transition: all 0.5s;
}

@keyframes bg-spin {
    to {
        --border-angle: 1turn;
    }

}

@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

.demo-cta:hover {
    transform: translateY(5px);
}


/* ----------- mobile menu -------- */


.menu-close {
    background-color: transparent !important;
}

/* -------------------------
   GLOBAL SAFETIES
-------------------------- */
html,
body {
    overflow-x: hidden;
}

/* kill horizontal scroll in general */
html.menu-opened,
html.menu-opened body {
    overscroll-behavior: none;
    /* stop bounce while open */
}

/* -------------------------
   OVERLAY
-------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    /* full screen */
    background: #000;
    /* padding room for header & safe areas */
    padding:
        calc(72px + env(safe-area-inset-top, 0px)) 32px calc(32px + env(safe-area-inset-bottom, 0px));

    /* initial (closed) state — fully out of view, not interactive, no paint */
    visibility: hidden;
    transform: translate3d(0, -101%, 0);
    /* -101% avoids 1px GPU bleed */
    opacity: 0;
    pointer-events: none;

    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
    z-index: 9999 !important;
    /* above all Elementor layers */

    display: flex;
    flex-direction: column;
    justify-content: center;

    will-change: transform, opacity;
    touch-action: none;
    /* prevent scroll/jank while open */

    /* HARD CLAMP against layout contributions */
    width: 100%;
    max-width: 100%;
    contain: layout paint size;
    overflow-x: hidden;
}

/* OPEN state */
html.menu-opened .mobile-menu {
    visibility: visible;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s;
}

/* Desktop: the overlay simply doesn't exist */
@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

/* -------------------------
   MENU LIST
-------------------------- */
.mobile-menu .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    direction: rtl;
    /* Persian list direction */
    text-align: center;
    margin-top: -60px;
}

.mobile-menu {
    padding-top: 30px;
}

.mobile-menu .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-24px) scale(1.03);
    opacity: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    transition:
        transform 0.45s cubic-bezier(0.4, 0.01, 0.165, 0.99),
        opacity 0.5s cubic-bezier(0.4, 0.01, 0.165, 0.99);
    backface-visibility: hidden;
}

/* OPEN: stagger in */
html.menu-opened .mobile-menu .menu-item {
    transform: translateY(0) scale(1);
    opacity: 1;
}

html.menu-opened .mobile-menu .menu-item:nth-child(1) {
    transition-delay: 0.20s;
}

html.menu-opened .mobile-menu .menu-item:nth-child(2) {
    transition-delay: 0.26s;
}

html.menu-opened .mobile-menu .menu-item:nth-child(3) {
    transition-delay: 0.32s;
}

html.menu-opened .mobile-menu .menu-item:nth-child(4) {
    transition-delay: 0.38s;
}

html.menu-opened .mobile-menu .menu-item:nth-child(5) {
    transition-delay: 0.44s;
}

/* CLOSE: reverse stagger */
html:not(.menu-opened) .mobile-menu .menu-item:nth-child(1) {
    transition-delay: 0.44s;
}

html:not(.menu-opened) .mobile-menu .menu-item:nth-child(2) {
    transition-delay: 0.38s;
}

html:not(.menu-opened) .mobile-menu .menu-item:nth-child(3) {
    transition-delay: 0.32s;
}

html:not(.menu-opened) .mobile-menu .menu-item:nth-child(4) {
    transition-delay: 0.26s;
}

html:not(.menu-opened) .mobile-menu .menu-item:nth-child(5) {
    transition-delay: 0.20s;
}

/* Links */
.mobile-menu a {
    display: block;
    padding: 14px 0;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.6;
    font-family: 'IranYekan', sans-serif;
    font-weight: 400;
}

/* -------------------------
   CLOSE BUTTON (RTL: top-right)
-------------------------- */
.menu-close {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: transparent !important;
    border: none;
    color: #fff;
    /* SVG uses currentColor */
    cursor: pointer;
    border-radius: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    outline: none;
}

.menu-close:hover,
.menu-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.menu-close:active {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Show when menu opens */
html.menu-opened .menu-close {
    opacity: 1;
    transform: translateX(0);
}

.menu-close svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* -------------------------
   SOCIALS (RTL: bottom-right)
-------------------------- */
.socials {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: calc(20px + env(safe-area-inset-right, 0px));
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    
}

.socials img {
    object-fit: contain;
    width: 50px;
    height: 50px;
}

/* -------------------------
   REDUCED MOTION
-------------------------- */
@media (prefers-reduced-motion: reduce) {

    .mobile-menu,
    .mobile-menu .menu-item,
    .menu-close,
    .menu-close svg {
        transition: none !important;
    }
}

/* ----------header blurry background effect ---------- */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transition: height 0.4s ease, transform 0.4s ease;
    backdrop-filter: none;
}


/* =======================
   FADING BACKGROUND LAYER
======================= */
.main-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: -1;
    /* stays behind header content */
}

/* When scrolled */
.main-header.shrink::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
        backdrop-filter: blur(15px);
        opacity: 0;
}

/* optional child animation */
.main-header * {
    transition: transform 0.3s ease;
}


/* optional: smoothen font rendering on blur backgrounds */
.main-header {
    -webkit-backdrop-filter: none;
    will-change: transform, backdrop-filter;
}


/* ----footer text --- */

#exclusive {
    color: #555555;
    background: linear-gradient(45deg, #ffd21f 0%, #f5c400 18%, #fffbeb 46%, #f5c400 69%, #ffd21f 87%, #f5c400 87%, #ffd21f 100%);
    -webkit-background-clip: text;
    color: transparent;
}
