/* Custom styles for Well Done Cleaning Service */

:root {
    --forest-50: #f0f7f0;
    --forest-700: #235423;
    --forest-900: #163316;
    --dark-900: #0a0f0a;
    --dark-800: #0f160f;
    --dark-700: #141e14;
    --gold-400: #d4af5a;
    --gold-500: #c9a227;
    --cream-50: #faf8f4;
    --cream-200: #ede6d8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--dark-900);
    color: var(--cream-50);
    overflow-x: hidden;
}

/* Navbar scroll effect */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 15, 10, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
.mobile-line {
    transition: all 0.3s ease;
}

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

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

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(212, 175, 90, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: var(--cream-50);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-900);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.floating-delay {
    animation: float 4s ease-in-out 1s infinite;
}

/* Select dropdown styling */
select option {
    background: var(--dark-700);
    color: var(--cream-50);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

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

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-card::before {
        font-size: 4rem;
        top: -5px;
        left: 12px;
    }
}

@media (max-width: 640px) {
    #hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
