/* Freitas & Zanatta — v2 (movimento inspirado em veritas-partners.co.uk) */

:root {
  --wine: #5E1620;
  --wine-deep: #3C0000;   /* fundo exato das logos */
  --wine-night: #210204;  /* fundo escuro do topo e da faixa "por que nós" */
  --wine-soft: #7A2731;
  --gold: #C9A24B;
  --gold-light: #E6C781;
  --gold-deep: #9C6B2E;
  --cream: #F3EDE3;
  --ink: #1E1A1A;
  --ink-soft: #5B504C;
  --surface: #FFFFFF;
  --surface-muted: #F7F3EE;
  --border: #E6DCCF;
  --line-dark: rgba(243, 237, 227, .16);
  --cta-green: #25D366;
  --cta-green-dark: #1EBE5A;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --font-display: "Libre Caslon Condensed", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(36px, 5vw, 68px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0; }
em { font-style: italic; color: var(--gold); }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; overflow: clip; }
.section--muted { background: var(--surface-muted); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--wine-night); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

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

.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 18px; font-style: italic; color: var(--gold-deep);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.kicker--light { color: var(--gold-light); }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), translate .35s var(--ease-out);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn::before { /* preenchimento que sobe por baixo no hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before, .btn:active::before { transform: translateY(0); }
.btn--whats { background: var(--cta-green); color: #06331A; box-shadow: 0 10px 30px -12px rgba(37, 211, 102, .7); }
.btn--whats::before { background: var(--cta-green-dark); }
.btn--whats:hover, .btn--whats:focus-visible { border-color: var(--gold); }
.btn--line-light { color: var(--cream); border-color: rgba(243, 237, 227, .45); }
.btn--line-light::before { background: var(--cream); }
.btn--line-light:hover, .btn--line-light:focus-visible, .btn--line-light:active { color: var(--wine-deep); border-color: var(--gold); }
.btn > * { pointer-events: none; }

/* sublinhado que se desenha */
.u-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.u-link:hover, .u-link:focus-visible { background-position: 0 100%; background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { position: relative; display: block; height: 62px; aspect-ratio: 520 / 231; flex: none; }
.brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s; }
.brand__logo--escuro { opacity: 0; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative; color: var(--cream); text-decoration: none; font-size: 16px; padding: 6px 0;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

.site-header.is-solid { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.site-header.is-solid .brand__logo--claro { opacity: 0; }
.site-header.is-solid .brand__logo--escuro { opacity: 1; }
.site-header.is-solid .nav__link { color: var(--ink); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(243, 237, 227, .4); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav-toggle span:first-child { top: 18px; } .nav-toggle span:last-child { top: 26px; }
.site-header.is-solid .nav-toggle { border-color: var(--border); }
.site-header.is-solid .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* entrada da logo: aparece uma vez e recebe um brilho dourado de tempos em tempos */
.brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .75) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  -webkit-mask: url(imagens/logo-header-claro.png) center / contain no-repeat; mask: url(imagens/logo-header-claro.png) center / contain no-repeat;
  animation: brilho 7s 1.6s infinite;
}
@keyframes brilho { 0%, 70% { background-position: 150% 0; } 85%, 100% { background-position: -60% 0; } }
.brand { animation: logo-in 1.1s .1s var(--ease-out) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  background: radial-gradient(120% 80% at 80% 0%, #4A0A10 0%, var(--wine-deep) 35%, var(--wine-night) 100%);
  color: var(--cream);
  padding: 150px 0 clamp(60px, 8vw, 110px);
}
.hero__glow, .why__glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 75, .20), transparent 70%);
  top: -20%; left: -15%; pointer-events: none; filter: blur(10px);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(18vw, 12vh) scale(1.15); } }
