/* Custom Styles for Peace Community Counseling Center */

/* Base Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Hero Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scroll Reveal Animation */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Service Card Hover */
.service-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

.navbar-scrolled .font-serif,
.navbar-scrolled .text-emerald-900 {
    color: #14532d !important;
}

.navbar-scrolled .text-emerald-700 {
    color: #166534 !important;
}

.navbar-scrolled .mobile-link {
    color: #14532d !important;
}

.navbar-scrolled #bar1,
.navbar-scrolled #bar2,
.navbar-scrolled #bar3 {
    background: #14532d !important;
}

/* Mobile Menu States */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open #bar1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem !important;
}

/* Custom Select Styling */
select option {
    background: #fefdf8;
    color: #14532d;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #166534 !important;
}

/* Selection Color */
::selection {
    background: #166534;
    color: #fefdf8;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-up,
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    header,
    #contactForm,
    .service-card a {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Wide Screen */
@media (min-width: 1920px) {
    .max-w-6xl {
        max-width: 72rem;
    }
}
