/*
Theme Name: Pfusheo
Theme URI: https://pfusheo.co.za
Author: Odneth
Author URI: https://odneth.com
Description: A clean, modern WordPress theme for Pfusheo, an agriculture and e-commerce brand. Features a white and dark grey color palette with vibrant green accent (#32CD32).
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pfusheo
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS TABLE OF CONTENTS
   ============================================
   1. CSS Variables & Reset
   2. Typography
   3. Layout & Utility Classes
   4. Header & Navigation
   5. Hero Section
   6. Welcome Section
   7. Product Preview Section
   8. Product Grid
   9. Hero Banner (Inner Pages)
   10. About Page
   11. Products Page
   12. Contact Page
   13. Footer
   14. Buttons & Links
   15. Responsive Media Queries
   ============================================ */

/* --------------------------------------------------
   1. CSS Variables & Reset
   -------------------------------------------------- */
:root {
    --pf-green: #32CD32;
    --pf-green-dark: #28a428;
    --pf-green-light: #5edc5e;
    --pf-white: #ffffff;
    --pf-dark-grey: #2d2d2d;
    --pf-dark-grey-light: #3d3d3d;
    --pf-medium-grey: #666666;
    --pf-light-grey: #999999;
    --pf-border-grey: #e0e0e0;
    --pf-bg-grey: #f7f7f7;
    --pf-bg-dark: #1a1a1a;
    --pf-transition: all 0.3s ease;
    --pf-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --pf-shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Open Sans', Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--pf-dark-grey);
    background-color: var(--pf-white);
    overflow-x: hidden;
}

a {
    color: var(--pf-green);
    text-decoration: none;
    transition: var(--pf-transition);
}

a:hover,
a:focus {
    color: var(--pf-green-dark);
}

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

ul, ol {
    list-style: none;
}

/* --------------------------------------------------
   2. Typography
   -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pf-dark-grey);
    margin-bottom: 15px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 15px;
    color: var(--pf-medium-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.green-text {
    color: var(--pf-green);
}

/* --------------------------------------------------
   3. Layout & Utility Classes
   -------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    min-height: 400px;
}

.text-center {
    text-align: center;
}

/* --------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------- */
.site-header {
    background-color: var(--pf-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pf-green);
    letter-spacing: -1px;
    margin-left: 8px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--pf-dark-grey);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--pf-transition);
    border-radius: 4px;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu .current-menu-item a,
.main-menu .current_page_item a {
    color: var(--pf-green);
    background-color: rgba(50, 205, 50, 0.08);
}

/* Cart Icon */
.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 50%;
    transition: var(--pf-transition);
}

.cart-icon:hover {
    background-color: rgba(50, 205, 50, 0.1);
}

.cart-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--pf-dark-grey);
    transition: var(--pf-transition);
}

.cart-icon:hover svg {
    fill: var(--pf-green);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--pf-dark-grey);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--pf-transition);
}

/* --------------------------------------------------
   5. Hero Section (Home)
   -------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 100px 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-content .hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--pf-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-subtitle {
    font-size: 1.5rem;
    color: var(--pf-white);
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 300;
}

/* --------------------------------------------------
   6. Welcome Section
   -------------------------------------------------- */
.welcome-section {
    padding: 80px 0;
    background-color: var(--pf-white);
}

.welcome-cols {
    display: flex;
    align-items: center;
    gap: 60px;
}

.welcome-col {
    flex: 1;
}

.welcome-img img {
    border-radius: 8px;
    box-shadow: var(--pf-shadow);
    width: 100%;
    height: auto;
}

.welcome-text .section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 15px;
}

.welcome-text .italic-text {
    font-style: italic;
    color: var(--pf-medium-grey);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

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

.icon-item {
    padding: 20px;
    border-radius: 8px;
    background-color: var(--pf-bg-grey);
    transition: var(--pf-transition);
}

.icon-item:hover {
    box-shadow: var(--pf-shadow-hover);
    transform: translateY(-3px);
}

.icon-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: rgba(50, 205, 50, 0.1);
    margin-bottom: 15px;
}

.icon-item .icon svg {
    width: 28px;
    height: 28px;
    fill: var(--pf-green);
}

.icon-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--pf-dark-grey);
}

.icon-item p {
    font-size: 0.9rem;
    color: var(--pf-light-grey);
    margin-bottom: 12px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pf-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--pf-transition);
}

.read-more:hover {
    color: var(--pf-green-dark);
    letter-spacing: 1.5px;
}

/* --------------------------------------------------
   7. Product Preview Section
   -------------------------------------------------- */
