/* Custom styles for Llantera El Gomez */

:root {
    --burgundy-950: #3a0715;
    --burgundy-900: #69122e;
    --burgundy-800: #7f1131;
    --burgundy-700: #9e1037;
    --burgundy-600: #c61948;
    --burgundy-500: #e03663;
    --burgundy-300: #f6a5b9;
    --burgundy-200: #fad0d9;
    --burgundy-100: #fce7eb;
    --burgundy-50: #fdf2f4;
    --cream: #FAF8F6;
    --charcoal: #2A2A2A;
    --warm-gray: #6B6560;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

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

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-500);
}

/* Selection color */
::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-950);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .animate-on-scroll.from-left {
        transform: translateX(0);
    }
    
    .animate-on-scroll.from-right {
        transform: translateX(0);
    }
    
    .js .animate-on-scroll:not(.animated) {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .js .animate-on-scroll.from-left:not(.animated) {
        transform: translateX(-30px);
    }
    
    .js .animate-on-scroll.from-right:not(.animated) {
        transform: translateX(30px);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(105, 18, 46, 0.1);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Service card hover */
.group:hover .group-hover\:bg-burgundy-100 {
    background-color: var(--burgundy-100);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Print styles */
@media print {
    nav, #contact-form, .animate-on-scroll {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
