/* =========================================================
   Trail Line Comunicação e Marketing
   Cores, fontes e espaçamentos da identidade da agência
   ========================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0F0E0C;
  --surface: #1A1814;
  --ink: #F4F0E6;
  --muted: #B9B1A0;
  --gold: #E2C75C;
  --gold-soft: #EBD57E;
  --gold-deep: #7A6420;
  --line: #2E2A22;
  --line-light: #E2DACA;
  --muted-light: #4F4A3E;

  --font-display: "Neometric", "Outfit", system-ui, sans-serif;
  --font-text: "Nexa", "Montserrat", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 150px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-sm { min-height: 42px; padding: 10px 20px; font-size: .875rem; }

.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost { border-color: rgba(244, 240, 230, .28); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark { background: var(--black); color: var(--ink); }
.btn-dark:hover { background: #2A261E; }

.btn-outline-dark { border-color: rgba(15, 14, 12, .5); color: var(--black); }
.btn-outline-dark:hover { border-color: var(--black); background: rgba(15, 14, 12, .06); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 14, 12, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}
.site-nav a:not(.btn):hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
}

.hero-place {
  margin-bottom: 20px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.br-wide { display: none; }

.hero-bottom {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

.hero-lead {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
}

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

@media (min-width: 1000px) {
  .hero-title { max-width: none; }
  .br-wide { display: inline; }
  .hero-bottom {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 48px;
  }
}

/* A linha: o caminho do cliente */

.trail {
  --band: calc(100vw * 170 / 1200);
  position: relative;
  height: calc(var(--band) + 100px);
  margin-top: clamp(32px, 4vw, 56px);
}

.trail-svg {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  overflow: visible;
}

.trail-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.trail-node {
  position: absolute;
  left: var(--x);
  top: calc(var(--band) * var(--y));
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--gold);
}
.trail-step-end .trail-node {
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(226, 199, 92, .16);
}

.trail-label {
  position: absolute;
  left: var(--x);
  top: calc(var(--band) + 8px);
  width: 15em;
  transform: translateX(-50%);
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}
.trail-label strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
}

/* Animação de entrada: a linha se desenha uma vez, ao carregar,
   e cada ponto aparece quando a linha chega nele (--d no HTML) */
.trail-path {
  stroke-dasharray: 1;
  animation: draw 1.8s linear .25s both;
}
.trail-node { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) var(--d, 1s) both; }
.trail-label { animation: appear .6s ease var(--d, 1s) both; }

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes appear {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Seções ---------- */

.section { padding: var(--section-y) 0; }

.section-light { background: var(--ink); color: var(--black); }
.section-surface { background: var(--surface); }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.section-lead {
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--muted);
}
.section-light .section-lead { color: var(--muted-light); }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 40px;
  }
}

/* ---------- Serviços ---------- */

.pillars { position: relative; }

/* A mesma linha dourada continua ligando os três momentos */
.pillars::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--gold) 85%, rgba(226, 199, 92, 0));
}

.pillar {
  display: grid;
  gap: 8px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.pillar:last-child { padding-bottom: 0; }

.pillar-title {
  position: relative;
  padding-left: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--gold);
}

.pillar-node {
  position: absolute;
  left: 0;
  top: .42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--gold);
}
.pillar-node-end {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(226, 199, 92, .16);
}

.service-list { padding-left: 40px; }

.service {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 16px; }

.service h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
}

.service p { max-width: 52ch; color: var(--muted); }

@media (min-width: 900px) {
  .pillar {
    grid-template-columns: minmax(240px, 1fr) 2fr;
    gap: 40px;
  }
  .pillar-title {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
  }
  .service-list { padding-left: 0; }
  .service {
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: baseline;
  }
  .service:first-child { padding-top: 0; }
}

/* ---------- Como funciona ---------- */

.steps {
  display: grid;
  gap: 40px 28px;
  counter-reset: none;
}

