/* Custom styles for Carlton House At Larchmont */

:root {
    --charcoal-850: #1A1D23;
    --charcoal-900: #0F1115;
    --coral-300: #FDB4A8;
    --coral-400: #F97A6A;
    --coral-500: #F06050;
    --coral-600: #E84A3A;
    --coral-700: #CC3A2A;
    --cream-50: #FFF9F7;
    --cream-100: #FFF0EC;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-50);
}
::-webkit-scrollbar-thumb {
    background: var(--coral-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--coral-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding: 0.5rem 0;
}

/* Nav link underline on hover */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--coral-500);
    border-radius: 1px;
    transition: width 0.2s ease;
    margin-top: 2px;
}
.nav-link:hover::after {
    width: calc(100% - 16px);
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    img, .group:hover img {
        transform: none !important;
        transition: none !important;
    }
    button, a {
        transition: none !important;
    }
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
