/* ==========================================================================
   Hero de vidro líquido — o cartão refractivo.
   O cartão é uma janela para um duplicado do fundo: um canvas 2D redesenhado
   a cada frame e refractado pelo filtro SVG #liquid-glass-refraction.

   O vídeo já não vive aqui. Passou a ser o fundo fixo do site inteiro
   (.site-bg, em theme-glass.css), por isso o hero é totalmente transparente e
   deixa-o passar — e o duplicado do cartão alinha-se a esse vídeo global.

   Tudo está dentro de .glass-hero por dois motivos: não vaza para o resto do
   site e ganha sempre ao Preflight do Tailwind, que usa selectores de elemento.
   Breakpoints iguais aos do Tailwind: sm 640, md 768, lg 1024.
   ========================================================================== */

.glass-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2.5rem 0 3rem;
  color: #0b0b0b;
  background: transparent;
}

.glass-hero .glass-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* --- Grelha do hero ----------------------------------------------------- */

.glass-hero .glass-hero__inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  pointer-events: none; /* cada filho interactivo reactiva por si */
}

.glass-hero .icon {
  flex: none;
}

@media (min-width: 768px) {
  /* Sem min-height de ecrã inteiro: depois de as métricas saírem e o cartão
     subir, forçar 100svh deixava ~135px de vazio por baixo do cartão. O hero
     passa a ajustar-se ao conteúdo. */
  .glass-hero {
    padding: 0;
  }
  .glass-hero .glass-hero__inner {
    padding: 2.5rem 3rem 1.25rem;
  }
}

/* --- Réguas verticais decorativas (≥768px) ------------------------------ */

.glass-hero .rule {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
}
.glass-hero .rule--left { left: 1.25rem; }
.glass-hero .rule--right { right: 1.25rem; }
.glass-hero .rule__seg { width: 1px; background: rgba(11, 11, 11, 0.2); }
.glass-hero .rule__seg--end { height: 15%; }
.glass-hero .rule__seg--mid { flex: 1 1 0%; }
.glass-hero .rule__plus {
  font-size: 0.75rem;
  line-height: 1;
  color: rgba(11, 11, 11, 0.4);
  padding: 0.25rem 0;
}

@media (min-width: 768px) {
  .glass-hero .rule { display: flex; }
}

/* --- Linha inferior: cópia à esquerda, cartão à direita ------------------ */

.glass-hero .hero-bottom {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  /* Grelha de 12 colunas, para as larguras serem expressas em colunas
     (à Bootstrap) em vez de percentagens soltas. */
  .glass-hero .hero-bottom {
    flex: 1;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: start;
    gap: 2rem 1.5rem;
  }
  .glass-hero .lede {
    grid-column: 1 / span 7;   /* cópia no topo à esquerda */
    align-self: start;
  }
  .glass-hero .hero-bottom__right {
    grid-column: 9 / span 4;   /* a marca acompanha, à direita */
    align-self: start;
  }
  .glass-hero .card {
    grid-column: 1 / span 12;  /* col-12: toda a largura, a começar à esquerda */
    align-self: start;         /* sobe para o lugar das antigas métricas */
  }
}

/* --- Coluna direita: marca + cartão ------------------------------------- */
/* Empilhados na mesma faixa à direita: a marca fica onde estava no hero
   original (acima), o cartão fica em baixo, tal como antes. */

.glass-hero .hero-bottom__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .glass-hero .hero-bottom__right {
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Marca: mesmo tratamento do hero original (caixa com borda tracejada,
   largura máxima 340px, glifo do logótipo do cabeçalho centrado dentro). */
.glass-hero .lede-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  padding: 1.5rem;
  background: rgba(241, 239, 232, 0.1);
  border: 1px dashed rgba(11, 11, 11, 0.25);
  border-radius: 48px;
}
.glass-hero .lede-mark__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Coluna esquerda ---------------------------------------------------- */

.glass-hero .lede { max-width: 34rem; }

.glass-hero .lede__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #184f95;
}
.glass-hero .lede__eyebrowDot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #184f95;
}

.glass-hero .lede__title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0b0b0b;
}
.glass-hero .lede__title em {
  font-style: normal;
  color: #184f95;
}

.glass-hero .lede__body {
  margin-top: 0.875rem;
  max-width: 46ch;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(11, 11, 11, 0.6);
}

.glass-hero .lede__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .glass-hero .lede__title { font-size: 2.25rem; }
  .glass-hero .lede__body { font-size: 0.9375rem; }
}
@media (min-width: 768px) {
  .glass-hero .lede__title { font-size: 2.75rem; }
  .glass-hero .lede__body { margin-top: 1rem; }
}
@media (min-width: 1024px) {
  .glass-hero .lede__title { font-size: 3.25rem; }
  .glass-hero .lede__body { font-size: 1rem; }
}

/* --- Botão primário (pílula da marca, igual ao resto do site) ------------ */

