/* ── Custom Properties ── */
:root {
    --charcoal: #1C1C1E;
    --charcoal-deep: #141416;
    --coral: #C85A3C;
    --coral-light: #E07A5F;
    --stone-50: #FAFAF8;
    --stone-100: #F2F2EF;
    --stone-200: #E4E4E0;
    --stone-400: #A8A8A0;
    --stone-500: #787870;
    --stone-600: #52524E;
    --stone-800: #2C2C28;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── 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 {
    font-family: var(--font-sans);
    background-color: var(--stone-50);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ── Typography ── */
.font-playfair {
    font-family: var(--font-serif);
}

.font-inter {
    font-family: var(--font-sans);
}

/* ── Navigation ── */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--coral);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--coral);
}

.nav-link:hover::after {
    width: 100%;
}

#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--coral);
}

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

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Reveal on Scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── Hero ── */
#hero {
    position: relative;
}

/* ── Form Styles ── */
select option:first-child {
    color: #A8A8A0;
}

/* ── Selection ── */
::selection {
    background-color: var(--coral);
    color: white;
}

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

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

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

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

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

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