/* =============================================
   Robert Naismith, MD — Custom Styles
   ============================================= */

/* Base / Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.2);
    color: #0f1c3f;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b08d2e;
}

/* =============================================
   Header / Navbar
   ============================================= */

#site-header {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

#site-header.scrolled {
    background-color: rgba(15, 28, 63, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.15);
}

/* =============================================
   Hero Floating Cards
   ============================================= */

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

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

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

.hero-card-1 { animation: float-slow 6s ease-in-out infinite; }
.hero-card-2 { animation: float-medium 5s ease-in-out infinite 0.5s; }
.hero-card-3 { animation: float-slow 7s ease-in-out infinite 1s; }
.hero-card-4 { animation: float-fast 4s ease-in-out infinite 0.3s; }
.hero-card-5 { animation: float-medium 5.5s ease-in-out infinite 0.8s; }

/* =============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible 
    by default, animated via JS when supported)
   ============================================= */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* =============================================
   Form Elements
   ============================================= */

input:focus,
textarea:focus {
    outline: none;
}

textarea {
    field-sizing: content;
}

/* =============================================
   Image Placeholder Fallback
   ============================================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   Responsive Adjustments
   ============================================= */

@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet-specific tweaks if needed */
}

/* =============================================
   Print Styles
   ============================================= */

@media print {
    #site-header,
    #mobile-toggle,
    #mobile-menu {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-navy-900,
    .bg-navy-950 {
        background: #fff !important;
        color: #000 !important;
    }
}
