/* ==========================================================================
   Renova Energia — Design System
   Industrial-elegant / corporate-tech. Space Grotesk + Satoshi.
   Palette: navy #112135 · slate #3E5570 · ice #EBF0F5 · white · accent #3898EC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

@font-face {
  font-family: 'Borba Sans';
  src: local('Borba Sans'), local('BorbaSans-Heavy'), local('BorbaSans-Bold'), local('BorbaSans-Regular');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --footer-bg: #003C78;
  /* Brand palette */
  --navy: #112135;
  --slate: #3E5570;
  --ice: #EBF0F5;
  --white: #FFFFFF;
  --off-white: #EBF0F5;
  --accent: #3898EC;

  /* Semantic (light base) */
  --text: #112135;
  --text-dim: #5C6B7E;
  --text-on-dark: #EBF0F5;
  --border: rgba(17, 33, 53, 0.10);
  --border-strong: rgba(17, 33, 53, 0.16);

  /* Legacy aliases still referenced by inline styles in the HTML */
  --bg-primary: #112135;      /* subpage hero gradients fade to navy (readable) */
  --bg-secondary: #EBF0F5;    /* used for alternating section backgrounds  */
  --text-primary: #112135;
  --text-secondary: #5C6B7E;
  --accent-color: #3898EC;

  /* Translucent overlays / glass */
  --overlay-navy: rgba(17, 33, 53, 0.66);
  --glass-slate: rgba(62, 85, 112, 0.55);
  --glass-light: rgba(235, 240, 245, 0.14);

  /* Type — Borba Sans (local) + Space Grotesk / Satoshi web fonts for universal browser rendering */
  --font-menu: 'Satoshi', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-heading: 'Borba Sans', 'Space Grotesk', 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: 'Borba Sans', 'Satoshi', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Motion — deliberately slow & premium */
  --ease: cubic-bezier(0.64, 0.05, 0, 1);
  --dur: 0.735s;
  --transition: all var(--dur) var(--ease);

  --header-height: 96px;
  --radius-card: 18px;
  --radius-pill: 9999px;
  --container: 1360px;
}

/* Wider gamut whites/colors where supported */
@supports (color: color(display-p3 1 1 1)) {
  :root {
    --white: color(display-p3 1 1 1);
    --ice: color(display-p3 0.922 0.941 0.961);
    --accent: color(display-p3 0.22 0.596 0.925);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: opacity 0.4s ease;
}
body.page-leaving {
  opacity: 0;
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(46px, 8vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.045em;
}
.ascii-band {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #112135; /* navy da marca */
}
@media (max-width: 768px) { .ascii-band { height: 180px; } }
.ascii-canvas, #ascii-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

h2, .section-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 34px;
}

h3, .card-title {
  font-size: clamp(22px, 2.4vw, 27px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { color: var(--text); }

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }

strong { font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* Utilities                                                                  */
/* -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.text-dim { color: var(--text-dim); }
.text-accent { color: var(--slate); }

/* Eyebrow / section label — uppercase, wide tracking, with brand "+" marker */
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
  margin-bottom: 22px;
}
.pill-label::before {
  content: '+';
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* -------------------------------------------------------------------------- */
/* Buttons — fully-rounded pills                                              */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--slate);
  color: var(--off-white);
  border: 1px solid var(--slate);
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn::after {
  content: '→';
  font-size: 15px;
  transition: transform var(--dur) var(--ease);
}
.btn:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 33, 53, 0.22);
}
.btn:hover::after { transform: translateX(4px); }

