/* Custom styles that complement Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #C2704E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A86628;
}

/* Selection color */
::selection {
    background: #F3B9A5;
    color: #5C3A2E;
}

/* Body base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C2704E;
    outline-offset: 2px;
}

/* Ensure select dropdown shows properly */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C3A2E' 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 12px center;
    padding-right: 40px;
}

/* Button active states */
.btn-primary:active,
.cta-btn-dark:active {
    transform: translateY(0) scale(0.98);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F3B9A5 0%, #F4D4A0 100%);
}

/* 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;
    }
    .float-1, .float-2, .float-3, .float-4,
    .rotate-slow, .rotate-slow-reverse {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    nav, .geo-shape, .pulse-dot, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Mobile menu backdrop */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(92, 58, 46, 0.4);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}
