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

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

/* Prevent FOUC — keep body visible */
body {
    opacity: 1;
}

/* Navbar scroll state */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#navbar.nav-scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile nav link */
.mobile-nav-link {
    border-radius: 0.75rem;
}

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

.hero-photo-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

/* Decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #3d7a4f;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #D4A574;
    bottom: 10%;
    left: 20%;
    opacity: 0.2;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #8bb896;
    top: 40%;
    left: 5%;
    opacity: 0.3;
}

/* Floating stat cards */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 1s;
}

.card-3 {
    animation-delay: 2s;
}

.card-4 {
    animation-delay: 1.5s;
}

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

/* Service cards */
.service-card {
    cursor: default;
}

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

/* Contact form */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(61, 122, 79, 0.15);
}

/* Gallery hover */
.gallery-img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transition */
#mobile-menu {
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(27, 67, 50, 0.1);
}

/* Subtle pattern overlay on hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 36, 27, 0.85) 0%, rgba(27, 67, 50, 0.7) 50%, rgba(27, 67, 50, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

#hero > .relative {
    z-index: 2;
}

/* Subtle texture on cream sections */
.bg-cream-50 {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(212, 165, 116, 0.04) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(61, 122, 79, 0.04) 0%, transparent 60%);
}
