/* ============================================
   Keller Williams Professional Partners
   Custom Styles — Bold Editorial Real Estate
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #C8A961;
    color: #0A1F35;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1F35;
}
::-webkit-scrollbar-thumb {
    background: #C8A961;
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4BA7A;
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(10, 31, 53, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C8A961;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #D4BA7A !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

/* --- Hero Section --- */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
    z-index: 1;
}

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

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C8A961, #D4BA7A);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

/* --- Form Inputs --- */
input:focus,
select:focus,
textarea:focus {
    border-color: #C8A961 !important;
    box-shadow: 0 0 0 4px rgba(200, 169, 97, 0.15) !important;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float-accent {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(3deg) translateY(-6px); }
}

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-reverse 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-accent 5s ease-in-out infinite;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    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; }

/* --- Gold Gradient Text --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #C8A961 0%, #E0CB93 50%, #C8A961 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Decorative Divider --- */
.divider-gold {
    position: relative;
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C8A961, transparent);
}

.divider-gold::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #C8A961;
    transform: translateX(-50%) rotate(45deg);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    #hero::after {
        height: 100px;
    }
    
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar, #mobile-menu, .floating-card-1, .floating-card-2, .floating-card-3 {
        display: none;
    }
}
