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

:root {
    --charcoal-900: #1a1a1a;
    --charcoal-800: #2d2d2d;
    --charcoal-700: #3d3d3d;
    --charcoal-600: #4a4a4a;
    --charcoal-500: #6b6b6b;
    --charcoal-300: #a0a0a0;
    --charcoal-200: #d4d4d4;
    --charcoal-100: #f0f0f0;
    --coral-500: #FF6B5E;
    --coral-400: #FF8A7E;
    --coral-300: #FFA89E;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: var(--coral-500);
    color: white;
}

/* ── Navbar ── */
#navbar {
    transition: background-color 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

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

/* ── Hero Animations ── */
.hero-subtitle {
    animation: fadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeIn 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-desc {
    animation: fadeIn 0.8s ease 0.7s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeIn 0.8s ease 0.9s forwards;
    opacity: 0;
}

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

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

.service-card:nth-child(1) { animation: fadeIn 0.6s ease 0.1s forwards; opacity: 0; }
.service-card:nth-child(2) { animation: fadeIn 0.6s ease 0.15s forwards; opacity: 0; }
.service-card:nth-child(3) { animation: fadeIn 0.6s ease 0.2s forwards; opacity: 0; }
.service-card:nth-child(4) { animation: fadeIn 0.6s ease 0.25s forwards; opacity: 0; }
.service-card:nth-child(5) { animation: fadeIn 0.6s ease 0.3s forwards; opacity: 0; }
.service-card:nth-child(6) { animation: fadeIn 0.6s ease 0.35s forwards; opacity: 0; }

/* ── Review Cards ── */
.review-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

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

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

/* ── Form Styles ── */
select option {
    background: white;
    color: var(--charcoal-900);
}

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

::-webkit-scrollbar-track {
    background: var(--charcoal-100);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal-300);
    border-radius: 3px;
}

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

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title span {
        display: inline;
    }
}
