/* ============================================================
   LUCIANO PASSARETTI · DE FRENTE COM O VALE
   Brandbook v3 · 2026
   ------------------------------------------------------------
   Princípio: o sistema se mantém íntegro por subtração.
   Toda vez que bater a vontade de enfeitar, a resposta é tirar.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Paleta — brandbook §08 */
  --cal:       #ECE6DA;  /* fundo dominante */
  --concreto:  #C6C1B6;  /* secundária / apoio */
  --pedra:     #46433C;  /* texto secundário / divisores */
  --profundo:  #2A2520;  /* texto principal / fundo de drama */
  --fagulha:   #FF8000;  /* uso RARÍSSIMO, só sobre o escuro */

  /* Tipografia */
  --display: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  --body:    'Archivo', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, 'Courier New', monospace;

  /* Escala tipográfica — mobile-first */
  --fs-eyebrow: 0.78rem;
  --fs-body:    1.0625rem;
  --fs-lede:    1.25rem;
  --fs-h3:      1.5rem;
  --fs-h2:      2rem;
  --fs-h1:      2.75rem;
  --fs-display: 3.5rem;

  /* Layout */
  --container: 1180px;
  --gutter:    1.5rem;
  --section-y: 5rem;
  --hairline:  1px solid var(--pedra);
}

@media (min-width: 720px) {
  :root {
    --fs-body:    1.125rem;
    --fs-lede:    1.5rem;
    --fs-h3:      1.75rem;
    --fs-h2:      2.75rem;
    --fs-h1:      4rem;
    --fs-display: 5.5rem;
    --section-y: 7rem;
    --gutter:    2rem;
  }
}

@media (min-width: 1100px) {
  :root {
    --fs-h1:      5rem;
    --fs-display: 7.5rem;
    --section-y: 8.5rem;
  }
}

/* ---------- RESET ENXUTO ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- BASE ---------- */
body {
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--profundo);
  background: var(--cal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--profundo); color: var(--cal); }

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

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

/* Variações de fundo */
.bg-cal      { background: var(--cal); color: var(--profundo); }
.bg-concreto { background: var(--concreto); color: var(--profundo); }
.bg-profundo { background: var(--profundo); color: var(--cal); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cal);
  border-bottom: var(--hairline);
}
.bg-profundo + .site-header,
.site-header.on-dark { background: var(--profundo); border-color: var(--concreto); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header__brand img { width: 28px; height: 28px; }
.site-header__brand .name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--profundo);
}
.site-header__brand .signature {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--pedra);
  display: none;
}
@media (min-width: 600px) {
  .site-header__brand .signature { display: inline; }
}

