/* Custom styles for Teri's Toybox */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f0e8;
}

::-webkit-scrollbar-thumb {
    background: #3d6640;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e4f31;
}

/* Hero gradient overlay */
.hero-gradient {
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 43, 28, 0.95) 0%, rgba(46, 79, 49, 0.9) 50%, rgba(35, 60, 38, 0.95) 100%);
    z-index: 1;
}

.hero-gradient > * {
    position: relative;
    z-index: 2;
}

/* Section divider */
.section-divider {
    background: linear-gradient(90deg, transparent, #8aad8c, transparent);
    height: 1px;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 43, 28, 0.15);
}

/* Primary button */
.btn-primary {
    background: #3d6640;
    color: #faf8f4;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2e4f31;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 79, 49, 0.3);
}

/* Secondary button */
.btn-secondary {
    background: transparent;
    color: #faf8f4;
    border: 2px solid #faf8f4;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #faf8f4;
    color: #1a2b1c;
}

/* Navigation links */
.nav-link {
    position: relative;
    color: #faf8f4;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8aad8c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile navigation links */
.mobile-nav-link {
    color: #faf8f4;
    font-family: 'Playfair Display', Georgia, serif;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #8aad8c;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Form success message */
.form-success {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

.card-hover:hover img {
    transform: scale(1.05);
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #3d6640;
    outline-offset: 2px;
}

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-gradient {
        background: #1a2b1c !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid CurrentColor;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .card-hover:hover {
        transform: none;
    }
    
    .nav-link::after {
        display: none;
    }
}
