/*
Theme Name: Coco Peat Premium Exporter
Theme URI: https://github.com/weave-track/cocopeat-theme
Author: MK Automations
Author URI: https://mkautomations.com
Description: High-end B2B and B2C WordPress theme tailored for Coco Peat manufacturers, agricultural exporters, and distributors targeting global markets. Optimized for structured data grids, multilingual translations, and inquiry generation.
Version: 1.0.0
Text Domain: cocopeat-theme
License: GNU General Public License v2 or later
*/

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
    --primary-color: #1b4332;       /* Deep Forest Green (Trust/Eco) */
    --primary-light: #2d6a4f;
    --accent-color: #7f5539;        /* Coco Coir Earth Brown */
    --accent-hover: #9c6644;
    --accent-badge: #606c38;        /* Soft olive green for organic badges */
    --bg-light: #fdfbf7;            /* Premium Creamy Off-white */
    --bg-sand: #f3ebd9;             /* Organic Sand Background */
    --text-dark: #2f3e2e;           /* Forest-tinted Dark Text */
    --text-muted: #6b7a6a;
    --border-color: #eae5d9;
    --white: #ffffff;
    --max-width: 1200px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 4px 6px rgba(47,62,46,0.03);
    --shadow-md: 0 10px 20px rgba(47,62,46,0.06);
    --shadow-lg: 0 20px 40px rgba(47,62,46,0.12);
    --border-radius: 12px;
}

/* ==========================================================================
   2. Reset & Core Styling
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(27,67,50,0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27,67,50,0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(127,85,57,0.2);
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(127,85,57,0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. Scroll Reveal & Scroll Pops
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes for grid items */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   4. Header & Announcements (With Transitions)
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 13px;
    padding: 10px 0;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-info span {
    margin-right: 20px;
}

.top-bar-lang a {
    color: var(--white);
    opacity: 0.8;
    margin-left: 10px;
}

.top-bar-lang a:hover {
    opacity: 1;
}

/* Sticky Header Transitions */
.site-header {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: padding 0.3s ease, background-color 0.3s ease;
    padding: 15px 0;
}

.site-header.scrolled {
    padding: 8px 0;
    background-color: rgba(253, 251, 247, 0.98);
    box-shadow: var(--shadow-md);
}

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

.site-logo h1 {
    font-size: 26px;
    margin-bottom: 0;
}

.site-logo a {
    color: var(--primary-color);
    font-weight: 800;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-navigation a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   5. Hero Banner & Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 520px;
    width: 100%;
    overflow: hidden;
    background-color: #0c2017;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: left;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: var(--white);
    max-width: 800px;
    z-index: 3;
}

.slide h2 {
    color: var(--white);
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 850;
    letter-spacing: -1px;
}

.slide p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

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

.slider-dots .dot.active {
    background-color: var(--white);
    transform: scale(1.3);
}

/* ==========================================================================
   6. Sections General
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.section-header:hover h2::after {
    width: 120px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
    font-family: var(--font-body);
}

/* ==========================================================================
   7. Side-by-Side Product Range & Technical Specifications
   ========================================================================== */
.specs-range-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.column-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.range-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.range-card-img {
    height: 180px;
    overflow: hidden;
    background-color: var(--bg-sand);
}

.range-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.range-card-content {
    padding: 20px;
}

.range-card-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.range-card-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.specs-table-wrapper {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.specs-table-wrapper h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

/* Premium Product Cards (Category Loop) */
.products-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27,67,50,0.15);
}

.product-image {
    position: relative;
    height: 240px;
    background-color: #f5f2eb;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Organic oval badge styled like coirproducts.co.uk */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-badge);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.product-info h3 a {
    color: var(--primary-color);
}

.product-info h3 a:hover {
    color: var(--primary-light);
}

.product-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* ==========================================================================
   8. Product single specs & details
   ========================================================================== */
.product-single-container {
    padding: 80px 0;
}

.product-gallery-info {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-main-gallery {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.gallery-thumb-item {
    width: 85px;
    height: 85px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
    border-color: var(--primary-color);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-details h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.product-meta-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.meta-badge {
    background-color: var(--bg-sand);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-desc {
    margin-bottom: 35px;
    font-size: 16px;
    color: var(--text-dark);
}

/* Spec sheet tables */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.specs-table th {
    font-weight: 700;
    color: var(--primary-color);
    background-color: rgba(243, 235, 217, 0.3);
    width: 35%;
}

.specs-table td {
    color: var(--text-dark);
    font-family: var(--font-body);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.product-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* ==========================================================================
   9. RFQ Form (High-End Corporate styling)
   ========================================================================== */
.rfq-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.rfq-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.rfq-section p {
    color: var(--text-muted);
    margin-bottom: 35px;
}

.rfq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.08);
}

/* ==========================================================================
   10. Logistics Layout
   ========================================================================== */
.logistics-section {
    padding: 100px 0;
    background-color: var(--bg-sand);
    text-align: center;
}

.logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.logistics-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.logistics-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==========================================================================
   11. Footer Section
   ========================================================================== */
.site-footer {
    background-color: #0c2017;
    color: #a8bba2;
    padding: 80px 0 30px;
    font-size: 14px;
    border-top: 4px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    width: 35px;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul a {
    color: #a8bba2;
    transition: color 0.3s ease;
}

.footer-widget ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.cert-badge {
    background-color: rgba(255,255,255,0.04);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px dashed rgba(255,255,255,0.12);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   12. Responsive Layouts
   ========================================================================== */
@media(max-width: 992px) {
    .product-gallery-info {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .archive-layout {
        grid-template-columns: 1fr;
    }
    .logistics-grid {
        grid-template-columns: 1fr;
    }
    .specs-range-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .rfq-form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .hero h2 {
        font-size: 36px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .range-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. Horizontal Roadmap Timeline
   ========================================================================== */
.roadmap-container {
    padding: 40px 0;
    overflow-x: auto;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    min-width: 900px;
    position: relative;
}

.roadmap-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.roadmap-step {
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: var(--bg-light);
    padding: 10px;
}

.step-num {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.roadmap-step:hover .step-num {
    background-color: var(--accent-color);
    transform: scale(1.15);
}

.roadmap-step h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 700;
}

.roadmap-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
