/* ============================================
   Physical Therapy Clinic of SE PDX
   Custom Styles
   ============================================ */

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

/* Selection color */
::selection {
    background-color: #1B4332;
    color: #fdfcfa;
}

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

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(27, 67, 50, 0.15);
}

/* ============================================
   Scroll Reveal Animations
   Only apply when user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Default visible state for reduced-motion or JS-disabled */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ============================================
   Navbar
   ============================================ */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #1B4332;
    padding-left: 8px;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* ============================================
   Button ripple / press effect
   ============================================ */
button:active,
a:active {
    transform: scale(0.98);
}

/* ============================================
   Subtle pattern overlay for sections
   ============================================ */
section::before {
    content: '';
    pointer-events: none;
}

/* ============================================
   Image placeholder fallback
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fbc8e;
}

/* ============================================
   Focus visible for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #site-header,
    #mobile-toggle,
    #mobile-menu {
        display: none !important;
    }

    body {
        color: #1a1a1a;
        background: white;
    }

    .card-hover {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
