/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0F1A14; }
::-webkit-scrollbar-thumb { background: #1a3a1c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C9A84C; }

/* ── Selection ── */
::selection { background: rgba(201, 168, 76, 0.3); color: #F5F0E8; }

/* ── Hero ── */
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 26, 20, 0.55) 0%,
        rgba(15, 26, 20, 0.70) 40%,
        rgba(15, 26, 20, 0.85) 70%,
        rgba(15, 26, 20, 0.95) 100%
    );
}
.hero-pattern { pointer-events: none; }

/* ── Hero Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes lineExpand {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 0.8; transform: scaleY(1); }
}

.hero-badge {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}
.hero-headline {
    animation: fadeInUp 0.9s ease-out 0.4s both;
}
.hero-subtitle {
    animation: fadeInUp 0.9s ease-out 0.6s both;
}
.hero-ctas {
    animation: fadeInUp 0.9s ease-out 0.8s both;
}
.hero-stats {
    animation: fadeInUp 0.9s ease-out 1s both;
}
.hero-scroll-indicator {
    animation: fadeInUp 0.9s ease-out 1.2s both;
}
.scroll-line {
    animation: scrollPulse 1.5s ease-in-out infinite;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
    background: rgba(15, 26, 20, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* ── Mobile Menu ── */
#mobile-menu {
    background: rgba(15, 26, 20, 0.98);
    backdrop-filter: blur(20px);
}
#mobile-menu.open {
    transform: translateX(0);
}
#mobile-menu.closed {
    transform: translateX(100%);
}
.mobile-link {
    font-size: 1.125rem;
    letter-spacing: 0.15em;
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.15);
}

/* ── Process Steps ── */
.process-step {
    position: relative;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -1.5rem;
    width: 3rem;
    height: 1px;
    background: linear-gradient(to right, rgba(201, 168, 76, 0.3), transparent);
}
.process-step:last-child::after { display: none; }
@media (max-width: 767px) {
    .process-step::after { display: none; }
}

/* ── CTA Section ── */
.cta-bg { position: absolute; inset: 0; }
.cta-overlay {
    background: linear-gradient(
        to right,
        rgba(15, 26, 20, 0.92) 0%,
        rgba(15, 26, 20, 0.85) 50%,
        rgba(15, 26, 20, 0.92) 100%
    );
}

/* ── Reveal Animations (below fold only) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ── Focus Styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Utility ── */
.text-shadow { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
