/* ============================================================
   Prado Marcenaria — site institucional
   Paleta e tipografia em identidade/design-guide.md
   ============================================================ */

:root {
  /* Cores */
  --bg:        #FFFFFF;
  --bg-alt:    #FAF8F4;
  --ink:       #1A1A1A;
  --ink-muted: #6B6B6B;
  --blue:      #BD7E2A;
  --blue-deep: #0F2C39;
  --gold:      #163C4D;
  --gold-soft: #E6DCC9;

  /* Tipografia */
  --font-h: "Playfair Display", Georgia, serif;
  --font-sub: "Raleway", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-accent: "Cinzel", Georgia, serif;
  --font: "Raleway", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Ritmo */
  --pad-x: clamp(24px, 6vw, 120px);
  --maxw: 1180px;
  --maxw-text: 760px;

  /* Header */
  --header-h: 92px;
  --header-h-scrolled: 68px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tipografia base ---------- */
h1, h2 { font-family: var(--font-h); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-family: var(--font-sub); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--blue); }

p  { font-family: var(--font-body); font-size: clamp(1.05rem, 1.2vw, 1.18rem); color: var(--ink); line-height: 1.65; }
.lead { font-family: var(--font-body); font-size: clamp(1.15rem, 1.6vw, 1.5rem); color: var(--ink); line-height: 1.55; }
.muted { color: var(--ink-muted); }

/* Palavra de ênfase = Cinzel MAIÚSCULA em azul petróleo */
.accent {
  font-family: var(--font-accent); font-style: normal; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue);
}

/* Kicker / eyebrow = Outfit, dourado, caixa alta, kerning aberto */
.kicker {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
}

