/* =========================================================
   Maestria Studio — site v2
   Brand system: creme / latão #AD8A3C / preto + Inter
   Zero dependências externas. Offline-first.
   ========================================================= */

:root {
  --bg: #F5F1EC;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #8A8A8A;
  --accent: #AD8A3C;
  --accent-soft: #EAE0C6;
  --line: #D9D2C8;
  --card: #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --pad-x: 80px;
  --radius: 16px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* Foco visível para navegação por teclado */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Vinheta de abertura (o "vídeo" do logo)
   Só aparece com JS (html.show-intro). Reduced motion pula.
   ========================================================= */
.intro { display: none; }

.show-intro { overflow: hidden; }
.show-intro .intro {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  cursor: pointer;
  transition: transform .65s var(--ease), opacity .65s var(--ease);
}
.intro.intro-out { transform: translateY(-100%); opacity: .4; }

.intro-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(88vw, 720px);
  padding: 40px 0;
}

.intro-simbolo {
  position: relative;
  z-index: 2;
  width: clamp(110px, 20vw, 168px);
  height: auto;
  margin-bottom: 6px;
}
.intro-simbolo .ms-main {
  stroke: #F5F1EC;
  stroke-width: 9.5;
  stroke-linecap: round;
  stroke-dasharray: 164;
  stroke-dashoffset: 164;
  animation: msDraw 1.05s var(--ease) .15s forwards;
}
.intro-simbolo .ms-tail {
  stroke: var(--accent);
  stroke-width: 9.5;
  stroke-linecap: round;
  stroke-dasharray: 23;
  stroke-dashoffset: 23;
  filter: drop-shadow(0 0 10px rgba(173,138,60,.75));
  animation: msDraw .45s var(--ease) 1.2s forwards;
}
@keyframes msDraw { to { stroke-dashoffset: 0; } }

