/* ===== Variables & Theme ===== */
:root {
    --primary-color: #2b4227;
    /* Deep Forest Green */
    --accent-color: #55c57a;
    /* Vibrant Accent Green */
    --accent-hover: #40a060;
    --bg-color: #fcfdfa;
    /* Off-white warm background */
    --text-main: #333333;
    --text-muted: #666666;
    --card-bg: #ffffff;
    --border-color: #e5e9e5;
    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(85, 197, 122, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 197, 122, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebd5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.25rem;
    transition: var(--transition);
}

.nav-menu a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section & Slider ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero-slider,
.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
    width: 100%;
}

.carousel-item {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background Zoom Animation (Abducted from demo-like feel) */
.carousel-item.active {
    transform: scale(1.02);
}

/* Slide Overlay (Restored from Demo) */
.carousel-item::after,
.hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 30, 15, 0.4) 0%, rgba(10, 20, 10, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 5%;
    color: white;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 800;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Active Slide Transitions for Content */
.carousel-item.active .hero-content {
    animation: fadeInUp 1s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Manual Navigation Styles */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    z-index: 20;
    opacity: 0.6;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent-color);
    opacity: 1;
    border-color: transparent;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 20;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    border: none;
}

.carousel-indicators .active {
    background: var(--accent-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero {
        height: 75vh;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* ===== About Section ===== */
.about-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(85, 197, 122, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-muted);
}

/* ===== Products Section ===== */
.products-section {
    padding: 6rem 0;
    background-color: #f1f4f0;
    /* Slightly darker back for contrast */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 2rem;
}

.product-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.product-traits {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-traits li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-traits li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    margin-bottom: 1rem;
    display: inline-flex;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* ===== Footer Link Interactivity ===== */
.footer-link-item:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

/* ===== Dynamic Page Content Styles ===== */
.site-page-content h2,
.site-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.site-page-content ul,
.site-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.site-page-content li {
    margin-bottom: 0.5rem;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-toggle {
        display: flex;
    }
}