/* --- CSS Variables for a Unique, Earthy Palette --- */
:root {
    --primary-color: #c17d4e; /* Warm Terracotta */
    --secondary-color: #004643; /* Deep Teal */
    --accent-color: #f9bc60; /* Vibrant Saffron */
    --dark-color: #2c2c2c;
    --light-color: #fdfbf7; /* Creamy Off-White */
    --text-color: #5e5e5e;
    --bg-light: #f4f1ee;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --container-width: 1100px;
    --border-radius: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.section {
    padding: 120px 0;
}

.section-light {
    background-color: var(--light-color);
}

.section-dark {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.content-area {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 5px 15px rgba(193, 125, 78, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 70, 67, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.header {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* --- Page Specific Styles --- */

/* Hero Section with Parallax */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    will-change: transform; /* Optimizes for parallax */
    z-index: -1;
}

.hero::before { /* Overlay */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 70, 67, 0.6);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title { 
    font-size: 4.5rem; 
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-subtitle { 
    font-size: 1.3rem; 
    margin-bottom: 2.5rem;
    font-weight: 400;
}
.hero-buttons { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), #abd1c6);
    color: var(--light-color);
    padding: 150px 0 100px 0;
    text-align: center;
}
.page-header h1 { 
    color: var(--light-color); 
    font-size: 4rem;
}
.page-header p { 
    opacity: 0.9; 
    font-size: 1.3rem;
}

/* Asymmetrical Impact Section */
.impact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.impact-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}
.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.stat-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 5px solid var(--accent-color);
}
.stat-card h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.pillar-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.pillar-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.pillar-icon { 
    font-size: 4rem; 
    margin-bottom: 20px;
}

/* Founder Letter */
.founder-letter {
    text-align: left;
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    margin-bottom: 60px;
}
.letter-salutation, .letter-signature {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary-color);
}
.letter-signature {
    text-align: right;
    margin-top: 30px;
}
.values-list {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}
.values-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 100%;
    padding: 20px 40px;
}
.timeline-icon {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1;
}
.timeline-content {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    width: calc(50% - 60px);
    transition: var(--transition);
}
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}
.timeline-item:hover .timeline-content {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 125, 78, 0.2);
}
.info-item {
    margin-bottom: 30px;
}
.info-item strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #b0b0b0;
    padding: 70px 0 25px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}
.footer-column h3, .footer-column h4 {
    color: var(--light-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
}
.footer-column ul li {
    margin-bottom: 12px;
}
.footer-column ul li a {
    color: #b0b0b0;
    transition: var(--transition);
}
.footer-column ul li a:hover {
    color: var(--accent-color);
}
.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    color: var(--light-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}
.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .impact-container { grid-template-columns: 1fr; gap: 40px; }
    .impact-stats { grid-template-columns: repeat(3, 1fr); }
    .contact-container { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 30px 0;
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 15px 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero { height: 90vh; }
    .hero-title { font-size: 3rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .page-header { padding: 120px 0 80px 0; }
    .page-header h1 { font-size: 3rem; }
    .section { padding: 80px 0; }
    .impact-stats, .pillars-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 40px; }
    .timeline-item { padding-left: 80px; padding-right: 20px; }
    .timeline-icon { left: 40px; }
    .timeline-content { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}

/* --- Additions for Enhanced JavaScript --- */
.no-scroll { overflow: hidden; }
.header.scrolled { background-color: var(--light-color); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.form-message { padding: 18px; border-radius: var(--border-radius); margin-bottom: 20px; text-align: center; font-weight: 600; opacity: 1; transition: opacity 0.5s ease-in-out; border: 1px solid transparent; }
.form-message--success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.form-message--error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal--active { opacity: 1; transform: translateY(0); }