/* static/style.css */

/* --- Google Fonts Import (Example - replace with actual fonts if needed) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@300;400;700&display=swap');

/* --- Branding Colors (Adjust to your exact palette) --- */
:root {
    --primary-green: #388E3C; /* Deeper, more professional green */
    --secondary-green: #66BB6A; /* Lighter, fresh green */
    --accent-gold: #FFC107;   /* Warm accent for highlights */
    --dark-text: #212121;     /* Almost black for primary text */
    --light-text: #757575;    /* Gray for secondary text */
    --white: #ffffff;
    --light-gray-bg: #f5f5f5; /* For section backgrounds */
    --border-light: #e0e0e0;  /* Light border color */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* --- Base Styles --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray-bg);
    color: var(--dark-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Scroll behavior for smooth scrolling to sections if implemented */
html {
    scroll-behavior: smooth;
}

.container {
    padding: 30px 20px; /* More padding */
    margin: 20px auto;
    max-width: 1200px; /* Wider container */
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--shadow-light); /* Deeper shadow */
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-green);
    margin-top: 1em;
    margin-bottom: 0.6em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
    color: var(--light-text);
}

ul {
    list-style-type: none; /* No default bullets */
    padding-left: 0;
    margin-bottom: 1em;
}

ul li {
    padding-left: 25px; /* Space for custom bullet */
    position: relative;
    margin-bottom: 8px;
    color: var(--light-text);
}

ul li::before {
    content: '🌱'; /* Custom bullet icon - or use an SVG/font icon */
    position: absolute;
    left: 0;
    color: var(--secondary-green);
    font-size: 1.2em;
    top: 0;
}

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

a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* --- Buttons (Call to Actions) --- */
.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none; /* Remove underline on hover for buttons */
}

.btn-secondary {
    background-color: var(--accent-gold);
}

.btn-secondary:hover {
    background-color: #fdd835; /* Lighter gold on hover */
}


/* --- Header --- */
header {
    background-color: var(--white);
    padding: 1em 20px;
    box-shadow: 0 2px 8px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header stays on top */
}

.header-content {
    display: flex;
    justify-content: space-between; /* Space out logo and nav */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.branding {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* Remove underline from branding link */
}

.logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: var(--primary-green); /* Placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5em;
    flex-shrink: 0; /* Prevent shrinking on smaller screens */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* If using an image logo, uncomment and adjust */
/* .logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
} */


.site-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-green);
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

/* --- Navigation --- */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
    position: relative; /* For dropdowns if implemented */
}

nav ul li::before { /* Remove custom bullet for nav items */
    content: none;
}

nav ul li a {
    color: var(--dark-text);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after { /* Underline effect on hover/active */
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-green);
}

/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--dark-text);
    z-index: 1001; /* Above mobile nav */
}

/* --- Hero Section (Home Page Specific) --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../static/hero-bg.jpg') no-repeat center center/cover; /* Placeholder background image */
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Ensure a decent height */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Section Styling (e.g., About, Features) --- */
.section-intro {
    text-align: center;
    margin-bottom: 40px;
}

.section-intro h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.section-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--light-text);
}

/* --- Service Cards / Feature Grid --- */
.service-grid, .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between cards */
    margin-top: 40px;
}

.service-card, .feature-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.card-icon {
    font-size: 3.5em; /* Example: using an emoji or icon font */
    color: var(--primary-green);
    margin-bottom: 15px;
    background-color: var(--light-gray-bg);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.service-card h3, .feature-card h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1.6em;
}

.service-card p, .feature-card p {
    font-size: 0.95em;
    color: var(--light-text);
    flex-grow: 1; /* Allows paragraph to take available space */
}

.service-card .btn {
    margin-top: 20px;
    padding: 8px 18px;
    font-size: 0.9em;
}

/* --- About Section (on Home page) --- */
.about-section {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.about-content {
    flex: 2;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 250px;
    max-width: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px var(--shadow-light);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Contact Page Specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Info on left, form on right */
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    background-color: var(--light-gray-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.contact-info h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1em;
}

.contact-info p strong {
    color: var(--dark-text);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 10px;
    padding-left: 0; /* Remove custom bullet for contact list */
}

.contact-info ul li::before {
    content: none;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--shadow-light);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.2); /* Light green glow */
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: auto;
    margin-top: 10px;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: auto;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.footer-section p, .footer-section ul {
    font-size: 0.95em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li::before { /* No custom bullets for footer lists */
    content: none;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.8em; /* Adjust icon size */
    color: var(--white);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
    text-decoration: none;
}

.footer-bottom {
    padding-top: 20px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

/* --- Team Page Specific Styles --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid for team cards */
    gap: 30px; /* Space between cards */
    margin-top: 40px;
    justify-content: center; /* Center cards if there are fewer than a full row */
}

.team-member-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.member-photo-wrapper {
    /* Changed from previous circular style */
    width: 200px; /* Larger width */
    height: 250px; /* Rectangular height */
    border-radius: 8px; /* Slightly rounded corners for rectangle */
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--primary-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
    display: block;
}

.team-member-card h3 {
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 1.5em;
    line-height: 1.3;
}

.team-member-card .member-title {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1em;
}

.team-member-card .member-bio {
    font-size: 0.95em;
    color: var(--light-text);
    margin-bottom: 0;
    flex-grow: 1; /* Allows bio to take available space for consistent card height */
}

/* Responsive adjustments for team grid */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .member-photo-wrapper {
        width: 150px; /* Adjusted for smaller screens */
        height: 180px; /* Adjusted for smaller screens */
    }
    .team-member-card h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .member-photo-wrapper {
        width: 180px; /* Larger for single column */
        height: 220px; /* Larger for single column */
    }
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 992px) {
    .container {
        padding: 20px 15px;
        margin: 15px auto;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .hero-section h1 { font-size: 2.8em; }
    .hero-section p { font-size: 1.1em; }
    .header-content {
        flex-direction: row; /* Keep logo and toggle on one line */
        justify-content: space-between;
    }
    nav {
        display: none; /* Hide nav by default on small screens */
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--primary-green);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    nav.open {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    nav ul li a {
        color: var(--white);
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    nav ul li:last-child a {
        border-bottom: none;
    }
    nav ul li a:hover, nav ul li a.active {
        background-color: rgba(0,0,0,0.1);
    }
    nav ul li a::after { /* Adjust underline for mobile nav */
        background-color: var(--accent-gold);
    }
    .menu-toggle {
        display: block; /* Show hamburger menu */
    }

    .service-grid, .feature-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    .about-content, .about-image {
        min-width: unset;
        width: 100%;
    }
    .contact-grid {
        grid-template-columns: 1fr; /* Single column for contact on mobile */
    }
    .contact-info, .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    .hero-section h1 { font-size: 2.2em; }
    .hero-section p { font-size: 1em; }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .logo {
        height: 40px;
        width: 40px;
        font-size: 1.2em;
    }
    .site-title {
        font-size: 1.5em;
    }
}