/* ============================================================
   LIBRA PRODUÇÕES — Design System
   Convertido do Design Composer → CSS externo organizado
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Cores primárias */
  --color-bg:        #0A0A0C;
  --color-bg-alt:    #101013;
  --color-bg-dark:   #060607;
  --color-surface:   #17171A;
  --color-surface-hover: #17171B;

  /* Cores de texto */
  --color-text:      #EDEBE6;
  --color-text-muted:#C9C6BE;
  --color-text-dim:  #B9B6AE;
  --color-text-faint:#8B887F;
  --color-text-ghost:#5A574F;

  /* Accent / Marca */
  --color-accent:    #E8A33D;
  --color-accent-hover: #F2B554;
  --color-accent-dark: #A67B2D;

  /* Seção clara */
  --color-light-bg:   #F6F4EF;
  --color-light-text: #17171A;
  --color-light-muted:#6B6860;
  --color-light-dim:  #5A574F;
  --color-light-border:#E7E3D8;

  /* WhatsApp */
  --color-whatsapp:    #25D366;
  --color-whatsapp-text:#07230F;

  /* Fontes */
  --font-heading: 'Archivo', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;

  /* Espaçamentos (base 8px) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 60px;

  /* Bordas e sombras */
  --border-subtle: 1px solid rgba(255,255,255,.07);
  --border-light:  1px solid rgba(255,255,255,.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-pill: 999px;
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ---------- Keyframes ---------- */
@keyframes kenburns {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1.18) translate(1.5%, -1.5%); }
}

@keyframes heroFade {
  0%   { opacity: 0; }
  9%   { opacity: 1; }
  38%  { opacity: 1; }
  47%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes wapulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%      { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50%      { transform: translateY(8px); opacity: .4; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal on scroll — starts hidden, JS sets .revealed */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1),
              transform .9s cubic-bezier(.2,.6,.2,1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }


/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-5);
  background: rgba(10, 10, 12, .6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-subtle);
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.nav__logo-img {
  height: 26px;
  width: auto;
  align-self: center;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--color-text);
}

.nav__logo-sub {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--color-accent);
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: var(--color-text-dim);
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 500;
  transition: color .3s;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  transition: transform .3s, background .3s;
}

.nav__cta:hover {
  transform: translateY(-2px);
  background: var(--color-accent-hover);
}

/* Hamburguer mobile */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  z-index: 70;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}

.hero__bg-img--2 {
  opacity: 0;
  animation: heroFade 27s linear infinite 9s, kenburns 22s ease-in-out infinite alternate;
}

.hero__bg-img--3 {
  opacity: 0;
  animation: heroFade 27s linear infinite 18s, kenburns 22s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,12,.96) 30%, rgba(10,10,12,.72) 58%, rgba(10,10,12,.45) 100%);
}

.hero__gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 2%, rgba(10,10,12,0) 40%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px var(--space-5) 120px;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm, 10px);
  border: 1px solid rgba(232, 163, 61, .4);
  border-radius: var(--radius-pill);
  padding: var(--space-1) 18px;
  margin-bottom: 30px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.hero__badge-text {
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--color-accent);
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: .94;
  letter-spacing: -.015em;
  margin: 0 0 28px;
  max-width: 12ch;
  text-transform: uppercase;
}

.hero__title em {
  color: var(--color-accent);
  font-style: italic;
}

.hero__description {
  font-size: 19px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 0 var(--space-5);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Botões genéricos */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  padding: 18px var(--space-4);
  border-radius: var(--radius-pill);
  transition: transform .3s, background .3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--color-accent-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  padding: 17px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.25);
  transition: border-color .3s, background .3s;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  background: rgba(232, 163, 61, .08);
}

/* Hero: vídeo flutuante */
.hero__video-card {
  position: absolute;
  right: 56px;
  bottom: 150px;
  z-index: 2;
  width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-light);
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  background: #000;
}

