/* Sunflower Cottage — Custom Styles */

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Smooth image loading */
img {
    display: block;
}

/* Selection color */
::selection {
    background-color: #0f766e;
    color: #f0fdfa;
}

/* Custom underline animation for links */
a.hover-underline {
    position: relative;
}

a.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

a.hover-underline:hover::after {
    width: 100%;
}

/* Room card image container - consistent height */
.rounded-sm {
    overflow: hidden;
}

/* Ensure form inputs have proper height */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-size: 1rem;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        will-change: opacity, transform;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    .mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-teal-950,
    .bg-teal-900 {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}
