/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Service Cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Benefit Cards */
.benefit-card {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.5s ease;
}

.benefit-card.reveal-hidden {
    opacity: 0;
    transform: translateX(-30px);
}

.benefit-card:nth-child(2).reveal-hidden {
    transform: translateX(30px);
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .font-serif {
    color: #1f1c19 !important;
}

.navbar-scrolled .menu-line {
    background: #1f1c19 !important;
}

.navbar-scrolled a:not(.bg-terracotta-600) {
    color: #564e46 !important;
}

.navbar-scrolled a:not(.bg-terracotta-600):hover {
    color: #c23618 !important;
}

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

.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* ===== Menu Button Animation ===== */
.menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-hidden,
    .service-card,
    .service-card.reveal-hidden,
    .benefit-card,
    .benefit-card.reveal-hidden {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .animate-fade-in-up {
        animation: none !important;
        opacity: 1 !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Selection ===== */
::selection {
    background: #d44a28;
    color: #faf8f5;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f5;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a89f94;
}
