/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #5B7B3A;
    --color-primary-dark: #3E5627;
    --color-secondary: #8B6F47;
    --color-accent: #D4A853;
    --color-bg: #FAF7F2;
    --color-bg-alt: #F0EBE1;
    --color-dark: #2D4739;
    --color-text: #3A3A3A;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--color-dark);
    z-index: 1000;
    box-shadow: none;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: var(--nav-height);
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--color-bg);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.nav-demo {
    background-color: var(--color-accent) !important;
    color: var(--color-dark) !important;
    font-weight: 600;
}

.nav-demo:hover {
    background-color: #c4973e !important;
    color: var(--color-dark) !important;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-bg);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Carousel ===== */
.carousel {
    position: relative;
    margin-top: var(--nav-height);
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background-color: var(--color-dark);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-white);
    border: none;
    font-size: 1.4rem;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-accent);
}

/* ===== Intro Section ===== */
.intro {
    padding: 60px 0 50px;
    background-color: var(--color-bg);
}

.intro-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-logo {
    flex-shrink: 0;
    width: 120px;
}

.intro-logo svg {
    width: 100%;
    height: auto;
}

.intro-content {
    flex: 1;
}

.intro-title {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 30px;
    position: relative;
}

.intro-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: -16px;
    margin-bottom: 30px;
}

.intro-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 12px 0 0;
    border-radius: 2px;
}

.intro-numbers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.number-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.intro-text {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== Features Section ===== */
.features {
    padding: 60px 0;
    background-color: var(--color-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background-color: var(--color-bg);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background-color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===== CTA Demo Section ===== */
.cta-demo {
    padding: 60px 0;
    background-color: var(--color-dark);
}

.cta-demo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-demo-text h2 {
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 12px;
}

.cta-demo-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 560px;
}

.cta-demo-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.cta-demo-btn:hover {
    background-color: #c4973e;
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .cta-demo-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-demo-text p {
        max-width: 100%;
    }
}

/* ===== Content Blocks ===== */
.content-block {
    padding: 50px 0;
}

.content-block:nth-child(even) {
    background-color: var(--color-bg-alt);
}

.content-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    border-radius: 8px;
}

.content-text {
    flex: 1;
}

.content-text h3 {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.content-text p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-bg);
    padding: 40px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-accent);
}

.footer-contact p {
    margin-bottom: 6px;
}

.footer-contact a {
    color: var(--color-bg);
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-bg);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.instagram-link:hover {
    color: var(--color-accent);
}

.instagram-icon {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Mobile Styles (< 768px) ===== */
@media (max-width: 768px) {

    /* Hamburger visible */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-dark);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-links.open {
        max-height: 200px;
        padding: 10px 0;
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
        border-radius: 0;
    }

    /* Carousel taller on mobile */
    .carousel {
        aspect-ratio: 4 / 3;
    }

    .carousel-btn {
        font-size: 1.1rem;
        padding: 8px 10px;
    }

    /* Intro */
    .intro {
        padding: 40px 0 30px;
    }

    .intro-row {
        flex-direction: column;
        text-align: center;
    }

    .intro-logo {
        width: 80px;
    }

    .intro-title::after {
        margin: 12px auto 0;
    }

    .intro-title {
        font-size: 1.4rem;
    }

    .number {
        font-size: 1.8rem;
    }

    .intro-numbers {
        gap: 20px;
    }

    /* Features grid stacks vertically */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Content blocks stack vertically */
    .content-row,
    .content-row.reverse {
        flex-direction: column;
    }

    .content-text h3 {
        font-size: 1.2rem;
    }

    /* Footer stacks */
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}