.hero__video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.hero__video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero__video-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 10px 14px;
  background: rgba(15, 15, 18, .9);
}

.hero__video-label .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF4B4B;
  display: inline-block;
}

.hero__video-label span:last-child {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--color-text);
  font-weight: 600;
}

/* Hero: foto flutuante */
.hero__float-img {
  position: absolute;
  right: 250px;
  bottom: 60px;
  z-index: 1;
  width: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
  animation: floaty 9s ease-in-out infinite 1.2s;
}

.hero__float-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Hero: scroll hint */
.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.hero__scroll-hint span {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--color-text-faint);
}

.hero__scroll-hint svg {
  animation: scrollhint 2s ease-in-out infinite;
}


/* ---------- Marquee ---------- */
.marquee {
  background: var(--color-accent);
  overflow: hidden;
  padding: var(--space-2) 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__items {
  display: flex;
  gap: 44px;
  padding-right: 44px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .12em;
  color: var(--color-bg);
  white-space: nowrap;
}


/* ---------- Serviços ---------- */
.servicos {
  background: var(--color-light-bg);
  color: var(--color-light-text);
  padding: 110px var(--space-5) 120px;
}

.servicos__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.section-label {
  font-size: 12px;
  letter-spacing: .3em;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-label--accent {
  color: var(--color-accent);
}

.section-label--gold {
  color: var(--color-accent-dark);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.7;
  max-width: 42ch;
  margin: 0;
  text-wrap: pretty;
}

.section-subtitle--light {
  color: var(--color-light-dim);
}

.section-subtitle--dark {
  color: var(--color-text-faint);
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* Card de serviço */
.service-card {
  display: block;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-light-border);
  transition: transform .4s, box-shadow .4s;
  box-shadow: 0 1px 2px rgba(23,23,26,.04);
  color: var(--color-light-text);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(23,23,26,.12);
}

.service-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.07);
}

.service-card__body {
  padding: 20px 22px 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 6px;
}

.service-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-light-muted);
}

.servicos__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-7);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-light-text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  padding: var(--space-2) 30px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-light-text);
  transition: background .3s, color .3s;
}

.btn-outline-dark:hover {
  background: var(--color-light-text);
  color: var(--color-light-bg);
}


/* ---------- Manifesto / Quote ---------- */
.manifesto {
  position: relative;
  overflow: hidden;
  padding: 170px var(--space-5);
  background: var(--color-bg);
}

.manifesto__bg {
  position: absolute;
  inset: -22% 0;
}

.manifesto__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(.7);
}

.manifesto__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,12,.25), var(--color-bg) 78%);
}

.manifesto__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.manifesto__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  margin: 0 0 26px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.manifesto__title em {
  color: var(--color-accent);
  font-style: normal;
}

.manifesto__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto;
  text-wrap: pretty;
}


/* ---------- Projetos ---------- */
.projetos {
  background: var(--color-bg-alt);
  padding: 110px 0 120px;
  border-top: var(--border-subtle);
}

.projetos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.project-card {
  display: block;
  background: var(--color-bg-alt);
  transition: background .4s;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  background: var(--color-surface-hover);
}

.project-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92);
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .4s;
}

.project-card:hover .project-card__media img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.project-card__body {
  padding: 34px var(--space-5) 44px;
}

.project-card__number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--color-text);
}

.project-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-faint);
}

.project-card__tag {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--color-text-ghost);
  font-weight: 600;
}

/* Clientes */
.clientes {
  width: 100%;
  background: #FFFFFF;
  margin: 120px 0 0;
  padding: 80px 0;
}

.clientes__label {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--color-bg);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.clientes__logos {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clientes__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 150px;
  width: max-content;
  will-change: transform;
  animation: clientScroll 80s linear infinite;
}

.clientes:hover .clientes__track {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

@keyframes clientScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clientes__logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Largura e altura automáticas baseadas no conteúdo */
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  transition: transform .3s;
}

