/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #1B4332;
    color: #FDFCF8;
}

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

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1B4332;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #1B4332;
}

#navbar.scrolled .nav-link::after {
    background: #1B4332;
}

/* ── Floating Cards ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5s;
}

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

/* ── Product Cards ── */
.product-card {
    cursor: pointer;
}

/* ── Service Cards ── */
.service-card {
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: rgba(27, 67, 50, 0.15);
}

/* ── Project Cards ── */
.project-card {
    cursor: pointer;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .product-reveal,
    .about-reveal,
    .services-reveal,
    .projects-reveal,
    .trust-reveal,
    .contact-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .product-reveal.revealed,
    .about-reveal.revealed,
    .services-reveal.revealed,
    .projects-reveal.revealed,
    .trust-reveal.revealed,
    .contact-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .product-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
    }

    .product-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease, border-color 0.3s ease;
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .project-card {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .project-card.revealed {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Mobile Menu ── */
.mobile-nav-link {
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    padding-bottom: 12px;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ── Form Styles ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select:focus {
    outline: none;
}

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