/* Custom styles for Tender Loving Communication */

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

/* Scroll reveal base - always visible by default for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animation - only applied when JS is active */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.animated.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* Custom selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

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

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Button hover lift effect */
button, a {
    transition: all 0.2s ease;
}

/* Card hover effects */
.group:hover .group-hover\:bg-teal-100 {
    transition: background-color 0.2s ease;
}

/* Form input transitions */
input, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}

/* Ensure hero text is readable */
#hero h1,
#hero p,
#hero a {
    position: relative;
    z-index: 10;
}

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