/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; height: auto; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #dfb87e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C0603A; }

/* ===== HEADER ===== */
#header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#header.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#header.scrolled .nav-link { color: rgba(44,40,37,0.7) !important; }
#header.scrolled .menu-line { background: #2C2825; }

/* ===== NAV LINKS ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0603A;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #C0603A !important; }

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}
#mobile-menu.open .mobile-nav-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}
#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }

.mobile-nav-link {
    opacity: 0;
}

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

/* Menu button animation */
.menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* ===== HERO ===== */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb:nth-child(3) { animation-delay: -3s; animation-duration: 10s; }
.hero-orb:nth-child(4) { animation-delay: -5s; animation-duration: 12s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Hero entrance animations */
.hero-eyebrow {
    animation: heroIn 0.8s ease both;
    animation-delay: 0.2s;
}
.hero-eyebrow,
h1,
.hero-sub,
.hero-ctas,
.hero-trust {
    opacity: 0;
    transform: translateY(24px);
}
h1 { animation: heroIn 0.8s ease both; animation-delay: 0.4s; }
.hero-sub { animation: heroIn 0.8s ease both; animation-delay: 0.6s; }
.hero-ctas { animation: heroIn 0.8s ease both; animation-delay: 0.75s; }
.hero-trust { animation: heroIn 0.8s ease both; animation-delay: 0.9s; }

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

/* ===== SERVICE CARDS ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* ===== FAQ ===== */
.faq-item {
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 20px rgba(192, 96, 58, 0.06);
}
.faq-icon {
    transition: transform 0.35s ease, background 0.35s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #C0603A;
}
.faq-item.active .faq-icon svg {
    stroke: white;
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-content.open {
    max-height: 300px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .font-serif.text-4xl { font-size: 2.25rem; }
    .font-serif.text-5xl { font-size: 2rem; }
}
