/* ===== G2B v2 — sections: hero, showcase, soluções, marquee, tabs, processo, cta, footer ===== */

/* reveal primitives */
[data-reveal] {
  opacity: 0; transform: translateY(46px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ===== hero ===== */
.hero {
  position: relative; padding: 170px 5vw 120px; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.38;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  /* faixa central mais fechada: o título usa as 3 cores da marca e o roxo
     perde legibilidade sobre os quadros claros do vídeo */
  background: linear-gradient(180deg, rgba(21,23,23,0.62) 0%, rgba(21,23,23,0.52) 45%, rgba(21,23,23,0.94) 100%);
}
.hero .scroll-down {
  position: absolute; bottom: 36px; right: 5vw;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.hero .scroll-down i {
  display: block; width: 1px; height: 36px; background: var(--acc);
  animation: drop 1.6s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(36px, 10vw, 150px); font-weight: 800;
  line-height: 0.94; letter-spacing: -0.04em; text-transform: uppercase;
  max-width: 100%;
  /* descola o texto do vídeo sem alterar as cores da marca */
  text-shadow: 0 2px 42px rgba(10, 11, 11, 0.6), 0 1px 4px rgba(10, 11, 11, 0.35);
}
.hero h1 .row {
  display: block; overflow: hidden;
  padding: 0.14em 0.1em 0.08em; margin: -0.14em -0.1em -0.08em;
}
.hero h1 .row > span {
  display: inline-block; transform: translateY(140%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0s);
}
.hero.loaded h1 .row > span { transform: none; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero h1 .pink { color: var(--acc); }
.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  margin-top: 48px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s ease 0.6s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}
.hero.loaded .hero-row { opacity: 1; transform: none; }
.hero-row p { max-width: 480px; color: var(--muted); font-size: 18px; }
.hero-row p strong { color: var(--ink); font-weight: 600; }
.hero-links { display: flex; align-items: center; gap: 28px; flex: none; }
.link-circle { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.link-circle .circ {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(244,244,242,0.3);
  display: grid; place-items: center; font-size: 20px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.link-circle:hover .circ { background: var(--acc); border-color: var(--acc); transform: rotate(45deg); }

/* (faixa de mídia inferior removida — vídeo agora é o fundo do hero) */
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== intro (quem somos) ===== */
.intro { padding: 160px 0 140px; }
.intro h2 {
  font-size: clamp(48px, 7vw, 110px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  margin-bottom: 48px;
}
.intro h2 em { font-style: normal; color: var(--acc); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro-cols p { color: var(--muted); margin-bottom: 20px; font-size: 18px; }
.intro-cols p strong { color: var(--ink); font-weight: 600; }
.intro-cols .lead { font-size: 24px; line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }

/* ===== showcase (ambientes) — 2col cards ===== */
.showcase { padding: 40px 0 140px; }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.showcase-head h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; max-width: 14ch; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.case-card { text-decoration: none; color: var(--ink); display: block; min-width: 0; }
.case-card:nth-child(even) { margin-top: 80px; }
.case-card .ph { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; }
.case-card .ph img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover .ph img { transform: scale(1.07); }
.case-card .ph::after {
  content: "Ver mais →"; position: absolute; right: 20px; bottom: 20px;
  background: var(--ink); color: #151717; font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover .ph::after { opacity: 1; transform: none; }
.case-card .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 4px 0; min-height: 0; }
.case-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.case-card .cat { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ===== soluções — accordion ===== */
.sols { padding: 140px 0; background: var(--bg2); }
.sols h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 72px; max-width: 16ch; }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; background: none; border: none; cursor: pointer; color: var(--ink);
  display: grid; grid-template-columns: 70px 1fr 48px; gap: 24px; align-items: center;
  padding: 34px 4px; text-align: left; font-family: var(--font);
}
.acc-btn .n { font-size: 14px; font-weight: 700; color: var(--acc); letter-spacing: 0.1em; }
.acc-btn h3 { font-size: clamp(24px, 3vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; transition: color 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.acc-btn .pm {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; position: relative;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.acc-btn .pm::before, .acc-btn .pm::after {
  content: ""; position: absolute; background: var(--ink); transition: transform 0.4s ease, background 0.3s ease;
}
.acc-btn .pm::before { width: 16px; height: 2px; }
.acc-btn .pm::after { width: 2px; height: 16px; }
.acc-item:hover h3 { color: var(--acc); transform: translateX(10px); }
.acc-item.open .pm { background: var(--acc); border-color: var(--acc); }
.acc-item.open .pm::before, .acc-item.open .pm::after { background: #fff; }
.acc-item.open .pm::after { transform: rotate(90deg) scaleY(0); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.acc-body p { color: var(--muted); font-size: 18px; max-width: 64ch; padding: 0 4px 38px 94px; }
@media (max-width: 720px) { .acc-body p { padding-left: 4px; } .acc-btn { grid-template-columns: 44px 1fr 40px; } }

/* ===== double photo marquee ===== */
.pmarquee { padding: 120px 0; overflow: hidden; display: grid; gap: 22px; }
.pm-row { display: flex; gap: 22px; width: max-content; will-change: transform; }
.pm-row .cell { flex: none; width: clamp(280px, 30vw, 480px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.pm-row .cell img { width: 100%; height: 100%; object-fit: cover; }

/* ===== diferenciais — tabs ===== */
.tabs-sec { padding: 140px 0; }
.tabs-sec h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 64px; }
.tabs-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.tab-list { list-style: none; display: grid; }
.tab-list button {
  background: none; border: none; border-top: 1px solid var(--line); cursor: pointer;
  font-family: var(--font); text-align: left; color: var(--muted);
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em;
  padding: 24px 4px; display: flex; align-items: center; gap: 18px; width: 100%;
  transition: color 0.3s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tab-list li:last-child button { border-bottom: 1px solid var(--line); }
.tab-list button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
.tab-list button.active { color: var(--ink); padding-left: 18px; }
.tab-list button.active::before { background: var(--acc); transform: scale(1.3); }
.tab-panel { position: relative; min-height: 320px; }
.tab-pane {
  position: absolute; inset: 0; opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.tab-pane.active { opacity: 1; transform: none; pointer-events: auto; }
.tab-pane .badge {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--acc); border: 1px solid rgba(240, 20, 140, 0.4); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 28px;
}
.tab-pane p { font-size: 22px; line-height: 1.55; color: var(--ink); max-width: 50ch; font-weight: 500; }

/* ===== processo — sticky stacked phases ===== */
.proc { padding: 140px 0 80px; background: var(--bg2); }
.proc > .wrap > h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 80px; }
.phase {
  position: sticky; top: 90px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  padding: 56px; margin-bottom: 32px; min-height: 380px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center;
}
.phase .ph-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin-bottom: 18px; display: block; }
.phase h3 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 22px; }
.phase p { color: var(--muted); font-size: 18px; max-width: 50ch; }
.phase .ph-num {
  font-size: clamp(120px, 16vw, 240px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 2px rgba(244,244,242,0.18); text-align: right;
}
.phase:nth-child(odd of .phase) .ph-num { -webkit-text-stroke-color: rgba(240,20,140,0.35); }

/* ===== sustentabilidade strip ===== */
.sust2 { padding: 140px 0; }
.sust2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.sust2 .ph { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.sust2 .ph img { width: 100%; height: 110%; object-fit: cover; will-change: transform; }
.sust2 h2 { font-size: clamp(32px, 4vw, 58px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 28px; }
.sust2 h2 em { font-style: normal; color: var(--lime); }
.sust2 p { color: var(--muted); margin-bottom: 18px; font-size: 18px; }

/* ===== big CTA footer ===== */
.cta2 { padding: 180px 0 120px; text-align: center; position: relative; overflow: hidden; }
.cta2 h2 {
  font-size: clamp(48px, 9vw, 140px); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.04em; line-height: 0.94; margin-bottom: 40px;
}
.cta2 h2 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.cta2 h2 .pink { color: var(--acc); }
.cta2 p { color: var(--muted); max-width: 56ch; margin: 0 auto 56px; font-size: 19px; }
.cta2 .big-btn {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 20px; font-weight: 800; color: #151717; background: var(--ink);
  text-decoration: none; border-radius: 999px; padding: 26px 52px;
  position: relative; overflow: hidden; transition: color 0.4s ease;
}
.cta2 .big-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--acc); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta2 .big-btn span { position: relative; z-index: 1; }
.cta2 .big-btn:hover { color: #fff; }
.cta2 .big-btn:hover::before { transform: none; }

.ftr { border-top: 1px solid var(--line); padding: 72px 0 40px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.ftr-grid img { height: 48px; margin-bottom: 20px; }
.ftr-grid .tag2 { color: var(--muted); font-size: 15px; max-width: 30ch; }
.ftr-grid h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.ftr-grid ul { list-style: none; display: grid; gap: 10px; }
.ftr-grid a { color: var(--ink); text-decoration: none; font-size: 15.5px; transition: color 0.3s ease; display: inline-block; padding: 4px 0; }
.ftr-grid a:hover { color: var(--acc); }
.ftr-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .intro-cols, .tabs-grid, .sust2-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card:nth-child(even) { margin-top: 0; }
  .phase { grid-template-columns: 1fr; padding: 36px; gap: 24px; min-height: 0; }
  .phase .ph-num { text-align: left; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .tab-panel { min-height: 380px; }
}

/* ===== mobile refinements ===== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 120px 5vw 96px; }
  .hero-row { margin-top: 36px; }
  .hero-row p { font-size: 16px; }
  .hero .scroll-down { bottom: 28px; }
  .intro { padding: 100px 0 90px; }
  .intro h2 { font-size: clamp(40px, 12vw, 64px); margin-bottom: 36px; }
  .intro-cols .lead { font-size: 20px; }
  .showcase { padding: 10px 0 90px; }
  .showcase-head { flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 44px; }
  .case-grid { gap: 40px; }
  .case-card .meta { flex-wrap: wrap; gap: 4px 16px; }
  .case-card .cat { white-space: normal; }
  .case-card h3 { font-size: 21px; }
  .case-card .cat { font-size: 11.5px; }
  .sols { padding: 90px 0; }
  .sols h2 { margin-bottom: 48px; }
  .acc-btn { padding: 26px 2px; gap: 14px; }
  .acc-body p { font-size: 16px; padding-bottom: 30px; }
  .pmarquee { padding: 70px 0; gap: 14px; }
  .pm-row { gap: 14px; }
  .pm-row .cell { width: 70vw; }
  .tabs-sec { padding: 90px 0; }
  .tabs-sec h2 { margin-bottom: 40px; }
  .tabs-grid { gap: 36px; }
  .tab-list button { font-size: 19px; padding: 18px 2px; }
  .tab-panel { min-height: 300px; }
  .tab-pane p { font-size: 18px; }
  .tab-pane .badge { margin-bottom: 18px; }
  .proc { padding: 90px 0 60px; }
  .proc > .wrap > h2 { margin-bottom: 48px; }
  .phase { top: 80px; padding: 28px 24px; margin-bottom: 20px; border-radius: 16px; }
  .phase h3 { font-size: 26px; }
  .phase p { font-size: 16px; }
  .phase .ph-num { font-size: 88px; -webkit-text-stroke-width: 1.5px; }
  .sust2 { padding: 90px 0; }
  .sust2 p { font-size: 16px; }
  .cta2 { padding: 110px 0 80px; }
  .cta2 h2 { font-size: clamp(34px, 11vw, 64px); }
  .cta2 p { font-size: 16px; margin-bottom: 40px; }
  .cta2 .big-btn { font-size: 17px; padding: 20px 38px; }
  .ftr { padding: 56px 0 32px; }
  .ftr-grid { gap: 36px; margin-bottom: 44px; }
  .ftr-base { flex-direction: column; gap: 8px; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero h1 .row > span, .hero-row { opacity: 1 !important; transform: none !important; transition: none !important; }
  .preloader { display: none; }
  .pm-row { transform: none !important; }
  .hero .scroll-down i { animation: none; }
}
