/* Base styles and custom utilities */
:root {
    --plum-950: #3b0419;
    --plum-900: #500724;
    --plum-800: #831443;
    --plum-700: #9d174d;
    --plum-600: #be185d;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(80, 7, 36, 0.08);
}

.nav-scrolled .font-display,
.nav-scrolled .text-plum-950,
.nav-scrolled a:not(.bg-plum-800):not(.bg-amber-400) {
    color: var(--plum-950) !important;
}

.nav-scrolled .text-plum-600 {
    color: var(--plum-700) !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #500724;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Hero geometric shape animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-shape {
        animation: float 6s ease-in-out infinite;
    }

    .hero-shape-delay {
        animation: float 6s ease-in-out 2s infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(45deg); }
        50% { transform: translateY(-15px) rotate(45deg); }
    }
}

/* Print styles */
@media print {
    nav, .reveal, #contact-form, #form-success, iframe {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
