/* ============================================
   THE ATLAS GROUP — Premium Real Estate
   Custom Styles
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0A0A0A;
    color: #E8E4DF;
}

::selection {
    background-color: rgba(201, 168, 124, 0.3);
    color: #F5F0EB;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #3A3530;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A87C;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 124, 0.1);
}

#navbar.scrolled .menu-line {
    background: #E8E4DF;
}

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

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ---- Service Cards ---- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C9A87C, #8B3A42);
    transition: width 0.5s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* ---- Listing Cards ---- */
.listing-card {
    position: relative;
}

.listing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201,168,124,0.1), transparent, rgba(114,47,55,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.listing-card:hover::before {
    opacity: 1;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    color: rgba(201, 168, 124, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* ---- Input Focus States ---- */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(201, 168, 124, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.08);
}

/* ---- Gold Gradient Accent ---- */
.gold-gradient {
    background: linear-gradient(135deg, #C9A87C 0%, #A88B5A 50%, #D4B896 100%);
}

/* ---- Button Hover Glow ---- */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* ---- Scroll Reveal (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card::after,
    .listing-card::before,
    .service-card > div:first-child,
    .listing-card img {
        transition: none !important;
    }
    
    .service-card:hover::after {
        width: 0;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet adjustments if needed */
}