/* Ghost / translucent variant (over imagery) */
.btn-secondary {
  background-color: rgba(235, 240, 245, 0.10);
  color: var(--off-white);
  border: 1px solid rgba(235, 240, 245, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* Glassmorphism button variant */
.btn-liquid-glass,
.btn-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(62, 85, 112, 0.30) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 8px 32px 0 rgba(17, 33, 53, 0.35),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
  color: var(--white);
  text-shadow: 0 1px 3px rgba(17, 33, 53, 0.5);
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.btn-liquid-glass::before,
.btn-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  pointer-events: none;
}
.btn-liquid-glass:hover,
.btn-glass:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(62, 85, 112, 0.45) 100%);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 16px 40px 0 rgba(17, 33, 53, 0.45),
    inset 0 1.5px 3px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(-3px) scale(1.02);
  color: var(--white);
}

/* -------------------------------------------------------------------------- */
/* Header — floating pill navbar                                              */
/* -------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: padding var(--dur) var(--ease);
}
header.scrolled { padding: 12px 0; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* White capsule holding logo + menu — centered in header */
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  padding: 12px 16px 12px 26px;
  box-shadow: 0 12px 34px rgba(17, 33, 53, 0.12);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-menu) !important;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-link::before {
  content: '+';
  color: var(--accent);
  margin-right: 5px;
  font-weight: 600;
  opacity: 0.55;
  transition: opacity var(--dur) var(--ease);
}
.nav-link:hover { color: var(--slate); }
.nav-link:hover::before { opacity: 1; }
/* ===== Seletor de idioma ===== */
#lang-switcher {
  position: relative;
  font-family: var(--font-menu);
  font-size: 13px;
  font-weight: 700;
}
#lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--navy);
  font: inherit;
}
#lang-toggle img { width: 20px; border-radius: 2px; }
#lang-toggle span { font-size: 10px; opacity: 0.6; }

#lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(17,33,53,0.18);
  padding: 6px;
  min-width: 150px;

  /* estado fechado */
  display: block; /* remove o display:none */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

#lang-switcher.open #lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#lang-toggle span {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s ease;
  display: inline-block;
}

#lang-switcher.open #lang-toggle span {
  transform: rotate(180deg);
}
#lang-switcher.open #lang-menu { display: block; }

#lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--navy);
}
#lang-menu a:hover { background: var(--ice); }
#lang-menu img { width: 20px; border-radius: 2px; }
/* Right-side actions: language switcher + isolated CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  position: absolute;
  right: 40px;
}

.btn-reach {
  padding: 14px 26px;
  box-shadow: 0 12px 30px rgba(17, 33, 53, 0.14);
}
.btn-reach::after { content: '+'; font-size: 16px; }
.btn-reach:hover::after { transform: none; }

.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 46px; height: 46px;
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 33, 53, 0.12);
}


/* -------------------------------------------------------------------------- */
/* Hero — TeraWulf-style dynamic slideshow with Ken Burns                      */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  overflow: hidden;
  background-color: var(--navy);
}

/* Video background layer */
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.7) brightness(0.85);
  z-index: 1;
  transition: opacity 3s ease;
}
.hero-video.video-visible {
  opacity: 0.55;
}

/* ---------- Image slideshow layers ---------- */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: -20px;   /* overflow to allow pan without edges showing */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  filter: saturate(0.75) brightness(0.9);
}

.hero-slide.active {
  opacity: 1;
}

/* Ken Burns animation variants (with Safari WebKit keyframes) */
@-webkit-keyframes kenburns-zoom-in {
  0%   { -webkit-transform: scale(1) translate(0, 0); transform: scale(1) translate(0, 0); }
  100% { -webkit-transform: scale(1.2) translate(-1%, -1%); transform: scale(1.2) translate(-1%, -1%); }
}
@keyframes kenburns-zoom-in {
  0%   { -webkit-transform: scale(1) translate(0, 0); transform: scale(1) translate(0, 0); }
  100% { -webkit-transform: scale(1.2) translate(-1%, -1%); transform: scale(1.2) translate(-1%, -1%); }
}

