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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #B86B4A;
    color: #FDF8F2;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F2;
}
::-webkit-scrollbar-thumb {
    background: #B86B4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9A5236;
}

/* === Scroll Indicator Animation === */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* === Service Card Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card.reveal {
        animation: fadeUp 0.8s ease forwards;
    }

    .service-card.reveal:nth-child(1) { animation-delay: 0.1s; }
    .service-card.reveal:nth-child(2) { animation-delay: 0.2s; }
    .service-card.reveal:nth-child(3) { animation-delay: 0.3s; }
    .service-card.reveal:nth-child(4) { animation-delay: 0.4s; }
    .service-card.reveal:nth-child(5) { animation-delay: 0.5s; }
    .service-card.reveal:nth-child(6) { animation-delay: 0.6s; }
}

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

/* === Navbar Transition === */
.nav-scrolled {
    background: rgba(253, 248, 242, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(184, 107, 74, 0.1);
}

.nav-scrolled .nav-link {
    color: #2C2420;
}

/* === Mobile Menu Animation === */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* === Image Hover === */
img {
    display: block;
    max-width: 100%;
}

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

/* === Utility === */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
}
</style>
