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

::selection {
  background: #0A0A0A;
  color: #FFFFFF;
}

:root {
  --bg:        #FFFFFF;
  --ink:       #0A0A0A;
  --navy:      #F2F2F2;
  --steel:     #444444;
  --mist:      #666666;
  --highlight: #1A1A1A;
  --bg-card:   #F5F5F5;
  --accent:       #0A0A0A;
  --accent-hover: #2A2A2A;
  --whatsapp:       #25D366;
  --whatsapp-hover: #1DA851;
  --radius:      0px;
  --gap:         clamp(4rem, 8vw, 8rem);
  --side:        clamp(1.5rem, 6vw, 6rem);
  --gutter:      max(var(--side), calc((100% - 900px) / 2));
  --ease:        cubic-bezier(.25, .46, .45, .94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Unbounded', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Unbounded', Arial, sans-serif;
  font-weight: 500;
  line-height: 0.8em;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

p { color: var(--steel); }

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

/* ── Navigation ───────────────────────────────────────────── */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: .8rem;
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color .25s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  color: var(--accent);
}

.nav-toggle-icon-close { display: none; }

.nav-toggle.open .nav-toggle-icon-menu { display: none; }
.nav-toggle.open .nav-toggle-icon-close { display: block; }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 25vw;
    padding-left: max(var(--side), calc((100% - 900px) / 2));
  }
}

/* ── Left: identity + CTA ───── */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: center;
  min-width: 0;
  padding: 5rem var(--side) 5rem max(var(--side), calc((100% - 900px) / 2));
}

@media (min-width: 768px) {
  .hero-left {
    padding-left: 0;
  }
}

.hero-top {
  width: 100%;
  opacity: 0;
  animation: fadeUp .7s var(--ease) .2s forwards;
}

.hero-identity {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: 1.5rem;
}

.hero-eyebrow {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: .6rem;
}

.hero-name {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(1.6rem, 8vw, 3.4rem);
  }
}

.hero-ticker-wrap {
  display: block;
  overflow: hidden;
  line-height: 1.15;
  max-width: 100%;
}

.hero-ticker-word {
  display: block;
  font-style: normal;
  color: var(--accent);
  white-space: nowrap;
  animation: tickerIn .45s var(--ease) forwards;
}

.hero-ticker-break { display: none; }

@media (max-width: 640px) {
  .hero-ticker-wrap {
    /* Altura fixa de 2 linhas: evita que o container "pule" de
       tamanho (e pisque) quando a palavra do ticker muda entre
       uma e duas linhas. */
    height: 2.3em;
  }

  .hero-ticker-word {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero-ticker-break { display: block; }
}

@keyframes tickerIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes tickerOut {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-110%); opacity: 0; }
}

.hero-headline {
  font-size: .9rem;
  font-weight: 300;
  color: var(--mist);
  line-height: 1.65;
  margin-top: .75rem;
  max-width: 60ch;
}

@media (min-width: 768px) {
  .hero-headline {
    max-width: 50ch;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease) .55s forwards;
}

.hero-cta .btn {
  padding: .85rem 1.5rem .85rem 2rem;
  font-weight: 300;
  display: inline-flex;
  justify-content: space-between;
  gap: 4rem;
}

/* ── Right: full photo + services overlay ── */
.hero-right {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .35s forwards;
}

@media (min-width: 768px) {
  .hero-right {
    aspect-ratio: unset;
    min-height: unset;
    align-self: stretch;
  }
}

.hero-photo-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Foto em preto e branco */
.hero-photo-bw {
  filter: grayscale(100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 400;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.btn-ghost {
  background: transparent;
  color: var(--steel);
  border: 1px solid rgba(0, 0, 0, .2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Section Shared ───────────────────────────────────────── */
section {
  padding: var(--gap) max(var(--side), calc((100% - 900px) / 2));
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  margin-bottom: 1rem;
  color: var(--ink);
}

.section-hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, .08);
  margin: 0 max(var(--side), calc((100% - 900px) / 2));
}

/* ── Services ────────────────────────────────────────────── */
#servicos {
  background: var(--ink);
  padding: var(--gap) max(var(--side), calc((100% - 900px) / 2));
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.services-label,
.services-year {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

.services-list {
  list-style: none;
}

.services-item {
  display: block;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  transition: opacity .25s var(--ease);
}

.services-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.services-list:hover .services-item { opacity: .35; }
.services-list:hover .services-item:hover { opacity: 1; }

.services-num {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .3);
  padding-top: .2em;
}

.services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.services-name {
  font-family: 'Unbounded', Arial, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9em;
  text-transform: uppercase;
  color: #fff;
}

.services-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .4);
  transition: transform .35s var(--ease), color .25s var(--ease);
}

.services-item.open .services-arrow {
  transform: rotate(180deg);
  color: #fff;
}

.services-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}

.services-item.open .services-panel {
  grid-template-rows: 1fr;
}

.services-panel-inner {
  overflow: hidden;
}

.services-desc {
  padding-top: 1.25rem;
  max-width: 60ch;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}

/* ── About ────────────────────────────────────────────────── */
#sobre { display: block; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-left { width: 100%; }

