/*
Theme Name: Carbon Hippo Bilingual 2026 v3
Theme URI: https://carbonhippo.tech/
Author: Carbon Hippo
Description: A focused, lightweight theme for Carbon Hippo's circular technology.
Version: 2026.2.2
Text Domain: carbon-hippo
*/

:root {
  --ink: #10211b;
  --forest: #143f31;
  --leaf: #4f7f45;
  --lime: #bad972;
  --sand: #f3f0e8;
  --paper: #fffdf8;
  --orange: #f2a33b;
  --line: rgba(16, 33, 27, 0.14);
  --radius: 26px;
  --shadow: 0 24px 70px rgba(16, 33, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 60px 0; }
.section-soft { background: var(--sand); }
.section-dark { color: #fff; background: var(--ink); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 26px; height: 2px; background: currentColor; content: ""; }
.section-dark .eyebrow { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.04em; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(3.2rem, 5.6vw, 5.2rem); font-weight: 760; }
h2 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2.15rem, 3.5vw, 3.45rem); }
h3 { font-size: 1.45rem; }
.lede { max-width: 680px; color: #50635b; font-size: clamp(1.04rem, 1.45vw, 1.2rem); }
.section-dark .lede { color: #bdc9c4; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--forest); }
.button-light { background: #fff; color: var(--ink); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { background: #fff; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  padding: 24px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { width: 172px; max-width: 172px; flex: 0 0 172px; overflow: hidden; }
.brand-link, .brand-logo { display: block; }
.site-header .brand-logo { width: 172px !important; max-width: 172px !important; height: auto !important; }
.brand-text { font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: .88rem; font-weight: 700; text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--leaf); }
.language-switcher { display: flex; align-items: center; gap: 7px; padding-left: 22px; border-left: 1px solid var(--line); }
.language-switcher a { color: #77837d; }
.language-switcher a + a::before { margin-right: 7px; color: #bdc4c0; content: "/"; }
.language-switcher a[aria-current="page"] { color: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.5rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 64px;
  background: radial-gradient(circle at 78% 24%, #e9f0d8 0, transparent 34%), var(--paper);
}
.hero::after {
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 56vw;
  height: 56vw;
  border: 1px solid rgba(79,127,69,.16);
  border-radius: 50%;
  content: "";
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 460px;
  align-items: center;
  gap: clamp(48px, 6vw, 78px);
}
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(3.2rem, 4.3vw, 4.25rem); }
.hero h1 span { color: var(--leaf); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { position: relative; width: 94%; justify-self: end; }
.hero-product {
  width: 100%;
  aspect-ratio: 822 / 580;
  border: 7px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(16,33,27,.2);
}
.hero-note {
  position: absolute;
  z-index: 4;
  right: 26px;
  bottom: -18px;
  width: 190px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: .82rem;
  font-weight: 700;
}
.hero-note strong { display: block; margin-bottom: 4px; color: var(--leaf); font-size: 1.8rem; line-height: 1; }

.metrics { position: relative; z-index: 5; margin-top: -42px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.metric { padding: 23px 30px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric strong { display: block; color: var(--forest); font-size: 1.8rem; line-height: 1; }
.metric span { color: #617169; font-size: .88rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(44px, 6vw, 78px); }
.media-card { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-card img { width: 100%; height: 410px; object-fit: cover; }
.media-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(16,33,27,.28)); content: ""; }
.check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { position: absolute; left: 0; color: var(--leaf); font-weight: 900; content: "↗"; }
.check-list strong { display: block; }
.check-list span { color: #65746d; font-size: .94rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.process-card { min-height: 205px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.process-card:nth-child(2) { background: linear-gradient(rgba(16,33,27,.7), rgba(16,33,27,.86)), url('assets/images/biochar.jpg') center / cover; color: #fff; }
.process-card:nth-child(2) p { color: #c2d0ca; }
.process-number { display: block; margin-bottom: 34px; color: var(--leaf); font-size: .76rem; font-weight: 850; letter-spacing: .12em; }
.process-card:nth-child(2) .process-number { color: var(--lime); }
.process-card p { color: #607169; font-size: .94rem; }

#video { position: relative; display: grid; min-height: 410px; align-items: center; overflow: hidden; }
#video::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(8,31,24,.98) 0%, rgba(8,31,24,.9) 35%, rgba(8,31,24,.48) 70%, rgba(8,31,24,.38) 100%); content: ""; }
.video-layout { position: relative; z-index: 2; }
.video-copy { max-width: 500px; }
.video-frame { position: absolute; inset: 0; background: #050a08; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.video-help { margin-top: 18px; color: #94a69e; font-size: .84rem; }

.section-challenge { padding-top: 72px; }
.section-heading-row { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 54px; }
.section-heading-row h2, .section-heading-row p { margin-bottom: 0; }
.applications-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.application { min-height: 150px; padding: 20px; border-top: 3px solid var(--leaf); background: #fff; }
.application .icon { display: grid; width: 38px; height: 38px; margin-bottom: 24px; place-items: center; border-radius: 50%; background: #e8efd9; font-size: 1rem; }
.application p { margin: 0; color: #65746d; font-size: .9rem; }

.process-illustration { padding-bottom: 48px; }
.compact-heading { align-items: center; margin-bottom: 28px; }
.compact-heading p { color: #576a61; }
.technical-visual { overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.technical-visual img { width: min(100%, 1080px); margin-inline: auto; border-radius: 20px; }

.echo-card { overflow: hidden; padding-bottom: 30px; border: 1px solid rgba(79,127,69,.18); border-radius: 30px; background: #eef3e7; }
.echo-copy { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 56px; padding: 38px clamp(38px, 5vw, 64px) 28px; }
.echo-copy h2 { margin-bottom: 0; }
.echo-copy > div:last-child { padding-top: 34px; }
.echo-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; margin: 0 clamp(38px, 5vw, 64px); padding: 24px; border-radius: 22px; background: #fff; }
.echo-flow div { display: grid; gap: 3px; }
.echo-flow span { color: var(--leaf); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.echo-flow strong { font-size: 1.02rem; }
.echo-flow small { color: #66766e; line-height: 1.4; }
.echo-flow b { color: var(--leaf); font-size: 1.35rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.echo-components { margin-inline: clamp(38px, 5vw, 64px); }
.tag { padding: 8px 13px; border: 1px solid rgba(20,63,49,.2); border-radius: 999px; font-size: .78rem; font-weight: 700; }

.outcomes { padding: 52px 0; color: #fff; background: var(--forest); }
.outcomes .eyebrow { color: var(--lime); }
.outcomes-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 54px; margin-bottom: 30px; }
.outcomes-heading h2, .outcomes-heading p { margin-bottom: 0; }
.outcomes-heading p { color: #c4d1cc; font-size: .86rem; }
.outcomes-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.outcomes-grid > div { padding: 24px 20px 0 0; }
.outcomes-grid strong { display: block; margin-bottom: 6px; color: var(--lime); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.1; }
.outcomes-grid span { color: #d5dfdb; font-size: .8rem; line-height: 1.35; }

.deployment-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid var(--line); }
.deployment-grid article { position: relative; padding: 24px 26px 0 0; }
.deployment-grid article:not(:last-child)::after { position: absolute; top: -1px; right: 18px; width: 32px; height: 1px; background: var(--leaf); content: ""; }
.deployment-grid span { display: block; margin-bottom: 28px; color: var(--leaf); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.deployment-grid p { margin-bottom: 0; color: #63736b; font-size: .88rem; }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.about-copy { max-width: 760px; }
.about-copy p { color: #576a61; }
.brand-note { margin: 22px 0 0; padding-left: 18px; border-left: 3px solid var(--orange); font-size: .9rem; }

.contact-card {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: end;
  gap: 50px;
  padding: clamp(34px, 4vw, 48px);
  border-radius: 34px;
  background: var(--forest);
  color: #fff;
}
.contact-card h2 { margin-bottom: 18px; }
.contact-card p { max-width: 620px; color: #c4d1cc; }
.contact-details { display: grid; gap: 12px; }
.contact-details a { font-weight: 750; text-decoration: none; }
.contact-details small { display: block; color: var(--lime); text-transform: uppercase; letter-spacing: .1em; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #6a7972; font-size: .82rem; }
.footer-wrap a { text-decoration: none; }

.page-main { min-height: 70vh; padding: 170px 0 90px; }
.page-main article { max-width: 820px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 900px) {
  .section { padding: 52px 0; }
  .menu-toggle { display: block; position: relative; z-index: 30; min-width: 44px; min-height: 44px; }
  .site-nav { position: fixed; inset: 0; display: none; flex-direction: column; justify-content: center; background: var(--paper); font-size: 1.2rem; }
  .menu-open .site-nav { display: flex; }
  .language-switcher { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .hero { padding: 165px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 40px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { width: min(760px, 100%); margin-inline: auto; }
  .hero-note { display: none; }
  .split, .video-layout, .about-grid, .contact-card, .section-heading-row, .outcomes-heading { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .about-grid, .contact-card, .section-heading-row, .outcomes-heading { gap: 24px; }
  .echo-copy { grid-template-columns: 1fr; gap: 0; }
  .echo-copy > div:last-child { padding-top: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-number { margin-bottom: 32px; }
  .applications-grid { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .deployment-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; line-height: 1.55; }
  .section { padding: 46px 0; }
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { padding: 18px 0; }
  .brand { width: 150px; max-width: 150px; flex-basis: 150px; }
  .site-header .brand-logo { width: 150px !important; max-width: 150px !important; }
  h1 { font-size: clamp(2.75rem, 13vw, 3.8rem); }
  h2 { font-size: 1.9rem; }
  .hero { padding: 130px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.8rem); }
  html[lang="es-CL"] .hero h1 { font-size: 2.35rem; }
  .hero-actions .button { width: 100%; }
  .metrics { margin-top: -28px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { padding: 24px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .media-card img { height: 300px; }
  .process-grid { gap: 12px; margin-top: 28px; }
  .process-card { min-height: 0; padding: 22px; }
  .process-number { margin-bottom: 18px; }
  .applications-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .application { min-height: 0; padding: 18px; }
  .application .icon { width: 38px; height: 38px; margin-bottom: 20px; }
  .application h3 { font-size: 1.15rem; }
  .application p { font-size: .82rem; }
  .process-illustration { padding-bottom: 38px; }
  #video { min-height: 380px; }
  #video::after { background: linear-gradient(90deg, rgba(8,31,24,.96), rgba(8,31,24,.68)); }
  .technical-visual { overflow-x: auto; border-radius: 20px; }
  .technical-visual img { width: 880px; max-width: none; }
  .echo-copy { padding: 30px 24px 24px; }
  .echo-flow { grid-template-columns: 1fr; gap: 12px; margin: 0 20px; padding: 20px; }
  .echo-flow b { justify-self: center; transform: rotate(90deg); }
  .echo-components { margin-inline: 20px; }
  .outcomes { padding: 44px 0; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .outcomes-grid > div { padding: 18px 12px 0 0; }
  .deployment-grid { grid-template-columns: 1fr; }
  .deployment-grid article { padding-top: 20px; }
  .deployment-grid article:not(:last-child)::after { display: none; }
  .deployment-grid span { margin-bottom: 14px; }
  .contact-card { padding: 32px 24px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
