/* ============================================================
   TETRA ENERGY — "Bold / Dark" page system (Option C)
   Shared components for all institutional pages.
   Requires tetra.css (tokens, nav, footer, buttons, logo, .ph).
   ============================================================ */

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 8vw, 120px) 0; }

/* ---- dark hero ---- */
.heroC { position: relative; background: var(--ink); color: #fff; overflow: hidden; min-height: 780px; display: flex; flex-direction: column; }
.heroC.sub { min-height: 560px; }
.heroC .bg { position: absolute; inset: 0; }
.heroC .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; opacity: 0.6; }
.heroC .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.85) 55%, var(--ink) 100%); }
.heroC .glow { position: absolute; top: -20%; right: -8%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgba(232,70,33,0.5), rgba(194,26,38,0) 62%); filter: blur(20px); pointer-events: none; }
.heroC .content { position: relative; z-index: 2; margin-top: auto; padding: clamp(48px,7vw,90px) 0 clamp(40px,5vw,64px); width: 100%; }
.heroC h1 { font-size: clamp(46px, 9vw, 132px); line-height: 0.92; letter-spacing: -0.04em; margin: 26px 0 0; max-width: 15ch; }
.heroC.sub h1 { font-size: clamp(42px, 7vw, 96px); max-width: 18ch; }
.heroC h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heroC .sub-copy { margin-top: 34px; max-width: 52ch; color: rgba(255,255,255,0.72); font-size: clamp(18px,1.9vw,23px); line-height: 1.5; }
.heroC .cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.heroC .eyebrow { color: #fff; }
.heroC .scroll-meta { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.14); display: grid; grid-template-columns: repeat(4,1fr); }
.heroC .scroll-meta div { padding: 24px var(--pad); border-left: 1px solid rgba(255,255,255,0.1); }
.heroC .scroll-meta div:first-child { border-left: 0; }
.heroC .scroll-meta .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.2vw,30px); letter-spacing: -0.02em; }
.heroC .scroll-meta .v b { color: var(--accent); }
.heroC .scroll-meta .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-top: 6px; line-height: 1.4; }

/* ---- big statement ---- */
.statement { padding: clamp(72px, 11vw, 160px) 0; }
.statement p { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.025em; max-width: 22ch; margin: 22px 0 0; }
.statement.narrow p { font-size: clamp(24px, 3.2vw, 44px); max-width: 26ch; }
.statement p .dim { color: var(--gray); }
.statement .lead { margin-top: 30px; max-width: 56ch; font-size: clamp(18px,1.7vw,21px); color: var(--ink-2); }

/* ---- credential strip (alcance nacional / import-export) ---- */
.creditstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.creditstrip .row { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px,4vw,64px); align-items: center; padding: clamp(32px,4vw,52px) 0; }
.creditstrip .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.creditstrip .t { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.18; margin: 0; }
.creditstrip .t b { color: var(--accent-2); font-weight: 600; }

/* ---- alternating image rows ---- */
.bigrow { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-top: 1px solid var(--line); }
.bigrow .txt { padding: clamp(48px, 7vw, 110px) clamp(36px,5vw,80px); display: flex; flex-direction: column; justify-content: center; }
.bigrow .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.12em; }
.bigrow h3 { font-size: clamp(32px, 4.5vw, 64px); margin: 18px 0 0; letter-spacing: -0.03em; }
.bigrow p { font-size: clamp(17px,1.7vw,21px); line-height: 1.55; color: var(--ink-2); margin: 24px 0 0; max-width: 42ch; }
.bigrow .more { margin-top: 30px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.bigrow .img { display: flex; }
.bigrow .img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.bigrow.flip .txt { order: 2; }

/* ---- offerings / capabilities grid ---- */
.offerhead { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.offerhead h2 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -0.03em; max-width: 16ch; margin: 18px 0 0; }
.offergrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px,5vw,60px); }
.offergrid .cell { background: var(--paper); padding: clamp(28px,3vw,40px); min-height: 210px; display: flex; flex-direction: column; transition: background .2s; }
.offergrid .cell:hover { background: var(--paper-2); }
.offergrid .k { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.1em; }
.offergrid b { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px,2.1vw,25px); margin: 16px 0 12px; letter-spacing: -0.01em; }
.offergrid p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.offergrid.three { grid-template-columns: repeat(3, 1fr); }

