/* ========================================
   AgroWorldTrade - Marketing Site Styles
   ======================================== */

/* Variables */
:root {
    --agro-primary: #198754;
    --agro-primary-dark: #146c43;
    --agro-primary-light: #d1e7dd;
    --agro-secondary: #6c757d;
    --agro-dark: #212529;
    --agro-light: #f8f9fa;
    --header-height: 70px;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--agro-dark);
    padding-top: var(--header-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    height: var(--header-height);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-agro {
    background: linear-gradient(135deg, var(--agro-primary) 0%, var(--agro-primary-dark) 100%);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - var(--header-height));
}

.hero-card {
    background: white;
    border-radius: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--agro-primary);
    border-radius: 1rem;
    opacity: 0.1;
    z-index: -1;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover,
.benefit-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

/* Feature Icons */
.feature-icon,
.benefit-icon,
.module-icon {
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon,
.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* Stats */
.stat-item h2 {
    color: var(--agro-primary);
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: scale(1.02);
}

.pricing-card.border-success {
    border-width: 3px !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--agro-primary-light);
    color: var(--agro-primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(25, 135, 84, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-success {
    background-color: var(--agro-primary);
    border-color: var(--agro-primary);
}

.btn-success:hover {
    background-color: var(--agro-primary-dark);
    border-color: var(--agro-primary-dark);
}

.btn-outline-success:hover {
    background-color: var(--agro-primary);
    border-color: var(--agro-primary);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 1em;
}

/* Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
}

footer .hover-light:hover {
    color: white !important;
}

/* Social Links */
.social-links a {
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Module Preview */
.module-preview {
    min-height: 300px;
}

/* Testimonial Stars */
.testimonial-card .bi-star-fill {
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--agro-primary);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--agro-primary);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Icon Boxes */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}
