/* ============================================================
   AUGUSTO VASQUES — LANDING PAGE
   1) Tokens  2) Base  3) Componentes  4) Seções  5) Responsivo
   ============================================================ */

/* ===== 1. TOKENS ============================================ */
:root {
  --black:    #111111;   /* fundo principal */
  --soft:     #1C1C1C;   /* preto um tom mais claro (caixas) */
  --gray-90:  #1A1A1A;   /* superfícies */
  --gray-60:  #8C8C8C;   /* texto secundário */
  --gray-30:  #2A2A2A;   /* bordas/divisores (só no acordeão) */
  --white:    #FFFFFF;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.5rem, 6vw, 4rem);    /* 64px topo */
  --fs-h2:    clamp(2rem, 4.5vw, 3rem);    /* 48px seções */
  --fs-acc:   clamp(1.5rem, 3vw, 2rem);    /* acordeão */
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body:  clamp(1rem, 1.2vw, 1.125rem);
  --fs-small: 0.85rem;

  --s-1: 8px;   --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
  --s-6: 48px;  --s-8: 64px;  --s-10: 80px; --s-12: 96px; --s-16: 128px;

  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 2. BASE ============================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--black); color: var(--white);
  font-family: var(--font); font-size: var(--fs-body);
  line-height: 1.6; font-weight: 400; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* padding de seção reduzido (seções mais próximas) — SEM borda divisória */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: var(--s-12) var(--s-6);
}

/* ===== 3. COMPONENTES ======================================= */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-2) var(--s-4); font-size: var(--fs-body); font-weight: 500;
  border: 1px solid var(--white); border-radius: 100px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn span { transition: transform 0.4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

/* Cabeçalho de seção */
.section__head { max-width: 720px; margin-bottom: var(--s-8); }
.section__head--row {
  max-width: none; display: flex; align-items: baseline;
  justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
}
.section__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.section__aside { font-size: var(--fs-small); color: var(--gray-60); letter-spacing: 0.05em; white-space: nowrap; }
.section__lead { margin-top: var(--s-3); font-size: var(--fs-lead); color: var(--gray-60); max-width: 560px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== NAVEGAÇÃO =========================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,17,17,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--gray-30); background: rgba(17,17,17,0.9); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: var(--s-3) var(--s-6);
  display: flex; align-items: center; justify-content: space-between; }
.nav__logo-img { height: 30px; width: auto; filter: invert(1); }
.nav__links { display: flex; align-items: center; gap: var(--s-4); }
.nav__links a { font-size: var(--fs-small); color: var(--gray-60); transition: color 0.3s; }
.nav__links a:hover { color: var(--white); }
.nav__links .nav__cta { color: var(--white); border: 1px solid var(--gray-30);
  padding: 10px 20px; border-radius: 100px; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.nav__links .nav__cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; padding: var(--s-2) var(--s-6) var(--s-4); border-top: 1px solid var(--gray-30); }
.nav__mobile a { padding: var(--s-2) 0; color: var(--gray-60); font-size: 1.1rem; }
.nav__mobile a:hover { color: var(--white); }
.nav__mobile.is-open { display: flex; }

/* ===== HERO (centralizado) ================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  max-width: var(--max); margin: 0 auto; padding: var(--s-16) var(--s-6) var(--s-8); overflow: hidden;
}
/* Fundo sutil: brilho radial discreto + grão. Não compete com o texto. */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { font-size: var(--fs-small); letter-spacing: 0.3em; color: var(--gray-60); margin-bottom: var(--s-4); }
.hero__title { font-size: var(--fs-hero); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.hero__sub { margin-top: var(--s-4); max-width: 540px; font-size: var(--fs-lead); color: var(--gray-60); }
.hero .btn { margin-top: var(--s-8); }
.hero__scroll { position: absolute; z-index: 1; bottom: var(--s-4); right: var(--s-6);
  display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); color: var(--gray-60); letter-spacing: 0.2em; }
.hero__scroll-line { width: 48px; height: 1px; background: var(--gray-60); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--white);
  animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }
@media (max-height: 760px) { .hero__scroll { display: none; } }

/* ===== PORTFÓLIO (3:4, legenda dentro no hover) ============= */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.card {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4;            /* retrato */
  background: var(--gray-90);
  border-radius: 12px;
}
.card img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease); filter: brightness(0.85); }
.card:hover img { transform: scale(1.05); filter: brightness(0.4); }

/* legenda DENTRO da imagem, surge no hover */
.card__caption {
  position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.card:hover .card__caption { opacity: 1; transform: translateY(0); }
.card__name { display: block; font-weight: 600; font-size: 1.1rem; }
.card__cat  { display: block; font-size: var(--fs-small); color: var(--white); opacity: 0.7; margin-top: 2px; }
/* no mobile não há hover: legenda sempre visível */
@media (hover: none) {
  .card img { filter: brightness(0.85); }
  .card__caption { opacity: 0; transform: translateY(10px); }

  .card:active img { transform: scale(1.05); filter: brightness(0.4); }
  .card:active .card__caption { opacity: 1; transform: translateY(0); }
}

.portfolio__cta { margin-top: var(--s-8); display: flex; justify-content: center; }

/* ===== ACORDEÃO (Metodologia) ============================== */
.accordion { border-top: 1px solid var(--gray-30); }
.accordion__item { border-bottom: 1px solid var(--gray-30); }
.accordion__head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-6) 0; text-align: left; color: var(--white); font-family: var(--font);
}
.accordion__num { font-size: var(--fs-small); color: var(--gray-60); letter-spacing: 0.2em; min-width: 32px; }
.accordion__title { flex: 1; font-size: var(--fs-acc); font-weight: 700; letter-spacing: -0.02em; transition: opacity 0.3s; }
.accordion__head:hover .accordion__title { opacity: 0.6; }
.accordion__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--white); transition: transform 0.4s var(--ease); }
.accordion__icon::before { width: 20px; height: 2px; transform: translate(-50%,-50%); }
.accordion__icon::after  { width: 2px; height: 20px; transform: translate(-50%,-50%); }
.accordion__head[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.accordion__panel { max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), padding 0.4s var(--ease); }
/* texto com mais largura, mas limitado antes do "+" (à direita) */
.accordion__panel p { color: var(--gray-60); max-width: 88%; padding-right: var(--s-8); padding-bottom: var(--s-6); }
.accordion__item.is-open .accordion__panel { opacity: 1; }

