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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #a12038;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #831d33;
}

/* ===== NAVBAR ===== */
.nav-logo {
    color: #1a1a1a;
}

.nav-link {
    color: #1a1a1a;
    opacity: 0.6;
}

.nav-link:hover {
    opacity: 1;
}

/* Transparent navbar state */
#navbar.transparent .nav-logo {
    color: #1a1a1a;
}

#navbar.transparent .nav-link {
    color: #1a1a1a;
}

#navbar.transparent .menu-line {
    background: #1a1a1a;
}

/* Scrolled navbar state */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

#navbar.scrolled .nav-logo {
    color: #1a1a1a;
}

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

#navbar.scrolled .menu-line {
    background: #1a1a1a;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== HERO ANIMATIONS ===== */
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(161, 32, 56, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== REVEAL ANIMATIONS (PROGRESSIVE ENHANCEMENT) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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(1) { transition-delay: 0.05s; }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.15s; }
    .reveal:nth-child(4) { transition-delay: 0.2s; }
    .reveal:nth-child(5) { transition-delay: 0.25s; }
    .reveal:nth-child(6) { transition-delay: 0.3s; }
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SELECT STYLING ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a12038' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #a12038;
    outline-offset: 2px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(161, 32, 56, 0.15);
    color: #3d0a14;
}
