/* ===================== THEME VARIABLES ===================== */
:root {
    /* Brand Colors (Calm Sage & Warm Earth) */
    --color-primary: #2d6a4f;        /* Deep Sage/Forest Moss - rich and grounding for primary actions */
    --color-secondary: #52b788;      /* Mint Leaf - excellent for highlights or secondary elements */
    --color-accent: #d97706;         /* Soft Terracotta/Amber - a warm contrast pop for badges or links */

    /* Light Mode Layout Surfaces */
    --color-bg: #f7f5f0;             /* Warm Stone/Alabaster - a soft, organic off-white that prevents eye strain */
    --color-surface: #ffffff;        /* Crisp White - gives cards and feature blocks a clean "lift" over the bg */
    --color-border: #e6e2d8;         /* Soft clay border to keep layout elements cleanly separated */

    /* Typography (Accessible, High-Contrast Grays) */
    --color-heading: #1c2d24;        /* Dark Moss Charcoal - deep forest-tinted gray for headers */
    --color-text: #2f3e36;           /* Charcoal Slate - softer than pure black, but sharp and highly readable */
    --color-text-light: #65746c;     /* Muted Sage Gray - ideal for subtext and metadata */

    /* Functional UI & Atmosphere */
    --shadow-soft: 0 10px 30px rgba(45, 54, 49, 0.04); /* Soft, organic shadow using a hint of the deep moss tone */
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ===================== GLOBAL ===================== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 40px 0;
    scroll-margin-top: 90px;
}

@media (min-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 80px 0;
    }
}

/* ===================== BUTTON ===================== */

.btn-primary {
    background: var(--color-accent);
    padding: 10px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: #000;
    display: inline-block;
}

/* ===================== HEADER ===================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.header .btn-primary {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 20px;
}

/* ===================== NAV ===================== */
.nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

    .nav a {
        padding: 15px 20px;
        border-top: 1px solid var(--color-border);
        text-decoration: none;
        color: var(--color-text);
    }

    .nav.open {
        display: flex;
    }

.menu-toggle {
    display: block;
    cursor: pointer;
}

/* Desktop Nav */
@media (min-width: 768px) {
    .nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        border: none;
    }

        .nav a {
            border: none;
            padding: 0 10px;
        }

    .menu-toggle {
        display: none;
    }
}

/* ===================== CAROUSEL ===================== */

.carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Layout */
.carousel-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 40px 0;
}

.carousel-text h1 {
    font-size: 32px;
    color: var(--color-heading);
}

.carousel-text p {
    color: var(--color-text-light);
}

/* Button fix */
.carousel-text .btn-primary {
    width: 100%;
    max-width: 220px;
}

/* Desktop */
@media (min-width: 768px) {
    .carousel-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .carousel-text h1 {
        font-size: 48px;
    }

    .carousel-text .btn-primary {
        width: auto;
    }
}

.carousel-image img {
    width: 100%;
    max-width: 500px;
}

/* Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

    .carousel-controls button {
        background: white;
        border: none;
        padding: 10px 15px;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: var(--shadow-soft);
    }

/* ===================== MISSION ===================== */

.mission {
    text-align: center;
}

    .mission p {
        max-width: 700px;
        margin: auto;
        color: var(--color-text-light);
    }

/* ===================== PRODUCTS ===================== */

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--color-surface);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

    .product-card:hover {
        transform: translateY(-5px);
    }

/* ===================== FEATURES ===================== */

.feature-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

    .feature-item.reverse {
        justify-content: flex-end;
    }

.feature-content {
    /* Changes from hardcoded light gray to your rich navy surface color */
    background: var(--color-surface); 
    
    /* Changes from hardcoded 20px to your consistent 12px theme radius */
    border-radius: var(--radius); 
    
    /* Adds a subtle border to help the block pop from the main background */
    border: 1px solid var(--color-border); 
    
    /* Keeps the layout styling intact */
    padding: 30px;
    max-width: 800px;
    width: 100%;
    position: relative;
    
    /* Optional: Adds your smooth theme shadow for extra depth */
    box-shadow: var(--shadow-soft);
}

    .feature-content::before {
        content: "";
        position: absolute;
        left: -10px;
        top: 30px;
        width: 4px;
        height: 40px;
        background: var(--color-primary);
    }

.feature-item.reverse .feature-content::before {
    left: auto;
    right: -10px;
}

@media (max-width: 767px) {
    .feature-item,
    .feature-item.reverse {
        justify-content: center;
    }

    .feature-content::before {
        display: none;
    }
}

/* ===================== IMAGE TEXT ===================== */

.image-text-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .image-text-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.image-text-image img {
    width: 100%;
    border-radius: var(--radius);
}

/* ===================== FULL WIDTH IMAGE ===================== */

.full-width-image img {
    width: 100%;
    display: block;
}

/* ===================== FAQ ===================== */

/* Ensure the section header uses your heading color */
.faq h2 {
    color: var(--color-heading);
    margin-bottom: 24px;
}

/* Base styling for each accordion row */
.faq-item {
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    overflow: hidden; /* Keeps the answer content contained within the border-radius */
    box-shadow: var(--shadow-soft);
}

/* Fixed Question Button */
.faq-question {
    width: 100%;
    padding: 18px 20px; /* Generous clickable area */
    border: none;
    background: transparent; /* Lets the .faq-item background show through */
    color: var(--color-heading); /* Changes text from black to crisp white */
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Subtle hover effect on the question text */
.faq-question:hover {
    color: var(--color-primary); /* Highlights in electric cyan on hover */
}

/* Fixed Answer Container & Text */
.faq-answer {
    display: none;
    padding: 0 20px 20px 20px; /* Keeps padding consistent on left/right/bottom */
}

.faq-answer p {
    color: var(--color-text); /* Changes text from black to soft ice blue */
    margin: 0;
    line-height: 1.6;
}

/* ===================== RTE ===================== */

.rte-content {
    max-width: 800px;
    margin: auto;
    line-height: 1.7;
}

/* ===================== CONTACT ===================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form {
    background: var(--color-surface);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 12px;
        border-radius: var(--radius);
        border: 1px solid var(--color-border);
        margin-bottom: 10px;
    }

/* ===================== FOOTER ===================== */

.footer {
    background: var(--color-heading);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}