.clientes__logo-item:hover {
  transform: translateY(-4px);
}

.clientes__logo-item img {
  /* Força a altura para exatamente 150px */
  height: 150px;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition: transform .3s;
}

.clientes__logo-item:hover img {
  transform: scale(1.05);
}

/* ---------- LibraTalks ---------- */
.libratalks {
  background: var(--color-bg);
  padding: 120px var(--space-5);
  border-top: var(--border-subtle);
}

.libratalks__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
  align-items: center;
}

.libratalks__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.libratalks__title em {
  color: var(--color-accent);
  font-style: normal;
}

.libratalks__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 34px;
  max-width: 46ch;
  text-wrap: pretty;
}

.libratalks__buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  transition: transform .3s;
}

.btn-youtube:hover {
  transform: translateY(-3px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.25);
  transition: border-color .3s;
}

.btn-outline-light:hover {
  border-color: var(--color-accent);
}

/* Player thumbnail */
.libratalks__player {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--border-light);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.libratalks__player-btn {
  all: unset;
  cursor: pointer;
  display: block;
  position: relative;
  width: 100%;
}

.libratalks__player-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .8s;
}

.libratalks__player-btn:hover .libratalks__player-thumb {
  transform: scale(1.04);
}

.libratalks__player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,.75), rgba(10,10,12,.05) 55%);
}

.libratalks__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wapulse 2.4s ease-out infinite;
}

.libratalks__play-icon svg {
  margin-left: 4px;
}

.libratalks__player-info {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.libratalks__player-info .tag {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--color-accent);
  font-weight: 700;
}

.libratalks__player-info .title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text);
}

/* iframe embed */
.libratalks__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--border-light);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.libratalks__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ---------- Instagram ---------- */







.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-light-text);
  color: var(--color-light-bg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  transition: transform .3s, background .3s;
}

.btn-instagram:hover {
  transform: translateY(-3px);
  background: var(--color-accent);
}







/* ---------- Contato ---------- */
.contato {
  background: var(--color-bg);
  padding: 120px var(--space-5) 100px;
  border-top: var(--border-subtle);
}

.contato__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
  align-items: center;
}

.contato__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 66px);
  line-height: .98;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.contato__title em {
  color: var(--color-accent);
  font-style: normal;
}

.contato__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 36px;
  max-width: 46ch;
  text-wrap: pretty;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-whatsapp);
  color: var(--color-whatsapp-text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  padding: 19px 34px;
  border-radius: var(--radius-pill);
  animation: wapulse 2.6s ease-out infinite;
  transition: transform .3s;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
}

.contato__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
}

.contato__info-item {
  color: var(--color-text-muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color .3s;
}

a.contato__info-item:hover {
  color: var(--color-accent);
}

.contato__info-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contato__map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
}

.contato__map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(.85) contrast(1.05);
}


/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-dark);
  padding: 36px var(--space-5);
  border-top: var(--border-subtle);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--color-text);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-gray);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color .3s;
}

.footer__contact-link:hover {
  color: var(--color-accent);
}
.footer__brand-sub {
  font-size: 9px;
  letter-spacing: .34em;
  color: var(--color-accent);
  font-weight: 600;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-ghost);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-2);
}

.footer__legal-links a {
  font-size: 12px;
  color: var(--color-text-ghost);
  transition: color .3s;
}

.footer__legal-links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 18px;
}

.footer__social a {
  color: var(--color-text-faint);
  transition: color .3s;
}

.footer__social a:hover {
  color: var(--color-accent);
}


