/* --- CSS Variables --- */
:root {
    --primary-color: #379821D2; /* Green with transparency */
    --primary-color-light: #A8D8A0; /* Light green */
    --primary-color-dark: #2A6B1F; /* Dark green */
    --secondary-color-light: #E8F5B2; /* Light secondary color */
    --secondary-color-dark: #A8CBA0; /* Dark secondary color */
    --accent-color: #FAF6E9;
    --background-color: #FFFDF6;
    --text-color: #222222; /* Improved contrast */
    --white-color: #FFFFFF;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --base-font-size: 16px;
    --container-width: 1140px;
    --container-padding: 15px;
    --header-height: 70px; /* Adjust as needed */
}

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

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
    font-size: var(--base-font-size);
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; } /* ~40px */
h2 { font-size: 2rem; }   /* ~32px */
h3 { font-size: 1.5rem; } /* ~24px */

p {
    margin-bottom: 1em;
}

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

a:hover, a:focus {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    /*display: block;*/ /* Optional: remove bottom space in inline images */
}

/* --- Layout: Container --- */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* --- Utility Classes --- */
.btn {
    display: inline-block;
    padding: 0.8em 1.8em;
    font-family: var(--heading-font);
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none !important; /* Override link underline */
}

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

.btn:hover, .btn:focus {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content-section {
    padding: 60px 0;
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 253, 246, 0.95); /* Slightly transparent background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img {
    max-height: calc(var(--header-height) - 20px); /* Adjust padding */
    width: auto;
}

.main-nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-link {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after { /* Style for active link */
    width: 100%;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav links */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: background-color 0s 0.3s; /* Delay hiding bar */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hamburger animation when nav is open */
.nav-open .hamburger { background-color: transparent; } /* Middle bar disappears */
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); top: 0; }


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden; /* Contain video */
    padding-top: var(--header-height); /* Account for fixed header */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Behind overlay and content */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, potentially cropping */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1; /* Between video and content */
}
/* Fallback image if video fails or isn't supported */
.hero-section:has(video[poster]:not([autoplay])) .video-background, /* If poster exists and not autoplaying */
.hero-section:not(:has(video)) .video-background { /* Or if no video tag */
    background: url('../images/hero-fallback.jpg') no-repeat center center/cover;
}

.hero-section.fallback-image .video-background {
    background: url('../images/hero-fallback.jpg') no-repeat center center/cover;
}

.hero-content h1 {
    font-size: 3rem; /* Larger on hero */
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    max-width: 600px; /* Constrain width */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- About Us Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr; /* Default: single column */
    gap: 40px;
    align-items: jujustify; /* Center items */
    text-align: justify; /* Center-align text on smaller screens */ 
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* About Us Section */
.about-us-section {
    background-color: var(--accent-color); /* Light background color */
    padding: 60px 0;
}

.about-us-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 30px;
    text-align: center;
}

.about-us-item {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-us-item h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color-dark);
    margin-bottom: 15px;
}

.about-us-item p {
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Locations Section --- */
.locations-section {
    background-color: var(--accent-color); /* Light background */
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default */
    gap: 30px;
    margin-top: 30px;
}

.location-card {
    background-color: var(--white-color);
    border: 1px solid #eee; /* Light border */
    border-radius: 8px;
    overflow: hidden; /* Ensure image corners are rounded */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* Subtle shadow on hover */
}

.location-card img {
    width: 100%; /* Image takes full width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 0.5em;
    font-size: 1.25rem;
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 1em;
    color: #555;
}

.card-link {
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5em;
}
.card-link:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default */
    gap: 40px;
}

.contact-info address {
    font-style: normal;
    line-height: 1.8;
}

.contact-info address a {
    text-decoration: none;
}
.contact-info address a:hover {
    text-decoration: underline;
}

.contact-form .form-group {
    margin-bottom: 1.5em;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resize */
}

.contact-form button {
    width: 100%;
}


/* --- Footer --- */
.site-footer-bottom {
    background-color: #f1f1f1; /* Slightly darker than accent */
    padding: 30px 0;
    text-align: center;
    margin-top: 40px; /* Space before footer */
    color: #555;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-media-links a {
    margin: 0 10px;
    display: inline-block; /* Needed for potential SVG sizing */
}

.social-media-links svg { /* Example SVG styling */
    width: 24px;
    height: 24px;
    fill: #555;
    transition: fill 0.3s ease;
}

.social-media-links a:hover svg {
    fill: var(--primary-color);
}

.copyright {
    margin-top: 10px;
    margin-bottom: 0; /* Reset paragraph margin */
}


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

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


/* --- Responsive Design (Mobile First Approach) --- */

/* Tablet Styles */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .nav-toggle { display: none; } /* Hide hamburger on tablet+ */
    .nav-links { display: flex; /* Show links normally */
                 position: static;
                 background-color: transparent;
                 height: auto;
                 width: auto;
                 flex-direction: row;
                 padding: 0;
                 box-shadow: none;
                }
    .nav-links li { margin-left: 30px; } /* Increase spacing */

    .about-container { grid-template-columns: 1fr 1fr; } /* Two columns */
    .about-image { order: 1; } /* Optional: Image on the right */
    .about-text { order: 0; }

    .about-us-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on tablets and larger screens */
    }

    .location-grid { grid-template-columns: repeat(2, 1fr); } /* Two columns */

    .contact-container { grid-template-columns: 1fr 1fr; } /* Two columns */
    .contact-form button { width: auto; } /* Button not full width */

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .copyright { margin-top: 0; }

    .invest-grid {
        display: flex;
        flex-direction: row; /* Horizontal layout */
        align-items: flex-start;
        text-align: left; /* Align text to the left */
    }

    .invest-image {
        flex: 1;
        margin-right: 20px; /* Add spacing between image and text */
    }

    .invest-text {
        flex: 2;
    }

    .invest-image img {
        width: 100%;
        max-width: 400px; /* Adjust image size */
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }

    .location-grid { grid-template-columns: repeat(3, 1fr); } /* Three columns */
}