.about-label {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  color: var(--steel);
  line-height: 1.85;
  font-weight: 300;
}

.about-text p + p { margin-top: 1.5rem; }

.about-text strong {
  font-weight: 400;
  color: var(--ink);
}

.about-venn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-venn img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-edu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, .1);
  background: var(--bg-card);
}

.about-edu-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-edu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
}

.about-edu-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.about-edu-label {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.about-edu-title {
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.about-edu-inst {
  font-size: .85rem;
  line-height: 1.3;
  color: var(--mist);
}

/* ── Hero tools marquee ───────────────────────────────────── */
.hero-tools {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  margin-top: .75rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  opacity: 0;
  animation: fadeUp .7s var(--ease) .75s forwards;
}

.hero-tools-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: tools-scroll-left 32s linear infinite;
}

@keyframes tools-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-tools-track img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: .7;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}

.hero-tools-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ── Portfolio ───────────────────────────────────────────── */
/* ── Clients (marquee) ────────────────────────────────────── */
#clientes {
  padding: var(--gap) 0;
  overflow: hidden;
}

#clientes .clients-header {
  padding: 0 max(var(--side), calc((100% - 900px) / 2));
  margin-bottom: 3rem;
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, transparent var(--gutter), #000 calc(var(--gutter) + 4rem), #000 calc(100% - var(--gutter) - 4rem), transparent calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(to right, transparent, transparent var(--gutter), #000 calc(var(--gutter) + 4rem), #000 calc(100% - var(--gutter) - 4rem), transparent calc(100% - var(--gutter)), transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: clients-scroll 28s linear infinite;
}

.clients-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  padding: 0 2.75rem;
}

.clients-logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: .45;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

#portfolio {
  padding: var(--gap) 0;
}

#portfolio .portfolio-header {
  padding: 0 max(var(--side), calc((100% - 900px) / 2));
  margin-bottom: 3rem;
}

.portfolio-list {
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.portfolio-item {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  min-height: 6.5rem;
  padding-left: max(var(--side), calc((100% - 900px) / 2));
  padding-right: max(var(--side), calc((100% - 900px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.portfolio-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
  width: 6.5rem;
  padding: 1rem;
  border-right: 1px solid rgba(0, 0, 0, .08);
}

.portfolio-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: .45;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
}

.portfolio-client {
  font-family: 'Unbounded', Arial, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: #0a0a0a;
}

.portfolio-sector {
  color: rgba(0, 0, 0, .45);
  font-size: .95rem;
}

.portfolio-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: var(--radius);
  color: #0a0a0a;
  font-size: .78rem;
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.portfolio-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.portfolio-btn:hover {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

@media (max-width: 640px) {
  .portfolio-item {
    flex-wrap: wrap;
    gap: .35rem 1rem;
    min-height: 0;
    padding: 1.5rem var(--side);
  }
  .portfolio-logo {
    align-self: center;
    width: 52px;
    height: 52px;
    aspect-ratio: auto;
    padding: 0;
    border-right: none;
  }
  .portfolio-actions {
    width: 100%;
    margin: 1rem 0 0;
    gap: .5rem;
  }
  .portfolio-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: .9rem;
  }
}

/* ── Contact ──────────────────────────────────────────────── */
#contato {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

@media (max-width: 640px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info p {
  color: var(--mist);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--bg);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  font-weight: 300;
  text-transform: uppercase;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  background: var(--whatsapp);
  color: #fff;
  white-space: nowrap;
  transition: all .25s var(--ease);
}

@media (max-width: 640px) {
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  font-weight: 300;
  color: var(--mist);
  transition: color .25s var(--ease);
}

.contact-link:hover { color: var(--accent); }

.contact-link-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  flex-shrink: 0;
}

.contact-link:hover .contact-link-icon {
  border-color: var(--accent);
  background: rgba(0, 0, 0, .04);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Mobile Nav ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-left {
    padding-top: 2.5rem;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 250;
    visibility: hidden;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: .08em;
  }

  .nav-links a::after { background: var(--accent); }

  .nav-toggle {
    display: flex;
    position: fixed;
    top: 1.25rem;
    right: max(1.25rem, calc(var(--side) - .5rem));
    z-index: 252;
    width: 44px;
    height: 44px;
  }

  body.nav-open { overflow: hidden; }

  body.nav-open .whatsapp-float { display: none; }
}

/* ── Focus Visible ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ── Custom Cursor ────────────────────────────────────────── */
* { cursor: none !important; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .2s var(--ease), height .2s var(--ease);
}

.cursor.hover {
  width: 36px;
  height: 36px;
}

/* Dispositivos touch não disparam mousemove: esconder o cursor custom
   e restaurar o cursor nativo, evitando o ponto preso em (0,0). */
@media (hover: none), (pointer: coarse) {
  * { cursor: auto !important; }

  .cursor { display: none; }
}

/* ── WhatsApp Float ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 62px;
  height: 62px;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease);
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
}

/* ── Skip Link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  z-index: 200;
  transition: top .2s;
}

.skip-link:focus { top: 1rem; }
