/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; color: #1a1a2e; overflow-x: hidden; }

/* ── Hero gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #0A1F44 0%, #0F2D5E 30%, #153A75 60%, #1B478C 100%);
}

/* ── Hero dot pattern ── */
.hero-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── About section pattern ── */
.about-pattern {
    background-image: radial-gradient(rgba(200,164,90,0.4) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ── Nav links ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C8A45A;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile nav ── */
.mobile-nav-link { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav-link:last-child { border-bottom: none; }

/* ── Header scroll state ── */
header.scrolled {
    background: rgba(10, 31, 68, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
header.scrolled .nav-link { color: rgba(255,255,255,0.9); }

/* ── Hamburger animation ── */
.hamburger-line { transition: all 0.3s ease; }
#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active .hamburger-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Service cards ── */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C8A45A, #D4B76E);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── CTA section glow ── */
.cta-glow {
    box-shadow: inset 0 0 80px rgba(200,164,90,0.1);
}

/* ── Select styling ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .hero-gradient {
        background: linear-gradient(160deg, #0A1F44 0%, #0F2D5E 50%, #153A75 100%);
    }
}
