/* Base styles & custom properties */
:root {
    --burgundy: #7B2D3B;
    --burgundy-light: #a3163b;
    --blush: #ffadb8;
}

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

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

/* Navigation */
.nav-text {
    transition: color 0.3s ease;
}

.nav-subtext {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: var(--burgundy);
}

#navbar.scrolled .nav-subtext {
    color: #6b7280;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

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

#navbar:not(.scrolled) .nav-link:hover {
    color: #fff;
}

#navbar:not(.scrolled) .nav-subtext {
    color: rgba(255, 255, 255, 0.5);
}

#navbar:not(.scrolled) .nav-text {
    color: #fff;
}

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

/* Service cards */
.service-card {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    background-color: rgba(123, 45, 59, 0.02);
}

.service-card:hover .w-12 {
    transform: scale(1.05);
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 30px #f9fafb inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

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

/* Selection */
::selection {
    background: rgba(123, 45, 59, 0.12);
    color: var(--burgundy);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .service-card {
        padding: 2rem 1.5rem !important;
    }
}