/* ---------- EYEBROWS (§ XX) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  color: var(--pedra);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "§";
  color: var(--pedra);
  font-weight: 400;
}
.bg-profundo .eyebrow,
.final .eyebrow { color: var(--concreto); }
.bg-profundo .eyebrow::before,
.final .eyebrow::before { color: var(--concreto); }

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display-xl {
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.45;
  font-weight: 500;
  max-width: 36ch;
  color: var(--pedra);
}
.bg-profundo .lede { color: var(--concreto); }

p { max-width: 60ch; }

strong { font-weight: 700; color: var(--profundo); }
.bg-profundo strong { color: var(--cal); }

/* Dados (Space Mono) */
.data {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- HERO (§ 01) ---------- */
.hero {
  background: var(--profundo);
  color: var(--cal);
  padding-top: 4rem;
  padding-bottom: 4rem;
  overflow: hidden;
  position: relative;
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.hero__name {
  font-family: var(--display);
  font-size: clamp(2.25rem, 11vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__signature {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--concreto);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.hero__roles {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--concreto);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.hero__tagline {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 18ch;
}
.hero__tagline .spark { color: var(--fagulha); }
.hero__promise {
  font-size: var(--fs-body);
  color: var(--concreto);
  max-width: 40ch;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}
.hero__portrait {
  position: relative;
}
.hero__portrait img {
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.05);
}

/* ---------- MARQUEE (faixa de prova) ---------- */
.marquee {
  background: var(--profundo);
  color: var(--concreto);
  border-top: 1px solid var(--pedra);
  border-bottom: 1px solid var(--pedra);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: max-content;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.marquee__item::after {
  content: "·";
  color: var(--pedra);
  margin-left: 3.5rem;
  font-size: 1.2rem;
}
.marquee__item:last-child::after { content: ""; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  background: var(--profundo);
  color: var(--cal);
  border: 1px solid var(--profundo);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cta::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 400;
}
.cta:hover {
  background: var(--cal);
  color: var(--profundo);
}
.cta:hover::after { transform: translate(4px, -2px); }
.cta:focus-visible {
  outline: 2px solid var(--fagulha);
  outline-offset: 3px;
}

/* CTA sobre fundo escuro */
.bg-profundo .cta,
.hero .cta {
  background: var(--cal);
  color: var(--profundo);
  border-color: var(--cal);
}
.bg-profundo .cta:hover,
.hero .cta:hover {
  background: transparent;
  color: var(--cal);
}

/* CTA FAGULHA — uso único, só no CTA final */
.cta--spark {
  background: var(--fagulha);
  color: var(--profundo);
  border-color: var(--fagulha);
}
.cta--spark:hover {
  background: transparent;
  color: var(--fagulha);
}

/* CTA texto-link (cards de produto) */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--profundo);
  border-bottom: 1px solid var(--profundo);
  padding-bottom: 0.25rem;
  transition: gap 0.2s ease;
}
.cta-link::after {
  content: "→";
  font-weight: 400;
}
.cta-link:hover { gap: 0.85rem; }

/* ---------- BIG STATEMENT (frases-chave) ---------- */
.big-statement {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 28ch;
  margin-top: 2rem;
}

/* ---------- GRID DE BENEFÍCIOS (§ 05 Transformação) ---------- */
.benefits {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

.benefit {
  border-top: var(--hairline);
  padding-top: 1.25rem;
}
.benefit__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--pedra);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}
.benefit h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.benefit p {
  font-size: 0.95rem;
  color: var(--pedra);
}

/* ---------- QUALIFICAÇÃO (§ 06) ---------- */
.profiles {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: var(--hairline);
}
.profiles li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: var(--hairline);
  align-items: baseline;
}
.profiles .num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--pedra);
}
.profiles .desc strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.aside {
  font-style: italic;
  color: var(--pedra);
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ---------- MÉTODO (§ 07) ---------- */
.method {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
  counter-reset: step;
}
@media (min-width: 900px) { .method { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; } }

.method__step {
  position: relative;
  padding-top: 2rem;
  border-top: 2px solid var(--profundo);
}
.method__step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--pedra);
  position: absolute;
  top: 0.6rem;
  right: 0;
}
.method__step h3 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.method__step p {
  font-size: 0.98rem;
  color: var(--pedra);
}

/* ---------- TABELA DE CONTRASTE (§ 08) ---------- */
.contrast {
  margin-top: 3rem;
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  border-top: 2px solid var(--profundo);
  border-bottom: 2px solid var(--profundo);
}
.contrast th, .contrast td {
  text-align: left;
  padding: 1.1rem 1rem;
  vertical-align: top;
  border-bottom: var(--hairline);
  font-size: 1rem;
  line-height: 1.35;
}
.contrast th {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1rem;
  color: var(--pedra);
}
.contrast th:last-child,
.contrast td:last-child {
  background: var(--profundo);
  color: var(--cal);
  font-weight: 500;
}
.contrast th:last-child { color: var(--cal); }
.contrast td:first-child {
  color: var(--pedra);
  text-decoration: line-through;
  text-decoration-color: var(--pedra);
  text-decoration-thickness: 1px;
}
@media (max-width: 619px) {
  .contrast { border-top: none; border-bottom: none; }
  .contrast thead { display: none; }
  .contrast tr {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
    border-top: 2px solid var(--profundo);
  }
  .contrast td { border-bottom: var(--hairline); }
  .contrast td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pedra);
    margin-bottom: 0.35rem;
  }
  .contrast td:last-child::before { color: var(--concreto); }
}