@-webkit-keyframes kenburns-zoom-out {
  0%   { -webkit-transform: scale(1.25) translate(-1%, 1%); transform: scale(1.25) translate(-1%, 1%); }
  100% { -webkit-transform: scale(1) translate(0, 0); transform: scale(1) translate(0, 0); }
}
@keyframes kenburns-zoom-out {
  0%   { -webkit-transform: scale(1.25) translate(-1%, 1%); transform: scale(1.25) translate(-1%, 1%); }
  100% { -webkit-transform: scale(1) translate(0, 0); transform: scale(1) translate(0, 0); }
}

@-webkit-keyframes kenburns-pan-left {
  0%   { -webkit-transform: scale(1.08) translate(2%, 0); transform: scale(1.08) translate(2%, 0); }
  100% { -webkit-transform: scale(1.15) translate(-2%, -0.5%); transform: scale(1.15) translate(-2%, -0.5%); }
}
@keyframes kenburns-pan-left {
  0%   { -webkit-transform: scale(1.08) translate(2%, 0); transform: scale(1.08) translate(2%, 0); }
  100% { -webkit-transform: scale(1.15) translate(-2%, -0.5%); transform: scale(1.15) translate(-2%, -0.5%); }
}

@-webkit-keyframes kenburns-pan-right {
  0%   { -webkit-transform: scale(1.08) translate(-2%, 0); transform: scale(1.08) translate(-2%, 0); }
  100% { -webkit-transform: scale(1.15) translate(2%, 0.5%); transform: scale(1.15) translate(2%, 0.5%); }
}
@keyframes kenburns-pan-right {
  0%   { -webkit-transform: scale(1.08) translate(-2%, 0); transform: scale(1.08) translate(-2%, 0); }
  100% { -webkit-transform: scale(1.15) translate(2%, 0.5%); transform: scale(1.15) translate(2%, 0.5%); }
}

.hero-slide.active[data-kenburns="zoom-in"] {
  -webkit-animation: kenburns-zoom-in 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
  animation: kenburns-zoom-in 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
}
.hero-slide.active[data-kenburns="zoom-out"] {
  -webkit-animation: kenburns-zoom-out 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
  animation: kenburns-zoom-out 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
}
.hero-slide.active[data-kenburns="pan-left"] {
  -webkit-animation: kenburns-pan-left 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
  animation: kenburns-pan-left 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
}
.hero-slide.active[data-kenburns="pan-right"] {
  -webkit-animation: kenburns-pan-right 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
  animation: kenburns-pan-right 8s cubic-bezier(0.2, 0, 0.4, 1) forwards;
}

/* ---------- Transition cloud/smoke overlays (TeraWulf signature) ---------- */
.hero-transition-cloud {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-transition-cloud.left {
  left: 0;
  background: linear-gradient(to right,
    rgba(17, 33, 53, 0.95) 0%,
    rgba(17, 33, 53, 0.6) 30%,
    transparent 100%
  );
}
.hero-transition-cloud.right {
  right: 0;
  background: linear-gradient(to left,
    rgba(17, 33, 53, 0.95) 0%,
    rgba(17, 33, 53, 0.6) 30%,
    transparent 100%
  );
}
.hero-transition-cloud.transitioning {
  opacity: 1;
}

/* ---------- Gradient overlays ---------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(17, 33, 53, 0.6) 0%,
      rgba(17, 33, 53, 0.3) 40%,
      rgba(17, 33, 53, 0.5) 70%,
      var(--navy) 100%
    );
  z-index: 2;
  pointer-events: none;
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--navy) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Bottom smoke/fog transition between hero and next section */
.hero-smoke-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 5;
  background: linear-gradient(to top,
    var(--white) 0%,
    rgba(255, 255, 255, 0.7) 25%,
    rgba(17, 33, 53, 0.3) 60%,
    transparent 100%
  );
  pointer-events: none;
}

/* ---------- Progress indicator ---------- */
.hero-progress {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-progress-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(56, 152, 236, 0.5));
  border-radius: 2px;
  transition: width 0.3s linear;
}

.hero-slide-dots {
  display: flex;
  gap: 8px;
}

