/* Home no visual CE·2, "Noite e vidro com respiro" (item 9, Fase 2).
   SPEC_SITE_HOME_EMBAIXADORA.md, seção 6.1. Faixas escuras com grade e
   vidro; a pausa clara é a dos depoimentos e a da comunidade. */

/* ---------- topo ---------- */
.h-topo {
  position: relative; padding: 0; overflow: hidden;
  min-height: min(92vh, 900px);
  display: grid; align-items: end;
  background: #0d0d0c; color: #f6f0e4;
}
.h-topo__foto { position: absolute; inset: 0 0 0 auto; width: min(52%, 780px); }
.h-topo__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.h-topo__foto::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0d0d0c 0%, rgba(13,13,12,.6) 18%, rgba(13,13,12,0) 46%),
    linear-gradient(0deg, rgba(13,13,12,.55) 0%, rgba(13,13,12,0) 28%);
}
.h-varredura {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,240,205,.14) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: h-varre 8s ease-in-out infinite;
}
@keyframes h-varre { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.h-topo__in { position: relative; z-index: 2; width: 100%; padding-top: 160px; padding-bottom: 96px; }
.h-topo__in > * { max-width: min(50%, 600px); }
.h-filete { display: block; width: 120px; height: 1px; margin-bottom: 28px; background: linear-gradient(90deg, var(--accent), rgba(201,168,76,0)); }
.h-topo__titulo { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 1; font-weight: 300; color: #f6f0e4; letter-spacing: -.005em; }
.h-topo__sub { margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: rgba(239,233,221,.8); }

@media (max-width: 760px) {
  .h-topo { display: block; min-height: 0; }
  .h-topo__foto { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; }
  .h-topo__foto::after {
    background:
      linear-gradient(180deg, rgba(13,13,12,.72) 0%, rgba(13,13,12,0) 24%),
      linear-gradient(0deg, #0d0d0c 0%, rgba(13,13,12,0) 42%);
  }
  .h-topo__in { padding-top: 0; padding-bottom: 56px; margin-top: -110px; }
  .h-topo__in > * { max-width: none; }
  .h-varredura { display: none; }
}

/* ---------- botões ---------- */
.h-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.h-bt {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-size: .88rem; font-weight: 500; letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; position: relative; overflow: hidden; cursor: pointer;
  font-family: var(--font-body);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.h-bt:hover { transform: translateY(-1px); }
/* Dourado de vidro (Miguel, 02/Nov/26: o dourado sólido pesava). */
.h-bt--ouro {
  background: linear-gradient(135deg, rgba(201,168,76,.32), rgba(201,168,76,.12));
  border-color: rgba(214,184,98,.7); color: #f7e9c2;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,244,214,.22), 0 12px 28px -16px rgba(201,168,76,.6);
}
.h-bt--ouro:hover { background: linear-gradient(135deg, rgba(201,168,76,.46), rgba(201,168,76,.2)); color: #fff8e6; }
/* Sobre fundo claro, o texto vai pro dourado escuro. */
.h-claro .h-bt--ouro {
  background: linear-gradient(135deg, rgba(201,168,76,.3), rgba(201,168,76,.14));
  border-color: rgba(110,85,24,.45); color: #4d3b10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 26px -18px rgba(110,85,24,.55);
}
.h-claro .h-bt--ouro:hover { background: linear-gradient(135deg, rgba(201,168,76,.42), rgba(201,168,76,.22)); color: #3a2c0a; }
.h-bt--ouro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: h-reflexo 6s ease-in-out infinite;
}
@keyframes h-reflexo { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.h-bt--contorno { color: #efe9dd; border-color: rgba(239,233,221,.45); }
.h-bt--contorno:hover { background: #efe9dd; color: #0d0d0c; }
.h-bt--escuro { background: var(--bg-dark); color: var(--bg); }
.h-bt--escuro:hover { background: #2a2925; color: var(--bg); }

/* ---------- faixas ---------- */
.h-faixa { padding: clamp(72px, 10vw, 128px) 0; }
.h-grade {
  background-color: #0d0d0c; color: #efe9dd; --accent-texto: var(--accent);
  background-image:
    linear-gradient(rgba(239,233,221,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,233,221,.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.h-claro { background: var(--bg); color: var(--text); }
.h-titulo { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; font-weight: 300; max-width: 22ch; }
.h-grade h2, .h-grade h3 { color: #f6f0e4; }
.h-sub { margin-top: 14px; max-width: 58ch; font-size: 1.05rem; color: var(--text-muted); }
.h-grade .h-sub { color: rgba(239,233,221,.76); }
.h-rotulo { font-size: .85rem; font-weight: 500; color: var(--accent-texto); margin-bottom: 8px; }
.h-txt p { margin-top: 1em; line-height: 1.7; }
.h-grade .h-txt { color: rgba(239,233,221,.8); }
.h-grade .h-txt strong { color: #fff; }
.h-vidro {
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .h-vidro { background: #1b1a17; }
}

/* ---------- sobre a marca ---------- */
.h-sobre { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.h-sobre__foto { margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.h-sobre__foto img { width: 100%; height: 100%; object-fit: cover; }
.h-sobre__texto { padding: clamp(24px, 4vw, 48px); }
.h-sobre__texto h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; }
@media (max-width: 760px) { .h-sobre { grid-template-columns: 1fr; } }

/* ---------- essência ---------- */
.h-palco { position: relative; margin-top: 44px; border-radius: 28px; overflow: hidden; padding: clamp(18px, 4vw, 48px); }
.h-palco__fundo { position: absolute; inset: 0; }
.h-palco__fundo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.85); }
.h-palco__cartoes { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; max-width: 760px; }
.h-cartao { padding: 22px; }
.h-cartao h3 { font-size: 1.7rem; font-weight: 300; margin-bottom: 6px; }
.h-cartao p { font-size: .95rem; line-height: 1.6; color: rgba(239,233,221,.82); }
@media (max-width: 600px) { .h-palco__cartoes { grid-template-columns: 1fr; } }
.h-galeria { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.h-galeria__foto { display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; }
.h-galeria__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.h-galeria__foto:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .h-galeria { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.h-frase {
  font-family: var(--font-head); font-style: italic; font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25;
  max-width: 30ch; margin: 56px auto 0; text-align: center; color: var(--accent);
}

/* ---------- oportunidade e mapa ---------- */
.h-oport { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.h-grito { margin-top: 22px; font-size: .88rem; font-weight: 500; letter-spacing: .06em; color: var(--accent); }
.h-mapa { padding: 22px; }
.h-mapa__legenda { margin-top: 8px; font-size: .8rem; color: rgba(239,233,221,.65); }
.mapa-sul { display: block; width: 100%; height: auto; }
.mapa-sul__uf { fill: rgba(201,168,76,.06); stroke: rgba(201,168,76,.5); stroke-width: 1; }
.mapa-sul__ponto { fill: var(--accent); filter: drop-shadow(0 0 3px rgba(201,168,76,.9)); }
.mapa-sul__ponto--pulsa { animation: mapa-pulsa 2.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mapa-pulsa { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }
@media (max-width: 760px) { .h-oport { grid-template-columns: 1fr; } }

/* ---------- depoimentos (pausa clara) ---------- */
/* Cartões em colunas (textos de tamanhos diferentes se encaixam); no
   celular, uma fila que corre de lado. */
.h-depos { columns: 3; column-gap: 18px; margin-top: 40px; }
.h-depo {
  position: relative; break-inside: avoid; margin: 0 0 18px; padding: 30px 28px 24px;
  display: grid; gap: 18px;
  background: #fffefb; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 16px 34px -28px rgba(13,13,12,.45);
  transition: opacity .9s ease, transform .35s ease, box-shadow .35s ease;
}
.h-depo.rv-in { transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.h-depo:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(13,13,12,.5); }
.h-depo__aspas {
  display: block; height: .55em; margin-bottom: -4px;
  font-family: var(--font-head); font-size: 4.2rem; line-height: 1; color: var(--accent-texto);
}
.h-depo blockquote { margin: 0; font-family: var(--font-head); font-size: 1.32rem; line-height: 1.45; color: var(--text); }
.h-depo figcaption {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-muted);
}
.h-depo__inicial {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--accent-texto); color: var(--accent-texto);
  font-family: var(--font-head); font-size: 1.25rem;
}
.h-depo__quem { display: grid; gap: 1px; }
.h-depo strong { font-weight: 600; font-size: .92rem; color: var(--text); }
@media (max-width: 1000px) { .h-depos { columns: 2; } }
@media (max-width: 640px) {
  .h-depos {
    columns: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: none;
  }
  .h-depos::-webkit-scrollbar { display: none; }
  .h-depo { flex: 0 0 86%; margin: 0; scroll-snap-align: start; }
}
.h-mais { margin-top: 28px; }
.h-link {
  color: var(--text); text-decoration: none; padding: 10px 0 3px; display: inline-block;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.h-link:hover { color: var(--text); background-size: 100% 1px; }
.h-link::after { content: " →"; }

/* ---------- compromisso ---------- */
.h-compromisso { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .h-compromisso { grid-template-columns: 1fr; } }

/* ---------- comunidade (e-mail) ---------- */
.h-comunidade { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: end; }
.h-form { display: grid; gap: 8px; }
.h-form label { font-size: .85rem; color: var(--text-muted); }
.h-form input[type="text"], .h-form input[type="email"] {
  border: 0; border-bottom: 1px solid #b9b1a5; background: transparent;
  padding: 12px 0; margin-bottom: 10px; font: inherit; font-size: 1rem; color: var(--text);
}
.h-form .h-bt { width: 100%; margin-top: 8px; }
.h-form__nota { margin-top: 8px; font-size: .8rem; color: var(--text-muted); }
.h-form__nota a { text-decoration: underline; }
@media (max-width: 760px) { .h-comunidade { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .h-varredura, .h-bt--ouro::after, .mapa-sul__ponto--pulsa { animation: none; }
  .h-bt, .h-galeria__foto img, .h-depo { transition: none; }
  .h-depo:hover { transform: none; }
}
