:root {
    /* Modern Tech Theme */
    --bg: #ffffff;
    --bg2: #f9fafb;
    --bg3: #f3f4f6;
    --cream: #111827;
    --cream2: #1f2937;
    --cream3: #4b5563;
    --orange: #e8723a;
    --orange2: #d85e25;
    --orange-bg: rgba(232,114,58,0.08);
    --orange-glow: rgba(232,114,58,0.25);
    
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    --nav-bg: rgba(255,255,255,0.85);
    --hero-overlay-mid: rgba(255,255,255,0.7);
    --hero-overlay-end: rgba(255,255,255,0.3);
    --nav-mobile-bg: rgba(255,255,255,0.98);

    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg: #0f1115;
    --bg2: #16181d;
    --bg3: #1f2228;
    --cream: #f9fafb;
    --cream2: #e5e7eb;
    --cream3: #b3b8c2;
    --border-color: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --nav-bg: rgba(15,17,21,0.85);
    --hero-overlay-mid: rgba(15,17,21,0.7);
    --hero-overlay-end: rgba(15,17,21,0.4);
    --nav-mobile-bg: rgba(15,17,21,0.98);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.3s, color 0.3s; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--orange); font-weight: 600; }
::selection { background: var(--orange); color: #fff; }
.label { display: block; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cream3); margin-bottom: 20px; font-weight: 600; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 48px; transition: 0.5s var(--ease); }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.nav-logo { height: 44px; width: auto; }
.nav-brand { display: flex; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.82rem; color: var(--cream2); transition: 0.3s; }
.nav-links a:hover { color: var(--cream); }
.nav-cta { padding: 8px 22px !important; border: 1px solid var(--orange) !important; border-radius: 50px; color: var(--orange) !important; }
.nav-cta:hover { background: var(--orange) !important; color: var(--bg) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; }
.nav-toggle span { display: block; width: 100%; height: 1px; background: var(--cream); position: absolute; left: 0; transition: 0.3s; }
.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.theme-toggle { background: none; border: none; color: var(--cream2); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; transition: 0.3s; }
.theme-toggle:hover { color: var(--orange); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video, .hero-fallback-img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback-img { z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, var(--bg) 35%, var(--hero-overlay-mid) 65%, var(--hero-overlay-end) 100%); }
.hero-content { position: relative; z-index: 1; padding: 140px 48px 80px; max-width: 680px; }
.hero-eyebrow { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 24px; font-weight: 700; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; margin-bottom: 32px; letter-spacing: -0.03em; }
.hero-title em { font-size: 1em; }
.line { display: block; opacity: 0; transform: translateY(30px); animation: lineIn 0.9s var(--ease) forwards; }
.line:nth-child(2) { animation-delay: 0.15s; }
.line:nth-child(3) { animation-delay: 0.3s; }
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }
.hero-sub { font-size: 1.05rem; line-height: 1.8; color: var(--cream2); max-width: 440px; margin-bottom: 40px; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-solid { padding: 14px 32px; background: var(--orange); color: var(--bg); font-family: var(--sans); font-size: 0.88rem; font-weight: 500; border-radius: 50px; transition: 0.3s var(--ease); }
.btn-solid:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 8px 30px var(--orange-glow); }
.btn-ghost { padding: 14px 24px; color: var(--cream2); font-size: 0.88rem; font-weight: 400; transition: 0.3s; }
.btn-ghost:hover { color: var(--orange); }
.hero-scroll { position: absolute; bottom: 36px; left: 48px; z-index: 1; }
.hero-scroll span { display: block; width: 1px; height: 48px; background: linear-gradient(to bottom, var(--orange), transparent); animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.2; transform: scaleY(0.5); } 50% { opacity: 0.8; transform: scaleY(1); } }

