/* Custom styles for Mike's Mobile Home Service */

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

/* Custom font classes */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

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

::-webkit-scrollbar-track {
    background: #f5f3ee;
}

::-webkit-scrollbar-thumb {
    background: #4a7c4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d4e2d;
}

/* Hero asymmetric layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-content {
        padding: 4rem 1.5rem;
    }
    
    .hero-image {
        height: 50vh;
    }
}

/* Editorial headline styling */
.headline-accent {
    position: relative;
    display: inline-block;
}

.headline-accent::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    width: 100%;
    height: 0.15rem;
    background-color: #4a7c4a;
    z-index: -1;
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form inputs */
.form-input {
    background-color: #f5f3ee;
    border: 1px solid #ddd8cc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4a7c4a;
    box-shadow: 0 0 0 3px rgba(74, 124, 74, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
.btn-primary {
    background-color: #4a7c4a;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2d4e2d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 78, 45, 0.2);
}

/* Newsletter section */
.newsletter-section {
    background: linear-gradient(135deg, #2d4e2d 0%, #1f351f 100%);
}

/* Navigation background on scroll */
nav.scrolled {
    background-color: rgba(250, 249, 246, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a7c4a;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .mobile-menu,
    .btn-primary,
    form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}
