/* Bidhaa Go Green - Custom Styles */
/* Color scheme derived from logo: white elements on natural green (#3E8B37) */

:root {
    --primary: #3E8B37;
    --primary-dark: #2D6A2E;
    --primary-darker: #1B5E20;
    --primary-light: #4CAF50;
    --primary-lighter: #81C784;
    --accent: #A5D6A7;
    --light-bg: #E8F5E9;
    --surface: #F1F8E9;
    --text: #212121;
    --text-secondary: #555;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

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

a:hover {
    color: var(--primary-dark);
}

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

.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Buttons */
.btn {
    border-radius: var(--radius);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(62, 139, 55, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.btn-light:hover {
    background-color: var(--light-bg);
    border-color: var(--light-bg);
    color: var(--primary-dark);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
}

/* Top Navigation */
.top-navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}

.top-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.top-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

.top-navbar .navbar-brand img {
    height: 44px;
    width: auto;
    border-radius: 6px;
}

.top-navbar .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.93rem;
}

.top-navbar .nav-link:hover,
.top-navbar .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--light-bg);
}

.top-navbar .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.top-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-cta .btn {
    padding: 0.4rem 1.25rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-section p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    color: rgba(255,255,255,0.9);
}

.hero-section .btn {
    margin-bottom: 0.5rem;
}

/* Section Spacing */
main > section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

main > section.hero-section {
    padding: 100px 0 80px;
}

main > section.page-header {
    padding: 60px 0 50px;
}

main > section.stats-section {
    padding: 60px 0;
}

main > section.cta-section {
    padding: 80px 0;
}

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

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0.75rem auto 0;
}

/* Feature / Service Cards */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-card {
    position: relative;
    z-index: 1;
}

.feature-card .icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon {
    background: var(--primary);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Impact / Stats Bar */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Cards */
.card {
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card {
    position: relative;
    z-index: 1;
}

.card .card-body {
    padding: 1.5rem;
}

.card .card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid #eee;
    position: relative;
    height: 100%;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card .quote {
    padding-top: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--text);
}

.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Blog Cards */
.blog-card {
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card .card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--light-bg), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.9);
}

/* Footer */
.site-footer {
    background: var(--primary-darker);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
}

.site-footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.site-footer a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
}

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

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

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.site-footer .social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

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

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(62, 139, 55, 0.15);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
    transform: translateX(-5.5px);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
}

/* Progress Bars */
.progress {
    border-radius: var(--radius);
    height: 10px;
    background-color: var(--light-bg);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
}

/* Badge overrides */
.badge.bg-primary { background-color: var(--primary) !important; }

/* Event Date Block */
.event-date {
    min-width: 65px;
}

.event-date .month {
    background: var(--primary) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.event-date .day {
    font-size: 1.75rem;
    border: 2px solid #eee;
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.25rem;
}

/* Utilities */
.bg-light-green {
    background-color: var(--light-bg) !important;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    main > section {
        padding: 60px 0;
    }

    main > section.hero-section {
        padding: 70px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 767px) {
    main > section {
        padding: 40px 0;
    }

    main > section.hero-section {
        padding: 50px 0 40px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 1.85rem;
    }

    .hero-section p.lead {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-item .number {
        font-size: 2rem;
    }

    main > section.page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .top-navbar .navbar-brand img {
        height: 36px;
    }
}
