/* Custom styles — extends Tailwind */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: rgba(229, 90, 40, 0.15);
    color: #1a1614;
}

/* Header scroll state */
#site-header.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Fade-in animation for scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a08c7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Subtle image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Nav active state */
nav a.active {
    color: #e55a28;
}

/* Thin decorative divider */
.divider-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, #e55a28, transparent);
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

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

/* FAQ icon rotation */
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* FAQ content transition */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Form input focus glow */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(229, 90, 40, 0.08);
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
    transform: scale(0.98);
}
