/* ===========================================================
   NA LIMA — style.css
   Tokens: papel quente + tinta verde-escuro + lima só no detalhe.
   Nenhum fundo preto, nenhum dourado genérico.
=========================================================== */

:root {
  --paper:      #F6F2E7;
  --paper-soft: #EFE9D8;
  --ink:        #1B2117;
  --ink-soft:   #4B5142;
  --lime:       #C7DA4E;
  --lime-deep:  #7A9020;
  --line:       rgba(27,33,23,0.13);

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Work Sans", "Helvetica Neue", sans-serif;
  --mono:  "Space Mono", monospace;

  --container: 1180px;
  --ease: cubic-bezier(.16,.84,.24,1);
}

/* reset base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: auto;


a   { color: inherit; text-decoration: none; }
ul,
ol  { list-style: none; margin: 0; padding: 0; }
svg { display: block; }

::selection { background: var(--lime); color: var(--ink); }

/* respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   barra de progresso de leitura
=========================================================== */
.progress-rail { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 998; }
.progress-fill { height: 100%; width: 0%; background: var(--lime-deep); transition: width .1s linear; }

/* ===========================================================
   animações de entrada no scroll
=========================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }

/* linhas do hero: cada linha tem overflow hidden */
.reveal-line { display: block; overflow: hidden; }
.reveal-line .reveal-up { transform: translateY(110%); }
.reveal-line .reveal-up.in { transform: translateY(0); }

/* ===========================================================
   nav
=========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px clamp(20px, 5vw, 56px);
  background: rgba(246, 242, 231, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

/* logo mark */
.nav-mark { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 72px; width: auto; display: block; object-fit: contain; }
.footer-logo-img { height: 88px; width: auto; display: block; object-fit: contain; }

@media (max-width: 860px) {
  .nav-logo-img    { height: 54px; }
  .footer-logo-img { height: 68px; }
}

/* links internos */
.nav-links { display: flex; gap: 34px; font-size: .92rem; }
.nav-links a { position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--ink);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* CTA na nav */
.nav-cta {
  font-size: .88rem; font-weight: 600;
  padding: 11px 22px; border-radius: 40px;
  background: var(--ink); color: var(--paper);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-cta:hover { background: var(--lime-deep); transform: translateY(-2px); }

/* burger (mobile) */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--ink); display: block;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  font-family: var(--serif); font-size: 2rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { transition: color .2s; }
.mobile-menu a:hover { color: var(--lime-deep); }
.mobile-cta {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 14px 30px; border-radius: 40px;
  background: var(--ink); color: var(--paper);
  margin-top: 10px;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ===========================================================
   botões
=========================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease);
}
.btn span { position: relative; z-index: 2; }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--lime-deep); z-index: 1;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-lg { padding: 20px 44px; font-size: 1.05rem; }

.magnetic { transition: transform .25s var(--ease); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===========================================================
   utilitários de layout
=========================================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem; letter-spacing: .12em; text-transform: lowercase;
  color: var(--lime-deep); margin: 0 0 14px;
}

.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12; letter-spacing: -.01em;
  margin: 0 0 50px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ===========================================================
   hero
=========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px clamp(20px, 6vw, 80px) 100px;
  overflow: hidden;
}

/* textura de grão sutil no fundo */
.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none; opacity: .05; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
}

/* flex: texto à esq, animação à dir */
/* Hero full-width centralizado — texto ocupa toda a largura com elegância */
.hero-inner {
  position: relative; z-index: 2;
  max-width: 820px;
  /* centralizado horizontalmente, pequeno offset pra esquerda pra parecer editorial */
}

.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.04; letter-spacing: -.03em;
  margin: 0 0 28px;
}
.hero-title em { font-style: italic; color: var(--lime-deep); }
.hero-sub {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 54ch; margin: 0 0 42px;
}

/* ilustração decorativa da lima com espiral no hero */
.hero-deco {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  height: min(90vh, 680px);
  width: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  user-select: none;
}

@media (max-width: 1100px) {
  .hero-deco { height: min(70vh, 480px); right: -4vw; }
}
@media (max-width: 820px) {
  /* no tablet a ilustração fica menor e mais ao fundo, não compete com o texto */
  .hero-deco {
    height: min(45vw, 320px);
    right: -6vw;
    top: auto;
    bottom: 0;
    transform: none;
    opacity: 0.6;
  }
}
@media (max-width: 540px) {
  .hero-deco { display: none; }
}

/* cue de scroll */
.scroll-cue {
  position: absolute; bottom: 36px; left: clamp(20px, 6vw, 80px); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .74rem;
  color: var(--ink-soft); letter-spacing: .06em;
}
.scroll-cue span {
  width: 1px; height: 34px;
  background: var(--ink-soft); position: relative; overflow: hidden;
}
.scroll-cue span::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--lime-deep);
  animation: scrollDrip 1.8s ease-in-out infinite;
}
@keyframes scrollDrip {
  0%   { top: -100%; }
  60%  { top:  100%; }
  100% { top:  100%; }
}

/* ===========================================================
   divisores orgânicos "casca"
=========================================================== */
.peel-divider { width: 100%; line-height: 0; margin-top: -2px; }
.peel-divider svg  { width: 100%; height: 60px; display: block; }
.peel-divider path { fill: var(--paper-soft); }
.peel-divider.flip { transform: scaleY(-1); }
.peel-divider.flip path { fill: var(--paper); }