/* ===== SOBRE (foto mais próxima) =========================== */
.sobre__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-10); align-items: center; }
.sobre__text .section__title { margin-bottom: var(--s-4); }
.sobre__text p { margin-bottom: var(--s-3); color: var(--gray-60); }
.sobre__text p strong { color: var(--white); }
.sobre__photo { aspect-ratio: 3 / 4; max-width: 360px; background: var(--gray-90); overflow: hidden; border-radius: 12px; }
.sobre__photo img { width: 100%; height: 100%; object-fit: cover; }
.bignumbers { display: flex; gap: var(--s-12); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--gray-30); }
.bignumber__value { display: block; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.bignumber__label { display: block; margin-top: var(--s-1); font-size: var(--fs-small); color: var(--gray-60); }

/* ===== ESPECIALIDADES (caixas em tom mais claro) =========== */
.cards-soft { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.soft {
  background: var(--soft); border-radius: 12px;
  padding: var(--s-6); min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.soft:hover { background: #242424; transform: translateY(-4px); }
.soft__title { font-size: var(--fs-acc); font-weight: 700; letter-spacing: -0.02em; }
.soft__desc { color: var(--gray-60); margin-top: var(--s-4); }

/* ===== CLIENTES (cards baixos, logos brancos transparentes) = */
.clientes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.clientes__slot {
  aspect-ratio: 2 / 1;            /* mais baixo */
  display: flex; align-items: center; justify-content: center;
  background: transparent; transition: background 0.3s;
  border-radius: 12px;
}
.clientes__slot:hover { background: transparent; }
.clientes__slot span { color: var(--gray-60); font-size: var(--fs-small); letter-spacing: 0.1em; }
/* logos: fundo transparente, brancos */
.clientes__slot img { max-width: 80%; max-height: 70%; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.8; }

#clientes { display: none; }

/* ===== CONTATO ============================================= */
.contato { text-align: center; }
.contato__inner { max-width: 760px; margin: 0 auto; }
.contato__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.contato__lead { margin-top: var(--s-3); font-size: var(--fs-lead); color: var(--gray-60); }
.contato__actions { margin-top: var(--s-8); display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }
.contato__social { margin-top: var(--s-6); display: flex; gap: var(--s-4); justify-content: center; }
.contato__social a { font-size: var(--fs-small); color: var(--gray-60); letter-spacing: 0.1em; transition: color 0.3s; }
.contato__social a:hover { color: var(--white); }

/* ===== PROJETOS EM QUE PARTICIPO (logos 3×2) =============== */
.participo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.participo__slot {
  aspect-ratio: 5 / 2;            /* retangular, para logos horizontais */
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); border-radius: 12px;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.participo__slot:hover { background: #242424; transform: translateY(-4px); }
.participo__slot span { color: var(--gray-60); font-size: var(--fs-small); letter-spacing: 0.08em; }
.participo__slot img { max-width: 80%; max-height: 75%; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }

/* ===== FOOTER (logo à esquerda na mesma linha) ============= */
.footer { border-top: 1px solid var(--gray-30); }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: var(--s-8) var(--s-6);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-6); align-items: center;
}
.footer__logo-img { height: 26px; width: auto; filter: invert(1); opacity: 0.9; }
.footer__center { text-align: center; }
.footer__right { text-align: right; }
.footer__col p { color: var(--gray-60); font-size: var(--fs-small); margin-top: 4px; }
.footer__center p:first-child { color: var(--white); margin-top: 0; }

/* ============================================================
   5. RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .sobre__grid { gap: var(--s-8); }
}
@media (max-width: 768px) {
  .section { padding: var(--s-10) var(--s-4); }
  .hero { padding: var(--s-12) var(--s-4) var(--s-8); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { padding: var(--s-3) var(--s-4); }
  .nav__logo-img { height: 26px; }

  .grid { grid-template-columns: 1fr; }
  .cards-soft { grid-template-columns: 1fr; }
  .accordion__panel p { max-width: 100%; padding-right: var(--s-6); }

  .sobre__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .sobre__photo { max-width: 100%; margin: 0 auto; }
  .bignumbers { gap: var(--s-8); }

  .clientes__grid { grid-template-columns: repeat(2, 1fr); }
  .participo__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { grid-template-columns: 1fr; gap: var(--s-4); text-align: center; justify-items: center; }
  .footer__right, .footer__center { text-align: center; }
  .hero__scroll { display: none; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .clientes__grid { grid-template-columns: repeat(2, 1fr); }
  .participo__grid { grid-template-columns: 1fr; }
  .contato__actions { flex-direction: column; align-items: center; }
  .contato__actions .btn { width: 100%; justify-content: center; }
}

/* ===== Botão flutuante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;          /* verde oficial do WhatsApp */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }