:root {
    --bch-green: #00e3a5;
    --emerald-green: #048259;
    --bch-black: #000000;
    --bch-grey-dark: #1a1a1a;
    --bch-grey-light: #f4f4f4;
    --white: #ffffff;
    --text-main: #333333;
    --overlay: rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--emerald-green);
}

/* Header Styling */
header {
    background-color: rgba(4, 130, 89, 0.9);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 0.6rem 0;
    border-bottom: 4px solid var(--bch-green);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.logo-img { height: 40px; width: auto; display: block; } /* Scaled down slightly to fit new menu */

nav ul { list-style: none; display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; }
nav a { color: var(--white); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: color 0.3s ease; white-space: nowrap; }
nav a:hover { color: var(--bch-green); }

.nav-contact {
    background-color: var(--bch-green);
    color: var(--bch-black) !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700 !important;
}

main {
    max-width: 1200px;
    margin: 40px auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--white); margin: 4px 0; transition: 0.3s; }

.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1518546305927-5a555bb7020d?auto=format&fit=crop&q=80&w=1200') center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--overlay); z-index: 1; }

.hero-content-wrapper { position: relative; z-index: 2; display: flex; align-items: center; padding: 35px 50px; gap: 50px; }
.hero-image-container { flex: 1; display: flex; justify-content: center; align-items: center; }

.founder-img {
    width: 260px; height: 260px; object-fit: cover; object-position: center 15%;
    border-radius: 14px; border: 3px solid var(--bch-green); box-shadow: 0 6px 25px rgba(0,0,0,0.45); display: block;
}

