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

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

body {
    overflow-x: hidden;
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

p, span, a, li, label, input, textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* ── Navbar ── */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-line {
    transition: width 0.3s ease, transform 0.3s ease;
}

#mobile-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#mobile-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

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

.mobile-link {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, color 0.3s ease;
}

#mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ── Hero Animations ── */
.hero-label {
    animation: fadeSlideUp 0.8s ease forwards 0.3s;
}

.hero-title {
    animation: fadeSlideUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

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

/* ── Scroll Indicator ── */
.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Section Labels & Titles ── */
.section-label {
    letter-spacing: 0.25em;
}

.section-title {
    letter-spacing: -0.02em;
}

/* ── Collection Cards ── */
.collection-card {
    position: relative;
    will-change: transform;
    transition: transform 0.4s ease;
}

.collection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.collection-card:hover::after {
    border-color: rgba(201, 168, 76, 0.3);
}

/* ── Service Items ── */
.service-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* ── Parallax Hero ── */
#hero {
    will-change: transform;
}

#hero img {
    will-change: transform;
}

/* ── Focus Styles ── */
input:focus, textarea:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 9999px;
}

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

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

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