/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* === NAV === */
.nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.15);
    padding: 0;
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e78;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* === MOBILE MENU === */
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-link { position: relative; }
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f59e78;
    transition: width 0.25s ease;
}
.mobile-link:hover::after { width: 80%; }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 26, 46, 0.82) 0%,
        rgba(26, 39, 68, 0.75) 40%,
        rgba(184, 84, 58, 0.55) 100%
    );
}
.hero-content { padding-top: 4rem; }

/* Hero badge */
.hero-badge {
    animation: fadeInDown 0.8s ease both;
}

/* Hero title */
.hero-title {
    animation: fadeInUp 0.8s ease 0.15s both;
}

/* Hero subtitle */
.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero CTAs */
.hero-cta {
    animation: fadeInUp 0.8s ease 0.45s both;
}

/* Hero stats */
.hero-stats {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Scroll indicator */
.hero-scroll {
    animation: fadeInUp 0.8s ease 0.9s both;
}

/* CTA buttons */
.cta-primary, .cta-secondary, .cta-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

/* Section */
.section { position: relative; }

/* === REVEAL ANIMATIONS (progressive enhancement) === */
.js .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-contact {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .js .reveal-left {
        opacity: 0;
        transform: translateX(-24px);
    }
    .js .reveal-right {
        opacity: 0;
        transform: translateX(24px);
    }
    .js .reveal-contact {
        opacity: 0;
        transform: translateY(24px);
    }
    .js .reveal.visible,
    .js .reveal-left.visible,
    .js .reveal-right.visible,
    .js .reveal-contact.visible {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* === KEYFRAMES === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SERVICE CARDS === */
.service-card { cursor: default; }

/* === TESTIMONIAL CARDS === */
.testimonial-card { cursor: default; }

/* === INPUTS === */
.input {
    font-size: 0.9375rem;
    color: #1a2744;
}
.input::placeholder { color: rgba(26, 39, 68, 0.3); }
.input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 84, 58, 0.15);
}

/* === BUTTONS === */
.btn-submit {
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.btn-submit:hover {
    transform: translateY(-1px);
}
.btn-submit:active {
    transform: translateY(0);
}

/* === SUCCESS MESSAGE === */
.success-message {
    animation: fadeInUp 0.4s ease both;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    animation: bounce 2s ease infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-6px) translateX(-50%); }
    60% { transform: translateY(-3px) translateX(-50%); }
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (min-width: 641px) and (max-width: 1023px) {
    .section { padding-left: 2rem; padding-right: 2rem; }
}
