/* ====== CORES — modo claro ====== */
:root {
  --fundo-1: #eefaf0;
  --fundo-2: #d3efd9;
  --texto: #1d3b24;
  --texto-suave: #3f5e46;
  --titulo: #1f5c2e;
  --botao: #ffffff;
  --botao-texto: #1d3b24;
  --destaque: #ffc400;
  --destaque-texto: #2a2000;
  --sombra: 0 4px 14px rgba(20, 60, 30, .16);
  --sombra-forte: 0 8px 22px rgba(20, 60, 30, .24);
}

/* ====== CORES — modo escuro (segue o sistema) ====== */
@media (prefers-color-scheme: dark) {
  :root {
    --fundo-1: #0f2a17;
    --fundo-2: #07170c;
    --texto: #e3f3e6;
    --texto-suave: #b3cfb9;
    --titulo: #9fe0ae;
    --botao: #1a3d24;
    --botao-texto: #e3f3e6;
    --sombra: 0 4px 14px rgba(0, 0, 0, .45);
    --sombra-forte: 0 8px 22px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(170deg, var(--fundo-1), var(--fundo-2));
  background-attachment: fixed;
  color: var(--texto);
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px 32px;
  animation: entrar .4s ease backwards;
  transition: opacity .28s ease, transform .28s ease;
}
body.saindo { opacity: 0; transform: translateY(-8px); }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.container { width: 100%; max-width: 480px; text-align: center; }

.foto {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; object-position: center 35%;
  border: 4px solid var(--botao);
  box-shadow: var(--sombra-forte);
  margin-bottom: 18px;
}

h1 { font-size: 1.9rem; font-weight: 700; color: var(--titulo); }
h2 { font-size: 1.5rem; font-weight: 700; color: var(--titulo); margin-bottom: 8px; }

.bio { list-style: none; margin: 12px 0 14px; display: flex; flex-direction: column; gap: 4px; font-size: .98rem; }
.bio li { display: flex; align-items: center; justify-content: center; gap: 8px; }
.icone-yt { width: 22px; height: 16px; flex-shrink: 0; }

.descricao { font-size: .92rem; color: var(--texto-suave); margin-bottom: 28px; line-height: 1.5; }

.links { display: flex; flex-direction: column; gap: 14px; }

.btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 20px; min-height: 60px; border-radius: 16px;
  background: var(--botao); color: var(--botao-texto);
  text-decoration: none; font-weight: 600; font-size: 1.08rem;
  border: none; cursor: pointer; font-family: inherit; width: 100%;
  box-shadow: var(--sombra);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-forte); }
  .btn.principal:hover { box-shadow: 0 10px 24px rgba(255, 196, 0, .55); }
}
.btn:active { transform: scale(.96); box-shadow: var(--sombra); }

.btn.principal {
  background: var(--destaque); color: var(--destaque-texto);
  font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(255, 196, 0, .45);
}

.btn.whats { background: #25d366; color: #fff; font-weight: 600; }
.btn.insta { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); color: #fff; font-weight: 600; }
.btn.insta .sub { color: inherit; opacity: .9; }

.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ondinha do clique */
.onda {
  position: absolute; border-radius: 50%;
  background: currentColor; opacity: .25;
  transform: scale(0); pointer-events: none;
  animation: onda .6s ease-out;
}
@keyframes onda { to { transform: scale(2.4); opacity: 0; } }

.voltar {
  display: inline-block; margin-bottom: 24px;
  color: var(--texto-suave); text-decoration: none; font-size: .9rem;
}
.voltar:hover { color: var(--titulo); }

.sub { font-size: .9rem; color: var(--texto-suave); font-weight: 400; display: block; margin-top: 2px; }
.btn .txt { display: flex; flex-direction: column; }

footer { margin-top: 36px; font-size: .75rem; color: var(--texto-suave); opacity: .8; }

/* celular deitado: tela baixa, então foto de um lado e botões do outro */
@media (orientation: landscape) and (max-height: 500px) {
  body { padding: 24px 24px 16px; }
  .container.home {
    max-width: 780px;
    display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px 32px; align-items: center;
  }
  .container.home footer { grid-column: 1 / -1; margin-top: 8px; }
  .perfil .foto { width: 96px; height: 96px; margin-bottom: 8px; }
  .perfil h1 { font-size: 1.5rem; }
  .perfil .descricao { margin-bottom: 0; }
  .links { gap: 10px; }
  .container.largo { max-width: 720px; }
  .links.grade { display: grid; grid-template-columns: 1fr 1fr; }
  .links.grade .principal { grid-column: 1 / -1; }
  .voltar { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .btn, .onda { animation: none; transition: none; }
}
.btn.principal .sub { color: inherit; opacity: .75; }
