/* ============================================
   Arcand Family Practice — Custom Styles
   ============================================ */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-inter {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040B18;
}
::-webkit-scrollbar-thumb {
    background: #1A3552;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2FB880;
}

/* Selection */
::selection {
    background: rgba(47, 184, 128, 0.3);
    color: #D8F5E8;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(4, 11, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    animation: fadeInUp 0.9s ease-out forwards;
}

.hero-content > *:nth-child(2) { animation-delay: 0.15s; opacity: 0; animation-fill-mode: both; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: both; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; opacity: 0; animation-fill-mode: both; }
.hero-content > *:nth-child(5) { animation-delay: 0.6s; opacity: 0; animation-fill-mode: both; }

/* Image composition animation */
.hero-image {
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    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; }

/* Service cards */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

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

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

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A1628 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Focus visible */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2FB880;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-playfair {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
