/* =========================================================
   ZATRA HOUSE — UI SYSTEM (Apple-grade, monocromático)
   Montserrat only · hierarquia por peso e tamanho · zero ornamento.
   ========================================================= */

:root {
  /* Paleta refinada */
  --zh-white:     #FFFFFF;
  --zh-paper:     #FBFAF7;
  --zh-ivory:     #F5F2EC;
  --zh-sand:      #EBE6DC;
  --zh-line:      #E8E4DC;
  --zh-stone:     #C9C4B9;
  --zh-muted:     #8C8B86;
  --zh-graphite:  #5C5C58;
  --zh-ink:       #1D1D1F;
  --zh-accent:    #1D1D1F;

  /* Easing Apple-like */
  --zh-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--zh-ink);
  background: var(--zh-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

/* ---------- ESCALA TIPOGRÁFICA ---------- */

/* Display (hero principal da home) */
.t-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--zh-ink);
}
@media (min-width: 768px) {
  .t-display { font-size: 64px; }
}
@media (min-width: 1024px) {
  .t-display { font-size: 88px; }
}

/* H1 (hero jornadas) */
.t-h1, h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--zh-ink);
}
@media (min-width: 768px) {
  .t-h1, h1 { font-size: 48px; }
}
@media (min-width: 1024px) {
  .t-h1, h1 { font-size: 64px; }
}

/* H2 (seções) */
.t-h2, h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--zh-ink);
}
@media (min-width: 768px) {
  .t-h2, h2 { font-size: 36px; }
}
@media (min-width: 1024px) {
  .t-h2, h2 { font-size: 44px; }
}

/* H3 (subsessões) */
.t-h3, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--zh-ink);
}
@media (min-width: 768px) {
  .t-h3, h3 { font-size: 22px; }
}

/* Eyebrow / label */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--zh-muted);
  display: inline-block;
}
@media (min-width: 768px) {
  .eyebrow { font-size: 12px; }
}

/* Subhead (corpo grande) */
.t-lead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--zh-graphite);
}
@media (min-width: 768px) {
  .t-lead { font-size: 22px; }
}

/* Corpo padrão */
.t-body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--zh-ink);
}
@media (min-width: 768px) {
  .t-body { font-size: 16px; }
}

/* Corpo secundário */
.t-body-sm {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--zh-muted);
}
@media (min-width: 768px) {
  .t-body-sm { font-size: 14px; }
}

/* Microcopy */
.t-micro {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  color: var(--zh-muted);
}
@media (min-width: 768px) {
  .t-micro { font-size: 12px; }
}

/* Numerais display (pilares 01/02/03, estatísticas) */
.t-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--zh-ink);
}

/* ---------- HEADER ---------- */
.zh-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--zh-ease);
}

.zh-header.scrolled {
  border-bottom-color: var(--zh-line);
}

.zh-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 56px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .zh-header-inner { height: 72px; padding: 0 3rem; }
}
@media (min-width: 1280px) {
  .zh-header-inner { padding: 0 5rem; }
}

.zh-header-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 768px) {
  .zh-header-logo { height: 44px; }
}

.zh-footer-logo {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
@media (min-width: 768px) {
  .zh-footer-logo { height: 56px; }
}

.zh-header-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--zh-ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 250ms var(--zh-ease);
}
.zh-header-link:hover { border-bottom-color: var(--zh-ink); }

/* ---------- CONTAINER ---------- */
.zh-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px)  { .zh-container { padding-left: 3rem;  padding-right: 3rem;  } }
@media (min-width: 1024px) { .zh-container { padding-left: 5rem;  padding-right: 5rem;  } }

/* ---------- SEÇÕES ---------- */
.zh-section { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px)  { .zh-section { padding-top: 8rem;  padding-bottom: 8rem;  } }
@media (min-width: 1024px) { .zh-section { padding-top: 10rem; padding-bottom: 10rem; } }

.zh-section-tight { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px)  { .zh-section-tight { padding-top: 6rem; padding-bottom: 6rem; } }
@media (min-width: 1024px) { .zh-section-tight { padding-top: 8rem; padding-bottom: 8rem; } }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 250ms var(--zh-ease),
              color 250ms var(--zh-ease),
              border-color 250ms var(--zh-ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
@media (min-width: 768px) { .btn { font-size: 15px; padding: 1rem 2.5rem; } }

.btn-primary {
  background: var(--zh-ink);
  color: var(--zh-white);
}
.btn-primary:hover { opacity: 0.85; }

.btn-block { width: 100%; }

/* Link CTA secundário (texto sublinhado) */
.link-cta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--zh-ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--zh-ink);
  transition: color 250ms var(--zh-ease),
              border-color 250ms var(--zh-ease);
  display: inline-block;
}
.link-cta:hover {
  color: var(--zh-graphite);
  border-bottom-color: var(--zh-graphite);
}

