/* Basic Setup already covered by Tailwind resets, adding specifics */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clean FastView Fade Transition */
.fv-swiper .swiper-slide {
    transition-timing-function: ease-in-out !important;
}

/* Ensure no movement/scaling during transitions as requested */
.swiper-slide img {
    transform: none !important;
    transition: none !important;
}

/* Custom Utilities for broken grid / overlaps if needed beyond Tailwind */
.shadow-custom {
    box-shadow: 20px 20px 0px 0px rgba(197, 169, 110, 0.2);
}

/* Brush Paint Underline (Improved Readability) */
.brush-paint-underline {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.brush-paint-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 45%;
    /* Lowered height so it sits more behind the bottom of text */

    /* Simulate rough/dry brush edges with clip-path */
    clip-path: polygon(2% 6%, 15% 4%, 30% 0%, 50% 3%, 70% 1%, 85% 4%, 98% 0%,
            100% 10%, 97% 30%, 99% 50%, 96% 70%, 100% 90%, 98% 100%,
            85% 97%, 70% 100%, 50% 98%, 30% 99%, 15% 96%, 0% 100%,
            2% 85%, 0% 70%, 3% 50%, 1% 30%, 0% 10%);

    /* Much more subtle transparency for readability */
    background: linear-gradient(105deg,
            rgba(143, 168, 147, 0.3) 0%,
            /* theme-green at 30% */
            rgba(197, 169, 110, 0.25) 100%
            /* theme-gold at 25% */
        );

    transform: rotate(-1deg);
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    /* Using rgba for control instead */
}

/* Dynamic Elegant Background */
@keyframes gradient-elegant {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bg-dynamic-elegant {
    background: linear-gradient(-45deg, #fbf9f4, #f1f5f2, #fffef9, #f4f6f3);
}

/* Luxury Button Style */
.btn-luxury {
    background: linear-gradient(135deg, #8FA893 0%, #759179 100%);
    /* Sage Green Gradient */
    color: white;
    border-radius: 9999px;
    /* Pill shape */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(143, 168, 147, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
}

/* Gold Gradient Overlay for Hover */
.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C5A96E 0%, #AA8E55 100%);
    /* Elegant Gold */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Content stays on top */
.btn-luxury span,
.btn-luxury svg {
    position: relative;
    z-index: 1;
}

/* Hover Effects */
.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 169, 110, 0.4);
    /* Gold shadow */
}

.btn-luxury:hover::before {
    opacity: 1;
}

/* Active Click Effect */
.btn-luxury:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(197, 169, 110, 0.3);
}

/* Shimmer Animation */
@keyframes shimmer {
    100% {
        left: 125%;
    }
}

.btn-luxury::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
}

.btn-luxury:hover::after {
    animation: shimmer 0.8s forwards;
}

/* Gold Variant */
.btn-luxury-gold {
    background: linear-gradient(135deg, #C5A96E 0%, #AA8E55 100%);
    box-shadow: 0 4px 12px rgba(197, 169, 110, 0.3);
}

.btn-luxury-gold::before {
    background: linear-gradient(135deg, #8FA893 0%, #759179 100%);
}

.btn-luxury-gold:hover {
    box-shadow: 0 8px 20px rgba(143, 168, 147, 0.3);
}

/* --- Added: Loading Overlay & Page Transition --- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #F7F5F0;
    /* theme-beige */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: loader-in 0.8s ease-out forwards;
}

@keyframes loader-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* --- Custom Professional Gallery Modal --- */
#gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.modal-container {
    position: relative;
    max-width: 85vw;
    max-height: 80vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gallery-modal.active .modal-container {
    transform: scale(1);
}

#modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Close Button (Sophisticated X) */
.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.modal-close:hover {
    background: #C5A96E;
    transform: rotate(90deg) scale(1.1);
    border-color: white;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: white;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

/* Navigation Buttons (Sleek Professional) */
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.modal-nav:hover {
    background: rgba(143, 168, 147, 0.8);
    border-color: white;
    box-shadow: 0 0 20px rgba(143, 168, 147, 0.4);
}

.modal-prev {
    left: 40px;
}

.modal-next {
    right: 40px;
}

.modal-nav svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.modal-prev:hover svg {
    transform: translateX(-4px);
}

.modal-next:hover svg {
    transform: translateX(4px);
}

/* Scroll Lock */
body.modal-open {
    overflow: hidden !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95vw;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .modal-nav {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.4);
    }

    .modal-prev {
        left: 15px;
    }

    .modal-next {
        right: 15px;
    }
}

/* Custom Tailwind Overrides */
@media (min-width: 1024px) {
    .lg\:p-12 {
        padding: 1rem;
    }
}
/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    translate: 0 40px;
    filter: blur(5px);
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), translate 1.5s cubic-bezier(0.22, 1, 0.36, 1), filter 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
}
