/* ================================================================
   Gesto Energia v28.3 — Brand box + tuned stats + clean header
   ================================================================ */

:root {
  --deep: #0D1B2A;
  --deep-2: #0a1521;
  --ink: #1a2332;
  --warm: #f5f6f2;
  --paper: #ebede5;
  --teal: #007A87;
  --teal-bright: #14B8C6;
  --accent: #6EAB24;
  --accent-soft: rgba(110,171,36,.15);
  --ink-soft-d: rgba(255,255,255,.62);
  --ink-soft-l: rgba(13,27,42,.62);
  --line-d: rgba(255,255,255,.10);
  --line-l: rgba(13,27,42,.10);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brand-box-size: 104px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--deep);
  color: #fff;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a, button, [data-hover] { cursor: none; }
@media (hover: none), (max-width: 900px) {
  body, a, button, [data-hover] { cursor: auto; }
  .cursor, .scroll-progress { display: none; }
}
img { max-width: 100%; display: block; }
.skip-link { position: absolute; top: -100px; }

/* === Custom cursor === */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1),
              border-color .25s, background .25s;
}
.cursor.is-hover {
  width: 64px; height: 64px;
  border-color: var(--accent);
  background: rgba(110,171,36,.18);
}

/* === Scroll progress (right edge) === */
.scroll-progress {
  position: fixed; top: 0; right: 28px;
  width: 1px; height: 100vh;
  background: rgba(255,255,255,.10);
  z-index: 100;
  pointer-events: none;
}
.scroll-progress::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: var(--prog, 0%);
  background: var(--accent);
  transition: height .12s ease-out;
}

/* === Brand box (BCG-style fixed white square) === */
.brand-box {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--brand-box-size);
  height: var(--brand-box-size);
  background: #fff;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: transform .3s ease;
}
.brand-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.brand-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  :root { --brand-box-size: 72px; }
  .brand-box { padding: 12px 10px; }
}

/* === Header (nav + PT/EN, no logo) === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 32px 48px 32px calc(var(--brand-box-size) + 32px);
  z-index: 50;
  background: linear-gradient(180deg, rgba(13,27,42,0.65) 0%, rgba(13,27,42,0) 100%);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .2s;
}
.site-nav a:hover { color: var(--accent); }
.lang-switch {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-switch a { color: inherit; text-decoration: none; opacity: 0.55; transition: opacity .2s; }
.lang-switch a.active { opacity: 1; font-weight: 600; }
.lang-switch a:hover { opacity: 1; }
.lang-switch .sep { opacity: 0.4; }
@media (max-width: 900px) {
  .site-header {
    padding: 24px 24px 24px calc(var(--brand-box-size) + 16px);
  }
  .header-row { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
}

/* === Section base === */
section.chapter {
  min-height: 100vh;
  position: relative;
  padding: 160px 48px 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
section.chapter.is-light { background: var(--warm); color: var(--ink); }
section.chapter.is-dark { background: var(--deep); color: #fff; }
@media (max-width: 900px) { section.chapter { padding: 120px 24px 100px; } }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: var(--deep);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 160px 48px 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 30% 40%, rgba(0,122,135,.20), transparent),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(110,171,36,.15), transparent),
    linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  z-index: 0;
}
.hero .scan-line {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 1200px;
}
.hero h1 .h1-line { display: block; }
.word-morph {
  display: block;
  position: relative;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.018em;
  min-height: 1em;
}
.word-morph .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50%);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2,.9,.2,1);
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
}
.word-morph .word.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.word-morph .word.is-exit {
  opacity: 0;
  transform: translateY(-50%);
}
.hero-tail { color: #fff; }
.hero-meta {
  position: absolute;
  bottom: 48px; left: calc(var(--brand-box-size) + 48px); right: 48px;
  display: flex;
  z-index: 4;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue .line {
  display: block; width: 56px; height: 1px; background: rgba(255,255,255,.4);
  position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: var(--accent);
  animation: line-sweep 2.4s ease-in-out infinite;
}
@keyframes line-sweep {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@media (max-width: 900px) {
  .hero { padding: 140px 24px 80px; }
  .hero-meta { left: 24px; right: 24px; bottom: 32px; font-size: 10px; }
  .hero h1 { font-size: clamp(48px, 13vw, 88px); }
}

/* ================================================================
   STATS STRIP (tuned: smaller numbers, 3-col, editorial)
   ================================================================ */
.stats-strip {
  background: var(--deep);
  color: #fff;
  padding: 100px 48px 120px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
}
.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(110,171,36,.08), transparent),
    radial-gradient(ellipse 50% 30% at 20% 70%, rgba(0,122,135,.08), transparent);
  pointer-events: none;
  z-index: 0;
}
.stats-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.stats-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.stats-headline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.35;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.012em;
  margin-bottom: 80px;
  max-width: 980px;
}
.stats-headline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.stats-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 48px;
}
.stat-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-rule { display: none; }
.stat-num {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(48px, 5vw, 88px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.025em;
  display: block;
}
.stat-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-unit-label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
  text-transform: lowercase;
}
.stat-detail {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .stats-strip { padding: 80px 24px 100px; }
  .stats-headline { font-size: 20px; margin-bottom: 56px; }
  .stats-rows { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .stat-num { font-size: 56px; }
}

/* === Chapter editorial === */
.ch-grid {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 120px;
  align-items: start;
}
.ch-headline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.ch-headline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.is-light .ch-headline em { color: var(--teal); }
.is-dark .ch-headline em { color: var(--accent); }
.ch-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 36px;
}
.ch-body { padding-top: 32px; }
.ch-body p {
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 580px;
}
.is-light .ch-body p { color: var(--ink); }
.is-dark .ch-body p { color: rgba(255,255,255,.82); }
.ch-body p strong { font-weight: 600; }
.is-light .ch-body p strong { color: var(--teal); }
.is-dark .ch-body p strong { color: var(--accent); }
@media (max-width: 900px) {
  .ch-grid { grid-template-columns: 1fr; gap: 32px; }
  .ch-body { padding-top: 0; }
  .ch-body p { font-size: 16px; }
}

