/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scroll Reveal Base (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .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; }
}

/* ===== Navbar ===== */
.nav-text-color { color: #1a1412; }
.nav-subtext-color { color: #9a1f1f; }
.nav-link-color { color: #3d302d; }
.nav-icon-color { color: #1a1412; }

.navbar-scrolled .nav-text-color { color: #1a1412; }
.navbar-scrolled .nav-subtext-color { color: #b82828; }
.navbar-scrolled .nav-link-color { color: #3d302d; }
.navbar-scrolled .nav-icon-color { color: #1a1412; }

#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ===== Marquee ===== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b82828, #d44040);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ===== Equipment Cards ===== */
.equipment-card {
    cursor: pointer;
}

/* ===== Buttons ===== */
a, button {
    transition: all 0.2s ease;
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Selection ===== */
::selection {
    background: #fce7e7;
    color: #6b1a1a;
}

/* ===== Focus ===== */
:focus-visible {
    outline: 2px solid #b82828;
    outline-offset: 2px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8f0;
}

::-webkit-scrollbar-thumb {
    background: #d44040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a1f1f;
}
