/* 
   Tacgk Trust Limited - International Standard Theme 
   Colors: Deep Navy, Gold, Clean White, Dark Grey
   Typography: Montserrat (Headings), Open Sans (Body)
*/

:root {
    /* Color Palette */
    --primary-color: #158303;
    /* User requested Green */
    --secondary-color: #4CAF50;
    /* Medium Green (was Gold) */
    --accent-color: #A5D6A7;
    /* Light Green (was Yellow) */

    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #ffffff;

    --background-light: #ffffff;
    --background-offset: #F4F7FA;
    --border-color: #e0e0e0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1280px;
    --border-radius: 6px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-light);
    color: var(--text-medium);
    line-height: 1.7;
    /* Increased line-height for readability */
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    /* Increased side padding */
}

/* Header */
header {
    background-color: transparent;
    /* Or rgba(15, 32, 68, 0.9) if preferred sticky */
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: rgba(21, 131, 3, 0.98);
    /* Green background */
    position: fixed;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light);
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: var(--text-light);
}

.nav-btn {
    padding: 12px 28px;
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    border-radius: var(--border-radius);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 131, 3, 0.3);
}

.mobile-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, rgba(21, 131, 3, 0.60), rgba(7, 45, 1, 0.56)), url('../images/hero_home_cookstoves.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
}

.hero-content {
    max-width: 960px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    /* Larger display text */
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 48px;
    color: #ffffff;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Inner Page Hero Typography override */
.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--secondary-color);
    font-size: 0.9rem;
    margin: 0 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

/* About Section & Pillars */
.section-padding {
    padding: var(--section-padding);
}

.about {
    padding: var(--section-padding);
    background-color: var(--background-light);
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.about-intro {
    max-width: 840px;
    margin: 0 auto 80px;
    color: var(--text-medium);
    font-size: 1.25rem;
    font-weight: 300;
}

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

.pillar-card {
    padding: 60px 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(21, 131, 3, 0.1);
    /* Sophisticated shadow */
    border-color: transparent;
}

.pillar-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.pillar-card p {
    font-size: 1rem;
    color: var(--text-medium);
}

/* Our Businesses */
.portfolio {
    padding: var(--section-padding);
    background-color: var(--background-offset);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.portfolio-card {
    background: var(--background-light);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    border-top: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(21, 131, 3, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    background: rgba(21, 131, 3, 0.08);
    /* Subtle background circle */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
}

.portfolio-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.portfolio-card p {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.learn-more-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learn-more-link i {
    transition: transform 0.3s;
}

.learn-more-link:hover {
    color: var(--secondary-color);
}

.learn-more-link:hover i {
    transform: translateX(5px);
}

/* Impact Metrics */
.impact-section {
    padding: 120px 20px;
    background: linear-gradient(rgba(21, 131, 3, 0.95), rgba(7, 45, 1, 0.95)), url('https://images.unsplash.com/photo-1542601906990-24d37541c5d3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    color: var(--text-light);
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.impact-item h3 {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.impact-item p {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Featured Stories */
.news-section {
    padding: var(--section-padding);
    background-color: var(--background-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-img {
    height: 240px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.news-card:hover .news-img {
    transform: scale(1.05);
    /* Slight zoom */
}

.news-content {
    padding: 35px;
}

.news-content h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    line-height: 1.4;
    color: var(--primary-color);
}

.news-content p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.read-article {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-article:hover {
    color: var(--primary-color);
    gap: 8px;
}

/* Footer & Newsletter */
footer {
    background-color: #0d2e03;
    /* Deep Green */
    color: #ffffff;
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 25px;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    transition: all 0.3s;
}

.footer-socials a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-copy {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 992px) {

    /* Modern Mobile Menu Overlay */
    /* Ensure body doesn't scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    :root {
        --section-padding: 60px 20px;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
    }

    /* Mobile view override */
    @media (max-width: 992px) {
        .nav-links {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(21, 131, 3, 0.95);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            /* Safari support */
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 40px;
            z-index: 999;
            /* Below toggle button */
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease-in-out;
            transform: scale(0.95);
        }

        .nav-links.active {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }

        .nav-links a {
            font-size: 2rem;
            color: #fff;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        /* Staggered Animation for Links when active */
        .nav-links.active a {
            opacity: 1;
            transform: translateY(0);
        }

        .nav-links.active li:nth-child(1) a {
            transition-delay: 0.1s;
        }

        .nav-links.active li:nth-child(2) a {
            transition-delay: 0.2s;
        }

        .nav-links.active li:nth-child(3) a {
            transition-delay: 0.3s;
        }

        .nav-links.active li:nth-child(4) a {
            transition-delay: 0.4s;
        }

        .nav-links.active li:nth-child(5) a {
            transition-delay: 0.5s;
        }

        .nav-links.active li:nth-child(6) a {
            transition-delay: 0.6s;
        }

        .mobile-toggle {
            display: block;
            z-index: 1000;
            /* Above overlay */
            position: relative;
        }

        /* Animated Hamburger to X */
        .mobile-toggle i {
            transition: transform 0.3s ease;
        }

        .mobile-toggle.active i {
            transform: rotate(180deg);
        }

        /* If using FontAwesome, we swap classes in JS, but rotation adds flair */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 20px;
    }
}

/* Hero Polish */
.hero-scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Feature Split Layout (About) */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-text {
    text-align: left;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.feature-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.feature-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Impact at a Glance Strip */
.impact-strip {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: var(--text-light);
    margin: 40px 0 80px;
    border-radius: 8px;
}

.impact-strip-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.impact-strip-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.impact-strip-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.impact-strip-item span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, rgba(21, 131, 3, 0.95), rgba(76, 175, 80, 0.9));
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
    margin-top: 60px;
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.btn-white:hover {
    background-color: var(--text-light);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .feature-split {
        grid-template-columns: 1fr;
    }

    .feature-text {
        text-align: center;
    }

    .feature-text h2::after {
        margin: 10px auto 0;
    }
}

/* Contact Page Polish */
.bg-offset {
    background-color: var(--background-offset);
}

.contact-h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.contact-h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 8px;
    border-radius: 2px;
}

.office-location {
    margin-bottom: 30px;
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
    padding-left: 15px;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s;
}

.office-location:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(to right, rgba(21, 131, 3, 0.05), transparent);
}

.office-name {
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-form-area {
    /* Override/Enhance */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group input,
.form-group textarea {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(21, 131, 3, 0.1);
}

.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    font-weight: 700;
}

.submit-btn {
    font-size: 1.1rem;
    padding: 18px 40px;
    box-shadow: 0 10px 20px rgba(21, 131, 3, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(21, 131, 3, 0.3);
}