/* Dark Brown */
:root {

    --primary-color: #755438;
    --secondary-color: #E0C58B;
    --accent-color: #B9914C;
    --header: #60452F;
    --heading-color: #45372C;
    --text-color: #5E5145;
    --light-bg: #FAF3E7;
    --white: #FFFFFF;
    --button-color: #60452F;
    --button-fill: #D6B777;
    --border-color: #E5D7C2;

    --gradient:
        radial-gradient(circle at 12% 20%,
            color-mix(in srgb, var(--accent-color) 20%, transparent),
            transparent 28%),
        radial-gradient(circle at 88% 80%,
            color-mix(in srgb, var(--secondary-color) 14%, transparent),
            transparent 32%),
        linear-gradient(120deg,
            var(--heading-color) 0%,
            var(--primary-color) 100%);

    --shadow-sm: 0 2px 10px color-mix(in srgb,
            var(--heading-color) 8%,
            transparent);

    --shadow-md: 0 10px 30px color-mix(in srgb,
            var(--heading-color) 16%,
            transparent);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Dark Pink */
/* :root {

    --primary-color: #4A1F32;
    --secondary-color: #F3E7CB;
    --accent-color: #D6B96D;
    --header: #4A1F32;
    --heading-color: #321522;
    --text-color: #493B3F;
    --light-bg: #FBF6ED;
    --white: #FFFFFF;
    --button-color: #4A1F32;
    --button-fill: #D6B96D;
    --border-color: #E7DCCB;

    --gradient:
        radial-gradient(circle at 12% 20%,
            color-mix(in srgb, var(--accent-color) 20%, transparent),
            transparent 28%),
        radial-gradient(circle at 88% 80%,
            color-mix(in srgb, var(--secondary-color) 14%, transparent),
            transparent 32%),
        linear-gradient(120deg,
            var(--heading-color) 0%,
            var(--primary-color) 100%);

    --shadow-sm: 0 2px 10px color-mix(in srgb,
            var(--heading-color) 8%,
            transparent);

    --shadow-md: 0 10px 30px color-mix(in srgb,
            var(--heading-color) 16%,
            transparent);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
} */

/* Purple */
/* :root {
--primary-color: #5B2C83;
    --secondary-color: #FDEBD0;
    --accent-color: #FF9933;
    --header: #2E1A5E;
    --heading-color: #241047;
    --text-color: #43384F;

    --light-bg: #FFF9F0;
    --white: #FFFFFF;

    --button-color: #4B2A7B;
    --button-fill: #FF9933;

    --border-color: #E6D9C3;

    --gradient:
        radial-gradient(circle at 12% 20%,
            color-mix(in srgb, var(--accent-color) 20%, transparent),
            transparent 28%),
        radial-gradient(circle at 88% 80%,
            color-mix(in srgb, var(--secondary-color) 14%, transparent),
            transparent 32%),
        linear-gradient(120deg,
            var(--heading-color) 0%,
            var(--primary-color) 100%);

    --shadow-sm: 0 2px 10px color-mix(in srgb,
            var(--heading-color) 8%,
            transparent);

    --shadow-md: 0 10px 30px color-mix(in srgb,
            var(--heading-color) 16%,
            transparent);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
} */

/* Dark Gold */
/* :root {

    --primary-color: #F2A900;
    --secondary-color: #F9E6A8;
    --accent-color: #CC6F00;
    --header: #4D2A00;
    --heading-color: #4D2A00;
    --text-color: #43384F;
    --light-bg: #FFF9F0;
    --white: #FFFFFF;
    --button-color: #4D2A00;
    --button-fill: #F2A900;
    --border-color: #F9E6A8;

    --gradient:
        radial-gradient(circle at 12% 20%,
            color-mix(in srgb, var(--accent-color) 20%, transparent),
            transparent 28%),
        radial-gradient(circle at 88% 80%,
            color-mix(in srgb, var(--secondary-color) 14%, transparent),
            transparent 32%),
        linear-gradient(120deg,
            var(--heading-color) 0%,
            var(--primary-color) 100%);

    --shadow-sm: 0 2px 10px color-mix(in srgb,
            var(--heading-color) 8%,
            transparent);

    --shadow-md: 0 10px 30px color-mix(in srgb,
            var(--heading-color) 16%,
            transparent);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
} */

*,
*::before,
*::after {
    border-color: var(--border-color);
}

/* =========================================================
   HEADER OFFSET (spacer height, no padding / margin used)
========================================================= */
.header-spacer {
    display: block;
    width: 100%;
    height: 78px;
    flex-shrink: 0;
}

/* =========================================================
   TEMPLE FILL BUTTON
   Indigo button with saffron border. On hover a saffron
   fill rises from the bottom and the text turns dark indigo.
========================================================= */
.animated-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: var(--button-color) !important;
    color: var(--white) !important;

    border: 2px solid var(--accent-color) !important;
    border-radius: 10px !important;

    letter-spacing: 0.04em;

    transition:
        color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.2s ease;
}

