/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #c9a84c;
    color: #0d1f3c;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Navbar ── */
#navbar {
    color: #faf8f4;
}

#navbar.scrolled {
    background: rgba(13, 31, 60, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

#navbar.scrolled .nav-link {
    color: #faf8f4;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-nav-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }

.menu-line {
    background: #faf8f4;
}

body.menu-open {
    overflow: hidden;
}

/* ── Hero Animations ── */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.5s forwards;
}

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

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

.hero-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease 1.3s forwards;
}

/* ── Intro Stats ── */
.intro-stat {
    opacity: 0;
    transform: translateY(20px);
}

.intro-stat.visible {
    animation: fadeUp 0.6s ease forwards;
}

.intro-stat:nth-child(1) { animation-delay: 0s; }
.intro-stat:nth-child(2) { animation-delay: 0.1s; }
.intro-stat:nth-child(3) { animation-delay: 0.2s; }
.intro-stat:nth-child(4) { animation-delay: 0.3s; }

/* ── Section Headers ── */
.section-header {
    opacity: 0;
    transform: translateY(30px);
}

.section-header.visible {
    animation: fadeUp 0.8s ease forwards;
}

/* ── Collection Cards ── */
.collection-card {
    opacity: 0;
    transform: translateY(40px);
}

.collection-card.visible {
    animation: fadeUp 0.7s ease forwards;
}

.collection-card:nth-child(1) { animation-delay: 0s; }
.collection-card:nth-child(2) { animation-delay: 0.08s; }
.collection-card:nth-child(3) { animation-delay: 0.16s; }
.collection-card:nth-child(4) { animation-delay: 0.24s; }
.collection-card:nth-child(5) { animation-delay: 0.32s; }
.collection-card:nth-child(6) { animation-delay: 0.4s; }

/* ── About ── */
.about-content {
    opacity: 0;
    transform: translateY(30px);
}

.about-content.visible {
    animation: fadeUp 0.8s ease forwards;
}

.about-image {
    opacity: 0;
    transform: translateX(30px);
}

.about-image.visible {
    animation: fadeRight 0.8s ease forwards;
}

/* ── Visit ── */
.visit-info {
    opacity: 0;
    transform: translateY(30px);
}

.visit-info.visible {
    animation: fadeUp 0.8s ease forwards;
}

.visit-map {
    opacity: 0;
    transform: translateX(30px);
}

.visit-map.visible {
    animation: fadeRight 0.8s ease forwards;
}

/* ── Contact ── */
#contact .section-header {
    opacity: 0;
    transform: translateY(30px);
}

#contact .section-header.visible {
    animation: fadeUp 0.8s ease forwards;
}

/* ── Form ── */
.form-input {
    font-size: 0.9375rem;
}

.form-input:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover::after {
    opacity: 1;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ── Keyframes ── */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollDot {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ── Utility ── */
.nav-link {
    position: relative;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

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

/* ── 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;
    }
}
