/* CSS Variables */
:root {
    --primary-green: #2D5016;
    --secondary-green: #4A7C20;
    --accent-green: #6FB33F;
    --light-green: #E8F5E1;
    --dark-grey: #2C2C2C;
    --medium-grey: #6B7280;
    --light-grey: #F9FAFB;
    --white: #FFFFFF;
    --gradient-bg: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
} */

header nav.navbar {
    display: flex !important;
    align-items: center !important;
}

.nav-links {
    display: none !important; /* Hide the old nav-links */
}

/* .mobile-menu {
    display: none !important;
} */

/* Navbar Styles */
/* nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
} */

.navbar {
    padding: 10px 0; /* Default padding - will be adjusted by JavaScript */
    transition: all 0.3s ease;
    background-color: white !important;
    min-height: 100px; /* Ensure navbar has enough height for the logo */
}

/* .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.navbar-nav .nav-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.navbar-nav .nav-item + .nav-item {
    margin-left: 5px !important;
} */

.navbar-brand img {
    transition: all 0.3s ease;
    width: auto; /* Let width be determined by height to maintain aspect ratio */
    height: 100px; /* Default height - will be controlled by JavaScript */
    min-width: auto; /* Allow natural width based on aspect ratio */
    object-fit: contain; /* Ensure image maintains aspect ratio */
    vertical-align: middle; /* Better vertical alignment */
}

.navbar .nav-link {
    color: var(--dark-grey) !important;
    font-weight: 500;
    /* padding: 10px 15px !important; */
    /* padding: 10px 15px !important; */
    transition: color 0.3s ease;
    position: relative;
}

/* @media (max-width: 991px) {
    .navbar-nav .nav-item + .nav-item {
        margin-left: 0 !important;
        margin-top: 5px !important;
    }
} */

.navbar-shrink {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    min-height: 80px !important; /* Smaller height when scrolled */
}

.navbar .nav-link:hover {
    color: var(--primary-green) !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: calc(100% - 30px);
}

.navbar .nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 600;
}

.navbar .nav-link.active::after {
    width: calc(100% - 30px);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

@media (max-width: 991px) {
    .navbar .nav-link::after {
        display: none;
    }
    
    .navbar .nav-link {
        padding: 12px 5px !important;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 15px;
        margin-top: 10px;
    }
    
    .navbar-nav {
        flex-direction: column !important;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient-bg);
    padding: 120px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 400px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Adjusting main content padding for fixed navbar */
main {
    padding-top: 120px; /* Increased to accommodate the larger navbar */
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent-green);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 179, 63, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 179, 63, 0.4);
}

/* Ensure button elements with cta-button class have consistent styling */
button.cta-button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

/* Section Styles */
section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--medium-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* Company Overview */
.company-overview {
    background: var(--light-grey);
    padding-top: 70px; /* Additional padding to prevent navbar overlap */
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.company-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.company-text p {
    margin-bottom: 1.5rem;
    color: var(--medium-grey);
}

.highlights {
    list-style: none;
}

.highlights li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--medium-grey);
}

.highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-icon {
    width: 150px;
    height: 150px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-green);
}

/* Consistent product image sizing */
.product-icon img {
    height: 250px;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--medium-grey);
    margin-bottom: 2rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--medium-grey);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.product-link {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-link:hover {
    border-bottom-color: var(--accent-green);
}

/* Connectivity Section */
.connectivity {
    background: var(--light-grey);
    padding-top: 40px;
}

.connectivity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.connectivity-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.connectivity-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--light-green);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-green);
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--medium-grey);
    margin-bottom: 1rem;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--medium-grey);
    line-height: 1.5;
}

/* Resources Section */
.resources {
    background: var(--light-grey);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-green);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-green);
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--medium-grey);
}

/* Footer Styles */
.footer-container {
    background-color: #244b63ec;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 15vw; /* 15% of viewport width, matching navbar */
    height: auto;
    max-height: 60px; /* Prevent excessive height on large screens */
    object-fit: contain; /* Ensure image maintains aspect ratio */
    margin-bottom: 15px;
    /* Removed filter to show original logo colors */
}

.footer-tagline {
    font-size: 14px;
    color: #adb5bd;
    line-height: 1.5;
}

.footer-links-container {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.footer-links {
    min-width: 120px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-social a {
    color: #adb5bd;
    font-size: 18px;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.footer-legal a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright {
    color: #6c757d;
    margin: 10px 0 0;
}

@media (max-width: 768px) {
    .footer-content, .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links-container {
        gap: 30px;
    }
    
    .footer-social, .footer-legal {
        justify-content: center;
    }
}

/* Cookie Banner Styles */
#cb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-radius: 0;
    background-color: #1a2a3a;
    color: #fff;
    padding: 12px 20px;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

#cb-cookie-banner a {
    color: #6FB33F;
    text-decoration: underline;
    margin-left: 5px;
}

#cb-cookie-banner button {
    background-color: #6FB33F;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 15px;
    margin-left: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

#cb-cookie-banner button:hover {
    background-color: #5a9932;
}