.hero .container { position: relative; }
.hero__top {
  display: grid; grid-template-columns: 1.45fr 1fr; grid-template-areas: "k k" "t s"; column-gap: clamp(30px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.hero__top .kicker { grid-area: k; margin-bottom: 28px; }
.hero__title { grid-area: t; font-size: clamp(46px, 6.6vw, 98px); line-height: 1.0; }
.hero__title em { color: var(--gold-light); }
.hero__side { grid-area: s; display: grid; gap: 30px; padding-bottom: 10px; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: rgba(243, 237, 227, .82); max-width: 440px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* o "&" da marca: a peça tipográfica do topo */
.hero__amp {
  position: absolute; right: -2vw; top: 40px; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(320px, 46vw, 760px); line-height: .8;
}
.hero__amp > span {
  display: block;
  background: linear-gradient(170deg, rgba(230, 199, 129, .30), rgba(156, 107, 46, .06) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: amp-in 2.2s .2s var(--ease-out) both;
}
@keyframes amp-in { from { opacity: 0; transform: translateY(12%) rotate(-6deg); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* foto inteira (sem corte): os rostos ficam sempre livres */
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1599 / 794; max-width: 1600px; margin: 0 auto; }
.hero__media img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Números ---------- */
.stats { background: var(--wine-night); color: var(--cream); border-top: 1px solid var(--line-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(30px, 4vw, 50px) 0; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat__num { font-family: var(--font-display); font-size: clamp(48px, 6vw, 80px); line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: 17px; font-style: italic; color: rgba(243, 237, 227, .72); }

/* ---------- Faixa correndo ---------- */
.marquee { background: var(--gold); color: var(--wine-night); overflow: hidden; padding: 18px 0; border-block: 1px solid var(--gold-deep); }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); white-space: nowrap; }
.marquee i { font-style: normal; font-size: 16px; opacity: .6; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Especialidades ---------- */
.spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.spec__head { position: sticky; top: 120px; display: grid; gap: 24px; justify-items: start; }
.spec__head p { color: var(--ink-soft); max-width: 420px; }
.spec__list { border-top: 1px solid var(--border); }
.area { position: relative; border-bottom: 1px solid var(--border); }
.area::before { /* linha dourada que se desenha quando aberta */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.area[open]::before { transform: scaleX(1); }
.area summary {
  display: grid; grid-template-columns: 48px 1fr 46px; gap: 22px; align-items: center;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.area summary::-webkit-details-marker { display: none; }
.area__icon { width: 48px; height: 48px; transition: transform .5s var(--ease-out); }
.area__title b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; transition: color .3s, transform .5s var(--ease-out); }
.area__title small { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.area__ico {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--ink); transition: transform .5s var(--ease-out), background-color .4s, color .4s, border-color .4s;
}
.area__ico svg { width: 18px; height: 18px; }
.area summary:hover .area__title b, .area summary:focus-visible .area__title b { color: var(--wine); transform: translateX(6px); }
.area summary:hover .area__icon, .area summary:focus-visible .area__icon { transform: scale(1.12) rotate(-4deg); }
.area summary:hover .area__ico, .area summary:focus-visible .area__ico { border-color: var(--gold); }
.area[open] .area__ico { transform: rotate(135deg); background: var(--wine-deep); color: var(--gold-light); border-color: var(--gold); }
.area__body { overflow: hidden; }
.area__body ul { columns: 2; column-gap: 30px; padding: 0 0 30px calc(48px + 22px); }
.area__body li { break-inside: avoid; position: relative; padding: 4px 0 4px 18px; font-size: 16px; color: var(--ink-soft); }
.area__body li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 1px; background: var(--gold); }

/* ---------- Por que nós (faixa escura) ---------- */
.why { position: relative; background: var(--wine-night); color: var(--cream); padding: clamp(80px, 11vw, 150px) 0; overflow: clip; }
.why__glow { left: auto; right: -20%; top: 30%; }
.why .container { position: relative; }
.why__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__text { display: grid; gap: 26px; }
.why__text h2 { font-size: clamp(36px, 4.4vw, 60px); }
.why__text em { color: var(--gold-light); }
.why__text p { color: rgba(243, 237, 227, .78); max-width: 480px; }
.why__head { margin: clamp(90px, 12vw, 160px) 0 50px; display: grid; gap: 20px; max-width: 760px; }

/* cartões que empilham ao rolar (computador) */
.stack { display: grid; gap: 22px; }
.stack__card {
  position: sticky; top: calc(110px + var(--i, 0) * 26px);
  display: grid; align-content: end;
  min-height: 280px; padding: clamp(30px, 4vw, 56px);
  border-radius: var(--radius); border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, #3F0A0F 0%, #2A0306 100%);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .7);
  transition: border-color .4s;
  transform-origin: 50% 0;
}
.stack__card:hover { border-color: var(--gold); }
.stack__card::before { content: ""; width: 44px; height: 1px; background: var(--gold); margin-bottom: 26px; }
.stack__card h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 14px; }
.stack__card p { color: rgba(243, 237, 227, .78); max-width: 560px; }

/* ---------- Equipe ---------- */
.section-head { display: grid; gap: 20px; justify-items: start; margin-bottom: clamp(44px, 6vw, 70px); max-width: 760px; }
.section-head p { color: var(--ink-soft); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 34px); align-items: start; }
.member { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .4s, box-shadow .5s var(--ease-out), transform .6s var(--ease-out); }
.member:hover, .member:focus-within { border-color: var(--gold); box-shadow: 0 30px 60px -36px rgba(60, 0, 0, .45); }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--wine-deep); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform-origin: 50% 0; transition: transform 1.2s var(--ease-out); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__body { padding: 26px 26px 22px; display: grid; gap: 12px; }
.member__role { font-size: 15px; font-style: italic; color: var(--gold-deep); }
.member h3 { font-size: clamp(25px, 2.2vw, 30px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-muted); color: var(--wine); }
.member__more { border-top: 1px solid var(--border); margin-top: 6px; }
.member__more summary { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; color: var(--wine); }
.member__more summary::-webkit-details-marker { display: none; }
.member__more .area__ico { width: 36px; height: 36px; }
.member__more summary:hover .area__ico, .member__more summary:focus-visible .area__ico { border-color: var(--gold); }
.member__more[open] .area__ico { transform: rotate(135deg); background: var(--wine-deep); color: var(--gold-light); border-color: var(--gold); }
.member__more ul { padding: 14px 0 4px; display: grid; gap: 8px; }
.member__more li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.member__more li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--gold); }

/* ---------- Escritório ---------- */
.office { position: relative; color: var(--cream); overflow: clip; padding: clamp(110px, 14vw, 200px) 0; background: var(--wine-night); }
.office__bg { position: absolute; inset: -12% 0; }
.office__bg img { width: 100%; height: 100%; object-fit: cover; }
.office::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(33, 2, 4, .94) 0%, rgba(33, 2, 4, .78) 55%, rgba(33, 2, 4, .45) 100%); }
.office__inner { position: relative; z-index: 2; display: grid; gap: 24px; justify-items: start; }
.office h2 { font-size: clamp(32px, 4.2vw, 56px); max-width: 860px; }
.office p { max-width: 560px; color: rgba(243, 237, 227, .82); }
.office__addr { display: flex; gap: 12px; align-items: flex-start; }
.office__addr svg { width: 24px; height: 24px; color: var(--gold-light); flex: none; margin-top: 3px; }
.office__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info { display: grid; gap: 22px; justify-items: start; }
.contact__info > p { color: var(--ink-soft); }
.contact-list { width: 100%; margin-top: 10px; border-top: 1px solid var(--border); }
.contact-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); position: relative; }
.contact-list__label { font-size: 16px; font-style: italic; color: var(--gold-deep); padding-top: 2px; }
.contact-list a { font-size: 19px; color: var(--ink); overflow-wrap: anywhere; }