/* ---- process steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px,5vw,60px); }
.steps .step { background: var(--paper); padding: clamp(26px,3vw,38px); }
.steps .step .num { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--paper-3); -webkit-text-stroke: 1px var(--gray); line-height: 1; }
.steps .step b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 22px 0 10px; }
.steps .step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

/* ---- big values / principles list ---- */
.bigvalues { background: var(--paper-2); padding: clamp(72px,9vw,130px) 0; border-top: 1px solid var(--line); }
.bigvalues .list { display: grid; gap: 0; margin-top: 30px; }
.bigvalues .item { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.bigvalues .item:first-child { border-top: 0; }
.bigvalues .name { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 86px); letter-spacing: -0.03em; line-height: 1; transition: color .2s; }
a.bigvalues-link:hover .name, .bigvalues .item:hover .name { color: var(--accent-2); }
.bigvalues .desc { font-size: 16px; color: var(--ink-3); max-width: 34ch; text-align: right; }

/* ---- governance dark gradient block ---- */
.govC { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: clamp(72px,10vw,150px) 0; }
.govC .glow { position: absolute; bottom: -30%; left: -10%; width: 50vw; height: 50vw; max-width: 620px; max-height: 620px; background: radial-gradient(circle, rgba(232,70,33,0.34), rgba(194,26,38,0) 64%); filter: blur(10px); }
.govC .inner { position: relative; z-index: 2; }
.govC .top { max-width: 760px; }
.govC .eyebrow { color: #fff; }
.govC h2 { font-size: clamp(32px, 5vw, 68px); margin: 24px 0 0; letter-spacing: -0.03em; }
.govC .lead { color: rgba(255,255,255,0.66); font-size: clamp(18px,1.8vw,21px); line-height: 1.6; margin: 26px 0 0; max-width: 56ch; }
.govC .quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.13); margin-top: 56px; }
.govC .quad .cell { background: var(--ink); padding: 30px 26px; min-height: 200px; display: flex; flex-direction: column; }
.govC .quad .k { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.govC .quad b { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: auto 0 10px; }
.govC .quad p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.58); line-height: 1.5; }
.govC .quad.six { grid-template-columns: repeat(3, 1fr); }

