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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 143, 26, 0.15);
    color: #17253d;
}

/* ── Navbar Transition States ── */
header.scrolled .nav-link-color {
    color: #17253d;
}

header.scrolled .nav-border-color {
    color: #17253d;
    border-color: rgba(23, 37, 61, 0.2);
}

header:not(.scrolled) .nav-link-color {
    color: #17253d;
}

header:not(.scrolled) .nav-border-color {
    color: #17253d;
    border-color: rgba(23, 37, 61, 0.2);
}

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

.service-card:hover {
    background-color: #f4f6fa;
}

/* ── Process Steps ── */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

/* ── Mobile Menu Link Hover ── */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d48f1a;
    transition: width 0.3s ease;
}

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

/* ── Scroll Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ── Form Focus Styles ── */
input:focus,
textarea:focus,
select:focus {
    border-color: #d48f1a !important;
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #99b3df;
}

/* ── Mobile Responsive ── */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