.step {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--black);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--gold-deep);
}

.step h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}

.step p { color: var(--muted-light); font-size: .95rem; }

@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Segmentos ---------- */

.segments { display: grid; gap: 48px; }

.segments-head { display: grid; gap: 20px; align-content: start; }

.segment {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.segment:last-child { border-bottom: 1px solid var(--line); }

.segment dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--gold);
}
.segment dd { max-width: 56ch; color: var(--muted); }

@media (min-width: 900px) {
  .segments { grid-template-columns: 1fr 1.35fr; gap: 72px; }
  .segments-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .segment { grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: baseline; }
}

/* ---------- Rótulo pequeno acima dos títulos ---------- */

.eyebrow {
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-light .eyebrow { color: var(--gold-deep); }

/* ---------- Marcas (carrossel de logos) ---------- */

.brands { padding: 8px 0 clamp(64px, 8vw, 104px); }

.brands-title {
  margin-bottom: 28px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.marquees {
  display: grid;
  gap: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; }

.marquees:hover .marquee-track,
.marquees:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

.brand-tile {
  flex: none;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  width: 136px;
}
.brand-tile img,
.brand-mark {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.3rem;
  letter-spacing: .04em;
  color: var(--gold);
}
.brand-tile > span:last-child {
  font-size: .78rem;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 600px) {
  .brand-tile { width: 112px; }
  .brand-tile img, .brand-mark { width: 96px; height: 96px; border-radius: 14px; }
  .brand-mark { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquees { -webkit-mask-image: none; mask-image: none; }
  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding: 0 var(--gutter);
    animation: none;
  }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Sobre ---------- */

.about { display: grid; gap: clamp(56px, 8vw, 96px); }

.about-intro { display: grid; gap: 24px; }
.about-copy { display: grid; gap: 16px; max-width: 56ch; color: var(--muted); font-size: 1.05rem; }
.about-lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
}

.founder { display: grid; gap: 40px; align-items: start; }

.founder-photo { margin: 0; }
.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 20px;
}

.founder-text { display: grid; gap: 16px; max-width: 60ch; color: var(--muted); }
.founder-text .eyebrow { margin-bottom: 0; }
.founder-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.founder-role { margin-top: -6px; font-weight: 500; color: var(--gold); }

.credentials {
  display: grid;
  gap: 16px 24px;
  margin-top: 12px;
}
.credentials li {
  display: grid;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.credentials strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
}

@media (min-width: 640px) {
  .credentials { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .about-intro { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .founder { grid-template-columns: minmax(280px, 5fr) 7fr; gap: 64px; }
  .founder-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Portfólio ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 500 .9rem var(--font-text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.filter:hover { border-color: var(--gold); color: var(--ink); }
.filter.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
}
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

.work[hidden] { display: none; }

.work-btn {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.work-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.work-btn:hover .work-media img { transform: scale(1.04); }

.work-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(15, 14, 12, .72);
  border: 1px solid rgba(244, 240, 230, .4);
}
.work-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 21px;
  border-left: 16px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.work-info { display: grid; gap: 3px; }
.work-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.work-client {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.25;
}
.work-count { font-size: .85rem; color: var(--muted); }

/* Galeria (lightbox) */

body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  background: rgba(10, 9, 8, .96);
}
.lightbox[hidden] { display: none; }

.lb-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px var(--gutter);
}
.lb-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-count { flex: none; font-size: .9rem; color: var(--muted); }
.lb-close { flex: none; }

.lb-close,
.lb-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 240, 230, .25);
  border-radius: 50%;
  background: rgba(15, 14, 12, .7);
  color: var(--ink);
  cursor: pointer;
}
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold); color: var(--gold); }

.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 72px 28px;
}
.lb-media {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  border-radius: 10px;
  object-fit: contain;
  background: #000;
}
.lb-error { color: var(--muted); }

