/* Custom styles for Coconut Hale */

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

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #134e4a;
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle card hover */
.reveal:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Nav active state */
nav a.active {
    color: #0d9488;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}
