/* AMV Smart · rev 2 · tema claro premium + tour scroll-scrub
   Paleta: creme #f6f2ea · areia #efe8db · painel #fbf9f4 · tinta #201b14 · bronze #8a6134 */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin.e0c764a8.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.3100e775.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f2ea;
  --sand: #efe8db;
  --panel: #fbf9f4;
  --ink: #201b14;
  --ink-soft: #574f42;
  --bronze: #6e4c22;       /* seguro p/ texto AA sobre creme e sobre o painel frost */
  --bronze-line: #9a7743;  /* decorativo: bordas, sublinhados */
  --line: #e0d7c4;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --frost: rgba(251, 249, 244, 0.88);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

::selection { background: var(--bronze); color: var(--panel); }

/* ---------- acessibilidade ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--panel);
  padding: 0.6rem 1.1rem; text-decoration: none; border-radius: 0 0 6px 0;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
html:not(.js) .site-header { position: absolute; background: var(--bg); border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  letter-spacing: 0.01em; text-decoration: none; color: var(--ink);
}
.brand em { font-style: italic; font-weight: 500; color: var(--bronze); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a {
  text-decoration: none; font-size: 0.92rem; color: var(--ink-soft);
  letter-spacing: 0.01em; transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.45rem 1.1rem; color: var(--ink) !important; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--panel) !important; }

/* drawer mobile */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.5rem 0.65rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }
@media (max-width: 799px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 4.25rem 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.5rem 1.5rem;
    transform: translateY(-115%); transition: transform 0.3s ease;
    box-shadow: 0 18px 40px rgba(32, 27, 20, 0.08);
  }
  html:not(.js) .site-nav { position: static; transform: none; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 0.7rem 0; font-size: 1.05rem; width: 100%; }
  .nav-cta { width: auto; margin-top: 0.6rem; padding: 0.55rem 1.3rem; }
}

/* ---------- tour scroll-scrub ---------- */
.tour { position: relative; height: 640vh; background: var(--sand); }
.tour-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
}
.tour-media { position: absolute; inset: 0; }
.tour-canvas, .tour-poster, .tour-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.tour-canvas { z-index: 2; }
.tour-video { z-index: 2; }
.tour-media-veil { display: none; }

.chapter {
  position: absolute; z-index: 5;
  max-width: min(620px, calc(100vw - 2.5rem));
  opacity: 0;
  pointer-events: none;
}
.js .chapter { will-change: opacity, transform; }
.chapter.active { pointer-events: auto; }
.chapter-card {
  background: var(--frost);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(224, 215, 196, 0.7);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.2vw, 2.5rem) clamp(1.5rem, 3.4vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(32, 27, 20, 0.08);
}
.chapter--hero { left: clamp(1.25rem, 6vw, 6rem); top: 50%; transform: translateY(-50%); max-width: min(680px, calc(100vw - 2.5rem)); }
.chapter--right { right: clamp(1.25rem, 6vw, 6rem); top: 50%; transform: translateY(-50%); }
.chapter--left { left: clamp(1.25rem, 6vw, 6rem); top: 50%; transform: translateY(-50%); }
.chapter--center { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }

.eyebrow, .section-kicker {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
}
.chapter h1, .chapter .chapter-title {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.chapter .lede { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 54ch; }
.chapter-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.chapter .cta-row { margin-top: 1.6rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; z-index: 6;
  transform: translateX(-50%);
  width: 1px; height: 3.2rem;
  background: linear-gradient(to bottom, transparent, var(--ink));
  opacity: 0.75;
  transition: opacity 0.4s ease;
}
.js .scroll-cue::after {
  content: ""; position: absolute; left: -2px; top: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  85% { transform: translateY(2.7rem); opacity: 0; }
  100% { transform: translateY(2.7rem); opacity: 0; }
}
.scroll-cue.hidden { opacity: 0; }

/* tour: sem JS → colapsa para hero editorial com poster; capítulos empilhados legíveis */
html:not(.js) .tour { height: auto; }
html:not(.js) .tour-sticky { position: static; height: auto; overflow: visible; padding: 5.5rem 0 3rem; }
html:not(.js) .tour-media { position: static; }
html:not(.js) .tour-poster { position: relative; inset: auto; height: auto; max-height: 70vh; }
html:not(.js) .tour-canvas { display: none; }
html:not(.js) .chapter {
  position: static; opacity: 1; transform: none; pointer-events: auto;
  max-width: var(--wrap); margin: 2rem auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
html:not(.js) .scroll-cue { display: none; }

/* mobile: sem frame-sequence → hero de 100svh com loop leve/poster + só o capítulo-hero */
@media (max-width: 767px) {
  .tour { height: auto; background: var(--sand); }
  .tour-sticky { position: relative; height: auto; min-height: 100svh; display: flex; align-items: flex-end; padding: 5.5rem 0 3.5rem; }
  .tour-canvas { display: none; }
  .tour-media-veil { display: block; position: absolute; inset: 0; z-index: 3; background: linear-gradient(to bottom, rgba(246,242,234,0.1), rgba(246,242,234,0.45) 80%); }
  .chapter { position: relative; opacity: 1; transform: none; pointer-events: auto; inset: auto; margin: 0 1.25rem; z-index: 5; }
  .chapter:not(.chapter--hero) { display: none; }
  .scroll-cue { display: none; }
}

/* reduced motion: poster estático, nada anima */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tour { height: auto !important; }
  .tour-sticky { position: relative; height: auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 0; }
  .tour-canvas, .tour-video { display: none !important; }
  .chapter { display: block !important; position: relative; opacity: 1 !important; transform: none !important; pointer-events: auto; inset: auto; margin: 1.5rem auto; max-width: min(680px, calc(100vw - 2.5rem)); z-index: 5; }
  .scroll-cue { display: none; }
}

/* ---------- botões ---------- */
.cta-row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink); color: var(--panel);
  text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 26px rgba(32, 27, 20, 0.16);
}
.btn:hover { background: #3a3226; box-shadow: 0 14px 32px rgba(32, 27, 20, 0.22); }
.link-quiet {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-quiet:hover { color: var(--bronze); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--panel);
  box-shadow: 0 14px 34px rgba(32, 27, 20, 0.28);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px); background: #3a3226; }

/* ---------- seções editoriais ---------- */
section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; margin-bottom: 2.5rem; }
h2 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12; letter-spacing: -0.01em;
  max-width: 26ch;
  margin-bottom: 1.2rem;
}
h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.45rem; letter-spacing: -0.005em; }
section p { color: var(--ink-soft); max-width: 68ch; }

