/* ============================================
   THOMARITAVILLE — Custom Styles
   ============================================ */

/* ---- Base / Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #0d9488;
    color: white;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---- Navbar ---- */
#navbar {
    color: rgba(15, 23, 42, 0.85);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #0f172a;
}

#navbar.scrolled .nav-link {
    color: rgba(15, 23, 42, 0.7);
}

#navbar.scrolled .nav-cta {
    color: #0d9488;
    border-color: #0d9488;
}

#navbar.scrolled .nav-menu-btn {
    color: #0f172a;
}

/* Hero state navbar */
#navbar:not(.scrolled) {
    color: rgba(255, 255, 255, 0.9);
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar:not(.scrolled) .nav-cta {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ---- Hero Animations ---- */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 2.5s ease-in-out infinite;
}

.scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ---- Menu Tabs ---- */
.menu-tab {
    color: #94a3b8;
    background: transparent;
}

.menu-tab:hover {
    color: #0d9488;
}

.menu-tab.active {
    color: #ffffff;
    background: #0d9488;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* ---- Menu Items ---- */
.menu-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item h3 {
    font-weight: 400;
}

/* ---- Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* ---- Mobile Menu ---- */
#mobile-menu {
    box-shadow: none;
}

#mobile-menu.open {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link {
    font-size: 1.125rem;
}

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

/* ---- Form Inputs ---- */
input[type="date"] {
    color: #0f172a;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(130deg);
    cursor: pointer;
}

/* ---- Utility ---- */
@media (max-width: 639px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