/* Mobile Navigation Specifics */
@media (max-width: 767px) {
    .main-nav {
        /* Set to static so .nav-links can be positioned relative to .site-header */
        position: static;
    }
    .nav-toggle { display: block; } /* Show hamburger */
    .nav-links {
        position: absolute;
        /* top: 100%; */ /* Old: relative to main-nav's top + height */
        top: var(--header-height); /* Positioned below the entire fixed header */
        /* right: 0; */ /* Old */
        left: 0; /* Stretch from left edge of viewport */
        right: 0; /* Stretch to right edge of viewport */
        background-color: var(--background-color);
        /* width: 100%; */ /* Old: relative to main-nav's width, caused narrow menu. left:0 & right:0 now handle width. */
        flex-direction: column;
        align-items: center;
        /* padding: 20px 0; */ /* Moved to .nav-open state, default to 0 */
        padding: 0; /* No padding when closed */
        /* box-shadow: 0 5px 10px rgba(0,0,0,0.1); */ /* Moved to .nav-open state */
        box-shadow: none; /* No shadow when closed */
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), /* Smooth open/close */
                    padding 0.5s ease,
                    box-shadow 0.3s ease; /* Added transition for box-shadow */
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block; /* Make link take full width */
        padding: 10px 20px;
    }

    .nav-link::after { display: none; } /* Hide underline on mobile */

    .main-nav.nav-open .nav-links {
        max-height: 500px; /* Arbitrary large height when open */
        padding: 20px 0; /* Add padding back when open */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); /* Add shadow when open */
    }
}

/* Chairman's Message Section */
.chairman-section {
    background-color: var(--background-color); /* Match the website's background */
    padding: 60px 0;
}

.chairman-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.chairman-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 40px;
    align-items: center;
    text-align: center; /* Center-align text on smaller screens */
}

.chairman-image img {
    width: 100%;
    max-width: 300px; /* Limit image size */
    border-radius: 50%; /* Circular image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center image */
}

.chairman-text h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color-dark);
    margin-bottom: 20px;
}

.chairman-text p {
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 768px) {
    .chairman-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on tablets and larger screens */
        text-align: left; /* Align text to the left */
    }

    .chairman-image {
        text-align: center; /* Keep image centered */
    }
}

/* Invest with Us Section */
.invest-section {
    background-color: var(--accent-color); /* Light background color */
    padding: 60px 0;
}

.invest-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.invest-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 40px;
    align-items: center;
    text-align: center; /* Center-align text on smaller screens */
}

.invest-image img {
    width: 100%;
    max-width: 500px; /* Larger image size */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center image */
}

.invest-text h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color-dark);
    margin-bottom: 20px;
}

.invest-text h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color-dark);
    margin-top: 20px;
    margin-bottom: 15px;
}

.invest-text p {
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.invest-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.invest-text ul li {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .invest-grid {
        display: flex;
        flex-direction: row; /* Horizontal layout */
        align-items: flex-start;
        text-align: left; /* Align text to the left */
    }

    .invest-image {
        flex: 1;
        margin-right: 20px; /* Add spacing between image and text */
    }

    .invest-text {
        flex: 2;
    }

    .invest-image img {
        width: 100%;
        max-width: 400px; /* Adjust image size */
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

        /* WhatsApp Widget */
        #whatsapp-widget {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }

        #whatsapp-widget a {
            display: block;
            width: 60px;
            height: 60px;
            background-color: #25d366;
            border-radius: 50%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            text-align: center;
            line-height: 60px;
            transition: transform 0.3s ease;
        }

        #whatsapp-widget a:hover {
            transform: scale(1.1);
        }

        #whatsapp-widget img {
            width: 35px;
            height: 35px;
            vertical-align: middle;
        }