/* ==========================================================================
   HERO SECTION — SEITA ORLANDISTA / ORLANDO LIMA
   Design: Editorial Clássico em Papel Marfim / Pergaminho Tátil (100vh)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #F7F4EC;
  color: #14171F;
  padding: calc(var(--header-height) + 1.5rem) 0 2rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(180, 155, 100, 0.3);
}

/* 1. Textura Real de Papel Linho / Fibra Editorial Tátil (Intensificada) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12   0 0 0 0 0.09   0 0 0 0 0.05  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: multiply;
}

/* Camada da obra épica medieval/clássica em P&B e degradê sutil para textura */
.hero__symbol-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../../assets/images/hero-epic-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.35;
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1.35) brightness(0.92);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 35%, transparent 92%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 35%, transparent 92%);
}

/* 2. Vinheta de envelhecimento clássico & Micrograde de encadernação */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Glow âmbar suave atrás do retrato */
    radial-gradient(circle 540px at 78% 45%, rgba(255, 204, 0, 0.18) 0%, rgba(255, 204, 0, 0.03) 55%, transparent 75%),
    /* Luz suave no título */
    radial-gradient(circle 460px at 22% 35%, rgba(255, 255, 255, 0.7) 0%, transparent 70%),
    /* Micrograde de cadência tipográfica */
    linear-gradient(rgba(180, 160, 120, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 160, 120, 0.08) 1px, transparent 1px),
    /* Vinheta sépia nas bordas para sensação de documento físico */
    radial-gradient(ellipse 95% 90% at 50% 50%, transparent 45%, rgba(210, 198, 175, 0.5) 100%),
    linear-gradient(180deg, rgba(247, 244, 236, 0.4) 0%, rgba(240, 235, 222, 0.8) 100%);
  background-size: 
    100% 100%, 
    100% 100%, 
    56px 56px, 
    56px 56px, 
    100% 100%, 
    100% 100%;
}

/* 3. Gravuras guilhoché com estética de chapa de cobre impressa */
.hero__engraving {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__engraving svg {
  position: absolute;
  top: 48%;
  right: -8%;
  width: min(1180px, 105vw);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.45;
  filter: drop-shadow(0 0 15px rgba(218, 165, 32, 0.15));
}

.hero__engraving svg g {
  stroke: #C59B27 !important;
}

.hero__engraving--left {
  position: absolute;
  top: 50% !important;
  left: -18% !important;
  right: auto !important;
  width: min(680px, 60vw) !important;
  opacity: 0.28 !important;
  transform: translateY(-50%) !important;
}

/* Contêiner principal e alinhamento vertical */
.hero > .container { 
  position: relative; 
  width: 100%;
  margin: auto;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 3.5rem;
  align-items: center;
}

/* Trilho vertical lateral — marginália de periódico */
.hero__rail {
  position: absolute;
  left: -3.75rem;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #78716C;
  white-space: nowrap;
}

.hero__rail::before {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, #C59B27, transparent);
}

/* Kicker / Chancela */
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1.1rem 0.4rem 0.9rem;
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #292524;
  margin-bottom: 1.5rem;
}

.hero__kicker .pulse-dot {
  width: 7px;
  height: 7px;
  background: #E5A900;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(229, 169, 0, 0.8);
  animation: pulse-glow-light 2s infinite ease-in-out;
}

@keyframes pulse-glow-light {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 12px #E5A900; }
}

/* Título Monumental Escuro de Alto Contraste */
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: #11141A !important;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  display: block;
}

.hero__title .line { 
  display: block; 
}

.hero__title .gothic {
  font-family: var(--font-gotica), cursive;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: #C88200 !important;
  font-size: 1.24em;
  line-height: 0.94;
  display: inline-block;
  position: relative;
  text-shadow: 0 2px 14px rgba(200, 130, 0, 0.25);
}

.hero__title-logo-wrap {
  display: block;
  margin-top: 0.5rem;
}