.lb-nav {
  position: absolute;
  top: 50%;
  margin-top: -24px;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-nav[hidden] { display: none; }

@media (max-width: 600px) {
  .lb-stage { padding: 0 8px 88px; }
  .lb-nav { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-media { max-height: calc(100dvh - 170px); }
}

/* ---------- Depoimentos ---------- */

.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.quote {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 36px 32px 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.quote blockquote { margin: 0; position: relative; }
.quote blockquote::before {
  content: "\201C";
  display: block;
  height: .5em;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--gold);
}
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .88rem;
  color: var(--muted);
}
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: grid; }
.quote figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Clientes ---------- */

.client-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }

.client-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s ease, background-color .2s ease;
}
a.client-card:hover { border-color: var(--gold); background: var(--surface); }

.client-card img,
.client-mark {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}
.client-mark {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold);
}

.client-card > span { display: grid; gap: 1px; min-width: 0; }
.client-card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.25;
}
.client-card span span { font-size: .85rem; color: var(--muted); }
.client-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: .82rem;
  color: var(--gold);
}

.past { margin-top: clamp(56px, 7vw, 88px); }
.past-title {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 24px 16px;
}
.past-grid li { display: grid; justify-items: center; gap: 10px; text-align: center; }
.past-grid img,
.past-grid .past-mark { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.past-grid .past-mark {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold);
}
.past-grid span { font-size: .8rem; line-height: 1.35; color: var(--muted); }

/* ---------- Contato ---------- */

.section-cta { padding-top: 0; background: var(--surface); }

.cta {
  padding: clamp(40px, 7vw, 96px) clamp(28px, 6vw, 88px);
  border-radius: 20px;
  background: var(--gold);
  color: var(--black);
}

.cta-eyebrow {
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #4A3F12;
}

.cta-title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.cta-text {
  max-width: 48ch;
  margin-top: 24px;
  font-size: 1.1rem;
  color: #3A3216;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.cta :focus-visible { outline-color: var(--black); }

/* ---------- Rodapé ---------- */

.site-footer {
  padding: 40px 0 112px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 24px;
}
.footer-logo { width: auto; height: 64px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--muted); }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; }
  .footer-links { justify-content: flex-end; }
  .footer-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
}
/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #1EBE5A; transform: translateY(-2px); }
.wa-float:focus-visible { outline-color: #fff; }

/* Rótulo que aparece ao passar o mouse (no celular fica só o ícone) */
.wa-float-text {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--black);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.wa-float:hover .wa-float-text,
.wa-float:focus-visible .wa-float-text {
  opacity: 1;
  transform: translate(0, -50%);
}

body.lb-open .wa-float { display: none; }

@media (max-width: 720px), (hover: none) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float-text {
    width: 1px; height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ---------- Menu no celular ---------- */

@media (max-width: 880px) {
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .site-nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--ink);
  }
  .site-nav .btn { margin-top: 20px; min-height: 52px; font-size: .95rem; }
}

/* ---------- A linha no celular: vira vertical ---------- */

@media (max-width: 720px) {
  .trail { height: auto; }
  .trail-svg { display: none; }

  .trail-steps {
    position: relative;
    display: grid;
    gap: 32px;
    padding-left: calc(var(--gutter) + 40px);
    padding-right: var(--gutter);
  }
  .trail-step { position: relative; }
  /* trecho da linha que liga um ponto ao próximo */
  .trail-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: -34px;
    top: calc(.55em + 7px);
    height: calc(100% + 32px);
    width: 2px;
    background: var(--gold);
  }

  .trail-node {
    left: -40px;
    top: .55em;
    margin: 0;
  }
  .trail-step-end .trail-node { left: -44px; top: .3em; margin: 0; }

  .trail-label {
    position: static;
    width: auto;
    transform: none;
    text-align: left;
  }

  .trail-node,
  .trail-label { animation: none; }
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
}

/* ---------- Menos movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
