/* ══════════════════════════════════════════════════════════
   BRUNO REIS — Portfolio
   Design system (tokens capturados do site real + template)
   Um único arquivo, fácil de editar.
   ══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  /* Cores */
  --bg:        #E8E8E8;   /* fundo padrão das páginas de projeto */
  --bg-home:   #FFFFFF;   /* fundo da home */
  --ink:       #111111;   /* texto principal */
  --muted:     #555555;   /* texto secundário */
  --muted-2:   #777777;   /* labels / apoio */
  --line:      #DcDcDc;   /* divisórias claras */
  --card:      #FFFFFF;   /* cards brancos */
  --card-alt:  #F2F2F2;   /* moldura de imagem */
  --cream:     #FCFAF5;   /* seção creme */
  --slate:     #F1F5F9;   /* seção azul-acinzentada */
  --dark:      #0F0F0F;   /* rodapé / cards escuros */
  --navy:      #090A15;   /* navy profundo */
  --accent:    #1547FF;   /* azul de acento (CTA, //) */
  --sage:      #9FBCA1;   /* verde sálvia do eyebrow serif */

  /* Formas */
  --radius:    18px;
  --radius-sm: 14px;
  --radius-lg: 24px;
  --pill:      100px;

  /* Layout */
  --maxw:      1200px;
  --gutter:    40px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
.serif { font-family: 'Baskervville', Georgia, 'Times New Roman', serif; }

/* Variantes de fundo por página (adicione a classe no <body>) */
body.home { background-color: var(--bg-home); }

/* ─── LAYOUT ─── */
.wrapper { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrapper-wide { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ─── NAV ─── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}
.nav-logo { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: -0.2px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-menu {
  background: var(--ink); color: #fff; border: none;
  padding: 10px 22px; border-radius: var(--pill);
  font-size: 14px; font-family: inherit; font-weight: 500;
  cursor: pointer; letter-spacing: -0.2px;
}
/* Hambúrguer (só aparece no mobile) */
.nav-burger { display: none; }
/* trava o scroll do body com o menu de tela cheia aberto */
body.menu-open { overflow: hidden; }

@media (max-width: 720px) {
  nav { position: relative; z-index: 200; }
  .nav-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 40px; height: 40px; margin-left: 6px;
    background: transparent; border: none; cursor: pointer;
  }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu { margin-left: auto; }
  /* controles do topo ficam acima do overlay */
  .nav-logo, .nav-menu, .nav-burger { position: relative; z-index: 20; }

  /* nav-links vira menu em TELA CHEIA */
  .nav-links {
    display: flex; flex-direction: column; justify-content: center; align-items: stretch;
    position: fixed; inset: 0; z-index: 10;
    background: #fff; padding: 96px 0 40px; gap: 0;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a {
    display: block; width: 100%;
    padding: 22px 32px; font-size: 26px; font-weight: 600; letter-spacing: -0.6px;
    color: var(--ink); transition: background .15s ease, color .15s ease;
  }
  .nav-links a:hover,
  .nav-links a:focus,
  .nav-links a:active { background: var(--accent); color: #fff; }
}

/* ─── BOTÕES ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.2px;
  padding: 13px 26px; border-radius: var(--pill); cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0f3ce6; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
/* Preto por padrão, azul no hover (Book a call do hero) */
.btn-book { background: var(--ink); color: #fff; }
.btn-book:hover { background: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════════════════
   HOME
   ══════════════════════════════════════════════════════════ */

/* Marquee eyebrow serif */
.marquee {
  overflow: hidden; white-space: nowrap; padding: 8px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-block; will-change: transform;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: 'Baskervville', Georgia, serif;
  font-size: clamp(38px, 7vw, 64px); font-weight: 400;
  color: var(--sage); letter-spacing: 0.5px; padding-right: 48px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Hero */
.hero { text-align: center; padding: 24px 0 8px; }
.hero-sub {
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 74px); font-weight: 700; line-height: 1.03;
  letter-spacing: -2.4px; max-width: 900px; margin: 0 auto 34px;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(22px);
  animation: heroReveal .85s cubic-bezier(.22,.68,.2,1) .84s forwards;
}

/* Hero — revela cada sentença por vez, subindo */
.hero h1 .h1-line {
  display: block; opacity: 0; transform: translateY(32px);
  animation: heroReveal .85s cubic-bezier(.22,.68,.2,1) forwards;
}
.hero h1 .h1-line:nth-child(1) { animation-delay: .10s; }
.hero h1 .h1-line:nth-child(2) { animation-delay: .28s; }
.hero h1 .h1-line:nth-child(3) { animation-delay: .46s; }
.hero h1 .h1-line:nth-child(4) { animation-delay: .64s; }
.hero h1 i { font-style: italic; }
.hero h1 .h1-line--nowrap { white-space: nowrap; }
@media (max-width: 640px) { .hero h1 .h1-line--nowrap { white-space: normal; } }
@keyframes heroReveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .h1-line, .hero-ctas { animation: none; opacity: 1; transform: none; }
}

/* Section titles genéricos da home */
.home-section { padding: 90px 0; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -1.8px;
  line-height: 1.02; margin-bottom: 16px;
}
.section-lead { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 600px; }

/* Grade de projetos (home) */
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 22px;
  background: #16161e; isolation: isolate;
}
.project-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; transition: transform .5s ease;
}
.project-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, transparent 75%);
}
.project-card:hover img { transform: scale(1.04); }
.project-card__meta { position: relative; color: #fff; }
.project-card__handle {
  font-size: 12px; font-weight: 500; opacity: .8; letter-spacing: -0.2px; margin-bottom: 4px;
}
.project-card__title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.project-card.is-soon { pointer-events: none; }
.project-card__badge {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.16); color: #fff; padding: 5px 10px; border-radius: var(--pill);
  backdrop-filter: blur(4px);
}
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