.hero-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
}
.hero-slide-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(56, 152, 236, 0.5);
}

/* ---------- Hero content animated entrance ---------- */
.hero-content {
  position: relative;
  z-index: 6;
  max-width: 1000px;
  padding: 20px 12px;
}
.hero-content .pill-label { color: var(--off-white); justify-content: center; }
.hero-content .pill-label::before { color: var(--accent); }

.hero h1 {
  font-family: 'Borba Sans', var(--font-heading) !important;
  color: var(--white);
  margin-bottom: 36px;
}

.hero p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--off-white);
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero .btn-secondary { color: var(--off-white); }

/* Entrance animation for hero text elements */
.hero-animate {
  opacity: 0;
  -webkit-transform: translate3d(0, 40px, 0);
  transform: translate3d(0, 40px, 0);
  -webkit-transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                      -webkit-transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero-animate.revealed {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}


/* Subpage compact heroes keep dark text-on-navy styling via the same rules */

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */
.section {
  padding: clamp(80px, 11vw, 150px) 0;
  position: relative;
}
/* Inline `background-color: var(--bg-secondary)` gives the ice/fog band */

.section-header-left {
  max-width: 760px;
  margin-bottom: 64px;
}

/* -------------------------------------------------------------------------- */
/* Two-column split                                                           */
/* -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.col-content p { color: var(--text-dim); line-height: 1.6; }

.col-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 60px rgba(17, 33, 53, 0.16);
  filter: saturate(0.85);
}

/* Remove card container frame and shadow behind Pioneirismo.png */
#sobre .col-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

#sobre .col-image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: multiply !important;
  transform: scale(1.4);
  transform-origin: center center;
}

/* -------------------------------------------------------------------------- */
/* Card grid & Custom Cards                                                   */
/* -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: 0 16px 40px rgba(17, 33, 53, 0.08);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(17, 33, 53, 0.12);
}
.card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}

/* Stat card styling with image */
.stat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--border);
}
.stat-card-img {
  width: 100%;
  aspect-ratio: 3 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.stat-card-content {
  padding: 24px 20px;
  text-align: center;
}

/* Two column combined card */
.two-col-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  padding: clamp(30px, 4vw, 50px) !important;
}
.two-col-card .col-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 40px rgba(17, 33, 53, 0.14);
}

.capacity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 1.1em; /* 10% increase */
}

/* -------------------------------------------------------------------------- */
/* Scroll-Driven Animations (SDA) — Section Pinning & Card Sequence           */
/* -------------------------------------------------------------------------- */
.expertise-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background-color: var(--ice);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
}

.expertise-content {
  position: relative;
  z-index: 2;
  padding: 56px 24px 56px 56px;
  max-width: 440px;
}

.expertise-title {
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--navy);
  margin-bottom: 14px;
}

.expertise-tag {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--slate);
}

.expertise-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-visual img {
  width: 130%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translate(8%, 4%);
  filter: saturate(0.95);
}

@media (max-width: 900px) {
  .expertise-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .expertise-content {
    padding: 36px 28px 20px;
    max-width: none;
  }
  .expertise-visual {
    position: relative;
    width: 100%;
    height: 220px;
    inset: auto;
  }
  .expertise-visual img {
    width: 70%;
    transform: none;
  }
}
.expertise-stack {
  position: relative;
}

.expertise-card-wrap {
  position: sticky;
  top: 120px;              /* ~ header (96px) + respiro. Ajuste ao gosto */
  height: 80vh;           /* quanto maior, mais tempo o card fica "parado" antes do próximo cobrir */
  display: flex;
  align-items: center;
  pointer-events: none;
}
.ods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  align-items: center;
  justify-items: center;
}

.ods-icon {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .ods-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px;
  }
}
.expertise-card-wrap .expertise-card {
  pointer-events: auto;
}
#projetos-operacionais {
  padding-top: 24px;
  padding-bottom: 24px;
}
.expertise-card {
  width: 100%;
  transform-origin: center top;
  will-change: transform;
}