/* ---------- JOURNEY CARDS (HOME) ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .journey-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--zh-white);
  border: 1px solid var(--zh-line);
  border-radius: 2px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  transition: background-color 350ms var(--zh-ease);
}
@media (min-width: 768px) {
  .journey-card { padding: 2.5rem; min-height: 320px; }
}

.journey-card:hover { background: var(--zh-paper); }

.journey-card .jc-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--zh-ink);
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .journey-card .jc-title { font-size: 28px; }
}

.journey-card .jc-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--zh-muted);
  margin-top: 1rem;
}

.journey-card .jc-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--zh-line);
  margin-top: 2.5rem;
  transition: height 350ms var(--zh-ease),
              background-color 350ms var(--zh-ease);
}

.journey-card:hover .jc-divider {
  height: 1.5px;
  background: var(--zh-stone);
}

.journey-card .jc-cta {
  margin-top: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--zh-ink);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.journey-card .jc-arrow {
  display: inline-block;
  transition: transform 350ms var(--zh-ease);
}
.journey-card:hover .jc-arrow { transform: translateX(6px); }

/* ---------- ESTEIRA (linha única no desktop) ---------- */
.esteira-line {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--zh-graphite);
}

.esteira-line .separator {
  color: var(--zh-stone);
  user-select: none;
}

/* Mobile: separadores horizontais somem (gap maior assume a separação) */
.esteira-line > .separator { display: none; }

@media (min-width: 900px) {
  .esteira-line {
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 1.5rem;
    overflow: visible;
  }
  .esteira-line > .separator { display: inline; }
}

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 0;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .stats-grid > .stat:not(:last-child) {
    border-right: 1px solid var(--zh-line);
  }
}

.stat { text-align: center; padding: 0 1.5rem; }

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--zh-ink);
  white-space: nowrap;
}
@media (min-width: 768px) { .stat-number { font-size: 64px; } }

.stat-label {
  margin-top: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--zh-muted);
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .stat-label { font-size: 12px; } }

/* ---------- PILARES (Por que a ZH) ---------- */
.pillar-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--zh-line);
}
@media (min-width: 768px) { .pillar-num { font-size: 80px; } }

/* ---------- HERO SPLIT (jornadas) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.hero-split-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--zh-ivory);
}
@media (min-width: 900px) {
  .hero-split-img { aspect-ratio: 3 / 4; }
}

/* ---------- BLOCOS NUMERADOS (dor / processo) ---------- */
.num-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .num-block { gap: 2.5rem; }
}

.num-mark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--zh-line);
  min-width: 64px;
}
@media (min-width: 768px) { .num-mark { font-size: 56px; min-width: 96px; } }

/* ---------- CITAÇÃO ---------- */
.zh-quote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--zh-ink);
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 768px) { .zh-quote { font-size: 28px; } }

/* ---------- BOTÃO VOLTAR (jornadas) ---------- */
.zh-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--zh-muted);
  text-decoration: none;
  transition: color 250ms var(--zh-ease);
}
.zh-back:hover { color: var(--zh-ink); }

/* ---------- FORM ---------- */
.form-wrap {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.field { display: block; margin-bottom: 2rem; position: relative; }

.field-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zh-muted);
  margin-bottom: 0.65rem;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 0.65rem 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--zh-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zh-line);
  border-radius: 0;
  transition: border-color 250ms var(--zh-ease);
  appearance: none;
}

.field-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231D1D1F' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--zh-stone); }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-bottom-color: var(--zh-ink);
}

.field-input.invalid,
.field-select.invalid { border-bottom-color: #B0524A; }

.field-error {
  display: block;
  margin-top: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #B0524A;
  min-height: 1em;
}

.field-help {
  display: block;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--zh-muted);
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.zh-wpp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--zh-ink);
  color: var(--zh-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(29, 29, 31, 0.12);
  z-index: 40;
  transition: opacity 250ms var(--zh-ease),
              transform 250ms var(--zh-ease);
  text-decoration: none;
}
.zh-wpp:hover { opacity: 0.85; transform: translateY(-1px); }

@media (min-width: 768px) {
  .zh-wpp {
    right: 28px;
    bottom: 28px;
    opacity: 0;
    pointer-events: none;
  }
  .zh-wpp.visible { opacity: 1; pointer-events: auto; }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--zh-ease),
              transform 600ms var(--zh-ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HAIRLINE ---------- */
.hairline {
  border: 0;
  border-top: 1px solid var(--zh-line);
  margin: 0;
}

/* ---------- BLUR-UP IMG ---------- */
.img-blur {
  filter: blur(8px);
  transition: filter 400ms var(--zh-ease);
}
.img-blur.loaded { filter: blur(0); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- FOCUS VISIBLE ---------- */
:focus-visible {
  outline: 2px solid var(--zh-ink);
  outline-offset: 4px;
  border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---------- SPINNER ---------- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--zh-white);
  border-radius: 50%;
  animation: zh-spin 720ms linear infinite;
}
@keyframes zh-spin { to { transform: rotate(360deg); } }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .img-blur { filter: none; }
}