.glass-hero .lede__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: #184f95;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 10px 15px -3px rgba(24, 79, 149, 0.2);
  transition: background 300ms, box-shadow 300ms;
}
.glass-hero .lede__cta:hover {
  background: #185fa5;
  box-shadow: 0 10px 20px -3px rgba(24, 79, 149, 0.35);
}

/* --- Botão chanfrado ---------------------------------------------------- */

.glass-hero .chamfer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 220px;
  height: 44px;
  padding: 0 1.25rem;
  color: #0b0b0b;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 300ms;
}
.glass-hero .chamfer:hover { opacity: 0.7; }

/* Fundo fosco só abaixo de 640px, recortado com a mesma silhueta chanfrada */
.glass-hero .chamfer__glass {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(11, 11, 11, 0.2);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.glass-hero .chamfer__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.glass-hero .chamfer__label {
  position: relative;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}
.glass-hero .chamfer .icon { position: relative; }

@media (min-width: 640px) {
  .glass-hero .chamfer { width: 260px; height: 48px; padding: 0 1.5rem; }
  .glass-hero .chamfer__label { font-size: 0.875rem; }
  .glass-hero .chamfer__glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
  }
}

  /* Só a geometria específica do cartão do hero: o resto (vidro, refracção,
   frost, animação) vem de .liquid-card em theme-glass.css. */
.glass-hero .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 340px;
  max-width: 100%;
  height: 460px;
  padding: 2rem;
  pointer-events: auto;
}

.glass-hero .card__head,
.glass-hero .card__body,
.glass-hero .card__wave { position: relative; z-index: 2; }

.glass-hero .card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(11, 11, 11, 0.1);
}
.glass-hero .card__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.025em; }
.glass-hero .card__index { font-size: 0.75rem; color: rgba(11, 11, 11, 0.4); }
.glass-hero .card__body { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.glass-hero .finding__title { font-size: 0.875rem; font-weight: 700; letter-spacing: -0.025em; }
.glass-hero .finding__text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: rgba(11, 11, 11, 0.55);
}
.glass-hero .card__wave { display: block; width: 100%; height: auto; margin-top: 1.25rem; }

@media (min-width: 640px) {
  .glass-hero .card__title { font-size: 1.125rem; }
}
@media (min-width: 768px) {
  .glass-hero .card__head { padding-bottom: 1rem; }
  .glass-hero .card__title { font-size: 1.25rem; }
  .glass-hero .card__body { gap: 1.25rem; margin-top: 1.25rem; }
  .glass-hero .finding__title { font-size: 1rem; }
  .glass-hero .finding__text { font-size: 0.875rem; margin-top: 0.375rem; }
  .glass-hero .card__wave { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-hero *,
  .glass-hero *::before,
  .glass-hero *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* --- Cartão em formato horizontal ---------------------------------------
   Ocupa a largura da sua coluna (col-6) em vez dos 340px em retrato. Os dois
   "findings" passam a ficar lado a lado — é o que justifica o formato
   paisagem; empilhados, o cartão largo teria uma faixa vazia à direita. */

.glass-hero .card--horizontal {
  width: 100%;
  height: auto;
}

/* 768–1023px: o cartão já é largo, mas ainda não há espaço para as três
   zonas lado a lado — o cabeçalho fica em cima e só os dois findings passam
   a par. */
@media (min-width: 768px) {
  .glass-hero .card--horizontal {
    min-height: 0;
    padding: 1.75rem 2rem;
  }
  .glass-hero .card--horizontal .card__body {
    flex-direction: row;
    gap: 2rem;
    margin-top: 1rem;
  }
  .glass-hero .card--horizontal .finding { flex: 1 1 0; }
  .glass-hero .card--horizontal .finding__text { margin-top: 0.375rem; }
  .glass-hero .card--horizontal .card__wave { width: 35%; margin-top: 1rem; }
}

/* ≥1024px: faixa em três zonas — título | conteúdo | onda. É o que dá uso
   real ao formato horizontal; empilhado, um cartão de 1080px deixaria uma
   banda vazia enorme. */
@media (min-width: 1024px) {
  .glass-hero .card--horizontal {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 1.75rem 2.25rem;
  }

  /* O separador do cabeçalho roda com o layout: de sublinhado a divisória. */
  .glass-hero .card--horizontal .card__head {
    flex: 0 0 auto;
    width: 18%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.375rem;
    padding-bottom: 0;
    padding-right: 2.5rem;
    border-bottom: 0;
    border-right: 1px solid rgba(11, 11, 11, 0.12);
  }

  .glass-hero .card--horizontal .card__body {
    flex: 1 1 auto;
    align-self: center;
    gap: 2.5rem;
    margin-top: 0;
  }

  .glass-hero .card--horizontal .card__wave {
    flex: 0 0 auto;
    width: 16%;
    align-self: center;
    margin-top: 0;
  }
}