/* Fundo decorativo de rede de pontos */
.deco-rede {
  position: relative;
  overflow: hidden;
}
.deco-rede::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1040px;
  background: url('../assets/conexao2.png') no-repeat center bottom;
  background-size: contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* variante espelhada (fluxo pro outro lado) */
.deco-rede.flip::before {
  transform: scaleX(-1);
}
/* garante que o conteúdo fique acima do fundo */
.deco-rede > .container { position: relative; z-index: 1; }
/* Step Dots */
.sda-indicators,
.asg-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.ods-logo-single {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.ods-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.ods-row .ods-icon {
  width: 100%;
  max-width: 110px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .two-col {
    margin-bottom: 40px !important;
  }
}

@media (max-width: 768px) {
  .ods-row {
    gap: 20px;
  }
  .ods-row .ods-icon {
    max-width: 80px;
  }
}
.sda-dot,
.asg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sda-dot.active,
.asg-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* ASG Scroll-Driven Animations (3D Parallax Deck)                           */
/* -------------------------------------------------------------------------- */
.asg-section {
  scroll-snap-align: start;
}

.asg-card-deck {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  position: relative;
  -webkit-perspective: 1200px;
  perspective: 1200px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  min-height: 420px;
}

.asg-card {
  grid-area: 1 / 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 3.5vw, 50px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 44px) !important;
  background-color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 50px rgba(17, 33, 53, 0.12);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translate3d(0, 50px, -160px) rotateX(-8deg) scale(0.94);
  transform: translate3d(0, 50px, -160px) rotateX(-8deg) scale(0.94);
  transform-origin: center center;
  -webkit-transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                      visibility 0.85s,
                      -webkit-transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.85s,
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.asg-card.active {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  pointer-events: auto;
  z-index: 10;
}

.asg-card.active:hover {
  -webkit-transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.asg-card.exit-up {
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translate3d(0, -70px, -250px) rotateX(12deg) scale(0.88);
  transform: translate3d(0, -70px, -250px) rotateX(12deg) scale(0.88);
  z-index: 1;
}

.asg-card .col-content {
  text-align: left;
}

.asg-card .col-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asg-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 16px 36px rgba(17, 33, 53, 0.12);
  display: block;
}

@media (max-width: 768px) {
  .asg-card-deck {
    display: flex;
    flex-direction: column;
    gap: 24px;
    perspective: none;
  }

  .asg-card {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 24px 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: 0 10px 30px rgba(17, 33, 53, 0.08);
  }

  .asg-card .col-content {
    grid-column: span 1 !important;
  }

  .asg-indicators {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Stats                                                                      */
/* -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 14px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* -------------------------------------------------------------------------- */
/* Testimonial                                                                */
/* -------------------------------------------------------------------------- */
.testimonial-card {
  background-color: var(--ice);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--slate);
  padding: clamp(36px, 5vw, 60px);
  margin-top: 44px;
}
.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 26px;
}
.testimonial-author { font-weight: 700; font-size: 16px; color: var(--navy); }
.testimonial-community {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* -------------------------------------------------------------------------- */
/* Contact form                                                               */
/* -------------------------------------------------------------------------- */
.contact-form {
  background-color: var(--ice);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(30px, 4vw, 50px);
  width: 100%;
}
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--slate);
}
.form-input {
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--navy);
  padding: 15px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-input::placeholder { color: #9aa7b6; }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 152, 236, 0.12);
}
textarea.form-input { resize: vertical; min-height: 130px; }

/* -------------------------------------------------------------------------- */
/* Blog cards                                                                 */
/* -------------------------------------------------------------------------- */
.blog-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.blog-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(0.8);
}
.blog-card .blog-meta,
.blog-card .card-title,
.blog-card p { margin-left: 32px; margin-right: 32px; }
.blog-card .card-title { margin-top: 18px; }
.blog-card p { margin-bottom: 34px; }
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 22px;
  margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- */