.product-preview {
    position: relative;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.product-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.preview-content {
    position: relative;
    z-index: 1;
}

.preview-content .section-title {
    color: var(--pf-white);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* --------------------------------------------------
   8. Product Grid
   -------------------------------------------------- */
.product-grid {
    padding: 80px 0;
    background-color: var(--pf-white);
}

.grid-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-col {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--pf-shadow);
    transition: var(--pf-transition);
    background-color: var(--pf-white);
}

.grid-col:hover {
    box-shadow: var(--pf-shadow-hover);
    transform: translateY(-5px);
}

.grid-col img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.grid-col h3 {
    padding: 20px;
    font-size: 1.15rem;
    color: var(--pf-dark-grey);
}

/* --------------------------------------------------
   9. Hero Banner (Inner Pages)
   -------------------------------------------------- */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0 20px 20px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.breadcrumb {
    position: relative;
    z-index: 1;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px 4px 0 0;
    font-size: 0.9rem;
    color: var(--pf-medium-grey);
}

.breadcrumb span {
    font-weight: 500;
}

.breadcrumb a {
    color: var(--pf-green);
}

.breadcrumb a:hover {
    color: var(--pf-green-dark);
}

/* --------------------------------------------------
   10. About Page
   -------------------------------------------------- */
.about-content {
    padding: 80px 0;
    background-color: var(--pf-white);
}

.about-cols {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-col {
    flex: 1;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--pf-shadow);
}

.text-block {
    margin-bottom: 35px;
}

.text-block:last-child {
    margin-bottom: 0;
}

.block-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--pf-green);
}

/* --------------------------------------------------
   11. Products Page
   -------------------------------------------------- */
.products-content {
    padding: 80px 0;
    background-color: var(--pf-white);
    min-height: 300px;
}

.products-content .section-title {
    color: var(--pf-dark-grey);
}

/* --------------------------------------------------
   12. Contact Page
   -------------------------------------------------- */
.contact-content {
    padding: 80px 0;
    background-color: var(--pf-bg-grey);
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background-color: var(--pf-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--pf-shadow);
    transition: var(--pf-transition);
}

.card:hover {
    box-shadow: var(--pf-shadow-hover);
}

.card-title {
    font-size: 1.2rem;
    color: var(--pf-dark-grey);
    margin-bottom: 8px;
    margin-top: 20px;
}

.card-title:first-child {
    margin-top: 0;
}

.card p {
    color: var(--pf-light-grey);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Contact Form */
.card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.card form input,
.card form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--pf-border-grey);
    border-radius: 4px;
    font-family: 'Roboto', 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: var(--pf-dark-grey);
    background-color: var(--pf-white);
    transition: var(--pf-transition);
    outline: none;
}

.card form input:focus,
.card form textarea:focus {
    border-color: var(--pf-green);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.1);
}

.card form input::placeholder,
.card form textarea::placeholder {
    color: var(--pf-light-grey);
}

.card form textarea {
    min-height: 120px;
    resize: vertical;
}

/* --------------------------------------------------
   13. Footer
   -------------------------------------------------- */
.site-footer {
    background-color: var(--pf-dark-grey);
    color: #cccccc;
    padding: 60px 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
    color: var(--pf-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    color: #bbbbbb;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbbbbb;
    font-size: 0.9rem;
    transition: var(--pf-transition);
}

.footer-column ul li a:hover {
    color: var(--pf-green);
    padding-left: 5px;
}

.footer-column .button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
    background-color: var(--pf-white);
    color: var(--pf-dark-grey);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--pf-transition);
}

.footer-column .button:hover {
    background-color: var(--pf-green);
    color: var(--pf-white);
}

/* Site Info / Bottom Bar */
.site-info {
    text-align: center;
    padding: 20px 0;
    color: #999999;
    font-size: 0.85rem;
}

.site-info .highlight {
    color: var(--pf-green);
    font-weight: 600;
}

/* --------------------------------------------------
   14. Buttons & Links
   -------------------------------------------------- */
.button {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--pf-white);
    color: var(--pf-dark-grey);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--pf-transition);
    text-decoration: none;
}

.button:hover {
    background-color: var(--pf-green);
    color: var(--pf-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.3);
}

.button-green {
    background-color: var(--pf-green);
    color: var(--pf-white);
}

.button-green:hover {
    background-color: var(--pf-green-dark);
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.4);
}

/* --------------------------------------------------
   15. Responsive Media Queries
   -------------------------------------------------- */
/* Tablet */
@media (max-width: 992px) {
    .welcome-cols {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-cols {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .grid-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content .hero-title {
        font-size: 3rem;
    }
    
    .preview-content .section-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--pf-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .main-menu.toggled {
        display: flex;
    }
    
    .main-menu li {
        width: 100%;
    }
    
    .main-menu a {
        padding: 12px 14px;
        border-radius: 0;
        border-bottom: 1px solid var(--pf-border-grey);
    }
    
    .cart-icon {
        margin-left: auto;
    }
    
    .hero-section {
        min-height: 400px;
        padding: 60px 20px;
    }
    
    .hero-content .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .grid-cols {
        grid-template-columns: 1fr;
    }
    
    .icon-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .product-preview {
        padding: 60px 20px;
    }
    
    .preview-content .section-title {
        font-size: 1.6rem;
    }
    
    .hero-banner {
        min-height: 200px;
    }
    
    .about-content,
    .products-content,
    .contact-content,
    .welcome-section,
    .product-grid {
        padding: 50px 0;
    }
    
    .card {
        padding: 25px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-inner {
        height: 65px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero-content .hero-title {
        font-size: 1.8rem;
    }
    
    .button {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip Link */
.skip-link {
    background-color: var(--pf-dark-grey);
    color: var(--pf-white);
    padding: 10px 20px;
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    border-radius: 4px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 20px;
}
