/* Custom styles beyond Tailwind */

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

/* Selection color */
::selection {
    background: #C0603A;
    color: #FDF8F0;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-logo {
    color: #1C1917 !important;
}

.nav-scrolled .nav-link {
    color: #1C1917 !important;
}

.nav-scrolled .menu-line {
    background: #1C1917 !important;
}

/* Hero text shadow for readability */
.hero-text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Stat card hover */
.stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile menu lines animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Image lazy load placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #cta-section {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
