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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Header and Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2E7D32;
    margin: 0;
    font-weight: 700;
}

.logo span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2E7D32;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2E7D32;
    animation: slideIn 0.3s ease;
}

.btn-nav-cta {
    background: #2E7D32;
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: #1B5E20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

/* Hero Section - FIXED OVERLAPPING ISSUE */
.hero {
    background: linear-gradient(135deg, rgba(46,125,50,0.85) 0%, rgba(56,142,60,0.85) 100%), url("../images/hero-banner.png");
    background-size: cover;
    background-position: center;
    /* REMOVED: background-attachment: fixed; - This was causing mobile issues */
    color: white;
    padding: 120px 0 80px; /* REDUCED from 150px to prevent overlap */
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.1) 0%, rgba(56,142,60,0.1) 100%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero h1 {
    font-size: 3rem; /* REDUCED from 3.5rem for better mobile display */
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Lead Form Inline */
.lead-form-inline {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto 3rem;
    max-width: 600px;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lead-form-inline h3 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-inline input {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-inline input:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.btn-primary-large {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-primary-large:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

/* Trust Signals */
.trust-signals {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.trust-intro {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-item {
    color: #888;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

/* Social Proof */
.social-proof {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #2E7D32;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    color: #2E7D32;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Research */
.featured-research {
    padding: 100px 0;
    background: #f8f9fa;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #2E7D32;
}

.research-card.featured {
    border-color: #2E7D32;
    background: linear-gradient(135deg, #fff 0%, #f0f8f0 100%);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #2E7D32;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.research-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.research-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.research-metrics {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.metric {
    background: #E8F5E8;
    color: #2E7D32;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Value Proposition */
.value-proposition {
    padding: 100px 0;
    background: white;
}

.value-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.value-text h2 {
    color: #2E7D32;
    margin-bottom: 2rem;
}

.value-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.value-info h4 {
    color: #2E7D32;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-info p {
    margin: 0;
    color: #666;
}

.impact-showcase {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.impact-showcase h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.impact-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.impact-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Publications */
.recent-publications {
    padding: 100px 0;
    background: #f8f9fa;
}

.publication-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #2E7D32;
    transition: transform 0.3s ease;
    position: relative;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-pub {
    border: 2px solid #2E7D32;
    background: linear-gradient(135deg, #fff 0%, #f0f8f0 100%);
}

.pub-flag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pub-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.pub-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.pub-type {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pub-type.report {
    background: #E3F2FD;
    color: #1976D2;
}

.pub-type.brief {
    background: #F3E5F5;
    color: #7B1FA2;
}

.pub-type.technical {
    background: #E8F5E8;
    color: #2E7D32;
}

.pub-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.pub-stats span {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #666;
}

.pub-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.download-primary {
    background: #2E7D32;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-primary:hover {
    background: #1B5E20;
    transform: translateY(-1px);
}

/* CTA Secondary */
.cta-secondary {
    padding: 80px 0;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2E7D32;
    font-size: 1rem;
}

.btn-primary {
    background: #2E7D32;
    color: white;
}

.btn-primary:hover {
    background: #1B5E20;
    border-color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2E7D32;
}

.btn-secondary:hover {
    background: #2E7D32;
    color: white;
}

.read-more, .download-link {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover, .download-link:hover {
    color: #1B5E20;
}

/* Footer */
footer {
    background: #263238;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #81C784;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #81C784;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    padding: 0.5rem;
    background: #37474F;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: #2E7D32;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #37474F;
    text-align: center;
    color: #999;
}

.footer-bottom a {
    color: #81C784;
    text-decoration: none;
}

/* Responsive Design - IMPROVED */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 20px;
    }
    
    .value-content {
        gap: 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Mobile menu would need JS implementation */
    }
    
    .nav-cta {
        margin-left: auto;
    }
    
    /* HERO FIXES FOR MOBILE */
    .hero {
        padding: 100px 0 60px; /* Further reduced padding */
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem; /* REDUCED for mobile */
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .lead-form-inline {
        margin: 1.5rem auto 2rem;
        padding: 1.5rem;
    }
    
    .partner-logos {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .value-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .research-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .impact-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* FURTHER MOBILE OPTIMIZATIONS */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.8rem; /* FURTHER REDUCED for small mobile */
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .lead-form-inline {
        padding: 1.25rem;
        margin: 1rem auto 1.5rem;
    }
    
    .form-inline input {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .btn-primary-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .research-card,
    .publication-item,
    .testimonial {
        padding: 1.5rem;
    }
    
    .value-point {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .impact-showcase {
        padding: 1.5rem;
    }
    
    .pub-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-primary {
        text-align: center;
        width: 100%;
    }
}

/* Performance optimizations */
.research-card,
.testimonial,
.publication-item {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2E7D32;
    outline-offset: 2px;
}

/* Additional responsive grid adjustments */
@media (max-width: 600px) {
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .publication-list {
        padding: 0 10px;
    }
}
/* Fix: Secondary button visibility on dark backgrounds */
.hero .btn-secondary,
.subscription-cta .btn-secondary,
.custom-research .btn-secondary {
    color: white !important;
    border-color: white !important;
}

.hero .btn-secondary:hover,
.subscription-cta .btn-secondary:hover,
.custom-research .btn-secondary:hover {
    background: white !important;
    color: #2E7D32 !important;
    border-color: white !important;
}
