/* ============================================================
   RACIOCÍNIO CREDÍVEL — Design System
   Palette derived from brand mark: sage + gold on deep ink.
   Display: Fraunces (editorial serif, credibility)
   Body: Inter
   Data/labels: IBM Plex Mono (ledger, numbers-as-decisions motif)
   ============================================================ */

:root{
  /* Color tokens */
  --ink:        #171d16;
  --ink-soft:   #232b20;
  --ink-line:   #34402f;
  --cream:      #faf8f1;
  --paper:      #ffffff;
  --sage:       #7c9450;
  --sage-deep:  #5c7238;
  --sage-pale:  #dee4a2;
  --sage-wash:  #eef1de;
  --gold:       #c99a3e;
  --gold-pale:  #f4df99;
  --gold-wash:  #faf1da;
  --slate:      #4b5245;
  --slate-60:   #4b524599;
  --line:       #e4e1d4;

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 4px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

/* Scroll reveal + hero load-in sequence */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-d1{ transition-delay:.08s; } .reveal-d2{ transition-delay:.16s; } .reveal-d3{ transition-delay:.24s; }
.reveal-d4{ transition-delay:.32s; } .reveal-d5{ transition-delay:.4s; } .reveal-d6{ transition-delay:.48s; }

@keyframes heroFade{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
.hero-copy > *{ animation:heroFade .7s cubic-bezier(.2,.6,.2,1) both; }
.hero-copy .eyebrow{ animation-delay:.02s; }
.hero-copy h1{ animation-delay:.08s; }
.hero-copy .lead{ animation-delay:.16s; }
.hero-copy .hero-points{ animation-delay:.24s; }
.hero-copy .trust-strip{ animation-delay:.32s; }
@keyframes formPop{ from{ opacity:0; transform:translateY(22px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
.form-card{ animation:formPop .7s cubic-bezier(.16,1,.3,1) .3s both; }

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

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--ink);
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.4rem,4.4vw,3.7rem); font-weight:500; }
h2{ font-size:clamp(1.9rem,3.2vw,2.6rem); font-weight:500; }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; color:var(--slate); }
a{ color:inherit; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }

.container{ max-width:var(--container); margin:0 auto; padding:0 28px; }

.eyebrow{
  font-family:var(--font-mono);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.72rem;
  font-weight:500;
  color:var(--sage-deep);
  display:inline-flex;
  align-items:center;
  gap:.6em;
  margin-bottom:1.1em;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--gold);
  display:inline-block;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding:.9em 1.7em;
  border-radius:var(--radius);
  font-weight:600;
  font-size:.95rem;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.btn-primary{ background:var(--sage-deep); color:#fff; }
.btn-primary:hover{ background:var(--ink); box-shadow:0 14px 28px -14px rgba(23,29,22,.5); }
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:#b6862f; box-shadow:0 14px 28px -14px rgba(201,154,62,.55); }
.btn-outline{ background:transparent; color:var(--paper); border-color:rgba(255,255,255,.4); }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ background:var(--sage-wash); }

/* ---------------- Header ---------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--ink);
  border-bottom:1px solid var(--ink-line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.brand img{ height:32px; width:auto; }
.brand{ display:flex; align-items:center; }
.nav-desktop{ display:flex; align-items:center; gap:2.1rem; }
.nav-desktop a{
  color:#e7e6da; text-decoration:none; font-size:.92rem; font-weight:500;
  position:relative; padding:.3em 0;
}
.nav-desktop a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1px;
  background:var(--gold-pale); transition:right .2s ease;
}
.nav-desktop a:hover::after{ right:0; }
.header-actions{ display:flex; align-items:center; gap:1rem; }
.hamburger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.hamburger span{ width:24px; height:2px; background:#e7e6da; display:block; }

.mobile-nav{
  display:none; flex-direction:column;
  background:var(--ink-soft);
  border-bottom:1px solid var(--ink-line);
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  color:#e7e6da; text-decoration:none; padding:1rem 28px; border-top:1px solid var(--ink-line); font-size:.95rem;
}
.mobile-nav .btn{ margin:1rem 28px; }

@media (max-width:900px){
  .nav-desktop{ display:none; }
  .hamburger{ display:flex; }
  .header-actions .btn-gold{ display:none; }
}

/* ---------------- Hero (split: text left / form right) ---------------- */
.hero{
  background:var(--ink);
  color:#f2f1e8;
  position:relative;
  overflow:hidden;
  padding:5rem 0 4.5rem;
}
.hero::before{
  content:"";
  position:absolute; top:-140px; right:-140px;
  width:480px; height:480px; border-radius:50%;
  border:60px solid var(--sage-pale);
  opacity:.07;
}
.hero.hero-photo{
  background-image:linear-gradient(100deg, var(--ink) 38%, rgba(23,29,22,.72) 62%, rgba(23,29,22,.55) 100%), var(--hero-bg);
  background-size:cover;
  background-position:center;
}
.hero .container{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:3.5rem;
  align-items:start;
}
.hero-copy{ text-align:left; padding-top:.5rem; }
.hero-copy h1{ color:#fff; }
.hero-copy .lead{ color:#d9d8c9; font-size:1.15rem; max-width:46ch; margin-bottom:1.6rem; }
.hero-points{ list-style:none; padding:0; margin:0 0 2rem; display:flex; flex-direction:column; gap:.85rem; }
.hero-points li{
  display:flex; gap:.8em; align-items:flex-start;
  color:#eae9dd; font-size:.98rem;
}
.hero-points li::before{
  content:"✓";
  flex:none;
  width:22px; height:22px; border-radius:50%;
  background:var(--sage-pale); color:var(--ink);
  font-size:.7rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin-top:.15em;
}
.trust-strip{ margin-top:2.4rem; }
.trust-strip img{ height:34px; width:auto; opacity:.92; }
.trust-strip-label{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:#a9a894; margin-bottom:.7rem; }

/* Form card */
.form-card{
  background:var(--paper);
  color:var(--ink);
  border-radius:8px;
  padding:2.1rem 2rem 2rem;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.45);
}
.form-card h2{ font-size:1.35rem; margin-bottom:.25rem; }
.form-card .form-sub{ color:var(--slate); font-size:.9rem; margin-bottom:1.4rem; }
.field{ margin-bottom:1rem; }
.field label{ display:block; font-size:.8rem; font-weight:600; margin-bottom:.4rem; color:var(--ink); }
.field input,.field select,.field textarea{
  width:100%; padding:.75em .85em; border:1px solid var(--line); border-radius:var(--radius);
  font-family:inherit; font-size:.95rem; background:#fff; color:var(--ink);
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:2px solid var(--sage); outline-offset:1px; border-color:var(--sage);
}
.field-error{ color:#b3412c; font-size:.78rem; margin-top:.35em; display:none; }
.field.has-error input,.field.has-error select{ border-color:#b3412c; }
.field.has-error .field-error{ display:block; }
.field-check{ display:flex; align-items:flex-start; gap:.6em; }
.field-check input{ width:auto; margin-top:.3em; }
.field-check label{ font-size:.82rem; font-weight:400; color:var(--slate); }
.field-check a{ color:var(--sage-deep); text-decoration:underline; }
.form-submit{ width:100%; margin-top:.4rem; }
.form-note{ font-size:.74rem; color:var(--slate-60); margin-top:.9rem; text-align:center; }
.form-success, .form-fail{ display:none; text-align:center; padding:1.5rem 0; }
.form-success.show, .form-fail.show{ display:block; }
.form-success svg{ margin:0 auto 1rem; }

/* ---------------- Why us / ledger stats ---------------- */
.section{ padding:5.5rem 0; }
.section-tight{ padding:3.5rem 0; }
.section-alt{ background:var(--sage-wash); }
.section-ink{ background:var(--ink); color:#f2f1e8; }
.section-ink p{ color:#c9c8b9; }
.section-head{ max-width:640px; margin-bottom:3rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.ledger{
  display:grid; grid-template-columns:repeat(3,1fr);
  border-bottom:1px solid var(--line);
}
.ledger-item{
  padding:0 1.6rem 2.2rem;
  border-left:1px solid var(--line);
  text-align:left;
  transition:transform .25s ease;
}
.ledger-item:first-child{ border-left:none; padding-left:0; }
.ledger-item::before{
  content:""; display:block; width:30px; height:2px; background:var(--gold); margin:0 0 1.4rem;
}
.ledger-item:hover{ transform:translateY(-3px); }
.ledger-num{ font-family:var(--font-mono); font-size:2.4rem; color:var(--sage-deep); display:block; letter-spacing:-.02em; }
.ledger-label{ font-size:.92rem; color:var(--slate); margin-top:.4rem; }

/* ---------------- Services ---------------- */
.services-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.service-card{
  background:var(--paper); padding:2.2rem 2rem;
  position:relative; transition:transform .25s ease, box-shadow .25s ease, z-index 0s;
}
.service-card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 44px -28px rgba(23,29,22,.28);
  z-index:2;
}
.service-card .svc-index{
  font-family:var(--font-mono); font-size:.75rem; color:var(--gold); margin-bottom:1rem;
  display:flex; align-items:center; gap:.6em;
}
.service-card .svc-index::after{ content:""; flex:1; height:1px; background:var(--line); }
.service-card h3{ margin-bottom:.9rem; }
.service-card ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.55rem; }
.service-card li{ font-size:.9rem; color:var(--slate); padding-left:1.1em; position:relative; }
.service-card li::before{ content:"—"; position:absolute; left:0; color:var(--sage); }

.split-feature{ display:grid; grid-template-columns:.7fr 1fr; gap:3.2rem; align-items:center; }
.split-feature img{ border-radius:8px; width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.6,.2,1); }
.portrait-frame{
  aspect-ratio:4/5; max-width:340px; border-radius:8px; overflow:hidden; border:1px solid var(--line);
  box-shadow:0 30px 50px -30px rgba(23,29,22,.4);
}
.portrait-frame:hover img{ transform:scale(1.05); }
.split-feature .quote-mark{ font-family:var(--font-display); font-size:4rem; font-weight:600; color:var(--gold); line-height:.6; display:block; margin-bottom:.3rem; }
.split-feature .quote{ font-family:var(--font-display); font-size:1.3rem; color:var(--ink); margin-top:.6rem; }
.split-feature .quote-name{ font-family:var(--font-mono); font-size:.78rem; color:var(--slate); margin-top:.6rem; text-transform:uppercase; letter-spacing:.05em; }

.service-card-cta{ background:var(--sage-deep); color:#fff; display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.service-card-cta::before{
  content:""; position:absolute; bottom:-70px; right:-50px; width:180px; height:180px;
  border-radius:50%; border:32px solid rgba(255,255,255,.1);
}
.service-card-cta h3{ color:#fff; }
.service-card-cta .svc-index{ color:var(--gold-pale); }
.service-card-cta .svc-index::after{ background:rgba(255,255,255,.25); }
.service-card-cta > *{ position:relative; }
.service-card-cta:hover{ transform:none; box-shadow:none; }

/* ---------------- About ---------------- */
.about-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:3.5rem; align-items:start; }
.about-stats{ display:flex; gap:2.8rem; margin:1.8rem 0; }
.about-stats .stat{ position:relative; }
.about-stats .stat::before{ content:""; display:block; width:24px; height:2px; background:var(--gold); margin-bottom:.9rem; }
.about-stats .stat-num{ font-family:var(--font-mono); font-size:2.1rem; color:var(--sage-deep); }
.about-stats .stat-label{ font-size:.85rem; color:var(--slate); }

/* ---------------- CTA banner ---------------- */
.cta-banner{
  background:var(--sage-deep); color:#fff; text-align:center; border-radius:10px;
  padding:3.5rem 2rem; margin:0 auto;
  position:relative; overflow:hidden;
}
.cta-banner::before{
  content:""; position:absolute; bottom:-100px; left:-70px; width:280px; height:280px;
  border-radius:50%; border:44px solid rgba(255,255,255,.1);
}
.cta-banner::after{
  content:""; position:absolute; top:-60px; right:-60px; width:160px; height:160px;
  border-radius:50%; border:1px solid rgba(255,255,255,.18);
}
.cta-banner > *{ position:relative; }
.cta-banner h2{ color:#fff; }
.cta-banner p{ color:#e4ead2; max-width:52ch; margin:0 auto 1.6rem; }

/* ---------------- Testimonials ---------------- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.testi-card{
  background:var(--paper); border:1px solid var(--line); border-top:3px solid var(--gold); border-radius:8px; padding:1.9rem;
  display:flex; flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover{ transform:translateY(-5px); box-shadow:0 28px 46px -30px rgba(23,29,22,.32); }
.testi-card .quote-mark{ font-family:var(--font-display); font-size:3.4rem; font-weight:600; color:var(--gold); line-height:.6; margin-bottom:.5rem; display:block; }
.testi-card h3{ font-size:1.05rem; margin-bottom:.7rem; }
.testi-card p{ font-size:.9rem; flex:1; }
.testi-name{ font-weight:600; font-size:.88rem; margin-top:1rem; }
.testi-role{ font-family:var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--slate-60); }

/* ---------------- FAQ ---------------- */
.faq-list{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  padding:1.4rem 0; font-family:var(--font-display); font-size:1.05rem; color:var(--ink);
  transition:color .2s ease, padding-left .2s ease;
}
.faq-q:hover{ color:var(--sage-deep); padding-left:.3rem; }
.faq-q .plus{ font-family:var(--font-mono); font-size:1.1rem; color:var(--gold); flex:none; margin-left:1rem; transition:transform .25s ease; }
.faq-item.open .faq-q{ color:var(--sage-deep); }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a-inner{ padding-bottom:1.4rem; color:var(--slate); font-size:.94rem; max-width:70ch; }

/* ---------------- Footer ---------------- */
.site-footer{ background:var(--ink); color:#cfcebd; padding:3.6rem 0 2rem; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:2.5rem; margin-bottom:2.5rem; }
.footer-grid h4{ color:#fff; font-family:var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:1.1rem; }
.footer-grid a{ text-decoration:none; color:#cfcebd; transition:color .15s ease; }
.footer-grid a:hover{ color:var(--gold-pale); }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.65rem; font-size:.9rem; }
.footer-brand img{ height:28px; margin-bottom:1rem; }
.footer-brand p{ color:#9c9b89; font-size:.88rem; max-width:32ch; }
.footer-bottom{
  border-top:1px solid var(--ink-line); padding-top:1.6rem;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem;
  font-size:.82rem; color:#9c9b89;
}
.footer-bottom .powered{ display:flex; align-items:center; gap:.5em; }
.footer-bottom .powered img{ height:16px; }

/* ---------------- Cookie banner ---------------- */
.cookie-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:200;
  background:var(--ink); color:#e7e6da;
  border-top:1px solid var(--ink-line);
  padding:1.1rem 28px;
  display:none; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap;
}
.cookie-bar.show{ display:flex; }
.cookie-bar p{ margin:0; font-size:.85rem; color:#cfcebd; max-width:70ch; }
.cookie-bar a{ color:var(--gold-pale); text-decoration:underline; }
.cookie-actions{ display:flex; gap:.7rem; flex:none; }

/* ---------------- Responsive ---------------- */
@media (max-width:960px){
  .hero .container{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .split-feature{ grid-template-columns:1fr; }
  .portrait-frame{ margin:0 auto 1rem; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .testi-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .ledger{ grid-template-columns:1fr; }
  .ledger-item{ border-left:none; border-top:1px solid var(--line); }
  .ledger-item:first-child{ border-top:none; }
  .services-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .section{ padding:3.4rem 0; }
}
