/* ============================================
   Hupp Landscaping — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
:root {
    --burgundy-700: #8c1631;
    --burgundy-800: #73152b;
    --cream-50: #fefdfb;
    --cream-100: #fdf9f3;
    --forest-950: #070d07;
    --forest-900: #0f1a0f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(140, 22, 49, 0.08);
}

#navbar.scrolled .font-serif {
    color: var(--burgundy-700) !important;
}

/* --- Service Cards --- */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Gallery Swiper --- */
.gallerySwiper .swiper-pagination {
    bottom: 0 !important;
}

.gallerySwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(252, 231, 235, 0.5) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.gallerySwiper .swiper-pagination-bullet-active {
    background: #8c1631 !important;
    width: 24px;
    border-radius: 4px;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.from-bottom {
    transform: translateY(20px);
}

.animate-on-scroll.from-left {
    transform: translateX(-20px);
}

.animate-on-scroll.from-right {
    transform: translateX(20px);
}

/* --- Back to Top --- */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Form Focus Styles --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8c1631 !important;
    box-shadow: 0 0 0 3px rgba(140, 22, 49, 0.1) !important;
}

/* --- Selection Color --- */
::selection {
    background: rgba(140, 22, 49, 0.15);
    color: #73152b;
}

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

/* --- Print Styles --- */
@media print {
    #navbar, #backToTop, .swiper {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
