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

html {
    scroll-behavior: smooth; /* Makes moving around the page feel premium */
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #eef2ef; /* Slightly darker earthy off-white */
    color: #1a261d; /* Very dark muted green-grey */
}

p {
    line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #388e3c; /* Darker leaf green */
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.15);
}

.content-block > div,
.content-block > h2,
.content-block > p {
    max-width: 1000px;
    width: 100%;
}

/* Empty Title Header */
.main-header {
    height: 100px;
    background: #0f2916; /* Very deep forest/pine green */
    display: flex;
    align-items: center;
    justify-content: center;  /* centers horizontally */
    border-bottom: 1px solid #081a0c;
}

.main-header h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

/* The Tab Navigation */
/* The Tab Navigation - Forest Floor Tones */
.tab-bar {
    background-color: #132e19; /* Dark forest green */
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 14px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    /* NEW: Sticky positioning */
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensures it stays on top of all other elements */

}

.tab {
    position: relative;
    color: #d0dbd1; /* Muted light sage */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 4px;
    transition: color 0.2s ease;
}

.tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: #4caf50; /* Richer nature green accent */
    transition: width 0.25s ease;
}

.tab:hover {
    color: #ffffff;
}

.tab:hover::after {
    width: 100%;
}

.tab:focus {
    outline: 2px solid #4caf50;
    outline-offset: 4px;
}

/* Content Sections */
.content-block {
    min-height: 80vh;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #b8c9b9; /* Slightly darker mossy border */
}

#section1 { background: #eef2ef; }
#section2 { background: #ffffff; }
#section3 { background: #eef2ef; }
#section4 { background: #ffffff; }
#section5 { background: #eef2ef; }

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0f2916; /* Very deep forest green */
    margin-bottom: 20px;
}

/* Styling for the Chatbot */
.chatbot-container {
    flex-direction: column;
    padding: 20px;
}

#chat-window {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: #ffffff;
    border: 1px solid #b8c9b9; /* Earthy grey-green */
    border-radius: 8px;
    overflow-y: scroll;
    padding: 15px;
    margin-bottom: 10px;
}

.input-area {
    display: flex;
    width: 100%;
    max-width: 600px;
}

#user-input {
    flex: 1;
    padding: 10px;
}

#chat-window2 {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: white;
    border: 1px solid #b8c9b9;
    overflow-y: scroll;
    padding: 15px;
    margin-bottom: 10px;
}

#user-input2 {
    flex: 1;
    padding: 10px;
}

.input-area2 {
    display: flex;
    width: 100%;
    max-width: 600px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rep-card {
    background: #ffffff;
    border: 1px solid #b8c9b9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.lookup-area {
    margin-bottom: 20px;
}

#address-input {
    padding: 10px;
    width: 300px;
    border: 1px solid #b8c9b9;
    border-radius: 4px;
}

/* Container to allow horizontal scrolling */
.timeline-horizontal-wrapper {
    width: 90%;
    max-width: 1200px;
    overflow-x: auto;
    padding: 20px 0;
}

.horizontal-timeline {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

/* Individual Cards */
.timeline-card {
    flex: 0 0 280px; /* Each card stays exactly 280px wide */
    background: #f4f7f4; /* Very faint green tint */
    border: 1px solid #b8c9b9;
    padding: 20px;
    border-radius: 12px;
    border-top: 6px solid #1b5e20; /* Darker nature green */
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 6px 15px rgba(27, 94, 32, 0.15); /* Stronger greenish shadow on hover */
}

/* Expanded State for Horizontal Cards */
.timeline-card.active {
    flex: 0 0 500px; /* Card grows wider when clicked */
    background: #fff;
}

.timeline-card.active .expanded-content {
    max-height: 300px;
    opacity: 1;
    margin-top: 15px;
}

.expanded-content textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #b8c9b9;
    border-radius: 4px;
    padding: 8px;
    resize: none;
    color: #2b3b2f;
}

/* Hide scrollbar for a cleaner look (optional) */
.timeline-horizontal-wrapper::-webkit-scrollbar {
    height: 8px;
}

