/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #512335;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #512335;
}
::-webkit-scrollbar-thumb {
    background: #a85575;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c47a96;
}

/* ===== NAVBAR SCROLL STATE ===== */
#site-header.scrolled {
    box-shadow: 0 4px 30px rgba(45, 15, 27, 0.4);
}

/* ===== HERO TEXT ANIMATION ===== */
.hero-title-line {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.3s; }
.hero-title-line:nth-child(3) { animation-delay: 0.5s; }

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

.hero-stats {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== COLLECTION CARD HOVER ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(168, 85, 117, 0.2);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* ===== FORM FOCUS STATES ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* ===== BUTTON MICRO-INTERACTIONS ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== MAP FILTER FOR DARK THEME ===== */
iframe[title*="map"] {
    transition: filter 0.3s ease;
}

/* ===== RESPONSIVE TYPography ===== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
