/* GrainsBrok.pro - Professional Styles */

:root {
    --primary: #1a237e;
    --primary-light: #283593;
    --accent: #D4AF37;
    --accent-light: #E5C158;
    --dark: #0d1642;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent);
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: #fff;
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Market Ticker */
.market-ticker {
    background: var(--dark);
    color: #fff;
    padding: 15px 0;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 40px;
    font-size: 0.95rem;
}

.ticker-item .commodity {
    font-weight: 600;
    margin-right: 8px;
}

.ticker-item .price {
    color: var(--accent);
    font-weight: 600;
}

.ticker-item .change-up { color: #4caf50; }
.ticker-item .change-down { color: #f44336; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections */
section {
    padding: 80px 0;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
}

/* About */
.about {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.credentials {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.credentials h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.credentials ul {
    list-style: none;
}

.credentials li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.credentials li:last-child {
    border-bottom: none;
}

.image-placeholder {
    height: 400px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.wheat-field {
    background: linear-gradient(135deg, #f5f5dc 0%, #daa520 50%, #228b22 100%);
    position: relative;
    overflow: hidden;
}

.wheat-field::before {
    content: '🌾';
    position: absolute;
    font-size: 200px;
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-bottom-color: var(--accent);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Markets */
.markets {
    background: var(--light);
}

.markets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.market-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.market-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.market-card ul {
    list-style: none;
}

.market-card li {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
}

.products {
    text-align: center;
}

.products h3 {
    color: var(--primary);
    margin-bottom: 25px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--accent);
    color: var(--dark);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.email {
    font-size: 1.1rem;
    color: #333;
}

.contact-hours {
    background: var(--primary);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
}

.contact-hours h3 {
    margin-bottom: 10px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--accent-light);
}

/* Footer */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-tagline {
    margin-top: 10px;
    opacity: 0.8;
}

.footer-legal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .nav,
[dir="rtl"] .hero-stats,
[dir="rtl"] .services-grid,
[dir="rtl"] .markets-grid,
[dir="rtl"] .contact-grid {
    direction: rtl;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .markets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 2rem;
    }
}
