/* Custom styles for Miller's Pro Roofing & Siding */

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

/* Base typography */
body {
    font-family: 'Lora', Georgia, serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Decorative ornamental line */
.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4a7a4a, #8fb88f);
    margin: 1rem auto;
}

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

/* Form inputs */
input,
textarea,
select {
    font-family: 'Lora', Georgia, serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4a7a4a;
    box-shadow: 0 0 0 3px rgba(74, 122, 74, 0.15);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* 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.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    .animate-bounce {
        display: none;
    }

    body {
        color: #1a1a1a;
        background: white;
    }
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Ensure images have no layout shift */
img {
    max-width: 100%;
    height: auto;
}
