/* Custom styles that extend Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(161, 46, 46, 0.2);
    color: #6c2020;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a12e2e;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Navbar transition */
#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Custom button hover effects */
a[href^="tel:"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* Ensure form inputs have proper focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(161, 46, 46, 0.1);
}

/* Print styles */
@media print {
    nav, #mobile-menu, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
