/* ============================================
   ZIMBABWE BEEF PRODUCERS SOCIETY (ZBPS)
   Main Stylesheet - style.css
   
   Color Palette:
   - Primary: Deep Green #2E7D32 (pasture/growth)
   - Secondary: Earth Brown #8D6E63 (soil/beef)
   - Accent: Gold/Yellow #F9A825 (quality/sun)
   - Background: Off-white #FAFAFA / Light Gray #F5F5F5
   - Text: Dark Gray #333333 / #212121
   ============================================ */

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FAFAFA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #212121;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #F9A825);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ============================================
   3. UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.btn-secondary {
    background-color: #8D6E63;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #6D4C41;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 110, 99, 0.3);
}

.btn-accent {
    background-color: #F9A825;
    color: #212121;
}

.btn-accent:hover {
    background-color: #F57F17;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 168, 37, 0.3);
}

.text-primary { color: #2E7D32; }
.text-secondary { color: #8D6E63; }
.text-accent { color: #F9A825; }
.text-white { color: #FFFFFF; }

.bg-primary { background-color: #2E7D32; }
.bg-secondary { background-color: #8D6E63; }
.bg-accent { background-color: #F9A825; }
.bg-light { background-color: #F5F5F5; }
.bg-white { background-color: #FFFFFF; }

/* ============================================
   4. NAVIGATION
   ============================================ */
.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.25rem;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2E7D32;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    color: #666666;
    font-weight: 400;
}

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

.nav-link {
    font-weight: 600;
    color: #555555;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2E7D32;
    transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2E7D32;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85), rgba(27, 94, 32, 0.9)),
                url('https://images.unsplash.com/photo-1500595046743-cd271d694d30?w=1920') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background-color: #F9A825;
    color: #212121;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

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

/* ============================================
   6. SECTION STYLES
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: #F5F5F5;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.intro-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.intro-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #FFFFFF;
}

.intro-card h3 {
    color: #2E7D32;
    margin-bottom: 0.75rem;
}

/* ============================================
   7. CORE VALUES (SPIICA)
   ============================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2E7D32;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.value-card:nth-child(2) { border-left-color: #8D6E63; }
.value-card:nth-child(3) { border-left-color: #F9A825; }
.value-card:nth-child(4) { border-left-color: #2E7D32; }
.value-card:nth-child(5) { border-left-color: #8D6E63; }
.value-card:nth-child(6) { border-left-color: #F9A825; }

.value-card h3 {
    color: #2E7D32;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-card h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

/* ============================================
   8. SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8D6E63, #A1887F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #FFFFFF;
}

.service-card h3 {
    color: #8D6E63;
    margin-bottom: 1rem;
}

/* ============================================
   9. EVENTS & NOTICES CARDS
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.event-date {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #FFFFFF;
    padding: 1.5rem;
    text-align: center;
    min-width: 100px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-content h3 {
    color: #2E7D32;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666666;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Notices List */
.notices-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notice-item {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #F9A825;
    transition: all 0.3s ease;
}

.notice-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.notice-date {
    display: inline-block;
    background: #F5F5F5;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0.75rem;
}

.notice-item h3 {
    color: #212121;
    margin-bottom: 0.75rem;
}

.notice-item p {
    color: #666666;
    margin-bottom: 1rem;
}

.read-more {
    color: #2E7D32;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* ============================================
   10. LATEST UPDATES (Homepage)
   ============================================ */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.update-card {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.update-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.update-type.event {
    background: #E8F5E9;
    color: #2E7D32;
}

.update-type.notice {
    background: #FFF8E1;
    color: #F9A825;
}

.update-card h4 {
    margin-bottom: 0.5rem;
    color: #212121;
}

.update-card .date {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0.75rem;
}

/* ============================================
   11. ABOUT PAGE SPECIFIC
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(141, 110, 99, 0.85)),
                url('https://images.unsplash.com/photo-1500595046743-cd271d694d30?w=1920') center/cover no-repeat;
    padding: 6rem 0;
    text-align: center;
    color: #FFFFFF;
}

.about-hero h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.vision-card,
.mission-card {
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.vision-card {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #FFFFFF;
}

.mission-card {
    background: linear-gradient(135deg, #8D6E63, #6D4C41);
    color: #FFFFFF;
}

.vision-card h2,
.mission-card h2 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vision-card p,
.mission-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.8;
}

.affiliations {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.affiliation-item {
    background: #FFFFFF;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.affiliation-item h4 {
    color: #2E7D32;
    margin-bottom: 0.25rem;
}

.affiliation-item p {
    color: #666666;
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   12. CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-card h4 {
    margin-bottom: 0.5rem;
    color: #212121;
}

.contact-card p {
    margin: 0;
    color: #666666;
}

/* Contact Form */
.contact-form-wrapper {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #212121;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2E7D32;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #E53935;
}

.error-message {
    color: #E53935;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.map-container {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ============================================
   13. FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: #FFFFFF;
    padding: 4rem 0 1.5rem;
    margin-top: auto;
}

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

.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

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

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '>';
    color: #F9A825;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #FFFFFF;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .value-card,
    .service-card,
    .contact-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .vision-card,
    .mission-card {
        padding: 2rem;
    }
}

/* ============================================
   15. ANIMATIONS & EFFECTS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #2E7D32;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666666;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
