/* Custom Styles for Cozy Cottage On Main */

/* Base Typography Adjustments */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevent layout shift from fonts */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Smooth Scroll Offset for Fixed Header */
section[id] {
    scroll-margin-top: 80px;
}

/* Subtle Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal on Scroll Classes - Progressive Enhancement */
.reveal-on-scroll {
    opacity: 1; /* Default visible for no-JS */
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Form Focus States */
input:focus, textarea:focus {
    outline: none;
    border-bottom: 1px solid #1A3C28;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Image hover zoom container fix */
img {
    max-width: 100%;
    height: auto;
}