/* ===========================================================
   sobre
=========================================================== */
.sobre { background: var(--paper-soft); padding: 120px clamp(20px, 6vw, 80px); }
.sobre-grid {
  display: grid; grid-template-columns: 0.8fr 1.6fr;
  gap: 60px; max-width: var(--container); margin: 0 auto;
}
.sobre-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1; position: sticky; top: 140px;
  margin: 0;
}
.sobre-text p { margin: 0 0 22px; max-width: 60ch; }
.sobre-text .lead {
  font-family: var(--serif); font-size: 1.35rem;
  line-height: 1.46; color: var(--ink); max-width: 60ch;
}
.sobre-stats { display: flex; gap: 50px; margin-top: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num  { font-family: var(--serif); font-size: 2.2rem; color: var(--lime-deep); }
.stat-label { font-size: .86rem; color: var(--ink-soft); max-width: 20ch; }

@media (max-width: 860px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-title { position: static; }
}

/* pull quote da seção sobre */
.sobre-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--lime-deep);
  border-left: 2px solid var(--lime-deep);
  margin: 6px 0 26px;
  padding: 10px 0 10px 22px;
  max-width: 44ch;
  line-height: 1.45;
}

/* ===========================================================
   serviços — grid 3×2 (mais respiro, texto não quebra demais)
=========================================================== */
.servicos { padding: 130px clamp(20px, 6vw, 80px); max-width: var(--container); margin: 0 auto; }
.servicos-head { margin-bottom: 10px; }

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.servico-card {
  background: var(--paper);
  padding: 48px 36px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background .35s var(--ease), transform .35s var(--ease), color .35s;
}
.servico-card:hover {
  background: var(--ink); color: var(--paper);
  transform: translateY(-4px);
}
.servico-card:hover .servico-icon svg { stroke: var(--lime); }
.servico-card:hover p { color: rgba(246,242,231,.72); }

.servico-icon { width: 44px; height: 44px; }
.servico-icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: var(--ink);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .35s;
}
.servico-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 0; }
.servico-card p  { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.55; transition: color .35s; }

@media (max-width: 860px)  { .servicos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .servicos-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   projetos
=========================================================== */
.projetos { padding: 0 clamp(20px, 6vw, 80px) 130px; max-width: var(--container); margin: 0 auto; }
.projetos-note { margin-top: -20px; margin-bottom: 50px; }

.projetos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.projeto-card { display: flex; flex-direction: column; gap: 18px; }
.projeto-thumb {
  aspect-ratio: 4/3; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line);
}
.projeto-thumb span {
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-soft); letter-spacing: .08em; text-transform: lowercase;
}
.thumb-1 { background: repeating-linear-gradient(135deg, var(--paper-soft) 0 14px, var(--paper) 14px 28px); }
.thumb-2 { background: repeating-linear-gradient( 45deg, var(--paper-soft) 0 14px, var(--paper) 14px 28px); }
.thumb-3 { background: repeating-linear-gradient( 90deg, var(--paper-soft) 0 14px, var(--paper) 14px 28px); }
.projeto-tag  { font-family: var(--mono); font-size: .72rem; color: var(--lime-deep); letter-spacing: .08em; margin: 0 0 6px; }
.projeto-info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 0 0 8px; }
.projeto-info p  { font-size: .92rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) { .projetos-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   processo
=========================================================== */
.processo { background: var(--ink); color: var(--paper); padding: 130px clamp(20px, 6vw, 80px); }
.processo .eyebrow       { color: var(--lime); }
.processo .section-title { color: var(--paper); }

.processo-list { max-width: var(--container); margin: 0 auto; }
.processo-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 30px; align-items: start;
  padding: 38px 0;
  border-top: 1px solid rgba(246,242,231,.14);
}
.processo-item:last-child { border-bottom: 1px solid rgba(246,242,231,.14); }
.processo-num  { font-family: var(--mono); font-size: 1rem; color: var(--lime); }
.processo-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 10px; }
.processo-body p  { color: rgba(246,242,231,.68); max-width: 56ch; margin: 0; }

@media (max-width: 600px) { .processo-item { grid-template-columns: 1fr; gap: 10px; } }

/* ===========================================================
   contato
=========================================================== */
.contato {
  position: relative;
  padding: 150px clamp(20px, 6vw, 80px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.contato-inner { max-width: 560px; position: relative; z-index: 2; }
.contato-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08; margin: 0 0 22px;
}
.contato .lead { margin-bottom: 40px; }

.contato-logo-deco {
  width: min(26vw, 220px); flex-shrink: 0;
  color: var(--ink);
  animation: floatSlow 7s ease-in-out infinite;
  opacity: .85;
}
.contato-logo-deco svg { width: 100%; height: auto; overflow: visible; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}

@media (max-width: 760px) {
  .contato { flex-direction: column; }
  .contato-logo-deco { width: 130px; align-self: flex-end; }
}

/* ===========================================================
   footer
=========================================================== */
.footer { background: var(--paper-soft); padding: 80px clamp(20px, 6vw, 80px) 30px; }

.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding-bottom: 50px; border-bottom: 1px solid var(--line);
  max-width: var(--container); margin: 0 auto;
}
.footer-tag { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); letter-spacing: .06em; }

.footer-mid {
  display: flex; gap: 90px;
  padding: 50px 0;
  max-width: var(--container); margin: 0 auto;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-heading { font-family: var(--mono); font-size: .74rem; color: var(--lime-deep); letter-spacing: .08em; margin: 0 0 8px; }
.footer-col a { font-size: .95rem; color: var(--ink-soft); transition: color .25s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom { max-width: var(--container); margin: 0 auto; font-size: .82rem; color: var(--ink-soft); }