/* ---- gradient CTA ---- */
.ctaC { background: var(--grad); color: #fff; padding: clamp(80px,12vw,170px) 0; text-align: center; }
.ctaC h2 { font-size: clamp(38px, 7vw, 104px); letter-spacing: -0.04em; line-height: 0.96; max-width: 16ch; margin: 0 auto; }
.ctaC .btn { margin-top: 44px; background: #fff; color: var(--ink); }
.ctaC .btn:hover { background: var(--ink); color: #fff; }
.ctaC .eyebrow { color: #fff; justify-content: center; }
.ctaC .eyebrow::before { background: rgba(255,255,255,0.7); }

/* ---- contact ---- */
.contactgrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px,6vw,90px); padding: clamp(56px,7vw,100px) 0; align-items: start; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.field input, .field select, .field textarea {
  font-family: var(--font-text); font-size: 16px; color: var(--ink);
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%;
  transition: border-color .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cinfo { border-left: 1px solid var(--line); padding-left: clamp(28px,3vw,44px); }
.cinfo .block { padding: 22px 0; border-top: 1px solid var(--line-2); }
.cinfo .block:first-child { border-top: 0; padding-top: 0; }
.cinfo .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.cinfo .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px,1.8vw,22px); margin-top: 8px; letter-spacing: -0.01em; }
.cinfo .v.small { font-size: 16px; font-family: var(--font-text); font-weight: 500; color: var(--ink-2); line-height: 1.5; }

/* ---- legal / prose ---- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px,7vw,96px) 0; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 40px; }
.legal h2 { font-size: clamp(22px,2.4vw,30px); letter-spacing: -0.02em; margin: 52px 0 16px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 17px; line-height: 1.72; color: var(--ink-2); margin: 0 0 18px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { font-size: 17px; line-height: 1.72; color: var(--ink-2); margin-bottom: 8px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .heroC { min-height: 640px; }
  .heroC.sub { min-height: 460px; }
  .heroC .scroll-meta { grid-template-columns: 1fr 1fr; }
  .heroC .scroll-meta div:nth-child(3) { border-left: 0; }
  .creditstrip .row { grid-template-columns: 1fr; gap: 14px; }
  .bigrow { grid-template-columns: 1fr; }
  .bigrow .img { order: -1; }
  .bigrow.flip .txt { order: 0; }
  .bigrow .img img { min-height: 240px; }
  .offergrid, .offergrid.three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .govC .quad, .govC .quad.six { grid-template-columns: 1fr 1fr; }
  .contactgrid { grid-template-columns: 1fr; gap: 40px; }
  .cinfo { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 32px; }
}
@media (max-width: 560px) {
  .heroC { min-height: 600px; }
  .heroC .scroll-meta { grid-template-columns: 1fr; }
  .heroC .scroll-meta div { border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .heroC .scroll-meta div:first-child { border-top: 0; }
  .bigvalues .item { flex-direction: column; gap: 8px; }
  .bigvalues .desc { text-align: left; }
  .offergrid, .offergrid.three, .steps, .govC .quad, .govC .quad.six { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   ENERGY MANAGEMENT — migração → registro CCEE → telemetria
   ============================================================ */
.mgmt { padding: clamp(64px,8vw,120px) 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.mgmt-head { max-width: 780px; }
.mgmt-head h2 { font-size: clamp(30px,4vw,54px); letter-spacing: -0.03em; margin: 18px 0 0; }
.mgmt-head .lead { margin-top: 22px; font-size: clamp(17px,1.7vw,21px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }

.mgmt-flow { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px,5vw,56px); }
.mgmt-flow .stage { background: var(--paper); padding: clamp(28px,3vw,40px); display: flex; flex-direction: column; position: relative; }
.mgmt-flow .stage:not(:first-child)::before {
  content: "→"; position: absolute; left: -13px; top: clamp(28px,3vw,40px);
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 2;
}
.mgmt-flow .ix { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.1em; }
.mgmt-flow b { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px,2.1vw,25px); margin: 16px 0 12px; letter-spacing: -0.01em; }
.mgmt-flow p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.mgmt-flow .tags { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.mgmt-flow .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 2px; padding: 5px 9px; }

/* ---- telemetry live panel ---- */
.telemetry { margin-top: 48px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: 6px; overflow: hidden; }
.tele-intro { padding: clamp(32px,4vw,52px); }
.live { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #39d98a; animation: telepulse 2s infinite; }
@keyframes telepulse {
  0% { box-shadow: 0 0 0 0 rgba(57,217,138,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(57,217,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(57,217,138,0); }
}
.tele-intro h3 { font-size: clamp(24px,2.6vw,34px); margin: 18px 0 0; letter-spacing: -0.02em; }
.tele-intro > p { color: rgba(255,255,255,0.66); font-size: 16px; line-height: 1.6; margin: 16px 0 0; }
.tele-feats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tele-feats li { position: relative; padding-left: 20px; font-size: 15px; color: rgba(255,255,255,0.82); }
.tele-feats li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; }
.tele-panel { padding: clamp(28px,3vw,44px); background: #161618; border-left: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; }
.tele-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tele-kpis .kl { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.tele-kpis .kv { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.2vw,30px); letter-spacing: -0.02em; margin-top: 6px; }
.tele-kpis .kv i { font-style: normal; font-size: 0.5em; font-family: var(--font-mono); color: var(--gray); font-weight: 500; }
.tele-chart { margin-top: 28px; height: 140px; display: flex; align-items: flex-end; gap: 3px; }
.tele-chart .bar { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 1px 1px 0 0; opacity: 0.85; transition: height .6s ease; }
.tele-chart .bar.now { background: #39d98a; opacity: 1; }
.tele-foot { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--gray); }

/* ---- client portal (em breve) ---- */
.client-portal { position: relative; background: var(--ink); color: #fff; overflow: hidden; min-height: calc(100vh - 82px); display: flex; align-items: center; padding: clamp(60px,9vw,120px) 0; }
.client-portal .glow { position: absolute; top: -10%; right: -6%; width: 55vw; height: 55vw; max-width: 680px; max-height: 680px; background: radial-gradient(circle, rgba(232,70,33,0.4), rgba(194,26,38,0) 64%); filter: blur(20px); }
.client-portal .inner { position: relative; z-index: 2; max-width: 760px; }
.client-portal h1 { font-size: clamp(44px,7vw,92px); letter-spacing: -0.04em; line-height: 0.95; margin: 24px 0 0; }
.client-portal h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.client-portal .sub-copy { margin-top: 26px; max-width: 52ch; color: rgba(255,255,255,0.72); font-size: clamp(17px,1.8vw,21px); line-height: 1.55; }
.login-card { margin-top: 40px; max-width: 360px; background: #161618; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 26px; }
.login-card .lc-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 22px; }
.login-card .lc-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.login-card label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.login-card .lc-field { height: 42px; border: 1px solid rgba(255,255,255,0.14); border-radius: 3px; background: rgba(255,255,255,0.03); margin-bottom: 18px; }
.login-card .btn { width: 100%; justify-content: center; opacity: 0.55; cursor: not-allowed; }
.client-portal .more-link { display: inline-block; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 3px; transition: color .18s, border-color .18s; }
.client-portal .more-link:hover { color: #fff; border-color: #fff; }

@media (max-width: 920px) {
  .mgmt-flow { grid-template-columns: 1fr; }
  .mgmt-flow .stage:not(:first-child)::before { left: 50%; top: -13px; transform: translateX(-50%) rotate(90deg); }
  .telemetry { grid-template-columns: 1fr; }
  .tele-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 560px) {
  .tele-kpis { grid-template-columns: 1fr 1fr; gap: 14px; }
}
