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

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

/* ========== NAVBAR ========== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(30, 41, 59, 0.7) !important;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488 !important;
}

#navbar.scrolled .font-serif {
    color: #0f172a !important;
}

#navbar.scrolled .font-sans.text-teal-200 {
    color: #0d9488 !important;
}

#navbar.scrolled .w-9 {
    background-color: #0d9488 !important;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

/* ========== MARQUEE ========== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========== HERO ========== */
.hero-section {
    position: relative;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== SECTION DIVIDER ========== */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(13, 148, 136, 0.2), transparent);
}

/* ========== FORM INPUTS ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ========== BUTTON HOVER EFFECTS ========== */
a[href^="tel"] {
    text-decoration: none;
}

/* ========== MAP ========== */
iframe {
    filter: saturate(0.8) brightness(1.02);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) brightness(1);
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ========== SELECTION ========== */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f172a;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .marquee-track {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
}
