/* ==========================================================
   Renata de Toledo · Portfólio (Site B v4)
   Tokens vindos do design system Trama (colors_and_type.css)
   ========================================================== */

@font-face {
  font-family: "Gloock";
  src: url("fonts/Gloock-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Tisa Sans Pro é a fonte de texto da marca. Copie os .ttf para /fonts
   (veja README.md); sem eles o site usa Inter Tight / fontes do sistema. */
@font-face { font-family: "Tisa Sans Pro"; src: url("fonts/TisaSansPro-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Tisa Sans Pro"; src: url("fonts/TisaSansPro-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tisa Sans Pro"; src: url("fonts/TisaSansPro-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --off-white: #f5f4f0;
  --cinza-quente: #7a7772;
  --preto: #111111;
  --verde-profundo: #4a6b5d;
  --verde-escuro: #2e4a3e;
  --areia: #e8e4db;

  /* terracota de destaque usado no site (texto/pontos e fundo do método) */
  --acento: #a14e3b;
  --acento-texto: #843f30;

  --bg: var(--off-white);
  --fg: var(--preto);
  --fg-muted: var(--cinza-quente);
  --line: var(--preto);
  --line-soft: rgba(17, 17, 17, 0.14);
  --line-inverse: rgba(245, 244, 240, 0.22);

  --font-display: "Gloock", "Playfair Display", Georgia, serif;
  --font-sans: "Tisa Sans Pro", "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.45;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: opacity 180ms;
}
a:hover { opacity: 0.55; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.dot { color: var(--acento); }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-muted);
}
.label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  line-height: 1.5; color: var(--acento-texto);
}
.link-cta {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; border-bottom: 1px solid var(--fg);
  align-self: flex-start; padding-bottom: 4px;
}
.link-cta .arrow { display: inline-block; transition: transform 320ms var(--ease); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.brand { text-decoration: none; font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.nav {
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav a { text-decoration: none; }

/* ---------- hero ---------- */
.hero { background: var(--preto); color: var(--off-white); }
.hero .wrap {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(56px, 6vw, 96px);
  display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px);
}
.hero-meta {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--off-white) 70%, transparent);
}
.hero-main { display: flex; flex-direction: column; gap: clamp(32px, 3.6vw, 48px); }
.hero-title { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.hero h1 {
  margin-left: -0.04em;
  font-size: clamp(52px, 10.9vw, 174px); line-height: 0.86; letter-spacing: -0.035em;
}
.hero h1 .dot { display: inline-block; }
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -0.01em;
}
.hero-intro {
  display: flex; flex-direction: column; gap: clamp(24px, 2.6vw, 32px);
  max-width: 680px; border-top: 1px solid var(--line-inverse);
  padding-top: clamp(24px, 2.6vw, 32px);
}
.hero-intro .copy { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.hero-intro .status {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-intro p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.6; }
.hero-intro .contract {
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5;
  color: color-mix(in srgb, var(--off-white) 80%, transparent);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font: inherit;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 28px; border: 1px solid transparent; cursor: pointer;
  transition: background 180ms, color 180ms;
}
.btn:hover { opacity: 1; }
.btn-light { background: var(--off-white); color: var(--preto); }
.btn-light:hover { background: var(--areia); }
.btn-outline { border-color: var(--off-white); color: var(--off-white); }
.btn-outline:hover { background: var(--off-white); color: var(--preto); }

/* ---------- sobre ---------- */
.sobre { background: var(--areia); }
.sobre .wrap {
  padding-block: var(--section-y);
  display: grid; gap: clamp(48px, 6vw, 112px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
.sobre .col-texto { display: flex; flex-direction: column; gap: 28px; }
.sobre h2 {
  font-size: clamp(40px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.015em;
}
.sobre .col-texto p { font-size: 19px; line-height: 1.6; max-width: 560px; }
.areas { display: flex; flex-direction: column; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.areas .head {
  padding-bottom: 16px; border-bottom: 1px solid var(--fg);
}
.areas li:not(.head) {
  display: flex; gap: 20px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  font-size: clamp(18px, 1.6vw, 22px);
}
.areas li span.n { font-weight: 500; letter-spacing: 0.06em; font-size: 13px; color: var(--acento-texto); }

/* ---------- cases ---------- */
.cases .wrap {
  padding-block: var(--section-y);
  display: flex; flex-direction: column; gap: clamp(48px, 6vw, 96px);
}
.cases-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 28px;
}
.cases-head h2 {
  margin-left: -0.03em;
  font-size: clamp(64px, 12vw, 200px); line-height: 0.88; letter-spacing: -0.03em;
}
.cases-grid {
  display: grid; gap: clamp(56px, 6vw, 96px) clamp(32px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
}
.case-card {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; gap: 18px;
}
.case-card:focus-visible { outline: 2px solid var(--acento); outline-offset: 6px; }
.case-card .thumb {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft); background: var(--areia);
}
.case-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block;
  will-change: transform; transition: filter 320ms ease;
}
.case-card .label .n { color: var(--fg-muted); margin-right: 10px; }
.case-card h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.case-card p { font-size: 17px; line-height: 1.6; max-width: 560px; }
.case-card:hover .thumb img, .case-card:focus-visible .thumb img { filter: brightness(1.07); }
.case-card:hover .arrow, .case-card:focus-visible .arrow { transform: translateX(6px); }

/* ---------- método ---------- */
.metodo { background: var(--acento); color: var(--off-white); }
.metodo .wrap {
  padding-block: var(--section-y);
  display: flex; flex-direction: column; gap: clamp(40px, 4.5vw, 72px);
}
.metodo .intro { display: flex; flex-direction: column; gap: 24px; }
.metodo .eyebrow { color: var(--off-white); }
.metodo h2 { font-size: clamp(48px, 8.6vw, 144px); line-height: 0.9; letter-spacing: -0.02em; }
.metodo .intro p { max-width: 680px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; }
.camadas {
  display: grid; gap: 32px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.camadas li {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--off-white); padding-top: 20px;
}
.camadas .n { font-weight: 500; letter-spacing: 0.06em; font-size: 13px; }
.camadas .t { font-family: var(--font-display); font-size: 34px; }
.camadas .d { font-size: 18px; line-height: 1.55; }

/* ---------- processo ---------- */
.processo { background: var(--areia); }
.processo .wrap {
  padding-block: var(--section-y);
  display: grid; gap: clamp(48px, 6vw, 112px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.processo .col-texto { display: flex; flex-direction: column; gap: 24px; }
.processo h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.015em; }
.processo .col-texto p { font-size: 18px; line-height: 1.6; max-width: 480px; }
.etapas {
  display: grid; gap: 0 40px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.etapas li {
  padding: 20px 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.etapas .t { font-weight: 500; letter-spacing: 0.06em; font-size: 13px; color: var(--acento-texto); }
.etapas .d { font-size: 17px; line-height: 1.5; }

/* ---------- contato ---------- */
.contato { background: var(--verde-profundo); color: var(--off-white); }
.contato .wrap {
  padding-block: var(--section-y);
  display: grid; gap: clamp(48px, 6vw, 112px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.contato .col-texto { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.contato .col-texto > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.contato .eyebrow, .contato .muted { color: color-mix(in srgb, var(--off-white) 70%, transparent); }
.contato h2 { font-size: clamp(56px, 8vw, 128px); line-height: 0.95; letter-spacing: -0.02em; }
.contato .col-texto p { max-width: 460px; font-size: 18px; line-height: 1.6; }
.contato .links { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.contato .links a { align-self: flex-start; }

.form { display: flex; flex-direction: column; gap: 28px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form label span {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--off-white) 70%, transparent);
}
.form input, .form textarea {
  font: inherit; font-size: 18px; color: var(--off-white);
  background: transparent; border: 0; border-bottom: 1px solid var(--off-white);
  padding: 10px 0; outline-offset: 4px; border-radius: 0;
}
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; padding: 18px 32px; }
.form .btn:hover { background: var(--areia); }
.sent {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--off-white); padding-top: 28px;
}
.sent .t { font-family: var(--font-display); font-size: 44px; line-height: 1.05; }
.sent .d { font-size: 18px; line-height: 1.6; }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--verde-escuro);
  color: color-mix(in srgb, var(--off-white) 60%, transparent);
  border-top: 1px solid var(--line-inverse);
}
.site-footer .wrap {
  padding-block: 28px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 14px;
}

/* ---------- whatsapp ---------- */
.whats {
  position: fixed; right: 24px; bottom: 24px; z-index: 20;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--preto); color: var(--off-white); padding: 14px 20px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 180ms;
}
.whats:hover { background: var(--verde-profundo); opacity: 1; }

/* ---------- modal de case ---------- */
.modal {
  position: fixed; inset: 0; z-index: 40; background: rgba(17, 17, 17, 0.55);
  display: flex; justify-content: center; align-items: flex-start; overflow-y: auto;
  padding: clamp(0px, 4vw, 56px) clamp(0px, 3vw, 40px);
}
.modal-panel {
  background: var(--bg); color: var(--fg); width: 100%; max-width: 920px;
  padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px;
  min-height: min-content;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  border-bottom: 1px solid var(--line); padding-bottom: 24px;
}
.modal-head > div { display: flex; flex-direction: column; gap: 10px; }
.modal-head h3 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; }
.modal-close, .modal-nav button {
  all: unset; cursor: pointer; font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.modal-close { border: 1px solid var(--fg); padding: 10px 14px; flex: none; transition: background 180ms, color 180ms; }
.modal-close:hover { background: var(--fg); color: var(--bg); }
.modal-close:focus-visible, .modal-nav button:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.modal-nav button:hover { opacity: 0.55; }
.modal figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.modal figure img {
  width: 100%; display: block; border: 1px solid var(--line-soft);
  max-height: 460px; object-fit: cover; object-position: top; background: var(--areia);
}
.modal figcaption { font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.modal-grid {
  display: grid; gap: 32px 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.modal-grid > div { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.modal-grid p { font-size: 17px; line-height: 1.6; }
.modal-grid ul { margin: 0; padding: 0; list-style: none; }
.modal-grid li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; line-height: 1.45; }
.modal-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 20px;
}

/* ---------- movimento ---------- */
.js [data-reveal], .js [data-stagger] > * {
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.js .pre-reveal { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- formulário: honeypot e status ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 15px; line-height: 1.5; margin: 0; min-height: 1.5em; }
.form-status:empty { display: none; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.sent:focus { outline: none; }