/* Footer — slate blue                                                        */
/* -------------------------------------------------------------------------- */
footer {
  background-color: var(--slate);   /* antes */
  background-color: #003C78;         /* depois */
  color: var(--off-white);
  padding: clamp(60px, 8vw, 100px) 0 0px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 24px;
}
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(235, 240, 245, 0.75);
  max-width: 300px;
}
.footer-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  color: var(--white);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 14px;
  color: rgba(235, 240, 245, 0.78);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-grid .text-dim { color: rgba(235, 240, 245, 0.78) !important; }

.footer-bottom {
  position: relative;
  z-index: 3;
  padding-top: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy { font-size: 13px; color: rgba(235, 240, 245, 0.65); }
.footer-copy a { color: rgba(235, 240, 245, 0.9); }
.footer-socials { display: flex; gap: 16px; align-items: center; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(235, 240, 245, 0.7);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-socials a img {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-socials a:hover img { opacity: 1; transform: translateY(-2px); }

/* Footer flickering grid banner */
.footer-flicker {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 0px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .footer-flicker { height: 260px; }
}
.footer-flicker-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, transparent 0%, #003C78 100%);
}
.footer-flicker-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Flicker no hero — vindo de cima para baixo */
.hero-flicker {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-flicker-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, transparent 30%, var(--bg-primary) 75%);
}
.hero-flicker-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* -------------------------------------------------------------------------- */
/* Reveal-on-scroll — TeraWulf premium style                                 */
/* -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  -webkit-transform: translate3d(0, 44px, 0) scale(0.97);
  transform: translate3d(0, 44px, 0) scale(0.97);
  -webkit-transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                      -webkit-transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.fade-in.visible {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger delay for grid items & columns */
.two-col .col-content.fade-in { transition-delay: 0.05s; }
.two-col .col-image.fade-in { transition-delay: 0.15s; }
.card.fade-in:nth-child(1) { transition-delay: 0.05s; }
.card.fade-in:nth-child(2) { transition-delay: 0.2s; }
.card.fade-in:nth-child(3) { transition-delay: 0.35s; }
.stat-item.fade-in:nth-child(1) { transition-delay: 0.05s; }
.stat-item.fade-in:nth-child(2) { transition-delay: 0.2s; }
.stat-item.fade-in:nth-child(3) { transition-delay: 0.35s; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr !important; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --header-height: 80px; }
  .container { padding: 0 20px; }

  header { padding: 12px 0 !important; }

  .header-container, .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    position: relative !important;
  }

  .nav-pill {
    margin: 0 !important;
    gap: 0 !important;
    padding: 8px 16px !important;
    box-shadow: 0 8px 24px rgba(17, 33, 53, 0.1) !important;
  }

  .nav-actions {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 1002 !important;
  }


  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    z-index: 1002 !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 80px !important;
    left: 16px !important; right: 16px !important;
    background: var(--white) !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(17, 33, 53, 0.22) !important;
    z-index: 1001 !important;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav-menu.open { opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important; }

  .two-col { grid-template-columns: 1fr !important; gap: 36px; }
  .btn-reach { padding: 12px 20px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-item { text-align: center; }

  /* Hero slideshow mobile adjustments */
  .hero-progress { bottom: 24px; }
  .hero-progress-track { width: 140px; }
  .hero-smoke-bottom { height: 80px; }
  .hero-slide { inset: -10px; }
}

@media (max-width: 560px) {
  /* Avoid crowding the pill bar; Contact remains in the menu */
  .btn-reach { display: none; }
}