.animated-button::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;

    background: var(--button-fill);

    transition: height 0.4s ease;
    z-index: -1;
}

.animated-button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;

    background: var(--accent-color);

    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.animated-button:hover {
    color: var(--heading-color) !important;

    box-shadow: 0 10px 24px color-mix(in srgb,
            var(--header) 30%,
            transparent);
}

.animated-button:hover::before {
    height: 100%;
}

/* =========================================================
   ACTIVE STATE (Book Now button on the booking page)
   script.js adds the "active" class to the link of the
   current page, so the button looks filled and ringed.
========================================================= */
.animated-button.active {
    color: var(--heading-color) !important;
    border-color: var(--white) !important;

    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--accent-color) 55%, transparent),
        0 10px 24px color-mix(in srgb, var(--header) 30%, transparent);
}

.animated-button.active::before {
    height: 100%;
}

.animated-button.active i {
    color: var(--heading-color) !important;
}

/* Icons follow the text color */
.animated-button i {
    color: inherit !important;
    transform: none !important;
}

.animated-button:hover i {
    color: var(--heading-color) !important;
    transform: none !important;
}

/* Click */
.animated-button:active {
    transform: scale(0.97);
}

.animated-button .button-arrow {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    transform: none !important;
    transition: none !important;
}

.animated-button:hover .button-arrow {
    transform: none !important;
}

.animated-button .button-arrow i {
    position: relative;

    transform: none !important;
    transition: none !important;
}

.animated-button:hover .button-arrow i {
    transform: none !important;
    color: var(--heading-color) !important;
}

/* =========================================================
   MOBILE MENU BUTTON
   Mobile / Tablet = visible
   Desktop 1024px+ = hidden
========================================================= */

#mobileMenuBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media (min-width: 1024px) {

    #mobileMenuBtn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

}


/* =========================================================
   SCROLL / MOTION SUPPORT
========================================================= */

body {
    overflow-x: clip;
}


/* Element is held invisible until its scroll animation starts */

.sa-hidden {
    opacity: 0;
    visibility: hidden;
}


/* =========================================================
   LENIS
========================================================= */

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}


/* =========================================================
   GALLERY CARD ANIMATION
========================================================= */

@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(26px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: none;
    }

}

.gallery-card-in,
.hg-card {
    animation: cardIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hg-card:nth-child(2) {
    animation-delay: 0.08s;
}

.hg-card:nth-child(3) {
    animation-delay: 0.16s;
}

.hg-card:nth-child(4) {
    animation-delay: 0.24s;
}


/* =========================================================
   TILT CARDS
========================================================= */

.tilt-card {
    will-change: transform;
    transition:
        transform 0.25s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   TEMPLE DISTANCE BADGE (hero "80 m from Main Temple")
========================================================= */

@keyframes templeGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 55%, transparent);
    }

    50% {
        box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent-color) 0%, transparent);
    }

}

.temple-badge {
    animation: templeGlow 2.4s ease-in-out infinite;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sa-hidden {
        opacity: 1;
        visibility: visible;
    }

    .gallery-card-in,
    .hg-card {
        animation: none;
    }

    .temple-badge {
        animation: none;
    }

}



@keyframes footerDotsFall {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 22px;
    }

    /* 22px = background-size jetlu */
}

.footer-dots {
    animation: footerDotsFall 3s linear infinite;
}

/* jemne animation pasand nathi (accessibility setting) temne band */
@media (prefers-reduced-motion: reduce) {
    .footer-dots {
        animation: none;
    }
}


@keyframes heroDotsFall {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 24px;
    }

    /* 24px = background-size jetlu */
}

#pageHero .hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--accent-color) 45%, transparent) 1px,
            transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.5;
    animation: heroDotsFall 4s linear infinite;
}