/* STATS STRIP */
.stats-strip { display: flex; justify-content: center; gap: 48px; padding: 28px 48px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.stat { font-size: 0.82rem; color: var(--cream3); font-weight: 400; }
.stat strong { color: var(--orange); font-weight: 600; margin-right: 4px; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 80vh; }
.about-text { display: flex; flex-direction: column; justify-content: center; padding: 100px 72px 100px 48px; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 28px; letter-spacing: -0.02em; }
.about-text p { font-size: 0.95rem; color: var(--cream2); line-height: 1.85; font-weight: 400; max-width: 460px; }
.about-img { position: relative; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* SERVICES */
.services { padding: 120px 48px; max-width: 1100px; margin: 0 auto; }
.services-top { margin-bottom: 72px; }
.services-top h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.service-row { display: grid; grid-template-columns: 48px 220px 1fr; gap: 28px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--border-color); transition: 0.3s; }
.service-row:last-child { border-bottom: 1px solid var(--border-color); }
.service-row:hover { padding-left: 12px; background: rgba(0,0,0,0.01); }
.service-row:hover .svc-name { color: var(--orange); }
.svc-num { font-size: 0.85rem; color: var(--cream3); font-weight: 600; }
.svc-name { font-size: 1.25rem; font-weight: 600; transition: 0.3s; line-height: 1.3; }
.svc-desc { font-size: 0.88rem; color: var(--cream3); line-height: 1.8; font-weight: 400; }
.svc-desc span { transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease); cursor: pointer; }
.svc-desc span:hover { color: var(--orange); text-shadow: 0 0 8px var(--orange-glow); }

/* IMPACT */
.impact { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.impact-img-side { position: relative; overflow: hidden; }
.impact-img-side img { width: 100%; height: 100%; object-fit: cover; }
.impact-img-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg) 100%); }
.impact-data { display: flex; flex-direction: column; justify-content: center; padding: 80px 48px 80px 72px; }
.impact-data h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 48px; letter-spacing: -0.02em; }
.impact-cards { display: flex; flex-direction: column; gap: 20px; }
.imp-card { padding: 28px; border: 1px solid var(--border-color); border-radius: 8px; position: relative; transition: 0.3s; background: var(--bg); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.imp-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }
.imp-featured { border-color: var(--orange); background: var(--orange-bg); }
.imp-badge { position: absolute; top: 12px; right: 16px; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.imp-val { font-size: 2.5rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.04em; }
.imp-featured .imp-val { color: var(--orange); }
.imp-label { font-size: 0.82rem; color: var(--cream2); font-weight: 400; }
.imp-sub { font-size: 0.75rem; color: var(--cream3); font-weight: 400; margin-top: 4px; }

/* ROLES */
.roles { padding: 120px 48px; max-width: 1100px; margin: 0 auto; }
.roles h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 56px; letter-spacing: -0.02em; }
.roles-list { border-top: 1px solid var(--border-color); }
.role { display: grid; grid-template-columns: 200px 100px 1fr auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border-color); transition: 0.3s; }
.role:hover { padding-left: 12px; background: rgba(0,0,0,0.01); }
.role-hl { background: var(--orange-bg); padding: 24px 16px; margin: 0 -16px; border-radius: 8px; border-color: transparent; }
.role-title { font-size: 1.05rem; font-weight: 600; }
.role-pct { font-size: 0.85rem; color: var(--cream2); font-weight: 500; }
.role-pct .counter { font-size: 1.3rem; color: var(--orange); font-weight: 700; }
.role-desc { font-size: 0.85rem; color: var(--cream2); font-weight: 400; }
.role-cta { font-size: 0.82rem; color: var(--cream3); transition: 0.3s; white-space: nowrap; }
.role-cta:hover { color: var(--orange); }

/* CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.contact-text { display: flex; flex-direction: column; justify-content: center; padding: 80px 48px; background: var(--bg2); }
.contact-text h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 40px; letter-spacing: -0.03em; }
.contact-text a { font-size: 0.95rem; color: var(--cream2); border-bottom: 1px solid var(--cream3); width: fit-content; padding-bottom: 2px; transition: 0.3s; margin-bottom: 8px; }
.contact-text a:hover { color: var(--orange); border-color: var(--orange); }
.contact-text span { font-size: 0.82rem; color: var(--cream3); }
.contact-form { display: flex; flex-direction: column; justify-content: center; padding: 80px 48px; gap: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px 0; background: none; border: none; border-bottom: 1px solid var(--border-hover); color: var(--cream); font-family: var(--sans); font-size: 0.95rem; font-weight: 400; outline: none; transition: 0.3s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--cream2); opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }
.contact-form textarea { resize: none; min-height: 100px; }
.contact-form button { align-self: flex-start; padding: 14px 32px; background: var(--orange); color: var(--bg); border: none; border-radius: 50px; font-family: var(--sans); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: 0.3s; }
.contact-form button:hover { background: var(--orange2); transform: translateY(-2px); }
.form-status { display: none; font-size: 0.88rem; margin-top: 15px; padding: 12px 20px; border-radius: 8px; line-height: 1.5; text-align: left; }
.form-status.success { display: block; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; }
.form-status.error { display: block; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }

/* FOOTER */
.footer { display: flex; align-items: center; justify-content: space-between; padding: 32px 48px; border-top: 1px solid var(--border-color); flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 32px; opacity: 0.5; }
.footer p { font-size: 0.78rem; color: var(--cream3); font-weight: 400; }
.footer-badge { display: flex; align-items: center; }
.carbon-badge-link { display: inline-flex; align-items: center; transition: opacity 0.3s, transform 0.3s; }
.carbon-badge-link:hover { opacity: 0.95; transform: scale(1.02); }
.carbon-badge { height: 38px; width: auto; display: block; }

/* ANIMATIONS */
.anim { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.anim.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-content { padding: 140px 32px 80px; max-width: 100%; }
    .hero-overlay { background: linear-gradient(180deg, var(--bg) 15%, var(--hero-overlay-mid) 50%, var(--bg) 100%); }
    .stats-strip { gap: 24px; padding: 20px 32px; }
    .about { grid-template-columns: 1fr; }
    .about-text { padding: 80px 32px; }
    .about-img { height: 50vh; }
    .services { padding: 80px 32px; }
    .service-row { grid-template-columns: 36px 1fr; }
    .svc-desc { grid-column: 1 / -1; }
    .impact { grid-template-columns: 1fr; }
    .impact-img-side { height: 40vh; }
    .impact-img-overlay { background: linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
    .impact-data { padding: 48px 32px; }
    .roles { padding: 80px 32px; }
    .role { grid-template-columns: 1fr 1fr; gap: 8px; }
    .role-desc, .role-cta { grid-column: 1 / -1; }
    .contact { grid-template-columns: 1fr; }
    .contact-text, .contact-form { padding: 48px 32px; }
    .footer { flex-direction: column; gap: 16px; padding: 24px 32px; text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-badge { justify-content: center; }
    .nav { padding: 14px 24px; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; flex-direction: column; justify-content: center; background: var(--nav-mobile-bg); backdrop-filter: blur(20px); padding: 48px; gap: 24px; transition: 0.5s var(--ease); }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; }
    .nav-toggle { display: block; z-index: 101; }
}

/* Autofill styling override to prevent browser default light backgrounds */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--cream) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* CARBONEDGE SUSTAINABILITY BADGE IN FOOTER */
.footer-sustainability {
    display: flex;
    align-items: center;
}

.sustainability-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 50px;
    transition: all 0.35s var(--ease);
    cursor: pointer;
}

.sustainability-badge:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.sustainability-leaf {
    height: 24px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.25));
}

.sustainability-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sustainability-text .sub-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.5px;
    transition: color 0.3s var(--ease);
}

.sustainability-badge:hover .sustainability-text .sub-title {
    color: var(--orange);
}

.sustainability-text .info-link {
    font-size: 0.65rem;
    font-weight: 500;
    color: #10b981;
    margin-top: 1px;
}

