/* ==========================================
   Optimal Compounding Pharmacy
   Custom Styles
   ========================================== */

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

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

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    color: #0A192F;
    background-color: #ffffff;
    line-height: 1.7;
}

/* Selection */
::selection {
    background-color: #D4AF37;
    color: #0A192F;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Manrope', sans-serif;
}

/* Header Scroll State */
#main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 25, 47, 0.06);
}

#main-header.scrolled {
    box-shadow: 0 1px 0 rgba(10, 25, 47, 0.06);
}

/* Hero Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Mobile Menu */
#mobile-menu {
    box-shadow: 0 0 80px rgba(10, 25, 47, 0.1);
}

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after,
.mobile-menu-link:focus::after {
    width: 100%;
}

/* Input Focus Styles */
input:focus,
textarea:focus {
    border-bottom-color: #D4AF37 !important;
}

/* Focus Visible */
:focus-visible {
    outline: 1px solid #D4AF37;
    outline-offset: 4px;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

/* Print styles */
@media print {
    #main-header,
    #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
