/* Clean King Custom Stylesheet - Luxury Premium Redesign v5.0 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --color-primary: #0E233B;       /* Luxury Dark Navy */
    --color-secondary: #173A63;     /* Dark Steel Blue */
    --color-accent: #E8C98E;        /* Soft Gold Accent */
    --color-background: #FAFAF8;    /* Warm Soft Off-White */
    --color-card: #FFFFFF;          /* Pure White */
    --color-text: #111111;          /* Near Black */
    --color-muted: #6E6E73;         /* Apple Muted Gray */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.625;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* Custom Selection */
::selection {
    background-color: rgba(232, 201, 142, 0.25);
    color: var(--color-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: rgba(14, 35, 59, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 35, 59, 0.25);
}

/* Preloader Styling */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-bar {
    width: 120px;
    height: 1px;
    border-radius: 2px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}
.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    animation: preloaderRun 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderRun {
    0% { width: 0%; }
    50% { width: 45%; }
    100% { width: 100%; }
}

/* Floating Glass Navbar & General Styling */
.navbar-luxury {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(250, 250, 248, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Luxury Glassmorphism Card System */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 40px -10px rgba(14, 35, 59, 0.03),
                0 2px 10px -5px rgba(14, 35, 59, 0.01),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}
.glass-card:hover {
    box-shadow: 0 24px 60px -15px rgba(14, 35, 59, 0.08),
                0 4px 15px -5px rgba(14, 35, 59, 0.03);
    border-color: rgba(232, 201, 142, 0.4);
}

/* Apple-style Scroll Reveal System */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Soft Moving Gradient Background */
.gradient-bg-ambient {
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F5ED 50%, #FAF6EE 100%);
    position: relative;
    overflow: hidden;
}
.gradient-bg-ambient::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(232, 201, 142, 0.07) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: floatingOrb 25s ease-in-out infinite alternate;
}
.gradient-bg-ambient::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(23, 58, 99, 0.03) 0%, transparent 60%);
    filter: blur(50px);
    pointer-events: none;
    animation: floatingOrb 20s ease-in-out infinite alternate-reverse;
}

@keyframes floatingOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -20px) scale(1.15); }
}

/* Lens Smooth Scroll */
html.lenis {
    height: auto;
}
.lenis-clean {
    scroll-behavior: auto !important;
}

/* Back to Top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 40;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: var(--color-primary);
    color: white;
}

/* Sticky Mobile CTA styling */
#sticky-mobile-cta {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 45;
    display: none;
}
@media (max-width: 767px) {
    #sticky-mobile-cta {
        display: block;
    }
}

/* Testimonial Auto Scroll Marquee Styles */
.marquee-container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}
.marquee-card {
    width: 290px;
    margin-right: 1.25rem;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .marquee-card {
        width: 380px;
        margin-right: 2rem;
    }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); }
}

/* Luxury Input Field styling */
.luxury-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(14, 35, 59, 0.15);
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.luxury-input:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
    padding-left: 0.75rem;
    background: rgba(232, 201, 142, 0.02);
}
.luxury-select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(14, 35, 59, 0.15);
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    outline: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
    -webkit-appearance: none;
}
.luxury-select:focus {
    border-bottom-color: var(--color-accent);
}

/* Step calculator items */
.calc-step {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Apple-style Accordion styling */
.faq-border {
    border-bottom: 1px solid rgba(14, 35, 59, 0.08);
}

/* AI Chat widget styles customized for Luxury theme */
.chat-window {
    box-shadow: 0 20px 50px -10px rgba(14, 35, 59, 0.15),
                0 5px 20px -5px rgba(14, 35, 59, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Magnetic luxury buttons and interactions */
.btn-luxury {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-luxury::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--color-accent);
    z-index: -1;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-luxury:hover::after {
    height: 100%;
}
.btn-luxury:hover {
    color: var(--color-primary) !important;
}

/* Overflow Luxury House photo tilt/lighting follow overlay */
.interactive-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.interactive-image {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.interactive-image-container:hover .interactive-image {
    transform: scale(1.05);
}
.image-light-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.interactive-image-container:hover .image-light-overlay {
    opacity: 1;
}

/* Page Transition Styling */
#page-transition {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    z-index: 99995;
    transform: translateY(100%);
    pointer-events: none;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .marquee-track {
        animation: none !important;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    .marquee-card {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }
    #preloader {
        display: none !important;
    }
}

/* Premium Gold CTA Button */
.btn-gold {
    background-color: var(--color-accent) !important;
    color: var(--color-primary) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-gold:hover {
    background-color: #dfb76c !important;
    transform: translateY(-1px) !important;
}
.btn-gold:active {
    transform: translateY(0) !important;
}
