/* ============================================
   Dr. Chloe Franceschini — Medical Practice
   Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a8d5c2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fb89b;
}

/* Selection */
::selection {
    background: #d0eade;
    color: #0a1c32;
}

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero decorative elements */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(111, 184, 155, 0.3), transparent);
}

/* Nav active state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(10, 28, 50, 0.08);
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease, color 0.2s ease;
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6fb89b;
    outline-offset: 2px;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232e5b8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subtle pattern for sections */
.bg-midnight-50 {
    background-color: #f0f4f8;
    background-image: radial-gradient(circle at 1px 1px, rgba(10, 28, 50, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover img {
    transform: scale(1.03);
}

/* Print styles */
@media print {
    #navbar, #contactForm, #successMessage { display: none; }
    body { color: #000; background: #fff; }
    .bg-midnight-900, .bg-midnight-950 { background: #fff !important; color: #000 !important; }
}
