/* ===== CUSTOM STYLES ===== */

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

/* Selection color */
::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: #134e4a;
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5eead4;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reduced motion - always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.menu-open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.menu-closed {
    opacity: 0;
    pointer-events: none;
}

/* ===== HEADER SCROLL STATE ===== */
#site-header.scrolled {
    background: rgba(10, 31, 34, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(204, 251, 241, 0.1);
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href="#menu"],
a[href="#visit"],
a[href="tel:+19088696098"] {
    position: relative;
    overflow: hidden;
}

/* ===== IMAGE HOVER ===== */
img {
    transition: transform 0.5s ease;
}

/* ===== CARD HOVER ===== */
.bg-teal-900\/50 {
    transition: background-color 0.4s ease, transform 0.3s ease;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #134e4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}

/* ===== LOADING STATE ===== */
.page-loaded #site-header {
    transition: background-color 0.5s ease;
}