#frentes { background: var(--bg); }
.fronts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.front-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.front-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(32, 27, 20, 0.09); }
.front-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--bronze);
  display: block; margin-bottom: 1.4rem;
}
.front-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 0.8rem; }
.front-card p { font-size: 0.98rem; }
.card-link {
  display: inline-block; margin-top: 1.4rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.93rem;
  border-bottom: 1px solid var(--bronze); padding-bottom: 2px;
}
.card-link:hover { color: var(--bronze); }

.proof { background: var(--sand); }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.proof-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.6rem, 2.8vw, 2.2rem);
}
.proof-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-bottom: 0.7rem; }
.proof-item p { font-size: 0.96rem; }
.tool-link {
  display: inline-block; margin-top: 0.9rem; font-size: 0.9rem;
  color: var(--bronze); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

.steps { list-style: none; counter-reset: step; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.steps li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.6rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-style: italic;
  color: var(--bronze); font-size: 1rem;
  display: block; margin-bottom: 1rem;
}
.steps p { font-size: 0.95rem; }

.about { background: var(--bg); }
.about-copy .big {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.3; color: var(--ink); max-width: 30ch;
  margin-bottom: 1.4rem;
}

.contact { background: var(--sand); text-align: left; }

/* ---------- página produtos ---------- */
.page-hero { padding-top: clamp(8rem, 14vw, 11rem); background: var(--bg); padding-bottom: 3rem; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.012em;
  margin-bottom: 1.2rem; max-width: 20ch;
}
.page-hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 58ch; }
.page-hero-media { margin-top: 3rem; }
.page-hero-media img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.page-hero-media figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; letter-spacing: 0.02em; }

.offer { border-top: 1px solid var(--line); }
.offer:nth-of-type(odd) { background: var(--bg); }
.offer-grid { display: grid; grid-template-columns: minmax(260px, 5fr) minmax(300px, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-head { position: sticky; top: 6rem; align-self: start; }
@media (max-width: 860px) { .offer-head { position: static; } }
.offer-num {
  font-family: var(--serif); font-style: italic;
  color: var(--bronze); font-size: 1.1rem;
  display: block; margin-bottom: 1.2rem;
}
.offer-list { list-style: none; display: grid; gap: 1.1rem; }
.offer-list li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.5rem 1.7rem;
}
.offer-list h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.offer-list p { font-size: 0.96rem; }
.offer .cta-row { margin-top: 2rem; }

.atende-note { background: var(--sand); }
.atende-note .big {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.18; max-width: 30ch;
}
.atende-note p { margin-top: 1.2rem; }
.atende-note .cta-row { margin-top: 2rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 2.4rem 0;
  font-size: 0.9rem; color: var(--ink-soft);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- reveals ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- portfólio por linha (rev 4) ---------- */
.portfolio { background: var(--sand); border-top: 1px solid var(--line); }
.portfolio + .atende-note { border-top: 1px solid var(--line); }
.port-grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem; margin-top: 2.5rem;
}
.port-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
}
.port-item figure { height: 100%; display: flex; flex-direction: column; }
.port-bar {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.75rem; background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.port-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze-line); opacity: 0.45; }
.port-bar span {
  margin-left: 0.5rem; font-size: 0.7rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft);
}
.port-shot { border-bottom: 1px solid var(--line); background: #fff; }
.port-shot img, .port-shot svg { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.port-item figcaption {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex; flex-direction: column; flex: 1;
}
.port-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.4rem; }
.port-item p { font-size: 0.9rem; max-width: none; }
.port-item .tool-link { align-self: flex-start; margin-top: auto; }