/* === O QUE FAZEMOS (editorial list) === */
.ch-areas {
  list-style: none;
  margin-top: 56px;
  border-top: 1px solid var(--line-l);
}
.ch-areas li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-l);
  transition: padding-left .35s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  color: inherit;
}
.ch-areas li.is-link:hover { padding-left: 18px; }
.ch-areas .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  font-weight: 500;
}
.ch-areas .name {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.ch-areas .tagline {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft-l);
  font-weight: 500;
}
.ch-areas .arrow {
  font-size: 22px;
  opacity: .35;
  transition: opacity .25s, transform .35s, color .25s;
}
.ch-areas li.is-link:hover .arrow {
  opacity: 1;
  transform: translateX(8px);
  color: var(--accent);
}
.ch-areas li.is-soon .name { opacity: .6; }
.ch-areas li.is-soon .soon-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 12px;
  padding: 3px 9px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  vertical-align: middle;
  font-weight: 600;
}

/* === HISTÓRIA (editorial timeline) === */
.timeline-edit {
  max-width: 1080px;
  margin: 80px auto 0;
  border-top: 1px solid rgba(255,255,255,.10);
  list-style: none;
}
.timeline-edit .tl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 56px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  align-items: baseline;
}
.timeline-edit .tl-year {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -0.015em;
}
.timeline-edit .tl-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.timeline-edit .tl-body p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  max-width: 700px;
}
.timeline-edit .tl-row.is-now .tl-year { color: var(--teal-bright); }
.timeline-edit .tl-row.is-now .tl-body h3::after {
  content: "agora";
  display: inline-block;
  margin-left: 14px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  vertical-align: middle;
  font-weight: 600;
}
@media (max-width: 720px) {
  .timeline-edit .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .timeline-edit .tl-year { font-size: 28px; }
}

/* === IDENTIDADE === */
.manifesto {
  max-width: 880px;
  margin: 64px auto 0;
}
.manifesto p {
  font-size: 22px;
  line-height: 1.55;
  margin-bottom: 28px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.manifesto p.lead-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.3;
  margin-bottom: 40px;
  max-width: 720px;
}
.manifesto p strong { font-weight: 600; color: var(--teal); }
.vm-grid {
  max-width: 1240px;
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.vm-card {
  padding-top: 32px;
  border-top: 1px solid var(--line-l);
}
.vm-card .vm-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}
.vm-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.vm-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft-l);
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .vm-grid { grid-template-columns: 1fr; gap: 40px; }
  .manifesto p { font-size: 18px; }
  .manifesto p.lead-line { font-size: 24px; }
}
.values-edit {
  max-width: 1240px;
  margin: 96px auto 0;
  border-top: 1px solid var(--line-l);
}
.values-edit h3.values-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--teal);
  padding: 40px 0 32px;
}
.values-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 64px;
}
.values-list li { padding-top: 4px; }
.values-list .v-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}
.values-list h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink);
}
.values-list p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft-l);
}
@media (max-width: 980px) {
  .values-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .values-list { grid-template-columns: 1fr; gap: 32px; }
}

/* === GEOGRAFIA === */
.geo-inner {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.geo-map-wrap { margin: 80px 0 64px; }
.geo-map-wrap img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.25));
}
.country-list-edit {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 32px;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 36px 0;
  font-size: 14px;
}
.country-list-edit li {
  position: relative;
  padding-left: 18px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}
.country-list-edit li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 1080px) { .country-list-edit { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .country-list-edit { grid-template-columns: repeat(2, 1fr); } }

/* === CONTACTO === */
.contact-edit {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.contact-edit .contact-h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 64px;
  color: var(--ink);
}
.contact-edit .contact-h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--teal);
}
.contact-edit .contact-list-edit {
  list-style: none;
  border-top: 1px solid var(--line-l);
  max-width: 880px;
}
.contact-edit .contact-list-edit li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-l);
  font-size: 18px;
  color: var(--ink);
}
.contact-edit .contact-list-edit .label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.contact-edit .contact-list-edit a {
  text-decoration: none;
  color: var(--ink);
  transition: color .15s ease;
}
.contact-edit .contact-list-edit a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .contact-edit .contact-list-edit li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
}

/* === FOOTER === */
.site-footer {
  background: var(--warm);
  color: var(--ink);
  padding: 60px 48px 28px;
  border-top: 1px solid var(--line-l);
}
.ft-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft-l);
}
.ft-inner a { color: inherit; text-decoration: none; transition: color .15s; }
.ft-inner a:hover { color: var(--accent); }

/* === Scroll reveal === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

/* v28.4 — Hide scroll progress, brand-box img sized properly */
.scroll-progress { display: none !important; }
.brand-box img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* v28.6 — Brand-box widened for full Gesto Energia logo */
:root {
  --brand-box-w: 240px;
  --brand-box-h: 96px;
}
.brand-box {
  width: var(--brand-box-w) !important;
  height: var(--brand-box-h) !important;
  padding: 14px 20px !important;
}
.brand-box img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  object-fit: contain;
}
.site-header { padding-left: calc(var(--brand-box-w) + 32px) !important; }
@media (max-width: 900px) {
  :root { --brand-box-w: 160px; --brand-box-h: 64px; }
  .brand-box { padding: 10px 14px !important; }
  .site-header { padding-left: calc(var(--brand-box-w) + 16px) !important; }
}
