/* E+ — Teal climate-tech theme */
:root {
    --primary: #0d4a4a;
    --primary-light: #147373;
    --secondary: #0f766e;
    --accent: #2dd4bf;
    --accent-light: #5eead4;
    --accent-pale: #ccfbf1;
    --success: #0d9488;

    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg-white: #ffffff;
    --bg-cream: #f8fafc;
    --bg-sage: #f0fdfa;
    --bg-dark: #042f2e;

    --border: #cbd5e1;
    --border-light: #e2e8f0;

    --shadow-sm: 0 1px 3px rgba(13, 74, 74, 0.06);
    --shadow: 0 4px 12px rgba(13, 74, 74, 0.08);
    --shadow-md: 0 8px 24px rgba(13, 74, 74, 0.1);
    --shadow-lg: 0 16px 48px rgba(13, 74, 74, 0.12);

    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    min-height: 72px;
    transition: background-color var(--transition), box-shadow var(--transition);
}
@supports (backdrop-filter: blur(12px)) {
    .navbar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
    min-height: 56px;
}
.brand-mark {
    height: 56px;
    width: 56px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    line-height: 1.2;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.brand-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
    max-width: 220px;
}
.nav-menu { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav-menu a {
    display: inline-block; padding: 0.5rem 0.85rem; font-size: 0.875rem; font-weight: 500;
    color: var(--text-body); border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}
.nav-menu a:hover, .nav-menu a:focus, .nav-menu a.active {
    color: var(--primary); background: var(--bg-sage);
}
.nav-cta {
    background: var(--primary) !important; color: var(--bg-white) !important;
    font-weight: 600 !important; padding: 0.5rem 1.25rem !important;
}
.nav-cta:hover { background: var(--primary-light) !important; }
.mobile-menu-toggle {
    display: none; flex-direction: column; background: none; border: none; cursor: pointer;
    padding: 8px; gap: 5px; min-width: 44px; min-height: 44px;
    justify-content: center; align-items: center;
}
.mobile-menu-toggle span {
    width: 22px; height: 2px; background: var(--primary); border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative; background: linear-gradient(160deg, var(--primary) 0%, #0f5c5c 45%, var(--secondary) 100%);
    color: var(--bg-white); padding: 7rem 0 5rem; min-height: 92vh; display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.5'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1.25rem; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.3px;
}
.hero-lead { font-size: 1.15rem; opacity: 0.95; margin-bottom: 0.75rem; font-weight: 500; }
.hero-description { font-size: 1.05rem; opacity: 0.88; max-width: 680px; margin: 0 auto 2rem; line-height: 1.8; }
.hero-stats {
    display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.5rem 2rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); max-width: 640px; margin: 0 auto 1.5rem;
}
@supports (backdrop-filter: blur(12px)) {
    .hero-stats { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; }
.hero-stat-suffix { font-size: 0.95rem; font-weight: 600; opacity: 0.85; }
.hero-stat-label {
    display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.8px;
    opacity: 0.75; margin-top: 0.25rem;
}
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }
.hero-footnote { font-size: 0.9rem; opacity: 0.8; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }
.hero-scroll-indicator { opacity: 0.5; animation: bounceDown 2s ease-in-out infinite; }
.hero-scroll-indicator svg { margin: 0 auto; }
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    transition: transform var(--transition-fast), background var(--transition), box-shadow var(--transition);
    min-height: 44px; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.15); color: var(--bg-white); border-color: rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--bg-white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--bg-white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-sage); }
.section-title {
    font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary); text-align: center; font-weight: 700; margin-bottom: 0.75rem;
    padding-bottom: 1rem; position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 2rem; color: var(--text-body); }

/* Cards */
.card {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 2rem; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-pale); }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; background: var(--bg-sage); border-radius: 12px;
    color: var(--primary); margin-bottom: 1rem;
}
.card-icon svg { display: inline; }

/* About */
.about-intro { max-width: 800px; margin: 0 auto 2.5rem; text-align: center; }
.about-mission { margin-top: 1rem; font-size: 1.05rem; }
.about-closing { text-align: center; margin-top: 2rem; color: var(--text-muted); font-size: 1.05rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.focus-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem; margin-bottom: 1rem;
}
.focus-card { text-align: center; padding: 1.5rem; }
.focus-card h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); font-weight: 600; }

/* Solutions */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.solution-card h3 { font-family: var(--font-heading); color: var(--primary); font-size: 1.35rem; margin-bottom: 0.75rem; }
.solution-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--secondary); margin: 1.25rem 0 0.75rem; }
.solution-card p { color: var(--text-body); margin-bottom: 0.5rem; }

/* Why / outcomes */
.why-content { max-width: 800px; margin: 0 auto 2rem; text-align: center; }
.why-content p + p { margin-top: 1rem; }
.outcomes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.outcome-card { text-align: center; padding: 1.75rem 1.25rem; }
.outcome-icon {
    display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center;
    background: var(--bg-sage); border-radius: 50%; color: var(--primary); margin-bottom: 1rem;
}
.outcome-card h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); font-weight: 600; }

