/* Custom styles for Beachboard Homes */

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Hero card stagger animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-card:nth-child(1) { animation-delay: 0.2s; }
.hero-card:nth-child(2) { animation-delay: 0.4s; }
.hero-card:nth-child(3) { animation-delay: 0.6s; }

/* Service card image overlay */
.service-card .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 43, 31, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .img-overlay {
    opacity: 1;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(61, 43, 31, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Custom selection color */
::selection {
    background: #e05528;
    color: white;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(224, 85, 40, 0.15);
}

/* Print styles */
@media print {
    .hero-bg {
        background-attachment: scroll !important;
    }
    
    nav, footer, .reveal {
        display: none !important;
    }
}