.hero__title-logo {
  display: block;
  height: clamp(54px, 8.5vw, 90px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(6%) sepia(12%) saturate(1313%) hue-rotate(185deg) brightness(96%) contrast(93%) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero__title-logo:hover {
  transform: scale(1.02);
}

/* Traço orgânico manuscrito sob o nome */
.hero__underline {
  display: block;
  width: min(420px, 80%);
  height: 16px;
  margin: 0.25rem 0 0.75rem;
  overflow: visible;
}

.hero__underline path {
  fill: none;
  stroke: #E5A900;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(229, 169, 0, 0.35));
}

/* Parágrafo de abertura / Lede */
.hero__lede {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.68;
  color: #374151;
  max-width: 52ch;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.hero__lede strong {
  color: #111827;
  font-weight: 600;
  border-bottom: 1px dashed rgba(200, 130, 0, 0.45);
}

/* Botões de Ação */
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.25rem;
}

.hero__actions .btn-primary {
  background: var(--color-primary);
  color: #11141A;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px -4px rgba(229, 169, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero__actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -2px rgba(229, 169, 0, 0.65);
  background: var(--color-primary-hover);
}

.hero__actions .btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #1C1917;
  color: #1C1917;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__actions .btn-ghost:hover {
  border-color: #C88200;
  color: #C88200;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Estatísticas em Cartões de Papel Nobre */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(180, 160, 120, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -8px rgba(15, 17, 21, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 560px;
  position: relative;
}

.hero__stats::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C59B27, transparent);
  opacity: 0.7;
}

.hero__stat-item {
  position: relative;
}

.hero__stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.625rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(180, 160, 120, 0.25);
}

.hero__stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 700;
  color: #11141A;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stat-value .suffix { 
  color: #C88200; 
  font-size: 0.85em;
}

.hero__stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #57534E;
  margin-top: 0.5rem;
  line-height: 1.35;
}

/* ==========================================================================
   RETRATO / MOLDURA DE GRAVURA CLÁSSICA
   ========================================================================== */
.hero__figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 480px;
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #EAE5D9;
  border: 1px solid rgba(197, 155, 39, 0.6);
  box-shadow: 
    0 25px 60px -15px rgba(28, 25, 23, 0.25),
    0 0 35px -8px rgba(229, 169, 0, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Filete dourado interno duplo */
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 155, 39, 0.7);
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.15) brightness(0.96);
  transition: transform 1.2s var(--ease-out-expo), filter 0.8s ease;
  display: block;
}

/* Duotone Ouro / Pergaminho */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(255, 204, 0, 0.18) 0%, transparent 40%, rgba(28, 25, 23, 0.35) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__figure:hover .hero__frame img {
  transform: scale(1.04);
  filter: grayscale(0.3) contrast(1.1) brightness(1.02);
}

/* Legenda de foto de jornal / revista */
.hero__caption {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.4rem 0.2rem 0.35rem;
  border-bottom: 1px solid rgba(180, 160, 120, 0.35);
  color: #44403C;
  line-height: 1.4;
}

.hero__caption b,
.hero__caption-fig {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C88200;
  white-space: nowrap;
}

.hero__caption-text {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #57534E;
}

/* Selo giratório de autenticidade no canto do retrato (Ponto focal escuro) */
.hero__seal {
  position: absolute;
  left: -2.5rem;
  bottom: 2.75rem;
  width: 120px;
  height: 120px;
  z-index: 4;
  border-radius: 50%;
  background: #0E1015;
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-primary);
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(229, 169, 0, 0.3);
}

.hero__seal svg { 
  width: 100%; 
  height: 100%; 
}

.hero__seal text { 
  fill: var(--color-primary); 
}

.hero__seal-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

/* Indicador de rolagem clássico */
.hero__cue {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #78716C;
}

.hero__cue-track {
  width: 1px;
  height: 38px;
  background: rgba(120, 113, 108, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__cue-track .scroll-cue__line {
  position: absolute;
  inset: 0;
  background: #C88200;
  box-shadow: 0 0 8px rgba(200, 130, 0, 0.5);
}

/* ==========================================================================
   RESPONSIVO — HERO
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__rail { display: none; }
  .hero__seal { left: -1rem; width: 104px; height: 104px; }
  .hero__inner { gap: 2.5rem; }
}

@media (max-width: 992px) {
  .hero { 
    min-height: auto;
    padding-top: calc(var(--header-height) + 2.5rem); 
    padding-bottom: 3.5rem;
  }
  
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    min-height: 0;
    text-align: left;
  }
  
  .hero__figure { 
    order: -1; 
    max-width: 400px; 
  }
  
  .hero__stats { 
    max-width: 100%; 
  }
  
  .hero__cue { 
    display: none; 
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }
  
  .hero__title {
    font-size: clamp(2.3rem, 9.5vw, 3.2rem);
    line-height: 1.08;
  }

  .hero__kicker {
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.25rem;
  }
  
  .hero__lede {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats { 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem 0.75rem; 
    padding: 1rem;
  }
  
  .hero__stats > :last-child { 
    grid-column: 1 / -1; 
  }
  
  .hero__stat-item:not(:last-child)::after {
    display: none;
  }
  
  .hero__seal { 
    width: 86px; 
    height: 86px; 
    left: -0.5rem; 
    bottom: 1.5rem; 
  }
  
  .hero__seal-core { 
    font-size: 1.1rem; 
  }
}
