/* Custom styles — extends Tailwind with refined touches */

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

/* Selection color */
::selection {
    background-color: #df5532;
    color: #fefdfb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ec;
}
::-webkit-scrollbar-thumb {
    background: #d4ad64;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c49550;
}

/* Navbar glass effect on scroll */
nav.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

/* Hero animation */
.hero-title {
    animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-subtitle {
    animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    opacity: 0;
}
.hero-desc {
    animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    opacity: 0;
}
.hero-cta {
    animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
    opacity: 0;
}
.hero-stats {
    animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    opacity: 0;
}

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

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

/* Hamburger animation */
.menu-open #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open #bar2 {
    opacity: 0;
}
.menu-open #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Image hover parallax-like effect */
.group img {
    will-change: transform;
}

/* Subtle pattern overlay on sections */
section.bg-sand-100::before,
section.bg-cream-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(61,43,31,0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

section.bg-sand-100,
section.bg-cream-50 {
    position: relative;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #df5532;
    outline-offset: 2px;
}

/* Input focus */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(223, 85, 50, 0.1);
}
