/* =============================================
   Tarantino's Family Cuts — Custom Styles
   Classic & Elegant · Emerald + Cream Palette
   ============================================= */

/* --- Custom Properties --- */
:root {
    --color-emerald-800: #166534;
    --color-emerald-900: #14532d;
    --color-emerald-950: #052e16;
    --color-cream-50: #fefdf8;
    --color-cream-100: #fdf9f0;
    --color-forest-900: #1a2e23;
    --color-forest-950: #091510;
}

/* --- Base Typography --- */
html {
    scroll-behavior: smooth;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-cream-100);
}
::-webkit-scrollbar-thumb {
    background: var(--color-emerald-800);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald-700);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Hidden initial state for JS-gated reveal (progressive enhancement) */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Card Hover Effect --- */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
}

/* --- Navbar Transition --- */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 45, 22, 0.08);
}

.navbar-scrolled .nav-text-color {
    color: #1a2e23 !important;
}

.navbar-scrolled .nav-text-sub {
    color: #166534 !important;
}

.navbar-scrolled .hamburger-line {
    background: #1a2e23 !important;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- Scroll Line Animation --- */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

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

/* --- Decorative Divider --- */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-emerald-800), var(--color-emerald-400));
    border-radius: 2px;
}

/* --- Focus Styles --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-emerald-800);
    outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-hidden {
        opacity: 1 !important;
        transform: none !important;
    }
    .animate-scroll-line {
        animation: none;
    }
    .card-hover:hover {
        transform: none;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