.form-card { background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); display: grid; gap: 18px; }
.form-card h3 { font-size: clamp(28px, 3vw, 36px); }
.hint { color: var(--ink-soft); font-size: 15px; margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--gold); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .28); }
.form-err { display: none; color: #A1262F; font-size: 14px; }
.field.invalid input, .field.invalid textarea { border-color: #A1262F; }
.field.invalid .form-err { display: block; }
.form-card .btn { justify-self: start; }
.form-status { font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #1B7A43; }
.form-status.warn { color: #A1262F; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cta-green); color: #fff; border: 2px solid transparent;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35); transition: transform .4s var(--ease-out), border-color .3s;
  transform: scale(0);
}
.wa-float.is-in { transform: scale(1); }
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.08); border-color: var(--gold); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--wine-deep); color: var(--cream); padding: clamp(80px, 10vw, 130px) 0 30px; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: clamp(50px, 7vw, 90px); border-bottom: 1px solid var(--line-dark); }
.footer-cta h2 { font-size: clamp(40px, 6vw, 84px); max-width: 820px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding: 60px 0 50px; }
.footer-brand img { width: 260px; max-width: 100%; }
.footer-brand p { margin-top: 18px; color: rgba(243, 237, 227, .7); max-width: 340px; font-size: 15px; }
.footer-col h4 { font-family: var(--font-body); font-size: 16px; font-style: italic; color: var(--gold-light); margin-bottom: 16px; }
.footer-col li { padding: 4px 0; font-size: 15px; }
.footer-col a { text-decoration: none; }
.muted { color: rgba(243, 237, 227, .6); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 14px; color: rgba(243, 237, 227, .6); }
.to-top { color: var(--cream); }