/* ---------- PRODUTOS (§ 09) ---------- */
.products {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 2px solid var(--profundo);
}
.product {
  display: grid;
  gap: 1rem;
  padding: 2.25rem 0;
  border-bottom: var(--hairline);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .product {
    grid-template-columns: 8rem 1fr auto;
    gap: 2.5rem;
    align-items: start;
  }
}
.product__tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--pedra);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-top: 0.35rem;
}
.product__body h3 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  text-transform: none;
}
.product__body p {
  font-size: 0.98rem;
  color: var(--pedra);
  max-width: 56ch;
}
.product__cta {
  align-self: start;
  padding-top: 0.5rem;
}
.product--featured {
  background: var(--profundo);
  color: var(--cal);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-bottom: 1px solid var(--pedra);
  margin: 0 -1.5rem;
}
.product--featured .product__tag { color: var(--cal); }
.product--featured .product__body p { color: var(--concreto); }
.product--featured .cta-link {
  color: var(--cal);
  border-bottom-color: var(--cal);
}

/* ---------- LIVRO ---------- */
.book {
  display: grid;
  gap: 2.5rem;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 2px solid var(--profundo);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .book { grid-template-columns: 280px 1fr; gap: 4rem; }
}
.book__cover {
  display: block;
  width: 100%;
  max-width: 280px;
}
.book__cover img { width: 100%; height: auto; }
.book__body h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.book__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--pedra);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.book__body p {
  color: var(--pedra);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---------- DEPOIMENTOS ---------- */
.testimonials {
  display: grid;
  gap: 0;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 2px solid var(--profundo);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .testimonials { grid-template-columns: 1fr 1fr; }
}
.testimonial {
  padding: 2.25rem 0;
  border-bottom: var(--hairline);
}
@media (min-width: 760px) {
  .testimonial:nth-child(odd)  { padding-right: 2.5rem; border-right: var(--hairline); }
  .testimonial:nth-child(even) { padding-left: 2.5rem; }
}
.testimonial blockquote {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--profundo);
  margin-bottom: 1.25rem;
  font-style: normal;
}
.testimonial blockquote::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--profundo);
  margin-bottom: 1.25rem;
}
.testimonial footer {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pedra);
}
.testimonial footer strong {
  display: block;
  font-family: var(--body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--profundo);
  margin-bottom: 0.15rem;
  font-weight: 700;
}

/* ---------- GALERIA ---------- */
.gallery {
  display: grid;
  gap: 1rem;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 2px solid var(--profundo);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__caption {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}
.gallery__caption h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.gallery__caption p {
  color: var(--pedra);
  font-size: 0.95rem;
}
.gallery figure {
  position: relative;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(85%) contrast(1.05);
  transition: filter 0.4s ease;
}
.gallery figure:hover img { filter: grayscale(0%) contrast(1.02); }

/* ---------- SOBRE — Manifesto ---------- */
.about {
  display: grid;
  gap: 3rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.2fr; gap: 5rem; } }
.about__portrait img {
  width: 100%;
  height: auto;
  filter: grayscale(60%) contrast(1.02);
}
.about__body p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--pedra);
  max-width: 50ch;
}
.about__body p strong { color: var(--profundo); }
.about__body p:first-child {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  color: var(--profundo);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* ---------- CTA FINAL (§ 10) ---------- */
.final {
  background: var(--profundo);
  color: var(--cal);
  padding: var(--section-y) 0;
}
.final__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 3rem;
  max-width: 24ch;
}
.final__title .spark { color: var(--fagulha); }
.guarantees {
  display: grid;
  gap: 0;
  margin-bottom: 3rem;
  border-top: 1px solid var(--pedra);
}
.guarantees li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--pedra);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--concreto);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.guarantees li::before {
  content: "→";
  font-family: var(--mono);
  color: var(--concreto);
  font-size: 1rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--cal);
  border-top: var(--hairline);
  padding: 3rem 0 2rem;
  color: var(--pedra);
  font-size: 0.9rem;
}
.site-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.site-footer__brand img { width: 36px; height: 36px; }
.site-footer__brand .name {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--profundo);
  letter-spacing: 0.02em;
}
.site-footer__brand .signature {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--pedra);
  display: block;
}
.site-footer__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.site-footer__meta a { border-bottom: 1px solid var(--pedra); }
.site-footer__meta a:hover { color: var(--profundo); border-color: var(--profundo); }
.site-footer__copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--pedra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
}
@media (max-width: 699px) {
  .site-footer__copy { text-align: left; }
}

/* ---------- REVEAL ON SCROLL (sutil, com fallback sem JS) ----------
   Sem JS, a classe .js-ready não é adicionada → tudo permanece visível.
   Com JS, .js-ready ativa o estado inicial oculto e a transição. */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- UTILITÁRIOS ---------- */
.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;
}
