/*
Theme Name: AgriExport Theme
Theme URI: https://agriexport.co
Author: AgriExport Co.
Author URI: https://agriexport.co
Description: A modern agricultural export company theme with custom styling
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agriexport
Tags: agricultural, export, business, modern
*/

/* Base Styles & Variables */
:root {
    --color-primary: #5bec13;
    --color-background-light: #f6f8f6;
    --color-background-dark: #162210;
    --color-deep-green: #1A3C15;
    --color-earth-brown: #5D4037;
    --color-text-dark: #131811;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --border-color: #dfe6db;
}

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

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.admin-bar .sticky-nav {
    top: 32px;
}

/* Header */
header .header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

header .logo-icon {
    color: var(--color-primary);
    font-size: 2.5rem;
}

header .site-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-text-dark);
}

header .site-title .highlight {
    color: var(--color-primary);
}

header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header nav a {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

header .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 2.5rem;
    padding: 0 1.25rem;
    background: var(--color-primary);
    color: var(--color-deep-green);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

header .btn-primary:hover {
    filter: brightness(1.1);
}

/* Main Content */
main {
    max-width: 1280px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-deep-green);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    color: var(--color-slate-600);
    max-width: 48rem;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-rounded-xl {
    border-radius: 1.5rem;
}

.card-rounded-2xl {
    border-radius: 1rem;
}

.card-rounded-3xl {
    border-radius: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-deep-green);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-deep-green);
    background: transparent;
}

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

/* Forms */
.form-input-custom {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s;
}

.form-input-custom:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 236, 19, 0.1);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-500);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    max-width: 1280px;
    margin: 5rem auto 0;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--color-slate-200);
}

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

footer .footer-title {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-slate-400);
    margin-bottom: 1.5rem;
}

footer .footer-links {
    list-style: none;
}

footer .footer-links li {
    margin-bottom: 1rem;
}

footer .footer-links a {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

footer .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-400);
}

footer .footer-bottom-links {
    display: flex;
    gap: 2rem;
}

/* Material Icons */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-primary {
    background: rgba(91, 236, 19, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(91, 236, 19, 0.2);
}

/* Spacing */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-20 {
    margin-top: 5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

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

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1024px) {
    section {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .header-container {
        padding: 1rem 1.5rem;
    }
    
    header nav {
        display: none;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    footer .footer-grid {
        grid-template-columns: 1fr;
    }
    
    footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-bar .sticky-nav {
        top: 46px;
    }
}

/* Dark Mode Support (if needed in future) */
.dark body {
    background-color: var(--color-background-dark);
    color: white;
}

.dark .sticky-nav {
    background-color: rgba(22, 34, 16, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
