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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background-color: rgba(26, 92, 58, 0.2);
    color: #1a5c3a;
}

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

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    will-change: transform;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .product-card {
        will-change: auto;
    }
}

/* ========== FORM ========== */
.contact-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #d4c8b0;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #1a5c3a;
    background: #fdfcfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.contact-input::placeholder {
    color: #a09080;
}

.contact-input:focus {
    border-color: #1a5c3a;
    box-shadow: 0 0 0 4px rgba(26, 92, 58, 0.1);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: #1a5c3a;
    color: #fdfcfa;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: #144a2f;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26, 92, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Success message */
.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #d5e8da;
    border: 2px solid #7fb88a;
    border-radius: 12px;
    color: #1a5c3a;
    font-weight: 500;
    animation: fadeIn 0.4s ease;
}

.form-success.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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