/* ===========================
   HERO (CSS COMPLETO ATUALIZADO)
   - Hero mais alto no mobile (100svh)
   - Mobile/Tablet: flyer ocupa TODO o espaço abaixo do CTA (full-bleed)
   - Desktop grande mantém figura colada no chão (absolute)
   - CTA no padrão dourado + brilho
   =========================== */

:root {
  --hero-gold-line: #c99a05;

  /* Fundo escuro sólido */
  --hero-bg: #07090d;

  /* CTA fluido */
  --hero-cta-max-width: 520px;

  /* Tipografia fluida do CTA */
  --hero-cta-font-size: clamp(0.7rem, 3vw, 1.05rem);
  --hero-cta-icon-size: clamp(16px, 3vw, 24px);

  /* Layout */
  --hero-text-max: 680px;

  /* Figura (desktop) */
  --hero-figure-max: 560px;

  /* Offset do header fixo (usa --header-height se existir no seu :root) */
  --hero-header-offset: calc(var(--header-height, 96px) + var(--spacing-lg, 16px));
}

/* ===========================
   SEÇÃO
   =========================== */

.hero-section {
  display: flex;
  position: relative;
  background: var(--hero-bg);

  min-height: 100vh;
  min-height: 100svh;

  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* Linha dourada no final */
.hero-section::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--hero-gold-line);
  z-index: 4;
  pointer-events: none;
}

/* Overlay sutil por cima do fundo */
.hero-overlay {
  inset: 0;
  z-index: 1;
  position: absolute;
  background: radial-gradient(
      900px 500px at 25% 25%,
      rgba(201, 154, 5, 0.08),
      transparent 60%
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75));
}

/* ===========================
   WRAPPER
   ✅ empurra conteúdo para baixo do header fixo
   =========================== */

.hero-content-wrapper {
  width: 100%;
  padding: var(--spacing-3xl, 64px) var(--spacing-xl, 24px);
  padding-top: var(--hero-header-offset);

  z-index: 3;
  position: relative;
  max-width: var(--content-max-width, 1200px);
}

/* iPhone / notch safe-area */
@supports (padding-top: env(safe-area-inset-top)) {
  .hero-content-wrapper {
    padding-top: calc(var(--hero-header-offset) + env(safe-area-inset-top));
  }
}

/* ===========================
   LAYOUT 2 COLUNAS (DESKTOP)
   =========================== */

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 4vw, 3rem);

  align-items: stretch;
  min-height: 70vh;
}

/* Texto alinhado à esquerda */
.hero-text-left {
  text-align: left;
  max-width: var(--hero-text-max);
  display: flex;
  flex-direction: column;
  justify-content: center;

  position: relative;
  z-index: 3;
}

/* Pretitle */
.hero-pretitle {
  color: var(--color-secondary);
  display: block;
  margin-bottom: var(--spacing-sm, 10px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* H1 */
.home-hero-title {
  color: var(--color-on-surface);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--spacing-md, 14px);
}

/* Subtítulo */
.hero-description {
  color: var(--color-on-surface-secondary);
  font-size: var(--font-size-lg, 1.05rem);
  margin-bottom: var(--spacing-xl, 24px);
}

/* ===========================
   HERO BULLETS
   =========================== */

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-xl, 24px);

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(0.5rem, 2vw, 1.1rem);

  color: var(--color-on-surface);
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-bullets li {
  display: inline-flex;
  align-items: center;

  padding: clamp(0.55rem, 1.5vw, 0.75rem)
           clamp(0.9rem, 2.5vw, 1.25rem);

  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid color-mix(
    in srgb,
    var(--color-secondary) 45%,
    transparent
  );

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 25px rgba(0, 0, 0, 0.35);

  white-space: nowrap;
}

.hero-bullets li::before {
  content: none;
}

/* ===========================
   CTA
   =========================== */

.hero-cta-group {
  display: flex;
  justify-content: flex-start;
}

.hero-cta-link {
  display: inline-flex;
  width: 100%;
  max-width: var(--hero-cta-max-width);
  text-decoration: none;
}

