/* Custom styles — overrides and enhancements */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: menuIn 0.3s ease forwards;
}

#mobileMenu.hidden {
    animation: menuOut 0.25s ease forwards;
}

@keyframes menuIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes menuOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #064e3b;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #059669;
}

/* Decorative floating shapes in hero */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefdf8;
}

::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Service card hover tilt */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
