/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background-color: #fbc8bc;
    color: #27292e;
}

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E8735A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled {
    background-color: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 28, 32, 0.06);
}

/* Mobile Menu */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e3e6;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hero */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: fadeUp 0.8s ease forwards;
    }

    .hero-image {
        animation: fadeUp 0.8s ease 0.2s forwards;
        opacity: 0;
        transform: translateY(20px);
    }
}

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

/* Approach Cards */
@media (prefers-reduced-motion: no-preference) {
    .approach-card {
        opacity: 0;
        transform: translateY(24px);
    }

    .approach-card.revealed {
        animation: fadeUp 0.6s ease forwards;
    }

    .approach-card:nth-child(2).revealed { animation-delay: 0.1s; }
    .approach-card:nth-child(3).revealed { animation-delay: 0.2s; }
}

/* Service Cards */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
    }

    .service-card.revealed {
        animation: fadeUp 0.5s ease forwards;
    }

    .service-card:nth-child(2).revealed { animation-delay: 0.1s; }
    .service-card:nth-child(3).revealed { animation-delay: 0.2s; }
    .service-card:nth-child(4).revealed { animation-delay: 0.3s; }
}

/* FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content.open {
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* About Image */
@media (prefers-reduced-motion: no-preference) {
    .about-image {
        opacity: 0;
        transform: translateX(-20px);
    }

    .about-image.revealed {
        animation: slideRight 0.7s ease forwards;
    }

    .about-content {
        opacity: 0;
        transform: translateX(20px);
    }

    .about-content.revealed {
        animation: slideLeft 0.7s ease 0.15s forwards;
    }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E8735A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