/* ─── ANIMAÇÕES ─── */
/* Fade-in no carregamento (seção Projects) */
@keyframes loadFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.load-fade { opacity: 0; animation: loadFadeUp .9s ease .5s both; }

/* Reveal on scroll (genérico) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* Stagger dos passos do processo */
.process-step.reveal:nth-child(1) { transition-delay: 0s; }
.process-step.reveal:nth-child(2) { transition-delay: .14s; }
.process-step.reveal:nth-child(3) { transition-delay: .28s; }
.process-step.reveal:nth-child(4) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .load-fade { animation: none !important; opacity: 1 !important; }
}

/* Processo (3 semanas) — grade 2×2, números grandes cinza-claro */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px 60px; max-width: 860px; }
.process-num {
  font-size: 64px; font-weight: 800; color: #E7E7E7; letter-spacing: -2px; line-height: 1; margin-bottom: 14px;
}
.process-step h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 12px; }
.process-step p { font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 380px; }
@media (max-width: 620px) { .process-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 30px 28px 36px;
  min-height: 240px; display: flex; flex-direction: column; justify-content: space-between;
}
.service-card .service-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .5s ease;
}
.service-card:has(.service-bg)::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,10,21,.60) 0%, rgba(9,10,21,.86) 100%);
}
.service-card:hover .service-bg { transform: scale(1.05); }
.service-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.6px; }
.service-card p { font-size: 15.5px; color: #a7a7b4; line-height: 1.6; margin-top: 12px; }
.service-num { font-size: 12px; color: var(--sage); font-weight: 600; letter-spacing: .1em; }
@media (max-width: 780px) { .services-grid { grid-template-columns: 1fr; } }

/* About — duas colunas (foto + texto) */
.about-grid { display: grid; grid-template-columns: 0.82fr 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #dcdcdc; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.32) translateY(-9%); transform-origin: center top; }
.about-photo.is-empty { display: flex; align-items: center; justify-content: center; text-align: center; }
.about-photo.is-empty span { font-size: 12px; color: #888; padding: 20px; line-height: 1.5; }
.about-text .section-title { margin-bottom: 20px; }
.about-text p { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 600px; }
.about-text p + p { margin-top: 18px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .about-photo { aspect-ratio: 4/4; max-width: 420px; } }

/* Client Reviews — carrossel */
.tnote {
  background: #FFF7E6; border: 1px solid #F0DCA8; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 13px; color: #8a6d1f; line-height: 1.55; margin-bottom: 28px;
}
.reviews-head { display: grid; grid-template-columns: 0.9fr 1fr; gap: 48px; align-items: center; margin-bottom: 36px; }
.reviews-head__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; background: #ddd; }
.reviews-head__img img { width: 100%; height: 100%; object-fit: cover; }
.reviews-head__text p.lead { font-size: 16.5px; color: var(--muted); line-height: 1.6; max-width: 440px; margin: 12px 0 24px; }
.reviews-topbar { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 22px; }
.rev-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid #cfcfcf; background: transparent;
  cursor: pointer; font-size: 18px; color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.rev-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.reviews-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; -ms-overflow-style: none; scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 300px; scroll-snap-align: start; background: var(--card); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.review-card .qmark { font-family: Georgia, serif; font-size: 44px; line-height: .5; color: #cfcfcf; margin-bottom: 18px; }
.review-card p { font-size: 16px; color: var(--ink); line-height: 1.6; flex: 1; }
.review-author { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.review-author .avatar { width: 42px; height: 42px; border-radius: 50%; background: #d9d9d9; flex-shrink: 0; object-fit: cover; }
.review-author .who { font-size: 13px; font-weight: 700; letter-spacing: -0.3px; }
.review-author .role { font-size: 10.5px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
@media (max-width: 760px) { .reviews-head { grid-template-columns: 1fr; gap: 24px; } .review-card { flex-basis: 78vw; } }

/* Contato / CTA final */
.contact { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; }
.contact h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -1.6px; margin-bottom: 12px; }
.contact p { font-size: 16.5px; color: #a7a7b4; max-width: 480px; margin: 0 auto 26px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   PÁGINA DE PROJETO  (base: project-page-template.html)
   ══════════════════════════════════════════════════════════ */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 32px; transition: color .2s;
}
.back-link:hover { color: var(--ink); }
.back-link svg { flex-shrink: 0; }

.project-title { font-size: clamp(44px, 8vw, 68px); font-weight: 800; letter-spacing: -3px; line-height: .95; margin-bottom: 20px; }
.project-subtitle { font-size: 14.5px; color: var(--muted); line-height: 1.65; max-width: 420px; margin-bottom: 32px; }
/* Descrição do projeto no topo (lead) */
.project-lead { font-size: 19px; color: var(--muted); line-height: 1.65; max-width: 720px; margin-bottom: 18px; }
.project-lead strong { color: var(--ink); font-weight: 700; }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 48px; margin-bottom: 64px; max-width: 460px; }
.info-card { background: var(--card); border-radius: var(--radius-sm); padding: 22px 24px; }
.info-label { font-size: 10.5px; font-weight: 500; color: #999; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.info-value { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }

/* Sequência de imagens grandes empilhadas (estrutura real do case Dox IA) */
.shot { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--card-alt); }
.shot img { width: 100%; height: auto; }
.shots { margin-bottom: 70px; }

/* Seções de texto do projeto */
.section { margin-bottom: 70px; }
.section-heading { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 14px; }
.section-heading .accent { color: var(--accent); }
.section-text { font-size: 16.5px; color: var(--muted); line-height: 1.7; max-width: 660px; }
.section-text + .section-text { margin-top: 14px; }
.project-name { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; }

/* Next projects */
.next-heading { font-size: clamp(38px, 6vw, 56px); font-weight: 800; letter-spacing: -3px; line-height: 1; margin-bottom: 24px; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next-card {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  position: relative; display: flex; align-items: flex-end; padding: 22px; background: #16161e;
  isolation: isolate;
}
.next-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.next-card::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 62%); }
.next-card:hover img { transform: scale(1.04); }
.next-card-label { position: relative; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
@media (max-width: 640px) { .next-grid { grid-template-columns: 1fr; } }

/* ─── FOOTER ─── */
footer { background: var(--dark); color: #fff; margin-top: 100px; padding: 64px 0 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 64px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
.footer-logo { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: #7d7d7d; line-height: 1.65; max-width: 240px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 34px; height: 34px; border: 1px solid #2A2A2A; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #aaa; transition: border-color .2s, color .2s; }
.social-btn:hover { border-color: #555; color: #fff; }
.footer-nav-label { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #555; margin-bottom: 18px; }
.footer-nav-links { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-links a { font-size: 15px; font-weight: 500; color: #fff; transition: color .2s; }
.footer-nav-links a:hover { color: #aaa; }
.footer-contact { font-size: 14px; color: #b5b5b5; line-height: 1.7; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter); border-top: 1px solid #1E1E1E; font-size: 12px; color: #555; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .info-cards { grid-template-columns: 1fr; }
  .home-section { padding: 64px 0; }
}