/* -------------------------------------------------------------------------- */
/* Accessibility — respect reduced motion                                     */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
  .hero-video { transform: translate(-50%, -50%); opacity: 0.55; }
  .hero-slide { animation: none !important; }
  .hero-animate { opacity: 1; transform: none; }
  .hero-transition-cloud { display: none; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* ===== Assistente Renova ===== */
#renova-assist { position: fixed; bottom: 24px; right: 24px; z-index: 2000; font-family: var(--font-body); }

#ra-toggle {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(17,33,53,0.25);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#ra-toggle:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(56,152,236,0.35); }
#renova-assist.open #ra-toggle { transform: scale(0.9); }

#ra-panel {
  position: absolute;
  bottom: 74px; right: 0;
  width: 380px; max-width: calc(100vw - 48px);
  height: 560px; max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(17,33,53,0.22);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
#renova-assist.open #ra-panel { opacity: 1; transform: translateY(0) scale(1); }

#ra-header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
  background: var(--white);
}


#ra-close {
  background: none; border: none;
  color: var(--text-dim); font-size: 24px;
  cursor: pointer; line-height: 1;
}
#ra-close:hover { color: var(--navy); }

#ra-messages { flex: 1; overflow-y: auto; padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 16px; }

.ra-msg { max-width: 78%; padding: 11px 15px; font-size: 14px; line-height: 1.5; }
.ra-msg.bot {
  background: var(--ice);
  color: var(--navy);
  border-radius: 4px 16px 16px 16px;
}
.ra-msg.user {
  background: var(--accent);
  color: var(--white);
  border-radius: 16px 16px 4px 16px;
}

.ra-row { display: flex; align-items: flex-start; gap: 10px; }
.ra-row.user { justify-content: flex-end; }
.ra-row-avatar { flex-shrink: 0; width: 34px; height: 34px; }
#ra-suggestions {
  padding: 0 18px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ra-chip {
  background: var(--white); border: 1px solid var(--border);
  color: var(--navy); font-size: 12px; font-family: var(--font-body);
  padding: 8px 10px; border-radius: 14px; cursor: pointer;
  text-align: left; line-height: 1.35;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ra-chip:hover { background: var(--ice); border-color: var(--accent); }

#ra-input-bar { display: flex; gap: 8px; padding: 12px 16px 16px; }
#ra-input {
  flex: 1; border: none; background: var(--ice);
  border-radius: 999px; padding: 12px 18px;
  font-size: 14px; font-family: var(--font-body); outline: none;
  color: var(--navy);
}
#ra-input::placeholder { color: var(--text-dim); }
#ra-send { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--accent); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#ra-send svg { width: 18px; height: 18px; }
#ra-send:hover { background: var(--navy); }
@keyframes ra-msg-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ra-msg {
  max-width: 78%;
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.5;
  animation: ra-msg-in 0.25s ease-out;
}
@media (max-width: 480px) {
  #renova-assist { bottom: 16px; right: 16px; }
  #ra-panel { width: calc(100vw - 32px); height: calc(100vh - 100px); }
}
/* ===== Siri Orb (ícone da IA) ===== */
@property --ra-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
#ra-send {
  transition: background var(--dur) var(--ease), transform 0.15s ease;
}
#ra-send:active {
  transform: scale(0.88);
}