/* Régua dourada */
.rule {
  width: 64px; height: 2px;
  background: var(--gold);
  border: 0;
  margin: 22px 0;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-sub);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover {
  background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light {
  border-color: rgba(255,255,255,0.25); background: rgba(22,60,77,0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff;
}
.btn--light:hover {
  background: rgba(22,60,77,0.85); border-color: rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
}

/* ---------- Layout ---------- */
.section { padding: clamp(80px, 12vh, 160px) var(--pad-x); }
.section--alt { background: var(--bg-alt); }
.container { max-width: var(--maxw); margin: 0 auto; }
.container--text { max-width: var(--maxw-text); margin: 0 auto; }
.center { text-align: center; }

/* ============================================================
   HEADER + HAMBÚRGUER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: height .35s ease, background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.site-header__logo img { height: 38px; width: auto; transition: height .35s ease; }
.site-header.is-scrolled .site-header__logo img { height: 30px; }
/* Sobre o vídeo do hero o logo precisa ser branco até dar scroll */
.site-header .logo-dark { display: none; }
.site-header .logo-light { display: block; }
.site-header.is-scrolled .logo-dark { display: block; }
.site-header.is-scrolled .logo-light { display: none; }
/* Menu aberto: header transparente, logo escondido (o overlay tem o espaço dele) */
body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .site-header__logo { opacity: 0; pointer-events: none; }

/* Botão hambúrguer (3 risquinhos) */
.hamburger {
  width: 46px; height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; z-index: 120;
}
.hamburger span {
  display: block; width: 28px; height: 2px;
  background: #fff;
  transition: transform .35s ease, opacity .25s ease, background .35s ease;
}
.site-header.is-scrolled .hamburger span { background: var(--ink); }
body.menu-open .hamburger span { background: #fff; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Menu overlay full-screen ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: #163C4D;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 20px) var(--pad-x) var(--pad-x);
  opacity: 0; visibility: hidden;
  clip-path: circle(0% at calc(100% - 48px) 48px);
  transition: clip-path .6s cubic-bezier(.7,0,.2,1), opacity .4s ease, visibility .4s;
}
body.menu-open .menu-overlay {
  opacity: 1; visibility: visible;
  clip-path: circle(150% at calc(100% - 48px) 48px);
}
.menu-nav { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.menu-nav__group + .menu-nav__group { margin-top: clamp(28px, 5vh, 56px); }
.menu-nav__label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.26em; color: #BD7E2A; margin-bottom: 18px;
}
.menu-nav ul { list-style: none; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  display: inline-block;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.18;
  color: #fff; opacity: .9;
  transform: translateY(110%);
  transition: opacity .3s ease, color .3s ease, transform .6s cubic-bezier(.5,0,.2,1);
}
body.menu-open .menu-nav a { transform: translateY(0); }
.menu-nav a:hover { color: #BD7E2A; opacity: 1; }
.menu-nav a .idx {
  font-size: 0.9rem; font-weight: 600; color: #BD7E2A;
  vertical-align: super; margin-right: 12px; letter-spacing: 0;
}
.menu-foot {
  max-width: var(--maxw); margin: clamp(36px,7vh,72px) auto 0; width: 100%;
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center;
  font-size: 0.92rem; color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px;
}
.menu-foot a:hover { color: #BD7E2A; }

/* Stagger dos itens do menu */
.menu-nav li:nth-child(1) a { transition-delay: .05s; }
.menu-nav li:nth-child(2) a { transition-delay: .10s; }
.menu-nav li:nth-child(3) a { transition-delay: .15s; }
.menu-nav li:nth-child(4) a { transition-delay: .20s; }
.menu-nav li:nth-child(5) a { transition-delay: .25s; }

/* ============================================================
   HERO — vídeo scroll scrubbing
   ============================================================ */
.hero { position: relative; height: 200vh; background: var(--ink); }
.hero.is-static { height: 100vh; }
.hero.is-static .hero__inner { position: relative; }
.hero__inner {
  position: relative; height: 100vh;
  width: 100%; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero__video, .hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(15,20,24,.35) 0%, rgba(15,20,24,0) 38%, rgba(15,20,24,.72) 100%);
}
.hero__content {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 var(--pad-x) clamp(60px, 12vh, 130px);
  color: #fff;
}
.hero__content h1 { color: #fff; max-width: 16ch; }
.hero__content h1 .accent { color: var(--blue); font-weight: 900; }
.hero__sub {
  margin-top: 22px; max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: rgba(255,255,255,.9); font-weight: 400;
}
.hero__sub .accent { color: #fff; font-weight: 600; }
.hero__cta { margin-top: 36px; }
.hero__scrollhint {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  z-index: 3; color: #BD7E2A;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scrollhint span { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero__scrollhint::after {
  content: ""; width: 1.5px; height: 44px;
  background: linear-gradient(#BD7E2A, transparent);
  animation: hintpulse 2s ease-in-out infinite;
}
@keyframes hintpulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ============================================================
   STACK / PARALAXE de sobreposição (home)
   ============================================================ */
.stack { position: relative; z-index: 4; }
.panel {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(90px, 12vh, 150px) var(--pad-x);
  background: var(--bg);
  box-shadow: 0 -24px 60px rgba(0,0,0,0.07);
}
.panel--alt { background: var(--bg-alt); }
.panel--compact { padding-top: clamp(40px, 6vh, 80px); padding-bottom: clamp(40px, 6vh, 80px); }
.panel__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

/* ============================================================
   BLOCOS DE CONTEÚDO
   ============================================================ */
/* Projetos — layout split */
.projetos-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center; max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.projetos-split__texto { max-width: 480px; }
.projetos-split__texto h2 { margin-bottom: 6px; }
.projetos-split__texto p + p { margin-top: 18px; }
.projetos-split__texto .complemento {
  margin-top: 28px; font-style: italic; color: #163C4D;
  border-left: 2px solid #163C4D; padding-left: 20px;
}
.projetos-split__fan { position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.projetos-split { overflow: visible; }

/* Card fan carousel */
.fan-container { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; margin-left: 100px; }
.fan-card {
  position: absolute;
  width: clamp(140px, 13vw, 200px); height: clamp(190px, 18vw, 270px);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  will-change: transform; cursor: pointer;
  transition: box-shadow .3s ease;
}
.fan-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card--placeholder {
  background: var(--bg-alt); border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 24px; text-align: center;
}
.fan-card--placeholder .fan-card__num {
  font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1;
}
.fan-card--placeholder .fan-card__label {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ink-muted);
}

/* Fan pagination */
.fan-pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: clamp(180px, 16vw, 220px); /* espaço abaixo dos cards */
}
.fan-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1); background: rgba(0,0,0,0.04);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .3s, background .3s;
}
.fan-btn:hover { border-color: var(--gold); background: rgba(189,126,42,0.08); }
.fan-btn svg { width: 18px; height: 18px; stroke: var(--ink-muted); }
.fan-dots { display: flex; gap: 8px; }
.fan-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,0.12); transition: background .3s, transform .3s;
}
.fan-dot.is-active { background: var(--ink); transform: scale(1.3); }

@media (max-width: 880px) {
  .projetos-split { grid-template-columns: 1fr; }
  .projetos-split__fan { min-height: 320px; }
  .fan-pagination { margin-top: clamp(140px, 14vw, 180px); }
}

/* Depoimentos — colunas scrolling infinitas */
.depo-columns {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
  max-width: var(--maxw); margin-inline: auto;
  height: 520px; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.depo-col {
  display: flex; flex-direction: column; gap: 24px;
  animation: depoScroll var(--depo-duration, 25s) linear infinite;
}
.depo-col--reverse { animation-direction: reverse; }
@keyframes depoScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.depo-col:hover { animation-play-state: paused; }
.depo-card {
  background: #fff;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.depo-card__quote { font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.depo-card__author { display: flex; align-items: center; gap: 14px; }
.depo-card__initials {
  width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--gold); color: var(--blue);
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
}
.depo-card__name { font-weight: 700; color: var(--blue); font-size: 0.95rem; }
.depo-card__city { font-size: 0.82rem; color: var(--ink-muted); }
.placeholder-note {
  margin-top: 30px; font-size: 0.82rem; color: var(--ink-muted);
  font-style: italic; text-align: center;
}

@media (max-width: 880px) {
  .depo-columns { grid-template-columns: 1fr 1fr; height: 420px; }
  .depo-col:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .depo-columns { grid-template-columns: 1fr; height: 380px; }
  .depo-col:nth-child(2) { display: none; }
}

/* Consultoria (CTA final) */
.cta-final { text-align: center; }
.cta-final__logo { width: 84px; margin: 0 auto 30px; }
.cta-final h2 { max-width: 18ch; margin: 0 auto; }
.cta-final p { max-width: 52ch; margin: 24px auto 0; color: var(--ink-muted); }
.cta-final .btn { margin-top: 38px; }
.cta-final__foot {
  margin-top: 28px; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted);
}

/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + clamp(70px,12vh,140px)) var(--pad-x) clamp(50px,8vh,90px);
  background: var(--bg-alt);
}
.page-hero__inner { max-width: var(--maxw); margin: 0 auto; }
.page-hero h1 { max-width: 18ch; }
.page-hero h1 .accent { color: var(--blue); }
.page-hero__lead { margin-top: 24px; max-width: 60ch; }

