/* === Base & Utilities === */
html {
    scroll-behavior: smooth;
}

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

/* === Navbar === */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 26, 36, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.nav-transparent .font-serif,
.nav-transparent .text-charcoal-900 {
    color: #ffffff !important;
}

.nav-transparent .text-charcoal-400 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-transparent a:not([class*="bg-"]) {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-transparent a:not([class*="bg-"]):hover {
    color: #FF5733 !important;
}

/* === Service Cards === */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* === Area Cards === */
.area-card {
    cursor: pointer;
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.area-card:hover::after {
    border-color: rgba(255, 87, 51, 0.5);
}

/* === Testimonial Cards === */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* === Scroll Animations === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #D6D6DD;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B0B0BE;
}

/* === Selection === */
::selection {
    background: #FFE8DD;
    color: #1A1A24;
}