/* ---------- Cursor (só mouse) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--gold); border: 1px solid transparent;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s, border-color .3s, opacity .3s;
  }
  .has-cursor .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(201, 162, 75, .12); border-color: var(--gold); }
  .has-cursor .cursor.is-hidden { opacity: 0; }
}

/* ---------- Animações de entrada ---------- */
/* títulos: palavras sobem de dentro de uma máscara */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 60ms); }
.js [data-split].in .w > span { transform: none; }

/* textos, botões e cartões sobem ~40px aparecendo */
.js [data-anim="up"] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-anim="up"].in { opacity: 1; transform: none; }

/* linhas de lista: aparecem e a borda se desenha */
.js [data-anim="line"] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-anim="line"].in { opacity: 1; transform: none; }

/* imagens abrem por recorte de dentro para fora e diminuem de 118% para 100% */
.js .img-reveal { clip-path: inset(14% 14% 14% 14% round var(--radius)); transition: clip-path 1.5s var(--ease-io); }
.js .img-reveal img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.js .img-reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .img-reveal.in img { transform: scale(1); }
.member__photo.img-reveal { --radius: 0px; }
.js .member:hover .member__photo.in img { transform: scale(1.05); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .nav .btn span { display: none; }
  .nav .btn { width: 44px; padding: 0; }
  .hero__top { grid-template-columns: 1fr; grid-template-areas: "k" "t" "s"; row-gap: 30px; }
  .spec { grid-template-columns: 1fr; }
  .spec__head { position: static; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .header-inner { height: 72px; }
  .brand { height: 48px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
    padding: 100px var(--gutter) 40px; background: var(--wine-night);
    clip-path: circle(0 at calc(100% - 40px) 36px); visibility: hidden;
    transition: clip-path .8s var(--ease-io), visibility 0s .8s;
  }
  .nav.open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path .8s var(--ease-io); }
  .nav .nav__link, .site-header.is-solid .nav .nav__link { color: var(--cream); font-family: var(--font-display); font-size: 40px; }
  .nav .btn { width: auto; padding: 0 24px; margin-top: 20px; }
  .nav .btn span { display: inline; }
  .site-header.nav-open .nav-toggle { border-color: rgba(243, 237, 227, .4); }
  .site-header.nav-open .nav-toggle span { background: var(--cream); }
  .site-header.nav-open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.nav-open .brand__logo--claro { opacity: 1; }
  .site-header.nav-open .brand__logo--escuro { opacity: 0; }
  .site-header.nav-open .brand { z-index: 2; }
  .hero { padding-top: 120px; }
  .why__intro { grid-template-columns: 1fr; }
  .why__media { aspect-ratio: 4 / 3; }
  .contact { grid-template-columns: 1fr; }
  .stack__card { position: relative; top: 0; min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .team { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
  .stat { padding: 26px 0; }
  .area summary { grid-template-columns: 1fr 40px; gap: 14px; padding: 22px 0; }
  .kicker { font-size: 16px; }
  .area__icon { display: none; }
  .area__ico { width: 40px; height: 40px; }
  .area__body ul { columns: 1; padding-left: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .office__actions .btn { width: 100%; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ---------- Movimento reduzido: tudo parado e visível ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-split] .w > span, .js [data-anim], .js .img-reveal, .js .img-reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { transform: none; }
  .has-cursor .cursor { display: none !important; }
  [data-parallax] { transform: none !important; }
}