/* Process timeline */
.process-timeline {
    position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; max-width: 1000px; margin: 0 auto;
}
.timeline-line {
    position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
    background: linear-gradient(90deg, var(--accent-pale), var(--accent), var(--accent-pale));
}
.process-step { position: relative; z-index: 1; text-align: center; }
.step-node {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(13, 74, 74, 0.25);
}
.step-content {
    background: var(--bg-white); padding: 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-light); text-align: left;
}
.step-content h4 { font-family: var(--font-heading); color: var(--primary); margin-bottom: 0.35rem; font-size: 0.95rem; }
.step-content p { font-size: 0.85rem; color: var(--text-muted); }

/* Audience / pillars */
.audience-grid, .pillars-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
}
.audience-card h3, .pillar-card h3 {
    font-family: var(--font-heading); color: var(--primary); font-size: 1.15rem; margin-bottom: 0.5rem;
}
.audience-card p, .pillar-card p { font-size: 0.95rem; color: var(--text-muted); }
.impact-grid { max-width: 700px; margin: 0 auto; }
.mrv-card h3 { font-family: var(--font-heading); color: var(--primary); margin: 1.25rem 0 0.75rem; font-size: 1.1rem; }

/* Lists */
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: 0.45rem 0 0.45rem 1.75rem; position: relative; font-size: 0.95rem;
}
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 0.75rem; width: 8px; height: 8px;
    border-radius: 50%; background: var(--accent);
}

/* Wave dividers */
.wave-divider { line-height: 0; margin-top: -1px; }
.wave-divider svg { width: 100%; height: 50px; display: block; }
.wave-divider--alt { background: var(--bg-white); color: var(--bg-sage); }
.wave-divider:not(.wave-divider--alt) { background: var(--bg-sage); color: var(--bg-white); }

/* Contact */
.section-contact {
    background: linear-gradient(160deg, var(--primary) 0%, #0f5c5c 50%, var(--secondary) 100%);
    color: var(--bg-white); position: relative; overflow: hidden;
}
.section-contact .section-title { color: var(--bg-white); }
.section-contact .section-title::after { background: rgba(255,255,255,0.5); }
.contact-lead { text-align: center; max-width: 640px; margin: 0 auto 2rem; opacity: 0.9; font-size: 1.05rem; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.contact-card {
    max-width: 560px; margin: 0 auto; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 2rem;
}
@supports (backdrop-filter: blur(12px)) {
    .contact-card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.contact-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
    width: 40px; height: 40px; min-width: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 10px; color: var(--accent-light);
}
.contact-item strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; margin-bottom: 0.2rem; }
.contact-item a { color: var(--bg-white); }
.contact-item a:hover { text-decoration: underline; }
.contact-item p { margin: 0; font-size: 0.95rem; }

/* Footer */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; gap: 1rem; }
.footer-mark {
    height: 64px;
    width: auto;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}
.footer-brand strong { display: block; font-family: var(--font-heading); color: var(--bg-white); margin-bottom: 0.35rem; }
.footer-brand p { font-size: 0.85rem; opacity: 0.7; line-height: 1.5; }
.footer-tagline { margin-top: 0.5rem; color: var(--accent-light) !important; opacity: 0.9 !important; }
.footer-links strong, .footer-contact strong {
    display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--bg-white); margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); display: inline-block; padding: 0.2rem 0; min-height: 44px; line-height: 2.2; }
.footer-links a:hover { color: var(--accent-light); }
.footer-contact p { font-size: 0.9rem; opacity: 0.6; margin-bottom: 0.3rem; }
.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.5; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px;
    background: var(--primary); color: var(--bg-white); border: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-light); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .timeline-line { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}
@media (max-width: 1024px) {
    .brand-tagline { max-width: 200px; }
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .brand-mark { height: 50px; }
    .brand-name { font-size: 1.1rem; }
    .brand-tagline { display: block; max-width: 200px; }
    .nav-menu {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        flex-direction: column; background: var(--bg-white); padding: 5rem 2rem 2rem;
        transform: translateX(100%); transition: transform var(--transition); z-index: 999;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu li { border-bottom: 1px solid var(--border-light); width: 100%; }
    .nav-menu a { display: block; padding: 1rem 0.5rem; min-height: 44px; }
    .nav-cta { margin-top: 1rem; text-align: center !important; }
    .mobile-menu-toggle { z-index: 1001; }
    .hero { min-height: auto; padding: 6rem 0 4rem; }
    .hero-stats { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
    .hero-stat-divider { width: 60px; height: 1px; }
    .hero-scroll-indicator { display: none; }
    .section { padding: 3.5rem 0; }
    .process-timeline { grid-template-columns: 1fr; }
    .process-step { display: flex; gap: 1rem; text-align: left; }
    .step-node { margin: 0; min-width: 48px; width: 48px; height: 48px; font-size: 1rem; }
    .step-content { flex: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .wave-divider svg { height: 30px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .brand-mark { height: 44px; }
    .brand-name { font-size: 1rem; }
    .hero-cta, .contact-cta { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .hero-scroll-indicator { animation: none; }
}

@media print {
    .navbar, .mobile-menu-toggle, .footer, .back-to-top, .hero-scroll-indicator, .wave-divider { display: none !important; }
    .hero { min-height: auto; padding: 2rem 0; background: var(--primary) !important; print-color-adjust: exact; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
