/* =========================================================
   ALMEIDA & TORRES — DESIGN TOKENS
   ========================================================= */
:root{
  --white:      #FFFFFF;
  --paper:      #F7F6F3;
  --black:      #0B0B0C;
  --graphite:   #383B40;
  --graphite-60: rgba(56,59,64,0.6);
  --navy:       #0C1E33;
  --navy-2:     #10263F;
  --gold:       #9C7A3C;
  --gold-soft:  rgba(156,122,60,0.35);
  --gold-faint: rgba(156,122,60,0.14);
  --line:       rgba(11,11,12,0.10);
  --line-inv:   rgba(255,255,255,0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(24px, 5vw, 80px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

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

body{
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; }

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

::selection{ background: var(--gold-faint); color: var(--black); }

:focus-visible{
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
}

/* Faint paper grain over entire site — extremely subtle */
.grain-overlay{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.025; mix-blend-mode: multiply;
  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");
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--black);
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 18px;
}

.section-title{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  margin-bottom: 24px;
  max-width: 14ch;
}

.lead{
  font-size: 18px;
  line-height: 1.7;
  color: var(--graphite);
  max-width: 56ch;
  margin: 0 0 20px;
}

p{ margin: 0 0 16px; color: var(--graphite); }
p:last-child{ margin-bottom: 0; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled{
  border-bottom-color: var(--line);
}

.header-inner{
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--black);
}
.brand-mark{ color: var(--navy); display: inline-flex; }

.main-nav{ display: flex; align-items: center; gap: 40px; }
.main-nav a{
  font-size: 14px;
  color: var(--graphite);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.main-nav a:not(.nav-cta)::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--gold);
  transition: right 0.35s var(--ease);
}
.main-nav a:not(.nav-cta):hover{ color: var(--black); }
.main-nav a:not(.nav-cta):hover::after{ right: 0; }

.nav-cta{
  border: 1px solid var(--black);
  padding: 9px 20px !important;
  border-radius: 1px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.nav-cta:hover{ background: var(--black); color: var(--white); }

.menu-toggle{
  display: none;
  width: 32px; height: 22px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: space-between;
  padding: 0;
}
.menu-toggle span{
  display: block; height: 1px; width: 100%; background: var(--black);
}

.mobile-nav{
  position: fixed; top: 84px; left: 0; right: 0; z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-nav.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a{
  padding: 14px 0; font-size: 15px; color: var(--graphite);
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--white);
  overflow: hidden;
  padding-top: 84px;
}

.hero-facade{
  position: absolute; inset: 0;
  color: var(--line);
  opacity: 0.9;
}
.facade-svg{ width: 100%; height: 100%; }
.facade-lines line{
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s var(--ease) forwards;
  animation-delay: 0.2s;
}
.facade-lines line:nth-child(2){ animation-delay: 0.35s; }
.facade-lines line:nth-child(3){ animation-delay: 0.5s; }
.facade-lines line:nth-child(4){ animation-delay: 0.65s; }
.facade-lines line:nth-child(5){ animation-delay: 0.8s; }
.facade-lines line:nth-child(6){ animation-delay: 0.95s; }
.facade-lines line:nth-child(7){ animation-delay: 1.1s; }
.facade-lines line:nth-child(8){ animation-delay: 0.1s; }
.facade-lines line:nth-child(9){ animation-delay: 1.3s; }

@keyframes draw{ to{ stroke-dashoffset: 0; } }

.hero-inner{ position: relative; z-index: 2; padding-top: 40px; padding-bottom: 60px; }

.hero-title{
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 28px;
}

.hero-sub{
  font-size: 18px;
  color: var(--graphite);
  max-width: 46ch;
  margin-bottom: 40px;
}

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

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 1px;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover{ background: var(--black); border-color: var(--black); }

.btn-ghost{
  border-color: var(--graphite-60);
  color: var(--black);
}
.btn-ghost:hover{ border-color: var(--black); background: var(--paper); }

.hero-scroll-cue{
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-cue span{
  display: block; width: 1px; height: 46px; background: var(--line);
  position: relative; overflow: hidden;
}
.hero-scroll-cue span::before{
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue{
  0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; }
}

/* =========================================================
   SECTIONS — shared layout
   ========================================================= */
.section{
  padding: clamp(72px, 11vw, 140px) 0;
  background: var(--white);
  position: relative;
}
.section-dark{ background: var(--paper); }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy .section-title,
.section-navy h2, .section-navy h3{ color: var(--white); }
.section-navy p{ color: rgba(255,255,255,0.72); }
.section-navy .eyebrow{ color: var(--gold); }

.section-grid{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gutter);
}
.section-label-col{ padding-top: 6px; }
.section-content-col{ max-width: 760px; }

/* =========================================================
   QUEM SOMOS — stats
   ========================================================= */
.stat-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat{ display: flex; flex-direction: column; gap: 6px; }
.stat-number{
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  color: var(--navy);
}
.stat-label{
  font-size: 13px;
  color: var(--graphite);
  letter-spacing: 0.01em;
}

/* =========================================================
   ÁREAS — table of contents style
   ========================================================= */
.toc{ margin-top: 56px; border-top: 1px solid var(--line-inv); }
.section-dark .toc{ border-top-color: var(--line); }

.toc-row{
  display: flex; align-items: baseline; gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
  cursor: default;
}
.toc-row:hover{ padding-left: 14px; background: rgba(156,122,60,0.05); }

.toc-name{
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  white-space: nowrap;
  color: var(--black);
}
.toc-dots{
  flex: 1;
  border-bottom: 1px dotted var(--graphite-60);
  transform: translateY(-6px);
}
.toc-page{
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   EQUIPE
   ========================================================= */
.team-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.team-card{ display: flex; flex-direction: column; }
.team-photo{
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.team-photo::after{
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(156,122,60,0.3);
  margin: 10px;
}
.team-photo span{
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-soft);
  letter-spacing: 0.05em;
}
.team-name{ font-size: 19px; margin-bottom: 4px; }
.team-role{
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-weight: 500;
}
.team-bio{ font-size: 14.5px; line-height: 1.65; color: var(--graphite); }

/* =========================================================
   CREDIBILIDADE — timeline
   ========================================================= */
.cred-list{ margin-top: 40px; }
.cred-item{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line-inv);
}
.cred-item:last-child{ border-bottom: 1px solid var(--line-inv); }
.cred-year{
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
}
.cred-item p{ margin: 0; color: rgba(255,255,255,0.75); font-size: 15.5px; }

/* =========================================================
   CONTEÚDO — article list
   ========================================================= */
.article-list{ margin-top: 40px; }
.article-item{
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s;
}
.article-item:hover{ opacity: 0.6; }
.article-meta{
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
}
.article-title{
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--black);
  max-width: 46ch;
}

/* =========================================================
   CONTATO
   ========================================================= */
.contact-form{ margin-top: 36px; display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label{ display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--graphite); }
.contact-form input,
.contact-form textarea{
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 4px;
  border: none;
  border-bottom: 1px solid var(--graphite-60);
  background: transparent;
  color: var(--black);
  resize: vertical;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus{ border-color: var(--gold); outline: none; }
.contact-form .btn{ align-self: flex-start; margin-top: 8px; }
.form-note{ font-size: 13px; color: var(--gold); min-height: 18px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-inv);
}
.brand-footer{ color: var(--white); margin-bottom: 14px; }
.brand-footer .brand-mark{ color: var(--gold); }
.footer-tagline{ font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-col h4{
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px; font-weight: 500;
}
.footer-col p{ font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,0.72); }
.footer-col a:hover{ color: var(--gold); }

.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
.footer-social{ display: flex; gap: 20px; }
.footer-social a:hover{ color: var(--gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .section-grid{ grid-template-columns: 1fr; }
  .section-label-col{ padding-top: 0; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-row{ grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 760px){
  .main-nav{ display: none; }
  .menu-toggle{ display: flex; }
  .hero-title{ font-size: clamp(30px, 8vw, 44px); }
  .toc-name{ font-size: 17px; }
  .form-row{ grid-template-columns: 1fr; }
  .cred-item{ grid-template-columns: 70px 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px){
  .team-grid{ grid-template-columns: 1fr 1fr; gap: 24px; }
  .header-inner{ height: 68px; }
  .hero{ padding-top: 68px; }
  .mobile-nav{ top: 68px; }
}
