/* Base styles and custom properties */
:root {
    --plum-50: #faf5f7;
    --plum-100: #f5ebeb;
    --plum-200: #ebd3d9;
    --plum-300: #d9aeb6;
    --plum-500: #a85568;
    --plum-600: #8e3d50;
    --plum-700: #733040;
    --plum-800: #5c2834;
    --plum-900: #4a212a;
    --plum-950: #270f14;
    --amber-400: #ffbc2e;
    --amber-500: #f5a623;
    --amber-600: #d4891a;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--plum-50);
}
::-webkit-scrollbar-thumb {
    background: var(--plum-200);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--plum-300);
}

/* Selection color */
::selection {
    background: var(--plum-200);
    color: var(--plum-900);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 33, 42, 0.08);
}

/* Nav styles */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-500);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Hero animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle { animation: fadeUp 0.8s ease forwards 0.2s; }
    .hero-title { animation: fadeUp 0.8s ease forwards 0.4s; }
    .hero-desc { animation: fadeUp 0.8s ease forwards 0.6s; }
    .hero-cta { animation: fadeUp 0.8s ease forwards 0.8s; }
}

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--plum-600), var(--amber-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
