/* Custom styles beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf9f7;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a8a8a;
}

/* Selection */
::selection {
    background: #f06040;
    color: #fff;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
#mobile-menu-btn.open #menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.open #menu-line-2 {
    opacity: 0;
}
#mobile-menu-btn.open #menu-line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Image reveal animation */
.image-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.image-reveal.revealed {
    clip-path: inset(0 0 0 0);
}

/* Fade-up reveal for below-fold content */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .image-reveal {
        clip-path: inset(0 0 0 0);
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Form select arrow */
select {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'12\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'%238a8a8a\' stroke-width=\'2\'%3e%3cpath d=\'M6 9l6 6 6-6\'/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(208, 206, 201, 0.5);
}

/* CTA button hover */
.cta-btn {
    position: relative;
    overflow: hidden;
}
.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    transition: left 0.35s ease;
    z-index: 0;
}
.cta-btn:hover::before {
    left: 0;
}
.cta-btn > * {
    position: relative;
    z-index: 1;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.08);
}
</style>
