/* Custom styles for Webb-Rauckhorst Counseling */

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

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: #1E3A66;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4A017;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}

/* Base animations - only for below-fold content via JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar glass effect on scroll */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(20px) rotate(12deg);
    }
}

/* Subtle pulse for decorative elements */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Ensure all text is readable */
.text-white {
    color: #ffffff;
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

/* Gold accent colors */
.text-gold-400 {
    color: #E8B828;
}

.text-gold-500 {
    color: #D4A017;
}

.bg-gold-500 {
    background-color: #D4A017;
}

.bg-gold-500\/10 {
    background-color: rgba(212, 160, 23, 0.1);
}

.bg-gold-500\/20 {
    background-color: rgba(212, 160, 23, 0.2);
}

.bg-gold-500\/5 {
    background-color: rgba(212, 160, 23, 0.05);
}

/* Navy backgrounds */
.bg-navy-900 {
    background-color: #0A1628;
}

.bg-navy-800 {
    background-color: #0F2240;
}

.bg-navy-700 {
    background-color: #162D52;
}

/* Hover states for cards */
.group:hover .group-hover\:bg-gold-500\/20 {
    background-color: rgba(212, 160, 23, 0.2);
}

.group:hover .group-hover\:border-gold-500\/30 {
    border-color: rgba(212, 160, 23, 0.3);
}

/* Focus states for accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(212, 160, 23, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.3) !important;
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.2s ease;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .border-gold-500\/30 {
        border-color: ButtonText;
    }
    
    .bg-gold-500\/10 {
        background-color: ButtonText;
    }
}

/* Ensure proper spacing on all screen sizes */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Smooth transitions for interactive elements */
a,
button,
input,
select,
textarea {
    transition: all 0.2s ease;
}

/* Remove default button styles */
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A017' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
