/* Base styles & custom properties */
:root {
    --color-charcoal-700: #2D2D2D;
    --color-charcoal-800: #1F1F1F;
    --color-coral-200: #F9A8A3;
    --color-coral-400: #F47870;
    --color-coral-50: #FFF5F3;
}

html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #F9A8A3;
    color: #1F1F1F;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A0A0A0;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

nav.scrolled .font-serif {
    color: #1F1F1F;
}

/* Hero image subtle float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Pulse for the dot indicator */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Form focus ring animation */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 120, 112, 0.15);
}

/* Card hover lift */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Ensure proper contrast on all interactive elements */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
    transform: scale(0.98);
}

/* Fix for any potential content flash */
.no-flash * {
    transition-delay: 0s !important;
}