/* Botão */
.hero-main-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm, 10px);

  font-size: var(--hero-cta-font-size);

  padding: clamp(0.6rem, 2.5vw, 1.2rem)
    clamp(1rem, 5vw, 2.4rem);

  border-radius: var(--border-radius-full, 999px);
  text-align: center;

  white-space: normal;

  background: linear-gradient(
    135deg,
    var(--color-secondary, #FFD700),
    #FFC400
  );
  color: #0b0b0b;

  font-weight: 800;
  letter-spacing: clamp(0.02em, 0.4vw, 0.06em);
  text-transform: uppercase;

  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;

  transition: transform 300ms ease, box-shadow 300ms ease;
}

/* brilho animado */
.hero-main-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.30),
    transparent
  );
  transition: left 0.7s ease;
}

.hero-main-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.30);
}

.hero-main-cta:hover::before {
  left: 100%;
}

.hero-main-cta span,
.hero-cta-icon {
  position: relative;
  z-index: 1;
}

/* Ícone WhatsApp (PNG) */
.hero-cta-icon {
  width: var(--hero-cta-icon-size);
  height: var(--hero-cta-icon-size);
  object-fit: contain;
  flex-shrink: 0;
}

.hero-main-cta span {
  display: block;
  line-height: 1.15;
  max-width: 100%;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ===========================
   FIGURA (default desktop “contida”)
   =========================== */

.hero-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;

  position: relative;
  z-index: 2;
}

.hero-figure-img {
  width: min(100%, var(--hero-figure-max));
  height: auto;
  display: block;

  max-height: 72vh;
  max-height: 72svh;

  object-fit: contain;
  object-position: bottom center;

  transform: translateY(6px);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

/* ===========================
   ✅ DESKTOP GRANDE (absolute colada no chão)
   =========================== */

@media (min-width: 1025px) {
  .hero-figure {
    position: relative;
    height: 100%;
  }

  .hero-figure-img {
    position: absolute;
    bottom: 0;
    right: 0;

    width: min(560px, 46vw);
    max-height: 78vh;
    max-height: 78svh;

    margin: 0;
    transform: translateY(2px);
    z-index: 2;
  }
}

/* ===========================
   ✅ TABLET + MOBILE (<=1024px)
   FLYER FULL-BLEED ocupando todo o espaço abaixo do CTA
   =========================== */

@media (max-width: 1024px) {
  .hero-section {
    overflow: hidden; /* o flyer fica dentro e preenche, então pode cortar fora */
  }

  /* wrapper vira “tela” e sem padding lateral (full-bleed) */
  .hero-content-wrapper {
    max-width: none;
    width: 100%;

    padding-left: 0;
    padding-right: 0;

    padding-top: var(--hero-header-offset);
    padding-bottom: 0;

    min-height: 100svh;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;

    height: 100%;
    min-height: calc(100svh - var(--hero-header-offset));
    text-align: center;
  }

  /* padding fica só no bloco do texto */
  .hero-text-left,
  .hero-text-block {
    text-align: center;
    margin: 0 auto;

    padding-left: var(--spacing-lg, 16px);
    padding-right: var(--spacing-lg, 16px);
    padding-bottom: clamp(14px, 3vw, 20px);
  }

  .hero-bullets {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  /* área do flyer pega TODO o resto */
  .hero-figure {
    margin-top: 0;
    padding-bottom: 0;

    width: 100%;
    height: 100%;

    justify-content: stretch;
    align-items: stretch;
  }

  /* flyer encosta nas bordas e preenche topo/baixo */
  .hero-figure-img {
    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    transform: none;
    filter: none;

    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* ===========================
   📱 Mobile (<=767px)
   =========================== */

@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content-wrapper {
    padding-top: calc(var(--header-height, 96px) + var(--spacing-xl, 24px));
  }
}

/* ===========================
   📱 Mobile pequeno (<=360px)
   =========================== */

@media (max-width: 360px) {
  .hero-main-cta {
    font-size: 0.7rem;
    padding: 0.6rem 1rem;
  }

  .hero-main-cta span {
    letter-spacing: 0.015em;
  }

  .hero-cta-icon {
    display: none;
  }
}

/* ===========================
   📱 Telas baixas (landscape)
   =========================== */

@media (max-height: 700px) and (max-width: 1024px) {
  .hero-content-wrapper {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
    height: auto;
  }

  .hero-figure {
    height: 60vh;
  }
}
