/* ── Custom Properties ── */
:root {
    --color-charcoal-dark: #1a1a1a;
    --color-charcoal-darker: #111111;
    --color-charcoal-muted: #6b6b6b;
    --color-coral: #e8645a;
    --color-coral-dark: #d4534a;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
}

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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Section Styles ── */
.section-eyebrow {
    display: block;
}

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

.section-subtitle {
    color: var(--color-charcoal-muted);
}

/* ── Navigation ── */
#navbar {
    background: transparent;
}

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

.nav-logo-text {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link {
    color: rgba(255, 255, 255, 0.6);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Mobile Menu ── */
.mobile-line {
    background: rgba(255, 255, 255, 0.7);
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ── Hero ── */
.hero-eyebrow {
    opacity: 0;
}

.hero-title {
    opacity: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-subtitle {
    opacity: 0;
}

/* ── Service Cards ── */
.service-card {
    transition: background-color 0.5s ease;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Form Styles ── */
select option {
    background: #fafaf9;
    color: #1a1a1a;
}

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

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

/* ── Mobile Menu Animation ── */
#mobile-toggle.active .mobile-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-toggle.active .mobile-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .mobile-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ── 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[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
