/* Custom styles for TnT Nursery */

/* Ensure consistent box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Selection color */
::selection {
    background: #ffe8de;
    color: #353535;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff7a54;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Navbar scroll effect */
#nav.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* Image lazy load fade-in (progressive enhancement) */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

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