.prose { max-width: var(--maxw-text); margin: 0 auto; }
.prose h2 { margin: 8px 0 4px; }
.prose p { margin-top: 20px; }
.prose .destaque-lista { list-style: none; margin: 32px 0; }
.prose .destaque-lista li {
  padding: 16px 0 16px 28px; position: relative;
  font-size: 1.12rem; border-bottom: 1px solid var(--gold-soft);
}
.prose .destaque-lista li::before {
  content: ""; position: absolute; left: 0; top: 26px;
  width: 12px; height: 2px; background: var(--gold);
}

/* Processo — passos numerados */
.passos { display: grid; gap: 0; margin-top: 20px; max-width: var(--maxw-text); margin-inline: auto; }
.passo {
  display: grid; grid-template-columns: 92px 1fr; gap: 24px;
  padding: 34px 0; border-top: 1px solid var(--gold-soft); align-items: start;
}
.passo:last-child { border-bottom: 1px solid var(--gold-soft); }
.passo__num {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800;
  color: var(--gold); line-height: 1; letter-spacing: -0.04em;
}
.passo__corpo h3 { color: var(--blue); margin-bottom: 8px; }

/* Números / estatísticas */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin: 48px auto 0; max-width: var(--maxw);
  text-align: center;
}
.stat__num {
  font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 900;
  color: var(--blue); line-height: 1; letter-spacing: -0.04em;
}
.stat__num .suffix { color: var(--gold); }
.stat__label {
  margin-top: 14px; font-size: 0.92rem; color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 5;
  background: var(--ink); color: rgba(255,255,255,.8);
  padding: clamp(60px,9vh,90px) var(--pad-x) 40px;
}
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
}
.site-footer__brand img { width: 56px; margin-bottom: 18px; }
.site-footer__brand p { color: rgba(255,255,255,.6); max-width: 32ch; font-size: 0.95rem; }
.site-footer__col h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: #BD7E2A; margin-bottom: 16px; font-weight: 700;
}
.site-footer__col a, .site-footer__col p { color: rgba(255,255,255,.8); font-size: 0.95rem; display: block; margin-bottom: 8px; }
.site-footer__col a:hover { color: #BD7E2A; }
/* Links de contato/rede ainda não preenchidos */
.is-placeholder { opacity: .45; cursor: default; }
.is-placeholder:hover { color: inherit !important; opacity: .6; }
.menu-foot .is-placeholder { color: rgba(255,255,255,.5) !important; }
.menu-foot { border-top-color: rgba(255,255,255,.18); }
.site-footer__bottom {
  max-width: var(--maxw); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.82rem; color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}

/* ============================================================
   REVEAL (entradas no scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 880px) {
  .depo-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .panel { min-height: auto; position: relative; box-shadow: none; }
  .hero { height: 180vh; }
}
@media (max-width: 560px) {
  .passo { grid-template-columns: 64px 1fr; gap: 16px; }
  .btn { padding: 14px 26px; }
}

/* ============================================================
   ACESSIBILIDADE — reduzir movimento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero { height: 100vh; }
  .hero__inner { position: relative; }
  .panel { position: relative; box-shadow: none; }
  .hero__scrollhint::after { animation: none; }
}