.siri-orb {
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  --c1: oklch(72% 0.15 240);   /* azul da marca */
  --c2: oklch(80% 0.12 200);   /* ciano claro */
  --c3: oklch(65% 0.16 265);   /* azul-violeta */
  --blur: 6px;
}
.siri-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from calc(var(--ra-angle) * 1.2) at 30% 65%, var(--c3) 0deg, transparent 45deg 315deg, var(--c3) 360deg),
    conic-gradient(from calc(var(--ra-angle) * 0.8) at 70% 35%, var(--c2) 0deg, transparent 60deg 300deg, var(--c2) 360deg),
    conic-gradient(from calc(var(--ra-angle) * -1.5) at 65% 75%, var(--c1) 0deg, transparent 90deg 270deg, var(--c1) 360deg),
    conic-gradient(from calc(var(--ra-angle) * 2.1) at 25% 25%, var(--c2) 0deg, transparent 30deg 330deg, var(--c2) 360deg),
    radial-gradient(ellipse 120% 80% at 40% 60%, var(--c3) 0%, transparent 50%);
  filter: blur(var(--blur)) contrast(1.8) saturate(1.3);
  animation: ra-rotate 18s linear infinite;
  will-change: transform;
}
.siri-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 55%, rgba(255,255,255,0.18) 0%, transparent 60%);
  mix-blend-mode: overlay;
}
@keyframes ra-rotate {
  to { --ra-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .siri-orb::before { animation: none; }
}

/* tamanhos específicos */
#ra-orb-btn { width: 42px; height: 42px; --blur: 5px; }
#ra-orb-avatar { width: 38px; height: 38px; --blur: 4px; }

/* Indicador "digitando" */
.ra-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.ra-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.4;
  animation: ra-blink 1.4s infinite both;
}
.ra-typing span:nth-child(2) { animation-delay: 0.2s; }
.ra-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ra-blink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@media (max-width: 768px) {
  #sobre .two-col {
    gap: 32px !important;
  }
  #sobre .mapa-wrap {
    max-width: 380px;
    margin: 0 auto;   /* centraliza o mapa quando empilha */
  }
}
/* O mapa não é foto: sem recorte, proporção livre, sem sombra */
.mapa-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}
#stats { padding-bottom: 40px; }
#sobre { padding-top: 40px; }
#infra-digital { padding-bottom: 30px; }
#video { padding-top: 30px; }

/* Rastro de pixels do cursor */
#pixel-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;   /* deixa clicar através dele */
  z-index: 9999;
  overflow: hidden;
}
.pixel-dot {
  position: absolute;
  border-radius: 2px;
  pointer-events: none;
  will-change: opacity, width, height;
}
.blog-linkedin {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.blog-linkedin:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17,33,53,0.15);
}
.blog-meta { display: flex; align-items: center; gap: 8px; }
.blog-link-cta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: block;
}
/* -------------------------------------------------------------------------- */
/* Logo cloud — parceiros de benefícios (careers)                             */
/* -------------------------------------------------------------------------- */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-cloud-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}
.logo-cloud-item:last-child { border-right: none; }
.logo-cloud-item--accent { background-color: var(--ice); }

.logo-cloud-item img {
  max-height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.logo-cloud-item:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .logo-cloud {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-cloud-item:nth-child(2n) { border-right: none; }
  .logo-cloud-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .logo-cloud-item img { max-height: 24px; }
}

.ra-col {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}
.ra-col .ra-msg {
  max-width: 100%;
}

.ra-bot-name {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 4px 2px;
  background: linear-gradient(
    90deg,
    oklch(65% 0.16 265),
    oklch(72% 0.15 240),
    oklch(80% 0.12 200),
    oklch(72% 0.15 240),
    oklch(65% 0.16 265)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ra-name-shine 3s linear infinite;
}
@keyframes ra-name-shine {
  to { background-position: -200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .ra-bot-name { animation: none; }
}
html, body {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* Edge legado / IE */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}
#ra-messages {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#ra-messages::-webkit-scrollbar {
  display: none;
}
/* Logo única — remove o visual de "card/foto" herdado de .col-image img */
.col-image .ods-logo-single {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  background: transparent;
  width: 100%;
  max-width: 680px;
  height: auto;
}

/* Faixa de ícones ASG — carrossel infinito da esquerda para a direita */
.ods-marquee {
  overflow: hidden;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ods-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: ods-marquee-scroll 22s linear infinite;
}

.ods-marquee-track .ods-icon {
  width: 100px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes ods-marquee-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 768px) {
  .ods-marquee-track {
    gap: 40px;
    animation-duration: 16s;
  }
  .ods-marquee-track .ods-icon {
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ods-marquee-track {
    animation: none;
    transform: translateX(0);
  }
}