/* === Custom Styles for Erick's Cleaning Service === */

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

/* === Navbar === */
#navbar {
    background: rgba(253, 251, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.08);
}

/* === Hero === */
#hero {
    min-height: 100vh;
}

/* === 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, #d4c5a9, #a7f3d0);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* === Feature Cards === */
.feature-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
    background: rgba(253, 251, 243, 0.6);
}

/* === Mobile Menu === */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* === Form Styles === */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='2'%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;
}

/* === Selection === */
::selection {
    background: rgba(6, 78, 59, 0.2);
    color: #064e3b;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === Focus styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    #contact .grid {
        gap: 3rem;
    }
}

@media (max-width: 360px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .font-serif.text-4xl,
    .font-serif.text-5xl {
        font-size: 2rem;
    }
}

/* === Print styles === */
@media print {
    #navbar,
    .mobile-menu {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
