/*
Theme Name: Alpha Syndicate
Theme URI: https://alphascyndicate.local
Author: Antigravity
Description: Premium farm produce / agricultural products e-commerce custom theme for Alpha Syndicate LLC.
Version: 1.0.0
Text Domain: alpha-syndicate
*/

/* Core CSS will be placed in assets/css/main.css, or we can use this file. I'll put variables and core styles here to reduce requests. */

:root {
    --color-primary: #2d4a22; /* Earthy green */
    --color-secondary: #8c5a2b; /* Warm brown */
    --color-accent: #d4a373; /* Lighter warm brown/gold */
    --color-background: #faf8f5; /* Cream tone */
    --color-surface: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0dcd3;
    --color-error: #cc0000;
    --color-success: #28a745;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-surface);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-surface);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-surface);
}

/* Header */
.site-header {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Nav Styles */
.site-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.site-nav li {
    position: relative;
    list-style: none;
}

.site-nav a {
    color: var(--color-text);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    display: block;
}

/* Dropdown */
.site-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 10;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.site-nav li:hover > .sub-menu {
    display: block;
}

.site-nav .sub-menu li {
    width: 100%;
    margin: 0;
}

.site-nav .sub-menu a {
    padding: 0.75rem 1rem;
    font-weight: 400;
    border-bottom: 1px solid var(--color-background);
}

.site-nav .sub-menu li:last-child a {
    border-bottom: none;
}

.site-nav .sub-menu a:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
    padding-left: 1.25rem;
}

.header-cart {
    position: relative;
}

.cart-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--color-secondary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.footer-col {
    min-width: 0;
    word-break: break-word;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Promo banner hover animation */
.promo-banner-card:hover {
    transform: translateY(-6px);
}

.promo-banner-card:hover img {
    transform: scale(1.08);
}

.footer-col h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-surface);
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    background-color: var(--color-surface);
    margin-bottom: var(--spacing-sm);
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Page Header */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.page-header h1 {
    color: var(--color-surface);
    margin-bottom: 0;
}

/* Notifications */
.notice {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}
.notice-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.notice-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    display: block;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-background);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-title a {
    color: var(--color-text);
}

.product-title a:hover {
    color: var(--color-primary);
}

.product-price {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.organic-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Pagination */
.pagination {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.pagination ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.pagination li a, .pagination li span {
    display: inline-block;
    padding: 10px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: bold;
}

.pagination li span.current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination li a:hover {
    background: var(--color-background);
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 1rem 0;
    }
    
    #mobile-menu-toggle {
        display: block !important;
    }
    
    .site-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    .site-nav.is-open {
        display: block;
    }
    
    .site-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .site-nav li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .site-nav a {
        padding: 1rem 0;
    }
    
    .site-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: 100%;
    }
    
    .site-nav li:hover > .sub-menu {
        display: none; /* Removed hover for mobile */
    }
    
    .site-nav .sub-menu.is-open {
        display: block !important;
        background: var(--color-background);
        margin-top: 10px;
    }
    
    .submenu-toggle {
        display: block !important;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .shop-sidebar {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    
    main .container[style*="display: flex"] {
        flex-direction: column;
        gap: 20px !important;
    }
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- ARTISTIC SLIDESHOW & SECTIONS --- */
.art-slideshow {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: #1e3318;
}

.art-slides-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.art-slide {
    min-width: 100%;
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.art-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 36, 16, 0.94) 0%, rgba(20, 36, 16, 0.7) 50%, rgba(20, 36, 16, 0.3) 100%);
}

.art-slide-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 60px 50px;
}

.art-slide-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212, 160, 23, 0.25);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.art-slide-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--font-heading);
}

.art-slide-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8df;
    margin-bottom: 25px;
}

.art-slider-nav {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 5;
    display: flex;
    gap: 12px;
}

.art-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.art-slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.08);
}

.art-slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.art-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.art-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--color-accent);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 35px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* Accordion FAQ */
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: var(--color-background);
}

.faq-answer {
    padding: 0 25px 20px;
    display: none;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