.intro-word {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(34px, 6.6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  white-space: nowrap;
}
.iw-maestr {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: wipeIn .9s var(--ease) 1.0s forwards;
}
@keyframes wipeIn { to { clip-path: inset(0 0 0 0); } }

.iw-dot {
  display: inline-block;
  color: var(--accent);
  transform: scale(0);
  animation: dotPop .5s var(--ease) 1.7s forwards;
  text-shadow: 0 0 24px rgba(173,138,60,.9), 0 0 60px rgba(173,138,60,.5);
}
@keyframes dotPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.iw-ia {
  display: inline-block;
  color: var(--accent);
  opacity: 0;
  transform: translateY(14px);
  animation: riseIn .55s var(--ease) 1.85s forwards;
}
.iw-studio {
  display: inline-block;
  font-weight: 400;
  color: var(--accent-soft);
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn .55s var(--ease) 2.05s forwards;
}
@keyframes riseIn { to { opacity: 1; transform: none; } }

.intro-tagline {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  font-size: clamp(14px, 2vw, 17px);
  letter-spacing: .4px;
  color: rgba(234,224,198,.75);
  opacity: 0;
  animation: fadeIn .7s var(--ease) 2.45s forwards;
}
.intro-skip {
  position: absolute;
  bottom: -64px;
  left: 0; right: 0;
  text-align: center;
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(234,224,198,.4);
  opacity: 0;
  animation: fadeIn .7s var(--ease) 2.7s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.intro-spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(173,138,60,.8);
  opacity: 0;
  animation: sparkFloat 2.6s ease-in-out .6s infinite;
}
.intro-spark.s1 { left: 8%;  top: 18%; animation-delay: .5s; }
.intro-spark.s2 { left: 88%; top: 26%; animation-delay: .9s; width: 4px; height: 4px; }
.intro-spark.s3 { left: 16%; top: 78%; animation-delay: 1.2s; width: 4px; height: 4px; }
.intro-spark.s4 { left: 78%; top: 72%; animation-delay: .7s; }
.intro-spark.s5 { left: 46%; top: 8%;  animation-delay: 1.5s; width: 3px; height: 3px; }
.intro-spark.s6 { left: 60%; top: 90%; animation-delay: 1.1s; width: 3px; height: 3px; }
@keyframes sparkFloat {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  50% { opacity: .9; transform: translateY(-6px); }
}

/* ---------- Barra de progresso de leitura ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ---------- Eyebrow / títulos ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.eyebrow-ondark { color: var(--accent-soft); }

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 22px;
}
.title-ondark { color: #FFFFFF; }

.section-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 48px;
}
.lead-ondark { color: var(--accent-soft); }

.lead {
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1em;
}

.accent-text { color: var(--accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #9a7a32; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-ondark { background: transparent; color: #fff; border-color: rgba(234,224,198,.35); }
.btn-ondark:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,241,236,.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wm-simbolo { width: 27px; height: 27px; flex-shrink: 0; }
.wordmark-footer .wm-simbolo { width: 24px; height: 24px; }
.wordmark:hover { text-decoration: none; }
.wm-ia { color: var(--accent); }
.wm-studio { font-weight: 400; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-list a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
}
.nav-cta:hover { background: var(--accent); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: 8px; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(173,138,60,.16), transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 30%, rgba(234,224,198,.5), transparent 60%);
  background-size: 200% 200%;
  animation: heroDrift 22s var(--ease) infinite alternate;
  z-index: 0;
}
@keyframes heroDrift {
  from { background-position: 0% 0%, 100% 30%; }
  to   { background-position: 30% 20%, 60% 60%; }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 3; max-width: 780px; }
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero-lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-note {
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: .3px;
  font-style: italic;
}

.hero-motif {
  position: absolute;
  right: -40px; bottom: -20px;
  width: min(46vw, 460px);
  z-index: 2;
  opacity: .9;
}
.motif-notes circle { animation: noteFloat 6s ease-in-out infinite; }
.motif-notes circle:nth-child(2) { animation-delay: .6s; }
.motif-notes circle:nth-child(3) { animation-delay: 1.2s; }
.motif-notes circle:nth-child(4) { animation-delay: 1.8s; }
.motif-notes circle:nth-child(5) { animation-delay: 2.4s; }
@keyframes noteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Section base ---------- */
.section { padding: 92px 0; }
.section-alt { background: #EFE9E1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-dark {
  background: var(--ink);
  color: var(--accent-soft);
}
.section-dark .section-lead { color: var(--accent-soft); }

/* ---------- Two column (manifesto) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col p { color: var(--ink-soft); }

.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
}
.about-card::before {
  content: "";
  position: absolute; top: 0; left: 34px; right: 34px;
  height: 4px; background: var(--accent);
  border-radius: 0 0 4px 4px;
}
.about-card h3 { font-size: 26px; margin: 4px 0 2px; }
.about-role { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.about-card p { color: var(--ink-soft); font-size: 15.5px; }
.about-facts { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.about-facts li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
.fact-num {
  font-size: 22px; font-weight: 700; color: var(--accent);
  min-width: 52px; line-height: 1;
}

/* Foto do fundador (circular, anel em latão) */
.about-photo {
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  overflow: hidden;
  margin: 2px auto 20px;
  background: linear-gradient(140deg, #211D14, #1A1A1A 55%, #2A2416);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 7px rgba(173,138,60,.14);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform .5s var(--ease);
}
.about-card:hover .about-photo img { transform: scale(1.05); }
.about-photo.photo-missing img { display: none; }
.about-photo.photo-missing::after {
  content: "foto em breve";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(234,224,198,.55);
}

.about-card > .eyebrow, .about-card > h3, .about-role, .about-cred { text-align: center; }
.about-cred {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: .4px;
  margin-bottom: 18px;
}

/* ---------- Resultados / stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  border: 1px solid rgba(217,210,200,.16);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  background: rgba(245,241,236,.03);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.stat:hover { border-color: rgba(173,138,60,.55); background: rgba(173,138,60,.06); }
.stat-num {
  display: block;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(234,224,198,.8);
}
.stat-footnote {
  margin-top: 34px;
  font-size: 15px;
  color: rgba(234,224,198,.65);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  max-width: 60ch;
}

/* ---------- Metodologia / journey ---------- */
.journey {
  position: relative;
  list-style: none; padding: 0; margin: 0;
}
.journey::before {
  content: "";
  position: absolute;
  left: 20px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.6s var(--ease) .2s;
}
.journey.journey-in::before { transform: scaleY(1); }

.journey-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 30px 0 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.journey-step:last-child { border-bottom: 1px solid var(--line); }
.step-index {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  padding-left: 44px;
  position: relative;
}
.step-index::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  transition: background .3s var(--ease);
}
.section-alt .step-index::before { background: #EFE9E1; }
.journey-step.reveal-in .step-index::before { background: var(--accent); }
.step-body h3 { font-size: 23px; margin-bottom: 10px; }
.step-body p { color: var(--ink-soft); max-width: 68ch; margin: 0; }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -20px rgba(26,26,26,.35);
  border-color: var(--accent);
}
.card-icon {
  width: 30px; height: 30px;
  margin-bottom: 16px;
  transition: transform .3s var(--ease);
}
.solution-card:hover .card-icon { transform: translateY(-2px) scale(1.06); }
.card-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.solution-card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.01em; }
.solution-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- Diferenciais / tabela ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--accent-soft);
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(217,210,200,.18);
  font-size: 15px;
  vertical-align: top;
}
.compare thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.compare tbody th[scope="row"] { color: #fff; font-weight: 600; }
.compare td { color: rgba(234,224,198,.72); }
.col-highlight { color: #fff !important; font-weight: 600; }
.compare thead .col-highlight { color: var(--accent) !important; }
.compare .col-highlight {
  background: rgba(173,138,60,.14);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.compare tbody tr:last-child .col-highlight { border-bottom: 2px solid var(--accent); }
.compare thead .col-highlight { border-top: 2px solid var(--accent); }

/* ---------- Depoimentos ---------- */
.quotes .quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  margin: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.quotes .quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -20px rgba(26,26,26,.3);
}
.quote-seal {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.quote-card blockquote {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.quote-card blockquote::before { content: "\201C"; color: var(--accent); font-weight: 700; }
.quote-card blockquote::after { content: "\201D"; color: var(--accent); font-weight: 700; }
.quote-card figcaption { font-size: 14px; color: var(--ink-mute); }

/* ---------- Portfólio ---------- */
.portfolio { grid-template-columns: repeat(3, 1fr); }
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -20px rgba(26,26,26,.35); }
.case-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: var(--accent); margin-bottom: 12px;
}
.case-card h3 { font-size: 21px; margin-bottom: 12px; }
.case-card > p { color: var(--ink-soft); font-size: 15px; }
.case-metrics { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.case-metrics li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px; color: var(--ink-soft); padding: 6px 0;
}
.metric-num { font-weight: 700; color: var(--ink); min-width: 78px; }

.case-empty {
  background: transparent;
  border-style: dashed;
  align-items: flex-start;
  justify-content: center;
}
.case-plus {
  font-size: 40px; font-weight: 300; color: var(--accent);
  line-height: 1; margin-bottom: 10px;
}
.case-empty h3 { font-size: 20px; }
.text-link { font-weight: 600; margin-top: 14px; }

/* ---------- Contato ---------- */
.contato-inner { max-width: 760px; }
.contato-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.contato-meta { color: rgba(234,224,198,.7); font-size: 15px; max-width: 58ch; }

/* ---------- Footer ---------- */
.site-footer { background: #EFE9E1; border-top: 1px solid var(--line); padding: 54px 0 28px; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.wordmark-footer { font-size: 22px; }
.footer-tagline { color: var(--ink-mute); font-size: 14px; margin: 10px 0 0; font-style: italic; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-nav a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 8px; padding-top: 24px;
}
.footer-legal p { margin: 0; font-size: 13px; color: var(--ink-mute); }

/* =========================================================
   Reveal on scroll (progressive enhancement)
   JS adiciona .reveal-in. Sem JS, .reveal fica visível.
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.reveal-in { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
/* Menu hambúrguer cedo: a nav completa (7 itens) não cabe abaixo de ~1020px. */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom-style: solid;
    border-bottom-color: var(--line);
    border-bottom-width: 0px;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease), padding .35s var(--ease), border-bottom-width .35s var(--ease);
  }
  .nav-list.open { max-height: 480px; padding: 8px 24px 20px; border-bottom-width: 1px; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { display: block; padding: 14px 4px; font-size: 16px; }
  .nav-cta { text-align: center; margin-top: 12px; }
}

@media (max-width: 940px) {
  :root { --pad-x: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .card-grid, .portfolio { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --pad-x: 24px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }

  .card-grid, .portfolio { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .journey::before { left: 12px; }
  .journey-step { grid-template-columns: 64px 1fr; gap: 16px; }
  .step-index { font-size: 30px; padding-left: 34px; }
  .step-index::before { left: 6px; width: 12px; height: 12px; margin-top: -6px; }
  .hero-motif { opacity: .35; right: -80px; }
  .btn { width: 100%; text-align: center; }
  .hero-actions .btn, .contato-actions .btn { width: 100%; }
}

/* =========================================================
   Movimento reduzido — tudo aparece sem animação
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg { animation: none; }
  .hero-canvas { display: none; }
  .motif-notes circle { animation: none; }
  .journey::before { transform: scaleY(1); transition: none; }
  .btn:hover, .solution-card:hover, .case-card:hover, .quotes .quote-card:hover { transform: none; }
  .show-intro .intro { display: none; }
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