/* ---------- WhatsApp Flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  animation: wapulse 2.6s ease-out infinite;
  transition: transform .3s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}


/* ---------- Cookie Consent ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(10, 10, 12, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: var(--border-subtle);
  padding: var(--space-2) var(--space-5);
  display: none; /* Exibido via JS */
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner__text {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 600px;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__accept {
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: background .3s;
}

.cookie-banner__accept:hover {
  background: var(--color-accent-hover);
}

.cookie-banner__reject {
  color: var(--color-text-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  transition: color .3s;
}

.cookie-banner__reject:hover {
  color: var(--color-text);
}


/* ============================================================
   RESPONSIVO — Mobile First Breakpoints
   ============================================================ */

/* ---- Até 1024px (Tablet) ---- */
@media (max-width: 1024px) {
  .hero__video-card {
    display: none;
  }

  .hero__float-img {
    display: none;
  }

  .libratalks__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .contato__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ---- Até 768px (Mobile) ---- */
@media (max-width: 768px) {
  :root {
    --space-5: 24px;
  }

  /* Nav mobile */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 12, .97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-5);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.2,.6,.2,1);
    z-index: 65;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 18px;
  }

  /* Hero */
  .hero__content {
    padding: 120px var(--space-5) 80px;
  }

  .hero__title {
    font-size: clamp(36px, 10vw, 52px);
    max-width: 100%;
  }

  .hero__description {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  /* Serviços */
  .servicos {
    padding: 80px var(--space-5);
  }

  .servicos__grid {
    grid-template-columns: 1fr;
  }

  /* Projetos */
  .projetos__grid {
    grid-template-columns: 1fr;
  }

  .clientes__logos {
    gap: var(--space-4);
  }

  .clientes__logos span {
    font-size: 16px;
  }

  /* LibraTalks */
  .libratalks {
    padding: 80px var(--space-5);
  }

  .libratalks__grid {
    grid-template-columns: 1fr;
  }

  /* Instagram */


  /* Contato */
  .contato {
    padding: 80px var(--space-5);
  }

  .contato__grid {
    grid-template-columns: 1fr;
  }

  .contato__map iframe {
    height: 300px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
}

/* ---- Até 480px (Small mobile) ---- */
@media (max-width: 480px) {
  .servicos__header {
    flex-direction: column;
    align-items: flex-start;
  }



  .marquee__items {
    font-size: 14px;
    gap: 30px;
    padding-right: 30px;
  }
}


/* ============================================================
   ACESSIBILIDADE
   ============================================================ */

/* Focus visible para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Reduzir movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ===================== GALERIA (Supabase Storage) ===================== */
.galeria {
  background: var(--color-light-bg);
  color: var(--color-light-text);
  padding: 110px var(--space-5);
}

.galeria__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.galeria__profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.galeria__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, #E8A33D, #D6249F, #E8A33D);
  flex-shrink: 0;
}

.galeria__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-light-bg);
}

.galeria__handle {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}

.galeria__bio {
  opacity: 0.7;
  font-size: 0.9rem;
}

.galeria__item-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s, background 0.25s;
}

.galeria__item:hover .galeria__item-icon {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}







.galeria__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.galeria__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.galeria__item:hover img {
  transform: scale(1.05);
}

.galeria__item-cat {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.galeria__fallback {
  text-align: center;
  opacity: 0.8;
  padding: 40px 0;
}

@media (max-width: 900px) {
  .galeria {
    padding: 80px var(--space-5);
  }
  .galeria__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .galeria__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================== LIGHTBOX (foto ampliada + legenda) ===================== */
.lightbox[hidden],
.galeria__grid[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  animation: lightboxFade 0.2s ease;
}

@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0f0f12;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #000;
  display: block;
}

.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox__text {
  min-width: 0;
}

.lightbox__caption {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.lightbox__desc {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.4;
}

.lightbox__desc:empty {
  display: none;
}

.lightbox__ig {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  transition: transform 0.2s;
}

.lightbox__ig:hover {
  transform: scale(1.08);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
  .lightbox {
    padding: 12px;
  }
  .lightbox__caption {
    font-size: 0.9rem;
  }
}

/* ---------- Páginas de Projeto / Artigo (renderizadas em /api) ---------- */

.post-page {
  background: var(--color-bg);
}

.post-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(10,10,12,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.post-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 17px;
}

.post-nav__brand em {
  font-style: normal;
  color: var(--color-accent);
  font-size: 10px;
  letter-spacing: .3em;
  font-weight: 600;
}

.post-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}

.post-nav__links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 600;
  transition: color .3s;
}

