/* ===========================
   Root variables & base reset
   =========================== */

:root {
    --fd-primary:   #215732;  /* PMS 357 C - deep green (primary) */
    --fd-secondary: #64A70B;  /* PMS 369 C - bright green (secondary) */
    --fd-accent:    #8EDD65;  /* PMS 7487 C - soft green (accent) */
    --fd-neutral:   #A89968;  /* PMS 7503 C - warm neutral */
    --fd-earth:     #775135;  /* PMS 7568 C - coffee brown */
    --fd-brown:     #775135;  /* alias for backwards compatibility */

    --fd-bg: #f8f7f3;
    --fd-text: #2b2b2b;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--fd-text);
    background-color: var(--fd-bg);
}

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

/* Layout helpers */

.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--fd-primary);
}

.section-intro {
    max-width: 600px;
    margin-bottom: 2rem;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

/* ===========================
   Header & navigation
   =========================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 3px solid var(--fd-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Desktop nav */

.main-nav ul,
.main-nav .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--fd-primary);
}

/* Hamburger button (hidden on desktop) */

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    border-radius: 999px;
    background: #333;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===========================
   Hero
   =========================== */

.hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 122, 51, 0.85),
        rgba(107, 165, 57, 0.75)
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero-text {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    margin-bottom: 1.5rem;
}

/* ===========================
   VIDEO HERO (RESPONSIVE)
   =========================== */

/* Hero section when it has a background video */
.hero.video-bg {
    position: relative;
    width: 100%;
    min-height: 75vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Remove the default green gradient overlay for video hero */
.hero.video-bg::before {
    content: none;
    background: none;
}

/* Full-width responsive background video */
.hero.video-bg .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

/* Ensure hero content sits above video */
.hero.video-bg .container,
.hero.video-bg .hero-inner {
    position: relative;
    z-index: 3;
}

/* Optional layout if you want the copy on the left, etc. */
.hero-layout {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.hero-copy {
    color: #fff;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Mobile tweaks for video hero */
@media (max-width: 768px) {
    .hero.video-bg {
        min-height: 70vh;
        padding: 3rem 1.25rem;
    }

    .hero-layout {
        max-width: 100%;
    }
}

/* ===========================
   Buttons
   =========================== */

.btn,
.btn-secondary,
.btn-outline,
.btn-text {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn {
    background-color: var(--fd-primary);
    color: #fff;
}

.btn:hover {
    background-color: var(--fd-secondary);
}

.btn-secondary {
    background-color: var(--fd-secondary);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--fd-primary);
    color: var(--fd-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--fd-primary);
    color: #fff;
}

.btn-text {
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
    color: var(--fd-secondary);
}

/* ===========================
   Grids
   =========================== */

.grid {
    display: grid;
    gap: 2rem;
}

/* alias .products-grid / .product-grid for convenience */
.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.blog-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

/* ===========================
   Section: Split (text + image)
   =========================== */

.section-split {
    padding: 1rem 0;
}

.section-split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0rem;
    align-items: center;
}

/* Card-style container for a modern feel */
.section-split-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

/* Text side */
.section-split-content {
    padding: 1rem 1rem;
}

.section-split-content .section-title {
    margin-bottom: 1rem;
}

.section-split-content .section-intro {
    margin-bottom: 1.75rem;
}




/* Image / media side with backdrop */
.section-split-media {
    position: relative;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional subtle overlay on image side */
.section-split-media::before {
    content: "";
    position: absolute;
    inset: 0;

    );
}

/* If you drop an actual <img> inside instead of using background-image */
.section-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stack nicely on mobile */
@media (max-width: 768px) {
    .section-split-inner,
    .section-split-card {
        grid-template-columns: 1fr;
    }

    .section-split-content {
        padding: .5rem .5rem;
    }

    /* Put image on top on mobile (optional) */
    .section-split-media {
        order: -1;
        min-height: 220px;
    }
}

/* ===========================
   Section: Image Backdrop (Modern)
   =========================== */

.section-image-backdrop {
    position: relative;
    padding: 6rem 0;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Subtle transparent overlay using brand colors */
.section-image-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(33, 87, 50, 0.75),   /* var(--fd-primary) */
        rgba(100, 167, 11, 0.55)  /* var(--fd-secondary) */
    );
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* Ensure inner content sits above overlay */
.section-image-backdrop .container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* Typography refinements */
.section-image-backdrop .section-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-image-backdrop .section-intro {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Optional button alignment */
.section-image-backdrop .actions {
    display: flex;
    gap: 1rem;
}

/* ===========================
   Product cards
   =========================== */

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-body {
    padding: 1.25rem;
    flex: 1;
}

.product-prices {
    margin-bottom: 0.5rem;
}

.price-old {
    text-decoration: line-through;
    color: #aaa;
    margin-right: 0.5rem;
}

.price-new {
    color: var(--fd-primary);
    font-weight: 700;
}

.product-title {
    margin: 0.25rem 0 0.5rem;
}

/* ===========================
   Testimonials
   =========================== */

.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--fd-secondary);
}

/* ===========================
   Contact CTA
   =========================== */

.contact-cta-inner {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Forms
   =========================== */

.form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.5rem;
    font: inherit;
}

/* ===========================
   Alerts
   =========================== */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert.success {
    background-color: #e9f7ef;
    color: #2e7d32;
}

/* ===========================
   Order summary
   =========================== */

.order-summary {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    border-top: 1px solid #eee;
}

.order-summary li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.order-summary .order-total {
    font-weight: 700;
}

/* ===========================
   Page hero
   =========================== */

.page-hero {
    padding: 3rem 0;
    text-align: left;
    background: transparent;
    box-shadow: none;
}

.page-hero.small {
    padding: 2.5rem 0;
}

.page-title {
    margin: 0;
    color: var(--fd-primary);
    font-weight: 700;
    font-size: 2.2rem;
}

/* ===========================
   Images
   =========================== */

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ===========================
   Modern quantity control
   =========================== */

.product-add-form {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #ddd;
    overflow: hidden;
    background-color: #fff;
}

.qty-btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--fd-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: var(--fd-primary);
    color: #fff;
}

