/*
Theme Name: DNS Commodities
Theme URI: https://dnscommodities.com
Description: Custom WordPress theme for DNS Commodities - Ag/Renewable Intelligence
Author: DNS Commodities
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dns-commodities
*/

/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #4a7c59;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --accent-green: #5a8a62;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

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

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

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.site-logo {
    height: 50px;
}

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

.main-navigation a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: flex;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section h4 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-section h4 {
        font-size: 18px;
    }
}

/* ===========================
   Subscribe Section
   =========================== */
.subscribe-section {
    background: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
}

.subscribe-inner {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.subscribe-section p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.subscribe-form button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: var(--secondary-color);
}

@media (max-width: 600px) {
    .subscribe-form {
        flex-direction: column;
    }
}

/* ===========================
   Content Sections
   =========================== */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-dark);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.post-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Single Post */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.single-post-content .post-meta {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.single-post-content .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.single-post-content .entry-content h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.single-post-content .entry-content h3 {
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.single-post-content .entry-content p {
    margin-bottom: 20px;
}

.single-post-content .entry-content img {
    margin: 30px 0;
    border-radius: 8px;
}

/* ===========================
   Contact Form
   =========================== */
.contact-section {
    background: var(--bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

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

.form-submit button {
    padding: 15px 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit button:hover {
    background: var(--secondary-color);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
