*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: #0F172A;
    color: #fff;
    z-index: 100;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #020617 0%, #0F172A 30%, #1a2744 55%, #1e3a5f 75%, #2d4a6f 100%);
}

/* ── Navigation ── */
.nav-header {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 5rem;
}

/* ── Hero Animations ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-scroll {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-badge, .hero-title, .hero-subtitle, .hero-ctas, .hero-scroll {
        animation: none;
        opacity: 1;
    }
    .hero-scroll-line svg {
        animation: none;
    }
}

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

/* ── Process Steps ── */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: -0.5rem;
    width: 1rem;
    height: 1px;
    background: rgba(212, 160, 23, 0.3);
}

@media (max-width: 767px) {
    .process-step::after {
        display: none;
    }
}

/* ── Form ── */
input:focus,
select:focus,
textarea:focus {
    border-color: #D4A017 !important;
}

/* ── Map ── */
.map-section {
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(241, 245, 249, 0.5));
    pointer-events: none;
}

/* ── Selection ── */
::selection {
    background: rgba(212, 160, 23, 0.2);
    color: #0F172A;
}
