/* ============================================
   Heidi Seifert, MD — Custom Styles
   ============================================ */

/* Base reset & smooth scrolling */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Floating card animations
   ============================================ */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 5s;
}

.floating-card:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 4.5s;
}

.floating-card:nth-child(4) {
    animation-delay: -0.5s;
    animation-duration: 5.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   Scroll reveal animations
   Only applies when prefers-reduced-motion is off
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
}

/* Hidden state for scroll reveal — applied via JS */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* ============================================
   Navbar scroll state
   ============================================ */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   Mobile menu transitions
   ============================================ */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

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

/* ============================================
   Form focus styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #be185d !important;
    box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.1) !important;
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background-color: #fbcfe8;
    color: #500724;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
    
    .floating-card:nth-child(1) {
        display: block;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        margin: 1rem auto;
        animation: none;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