.qty-input {
    width: 3rem;
    border: none;
    text-align: center;
    font: inherit;
    padding: 0.35rem 0.2rem;
    outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.add-to-cart-btn {
    white-space: nowrap;
}

/* ===========================
   Cart layout responsive tweaks
   =========================== */

.cart-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
}

.cart-summary {
    margin-top: 1.5rem;
}

.cart-qty-control {
    justify-content: flex-end;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
    background-color: var(--fd-primary);
    color: #e8f2ea;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.site-footer p {
    margin: 0;
    text-align: center;
}

/* ===========================
   Media queries
   =========================== */

/* Large tablets / small desktops */
@media (max-width: 992px) {
    .products-grid,
    .product-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones & small tablets */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header,
    nav,
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-text,
    .about-text {
        padding: 1rem 0;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .product-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cart-table {
        border: 0;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        border-bottom: 1px solid #eee;
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
    }

    .cart-table td {
        text-align: right;
    }

    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #555;
    }

    .cart-col-product {
        font-weight: 600;
    }

    .cart-qty-control {
        justify-content: flex-start;
    }

    .qty-input {
        width: 3.25rem;
    }

    .cart-summary {
        text-align: left;
    }

    /* Mobile header tweaks */
    .site-header {
        padding: 0.5rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .header-inner {
        align-items: center;
        gap: 0.75rem;
    }

    /* BIGGER + SLIGHTLY RIGHT-SHIFTED LOGO ON MOBILE */
    .logo img {
        height: 68px;       /* increased from smaller mobile size */
        margin-left: 10px;  /* nudges logo to the right */
    }

    /* Mobile nav: right-side slide-in drawer */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid #d0d0d0;
        background: #ffffff;
        padding: 0;
        position: relative;
        z-index: 10000;
        cursor: pointer;
        font-size: 26px;   /* controls 🌿 size */
        line-height: 1;
        overflow: hidden;
    }

    /* 🌿 leaf (default / closed state) */
    .nav-toggle::before {
        content: "🌿";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

  /* X lines (smaller + centered) */
.nav-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;        /* smaller width */
    height: 2px;        /* thickness */
    background: var(--fd-primary);
    border-radius: 999px;
    transform-origin: center;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate X */
.nav-toggle span {
    position: absolute;
    left: 50%;
    top: 40%;
    width: 16px;
    height: 2px;
    background: var(--fd-primary);
    border-radius: 999px;
    transform-origin: center;
    opacity: 0;

    /* Move up slightly */
    transform: translate(-50%, -55%) rotate(0deg);

    transition: transform 0.25s ease, opacity 0.25s ease;
}


    /* third span not needed */
    .nav-toggle span:nth-child(3) {
        display: none;
    }

    /* when nav is OPEN (aria-expanded="true") */
    .nav-toggle[aria-expanded="true"]::before {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .main-nav .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 50vw;
        max-width: 320px;
        background: #ffffff;
        padding: 2rem 1.5rem;
        margin: 0;
        list-style: none;
        box-shadow: -4px 0 12px rgba(0,0,0,0.18);
        display: none;            /* hidden by default */
        flex-direction: column;
        gap: 1rem;
        z-index: 9999;
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .main-nav .nav-menu.open {
        display: flex;            /* shown when .open is present */
        animation: navFadeInRight 0.25s ease-out;
    }

    .main-nav .nav-menu li {
        width: 100%;
    }

    .main-nav .nav-menu a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        letter-spacing: 0.06em;
        padding: 0.35rem 0;
        color: #333;
    }

    @keyframes navFadeInRight {
        from {
            opacity: 0;
            transform: translateX(10px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}