.founder-message-container { flex: 2; color: var(--white); }
.preface-tag { color: var(--bch-green); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; font-weight: 700; }
.preface-text { font-size: 1rem !important; line-height: 1.65; color: #e0e0e0; font-style: italic; margin-bottom: 12px; }
.founder-signature { font-weight: 800; font-size: 1.1rem !important; color: var(--bch-green); }

/* Prevented stacking by enforcing nowrap */
.animated-title-wave { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; display: flex; flex-wrap: nowrap; white-space: nowrap; column-gap: 6px; row-gap: 0; margin-bottom: 0; }
.word-group { display: inline-flex; }
.animated-title-wave .letter { display: inline-block; transform: translateY(15px); opacity: 0; animation: letterIntro 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

.animated-title-wave .letter:nth-child(1)  { animation-delay: 0.05s; }
.animated-title-wave .letter:nth-child(2)  { animation-delay: 0.10s; }
.animated-title-wave .letter:nth-child(3)  { animation-delay: 0.15s; }
.animated-title-wave .letter:nth-child(4)  { animation-delay: 0.20s; }
.animated-title-wave .letter:nth-child(5)  { animation-delay: 0.25s; }
.animated-title-wave .letter:nth-child(6)  { animation-delay: 0.30s; }
.animated-title-wave .letter:nth-child(7)  { animation-delay: 0.35s; }

.green-word .letter:nth-child(1) { animation-delay: 0.45s; }
.green-word .letter:nth-child(2) { animation-delay: 0.50s; }
.green-word .letter:nth-child(3) { animation-delay: 0.55s; }
.green-word .letter:nth-child(4) { animation-delay: 0.60s; }

.word-group:last-child .letter:nth-child(1) { animation-delay: 0.70s; }
.word-group:last-child .letter:nth-child(2) { animation-delay: 0.75s; }
.word-group:last-child .letter:nth-child(3) { animation-delay: 0.80s; }
.word-group:last-child .letter:nth-child(4) { animation-delay: 0.85s; }

.white-word { color: var(--white); text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1); }
.green-word { color: var(--bch-green); text-shadow: 0 0 12px rgba(0, 227, 165, 0.8), 0 0 25px rgba(0, 227, 165, 0.4); animation: pulseGlow 3s ease-in-out infinite alternate; animation-delay: 1.5s; }

@keyframes letterIntro { to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow {
    0% { text-shadow: 0 0 12px rgba(0, 227, 165, 0.8), 0 0 20px rgba(0, 227, 165, 0.3); }
    100% { text-shadow: 0 0 18px rgba(0, 227, 165, 1), 0 0 32px rgba(0, 227, 165, 0.6), 0 0 45px rgba(0, 227, 165, 0.3); }
}

.info-grid { padding: 60px 40px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }

.stats-column {
    background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), url('images/townbg.png') center/cover no-repeat;
    padding: 35px 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: center;
}

.stats-circle { width: 280px; height: 280px; border: 12px solid var(--bch-green); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0 auto 30px; background-color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.stats-value { font-size: 4rem; font-weight: 900; color: var(--bch-black); }
.stats-label { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; color: #555; }

.dashboard-box { background-color: rgba(244, 244, 244, 0.95); width: 100%; padding: 25px; border-radius: 8px; border-left: 6px solid var(--emerald-green); box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.dashboard-box h3 { margin-bottom: 15px; font-size: 1.2rem; text-transform: uppercase; color: var(--bch-black); }
.dash-item { display: flex; justify-content: space-between; margin-bottom: 8px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.dash-label { font-weight: 500; color: #444; }
.dash-value { font-weight: 700; color: var(--emerald-green); }

.content-column h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--bch-black); }
.content-column p { margin-bottom: 20px; font-size: 1.1rem; }

.faq-btn { display: inline-block; background-color: var(--bch-black); color: var(--white); padding: 14px 35px; text-decoration: none; font-weight: 700; border-radius: 4px; margin-top: 10px; transition: background 0.3s; }
.faq-btn:hover { background-color: var(--emerald-green); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 20px; }
.gallery-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; transition: transform 0.3s; border-bottom: 4px solid var(--bch-green); }
.gallery-card:hover { transform: translateY(-5px); }
.gallery-img { width: 100%; height: 280px; object-fit: cover; display: block; }
.gallery-caption { padding: 15px; font-weight: 700; font-size: 1.1rem; color: var(--bch-black); text-transform: uppercase; letter-spacing: 1px; }

footer { background-color: var(--bch-black); color: var(--white); padding: 60px 0 20px 0; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
footer h3 { color: var(--bch-green); margin-bottom: 20px; font-size: 1rem; text-transform: uppercase; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #ccc; text-decoration: none; transition: color 0.2s;}
footer a:hover { color: var(--bch-green); }
.trademark { text-align: center; padding-top: 40px; border-top: 1px solid #333; font-size: 0.85rem; color: #666; }

/* Responsive adjustments protecting the header */
@media (max-width: 1050px) {
    header { position: relative !important; }
    .header-container { flex-direction: row; justify-content: space-between; padding: 10px 20px; }
    .logo-img { height: 35px; }
    .menu-toggle { display: flex; }
    nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(4, 130, 89, 0.98); box-shadow: 0 10px 15px rgba(0,0,0,0.3); padding: 20px 0; z-index: 999; }
    nav.active { display: flex; }
    nav ul { flex-direction: column; width: 100%; gap: 15px; }
    .nav-contact { display: inline-block; margin-top: 5px; }
    .animated-title-wave { font-size: 22px; column-gap: 4px; }
}

@media (max-width: 992px) {
    .info-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
    .hero-content-wrapper { padding: 40px 20px; gap: 30px; }
}

@media (max-width: 768px) {
    .hero { min-height: auto; }
    .hero-content-wrapper { flex-direction: column; text-align: center; padding: 30px 20px; gap: 25px; }
    .founder-img { width: 200px; height: 200px; max-width: 100%; }
    .stats-circle { width: 200px; height: 200px; border-width: 8px; }
    .stats-value { font-size: 2.5rem; }
    .content-column h2 { font-size: 1.8rem; }
    main { margin: 15px; }
    .contact-container, .faq-container, .content-section, .news-container { padding: 20px; margin: 20px 10px; }
    .page-header h1, .about-hero h1 { font-size: 2rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
}

@media (max-width: 480px) {
    .stats-box h3 { font-size: 2rem; }
    .animated-title-wave { font-size: 18px; }
    .gallery-grid { grid-template-columns: 1fr; }
}