/* ===================================
   One Real Estate — Custom Styles
   Premium Dark Luxury Theme
   =================================== */

/* --- Custom Properties --- */
:root {
    --color-dark-900: #0a0f0d;
    --color-dark-800: #0d1410;
    --color-dark-700: #111c15;
    --color-dark-600: #162219;
    --color-emerald-500: #22c55e;
    --color-emerald-700: #15803d;
    --color-gold-400: #d4a853;
    --color-gold-500: #c9a227;
    --color-gold-600: #b8860b;
    --color-cream-50: #fdfbf7;
    --color-cream-100: #faf5eb;
    --color-cream-200: #f5edd6;
}

/* --- Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* --- Selection --- */
::selection {
    background: var(--color-gold-500);
    color: var(--color-dark-900);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-dark-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-600);
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* --- Menu Button --- */
.menu-line {
    display: block;
}

body.menu-open #menuBtn .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open #menuBtn .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open #menuBtn .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

/* --- Hero Image --- */
#hero img {
    animation: heroImageIn 1.2s ease-out forwards;
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: scale(1.03);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Floating Card --- */
#hero .absolute.-bottom-6 {
    animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Service Cards --- */
#services .group {
    backdrop-filter: blur(4px);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    #hero img {
        animation: none;
    }
    #hero .absolute.-bottom-6 {
        animation: none;
    }
}

/* --- Gold shimmer on buttons --- */
button[type="submit"],
a[href="tel:+13348463400"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after,
a[href="tel:+13348463400"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

button[type="submit"]:hover::after,
a[href="tel:+13348463400"]:hover::after {
    left: 100%;
}

/* --- Testimonial Cards --- */
#testimonials .group {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

/* --- Select Dropdown --- */
select option {
    background: var(--color-dark-700);
    color: var(--color-cream-100);
}

/* --- Area Cards Hover --- */
#areas .group {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#areas .group:hover {
    transform: translateY(-2px);
}

/* --- Input Focus --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3);
}