.post-nav__links a:hover { color: var(--color-text); }

.post-nav__cta {
  color: #0A0A0C !important;
  background: var(--color-accent);
  padding: 10px 18px;
  border-radius: 999px;
}

.post-nav__cta:hover { background: var(--color-accent-hover); }

.post__hero {
  position: relative;
  max-height: 52vh;
  overflow: hidden;
}

.post__hero img {
  width: 100%;
  max-height: 52vh;
  object-fit: cover;
  display: block;
}

.post__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.25) 0%, rgba(10,10,12,.05) 45%, var(--color-bg) 100%);
}

.post__container {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 40px) 90px;
}

.post__hero + .post__container {
  margin-top: -70px;
  position: relative;
}

.post__breadcrumb {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--color-text-ghost);
  margin-bottom: 28px;
}

.post__breadcrumb a {
  color: var(--color-text-faint);
  text-decoration: none;
}

.post__breadcrumb a:hover { color: var(--color-accent); }

.post__kicker {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--color-accent);
  margin: 0 0 14px;
}

.post__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.04;
  color: var(--color-text);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.post__chip {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 600;
  color: #0A0A0C;
  background: var(--color-accent);
  border-radius: 999px;
  padding: 7px 14px;
}

.post__chip--ghost {
  color: var(--color-text-dim);
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
}

.post__excerpt {
  font-size: 19px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 34px;
}

.post__body {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--color-text-dim);
}

.post__body p { margin: 0 0 1.2em; }

.post__body h2, .post__body h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  margin: 1.8em 0 .6em;
}

.post__body h2 { font-size: 28px; font-weight: 800; }
.post__body h3 { font-size: 21px; font-weight: 700; }

.post__body a { color: var(--color-accent); }

.post__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.4em 0;
}

.post__body ul, .post__body ol { padding-left: 1.3em; margin: 0 0 1.2em; }

.post__body blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 1.6em 0;
  padding: .2em 0 .2em 1.2em;
  color: var(--color-text-muted);
  font-style: italic;
}

.post__videos {
  display: grid;
  gap: 22px;
  margin: 40px 0 8px;
}

.post__video {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-dark);
  border-radius: 8px;
  overflow: hidden;
}

.post__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.post__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 40px 0 8px;
}

.post__gallery-item {
  margin: 0;
}

.post__gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.post__gallery-item figcaption {
  font-size: 12.5px;
  color: var(--color-text-faint);
  margin-top: 7px;
}

.post__cta {
  margin-top: 64px;
  padding: 36px clamp(22px, 4vw, 40px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: var(--color-bg-alt);
  text-align: center;
}

.post__cta p {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-text);
  margin: 0 0 20px;
}

@media (max-width: 640px) {
  .post-nav__links a:not(.post-nav__cta) { display: none; }
  .post__hero + .post__container { margin-top: -40px; }
}

.post-backbar {
  padding: 16px clamp(20px, 4vw, 48px) 0;
}

.post-backbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-faint);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
  font-weight: 600;
  transition: color .3s, transform .3s;
}

.post-backbar__link:hover {
  color: var(--color-accent);
  transform: translateX(-2px);
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 8px;
}

.post__tag {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--color-text-faint);
  background: var(--color-bg-alt);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 6px 13px;
}

.post__back-footer {
  margin-top: 28px;
  text-align: center;
}

.post__back-footer a {
  color: var(--color-text-faint);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .3s;
}

.post__back-footer a:hover {
  color: var(--color-accent);
}
