/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #c4a882;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a04418;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.08);
}

#navbar.scrolled .nav-text {
    color: #3D2B1F;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #A04418;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ===== HERO STAT CARDS ===== */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -2s;
}

.stat-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

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

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

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #3D2B1F;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-link:hover {
    background-color: #FDF0EA;
}

/* ===== SCROLL REVEAL ===== */
.reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-item {
        transition: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-card {
        animation: none;
    }
}

/* ===== FORM STYLES ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C5423' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== AREA CARDS ===== */
.area-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.area-card img {
    transition: transform 0.7s ease;
}

.area-card:hover img {
    transform: scale(1.08);
}

/* ===== FOOTER LINKS ===== */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f3a582;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}
