/* ============================================================
   MATCHFOLIO — Onepage institucional (raiz matchfolio.com.br)
   Identidade v2.0 — Manual de Marca (julho/2026)
============================================================ */
:root {
  --color-primary:    #450291; /* Roxo Match */
  --color-primary-dark: #360173;
  --color-blue:       #0171DD; /* Azul Folio */
  --color-bg:         #F4F3F9; /* Nuvem */
  --color-cyan:       #06D5DF;
  --color-yellow:     #F7FF99;
  --color-orange:     #FF922E;
  --color-surface:    #FFFFFF;
  --color-text:       #1C1433; /* Tinta */
  --color-muted:      #5C5273;
  --color-border:     #E6E3F1;
  --gradient-match:   linear-gradient(135deg, #450291 0%, #0171DD 100%);

  --font-display: 'Krub', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--color-primary); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* HEADER */
.onpage-header {
  padding: var(--space-lg) 0;
}
.onpage-header .container {
  max-width: 1080px;
  display: flex;
  justify-content: center;
}
.onpage-header img { height: 32px; }

/* HERO */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: stretch;
  background: var(--gradient-match);
  color: #FFFFFF;
  padding: var(--space-3xl) 0 0;
}

/* camada decorativa: setas em blur entre o gradiente e o conteudo */
.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/hero-setas-blur.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

/* reforco de contraste: escurece a metade do texto, garante AA/AAA em qualquer ponto do gradiente */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(28, 20, 51, 0.4) 0%, rgba(28, 20, 51, 0.4) 42%, rgba(28, 20, 51, 0) 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: var(--space-2xl);
  text-align: left;
}

/* coluna de texto continua centralizada verticalmente */
.hero-copy {
  align-self: center;
  padding-bottom: var(--space-3xl);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  color: #FFFFFF;
  font-size: 40px;
  margin-bottom: var(--space-md);
}

.hero .lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
  margin: 0 0 var(--space-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(28, 20, 51, 0.25);
}
.btn-whatsapp:hover { background: var(--color-bg); }

.hero-cta-hint {
  margin-top: var(--space-md);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.87);
}

.hero-cta-hint a {
  color: #FFFFFF;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.hero-cta-hint a:hover { border-bottom-color: #FFFFFF; }

/* visual: foto estatica, base encostada na linha de baixo do gradiente */
.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-pessoa {
  display: block;
  width: auto;
  height: auto;
  max-width: 460px;
  max-height: 82vh;
  /* base colada no fim do gradiente: o recorte na cintura vira "dobra" */
  margin-bottom: 0;
  filter: drop-shadow(0 18px 26px rgba(28, 20, 51, 0.28));
}

/* FOOTER */
.onpage-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}
.onpage-footer a { color: var(--color-blue); }

@media (max-width: 860px) {
  .hero { padding-top: var(--space-2xl); }
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
  }
  /* empilhado: texto primeiro, foto embaixo colada na base do gradiente */
  .hero-copy {
    order: 1;
    align-self: auto;
    padding-bottom: 0;
  }
  .hero-visual {
    order: 2;
    margin-top: var(--space-xl);
  }
  .hero-pessoa { max-width: 320px; max-height: none; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  /* empilhado, texto ocupa a largura toda: scrim uniforme mantem o contraste */
  .hero-scrim { background: rgba(28, 20, 51, 0.42); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .hero-pessoa { max-width: 260px; }
}