.timeline-horizontal-wrapper::-webkit-scrollbar-thumb {
    background: #1b5e20; /* Darker nature green */
    border-radius: 10px;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-section {
    padding: 60px 20px;
}

.contact-container {
    max-width: 950px;   /* smaller container for better fit */
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #0f2916;
}

.contact-header p {
    font-size: 0.95rem;
    color: #3a4a3e; /* Darker earthy text */
    max-width: 520px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* slightly favor form */
    gap: 40px; /* smaller gap */
    align-items: start;
}

/* FORM CARD */
.contact-form {
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* INFO CARD */
.contact-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* FORM FIELDS */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #1a261d;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #b8c9b9;
    border-radius: 6px;
    font-size: 0.9rem;
}

.contact-button {
    margin-top: 10px;
    padding: 12px;
    font-size: 0.9rem;
}

button {
    background: #1b5e20; /* Darker nature green */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #0d3812; /* Very dark deep green hover */
}

/* INFO CARD TEXT */
.info-block {
    margin-bottom: 18px;
}

.info-block strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #58695c; /* Darker mossy grey */
    margin-bottom: 4px;
}

/* SOCIAL LINKS */
.social-row {
    margin-top: 20px;
}

.social-row a {
    margin-right: 12px;
    font-size: 0.9rem;
    color: #1b5e20;
    text-decoration: none;
}

.social-row a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.auto-expand {
    resize: none;
    overflow: hidden;
    min-height: 44px;
    max-height: 250px;
    transition: height 0.15s ease;
}

/* =========================
   CHAT LAYOUT SECTION 1 & 2
========================= */

.chat-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
}

.chat-column {
    flex: 1.2; /* Takes up slightly more space for the chat */
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.summary-column {
    flex: 0.8; /* Takes up the remaining space */
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #b8c9b9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    margin-top: 55px; /* Aligns the box nicely with the top of the chat window */
}

.summary-column h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f2916;
    margin-bottom: 12px;
}

.summary-column p {
    color: #3a4a3e;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive: Stack columns on smaller screens */
@media (max-width: 850px) {
    .chat-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-column {
        margin-top: 20px;
        width: 100%;
        max-width: 600px; /* Matches the chat window max-width */
    }
}




/* =========================
   PROPOSALS SECTION 3
========================= */

.proposal-container {
    max-width: 1000px;
    width: 100%;
}

.proposal-header {
    text-align: center;
    margin-bottom: 50px;
}

.proposal-header h2 {
    color: #0a210f;
    margin-bottom: 15px;
}

.proposal-header p {
    color: #4a5c50;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.proposal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns side-by-side */
    gap: 40px;
    align-items: stretch;
}

.proposal-card {
    background: #ffffff;
    border: 1px solid #c2cdc5; /* Sage border */
    border-radius: 16px;
    overflow: hidden; /* Keeps the image inside the rounded corners */
    text-decoration: none; /* Removes the default blue link underline */
    box-shadow: 0 4px 12px rgba(10, 33, 15, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

/* Hover effects for the whole card */
.proposal-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(10, 33, 15, 0.12);
    border-color: #aebcb3;
}

.proposal-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 4px solid #2e5a31; /* Moss green accent line */
}

.proposal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the box without stretching */
    transition: transform 0.6s ease;
}

/* Slight zoom effect on the image when hovering the card */
.proposal-card:hover .proposal-image img {
    transform: scale(1.05);
}

.proposal-content {
    padding: 30px;
    flex-grow: 1; /* Pushes the text to fill remaining space */
}

.proposal-content h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #0a210f;
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.proposal-card:hover .proposal-content h3 {
    color: #2e5a31; /* Title turns green on hover */
}

.proposal-content p {
    color: #4a5c50;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive: Stack the cards on top of each other on smaller screens */
@media (max-width: 800px) {
    .proposal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

#about, #section2, #section4 { background: #ffffff; }
#section1, #section3, #section5 { background: #f0f2ed; }


/* =========================
   COMPACT ABOUT SECTION
========================= */

/* Remove the massive 80vh minimum height and shrink the outer padding */
#about.content-block {
    min-height: auto; 
    padding: 50px 20px; 
}

/* Bring the grid closer to the mission statement */
.about-content {
    margin-bottom: 35px; 
}

/* Tighten the space under the "Our Mission" title */
.about-content h2 {
    margin-bottom: 12px;
}

/* Make the 3 cards themselves vertically thinner */
.about-card {
    padding: 25px 20px; 
}

.about-card h3 {
    margin-bottom: 10px;
}