/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 125, 86, 0.3);
    color: #fff;
}

/* ========== HERO ANIMATIONS ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== NAVBAR ========== */
.nav-link {
    position: relative;
}

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

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

.nav-scrolled {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ========== SCROLL REVEAL ========== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ========== 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);
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ========== SPLIDE OVERRIDES ========== */
.splide__arrow {
    background: rgba(255, 125, 86, 0.2) !important;
    border: 1px solid rgba(255, 125, 86, 0.4) !important;
}

.splide__arrow:hover {
    background: rgba(255, 125, 86, 0.4) !important;
}

.splide__arrow svg {
    fill: #ff7d56 !important;
}

.splide__pagination__page {
    background: rgba(255, 255, 255, 0.2) !important;
}

.splide__pagination__page.is-active {
    background: #ff7d56 !important;
}

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 125, 86, 0.5);
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ========== MOBILE LINKS ========== */
.mobile-link {
    position: relative;
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff7d56;
    outline-offset: 2px;
}

/* ========== MAP INVERT FOR DARK THEME ========== */
iframe[src*="maps"] {
    filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(1.1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

iframe[src*="maps"]:hover {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
