/* ========================================
   Roger Kamp, Realtor — Custom Styles
   Classic & Elegant Real Estate Website
   ======================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #D4A84B;
    color: #0A1628;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 168, 75, 0.15);
}

.navbar-scrolled .nav-link {
    color: #FAF8F4;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    display: block;
    transition: all 0.3s ease;
}

#mobile-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* --- Hero Animations --- */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-stats {
    animation: slideUp 0.8s ease forwards 1s;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

/* --- Area Items --- */
.area-item {
    border-left: 2px solid transparent;
    padding-left: 16px;
    transition: border-color 0.3s ease;
}

.area-item:hover {
    border-left-color: #D4A84B;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }

/* --- Form Inputs --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-stats {
        gap: 8px !important;
    }

    .hero-stats > div {
        flex: 1;
    }

    .hero-stats .font-serif {
        font-size: 2rem !important;
    }
}
