/* Custom styles for Kings Daughters Sleep Center */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF6;
}
::-webkit-scrollbar-thumb {
    background: #c5dab9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9dbe8c;
}

/* Header scroll state */
header.scrolled {
    background: rgba(250, 250, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(82, 130, 62, 0.1);
}

header.scrolled .font-serif,
header.scrolled span {
    color: #121c0d !important;
}

/* Selection color */
::selection {
    background: #c5dab9;
    color: #121c0d;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(18, 28, 13, 0.2);
}

/* Patient info card hover */
.bg-offwhite.rounded-3xl {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bg-offwhite.rounded-3xl:hover {
    transform: translateY(-2px);
}

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

/* Prevent FOUC on load */
body {
    opacity: 1;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #52823e;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .bg-offwhite.rounded-3xl {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
    .bg-offwhite.rounded-3xl:hover {
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form, iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    .service-card {
        padding: 1.5rem;
    }
}

/* Small phone adjustments */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #hero h1 {
        font-size: 2.25rem;
    }
}
