/*
Theme Name: Chilumba Farm Child
Theme URI: https://jamestallkadzeyalab.com/chilumba-farm-child
Author: Jamestall Kadzeya Lab
Author URI: https://jamestallkadzeyalab.com
Description: Child theme for Chilumba Farm.
Template: chilumba-farm-theme
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chilumba-farm-child
*/

/* =====================================================
   GLOBAL BRAND COLORS
   ===================================================== */
:root {
    --farm-green-dark: #0b4d2b;
    --farm-green: #1f7a3a;
    --farm-green-light: #dff6ea;
    --farm-earth: #8b6b3e;
    --farm-white: #ffffff;
}

/* =====================================================
   REMOVE REDUNDANT PAGE TITLES (Home, My Account, etc.)
   ===================================================== */
.page .entry-title,
.single .entry-title,
.page-title,
.woocommerce-page .page-title {
    display: none;
}

/* Preserve white space below header */
.site-content,
#content,
main {
    padding-top: 3rem;
}

/* =====================================================
   HERO VIDEO (ROUNDED, RESPONSIVE, NOT FULL PAGE)
   ===================================================== */
.hero-video {
    max-width: 1100px;
    margin: 2rem auto;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--farm-green-dark);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .hero-video {
        max-width: 94%;
        border-radius: 14px;
    }
}
.hero-video video {
    max-height: 520px;
    object-fit: cover;
}

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


/* =====================================================
   WOOCOMMERCE PRODUCT CARD CUSTOMIZATION
   ===================================================== */

/* Product Card */
.woocommerce ul.products li.product,
.woocommerce .products ul li.product {
    background-color: var(--farm-white) !important;
    border: 1px solid #eee !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Product Image */
.woocommerce ul.products li.product img {
    border-radius: 12px;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    padding: 0 1.2rem;
}

/* Short Description (FIXED selector) */
.woocommerce ul.products li.product .woocommerce-product-details__short-description {
    font-size: 0.9rem;
    color: #555;
    padding: 0 1.2rem;
    margin-bottom: 0.75rem;
}

/* Price */
.woocommerce ul.products li.product .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--farm-green) !important;
    padding: 0 1.2rem;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    background-color: var(--farm-green-dark) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 0.45rem 1rem !important;
    margin: 0.75rem 1.2rem 1.2rem;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--farm-green) !important;
}

/* Out of Stock */
.woocommerce ul.products li.product .out-of-stock {
    color: #b00020 !important;
    font-weight: bold;
}

/* =====================================================
   PRODUCT GRID (DESKTOP & MOBILE)
   ===================================================== */

/* Desktop */
@media (min-width: 992px) {
    .woocommerce ul.products li.product {
        width: calc(25% - 30px) !important;
        margin: 15px !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .woocommerce ul.products li.product {
        width: calc(50% - 20px) !important;
        margin: 10px !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 10px 0 !important;
    }
}

/* =====================================================
   FOOTER STYLING
   ===================================================== */
.site-footer {
    background-color: var(--farm-green-dark);
    color: #ffffff;
    text-align: center;
    padding: 2.5rem 1rem;
}

.site-footer a {
    color: #d9f2e6;
}

.site-footer a:hover {
    color: #ffffff;
}
/* =====================================================
   REMOVE REDUNDANT PAGE TITLES (FOR ALL NAV PAGES)
   ===================================================== */

/* Common page title patterns */
.page h1.entry-title,
.page h1.page-title,
.page h1.title,
.page .page-header,
.page .page-header h1,
.woocommerce-account h1,
.woocommerce-account .page-title,
.woocommerce-page h1.page-title,
.woocommerce-page .page-header,
.woocommerce-page .page-header h1 {
    display: none !important;
}

/* Preserve spacing below header */
.site-content,
#content,
main {
    padding-top: 2.5rem;
}
/* =====================================================
   MOBILE HAMBURGER MENU – HIDDEN ON DESKTOP
   ===================================================== */

.menu-toggle,
.mobile-menu-toggle,
.nav-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    .menu-toggle,
    .mobile-menu-toggle,
    .nav-toggle {
        display: flex !important;
        margin-left: auto !important;
        margin-right: 1rem !important;
        align-items: center;
    }
}

/* =====================================================
   WHO WE WORK WITH – PARTNERS LOGO SECTION
   ===================================================== */
.partners-section {
    background-color: #f5f2ed;
    padding: 3rem 1rem 2.5rem;
    text-align: center;
}

.partners-heading {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin: 0 0 2rem;
    letter-spacing: 0.02em;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 110px;
    background-color: #eae7e1;
    border-radius: 10px;
    padding: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.partner-card.has-subtitle {
    height: 130px;
    padding: 0.5rem 0.75rem;
}

.partner-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    height: 100%;
}

.partner-card.has-subtitle img {
    max-height: 65px;
}

.partner-subtitle {
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: none;
    transition: filter 0.2s ease;
}

.partner-card:hover img {
    filter: brightness(1.05);
}

.partner-text-logo {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* Responsive – Tablet */
@media (max-width: 991px) {
    .partner-card {
        width: 130px;
        height: 95px;
    }

    .partner-card.has-subtitle {
        height: 115px;
    }
}

/* Responsive – Mobile: compact 2-column grid */
@media (max-width: 768px) {
    section.partners-section {
        padding: 1.5rem 0.5rem 1.25rem !important;
    }

    section.partners-section .partners-heading {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    section.partners-section .partners-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        max-width: 340px !important;
        margin: 0 auto !important;
        flex-wrap: unset !important;
    }

    section.partners-section .partners-grid .partner-card {
        width: 100% !important;
        height: 75px !important;
        padding: 0.4rem !important;
        border-radius: 8px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    section.partners-section .partners-grid .partner-card.has-subtitle {
        height: 90px !important;
        padding: 0.3rem 0.4rem !important;
    }

    section.partners-section .partners-grid .partner-card img {
        max-height: 42px !important;
        max-width: 100% !important;
    }

    section.partners-section .partners-grid .partner-card.has-subtitle img {
        max-height: 36px !important;
    }

    section.partners-section .partner-subtitle {
        font-size: 0.5rem !important;
        white-space: nowrap !important;
    }

    section.partners-section .partner-text-logo {
        font-size: 0.65rem !important;
    }

    section.partners-section .partner-card-inner {
        gap: 0.15rem !important;
    }
}

