/*
Theme Name: Caçador de Cupom
Theme URI: https://cacadordecupom.com
Author: Luis Felipe 
Author URI: https://luisfelipe.dev
Description: Tema customizado para o Caçador de Cupom
Version: 2.0.0
License: GNU General Public License v2
Text Domain: cacadorcupom
*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  height: 100%;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgb(255, 0, 0);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
  cursor: pointer;
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  pointer-events: none;
  animation: header-shine 3.5s ease-in-out infinite;
}

@keyframes header-shine {
  0%   { left: -120%; }
  45%  { left: 150%; }
  100% { left: 150%; }
}

.header-cta-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.header-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  will-change: opacity, transform;
}

body {
  padding-top: 56px;
}

/* ─── HERO BLOCK ─── */
.hero-block {
  position: relative;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: #1d1e20;
  opacity: 0.90;
}

/* ─── CONTAINER FLEX ─── */
.hero-container {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* ─── HEADING ─── */
.hero-heading {
  width: 100%;
  text-align: center;
  flex-shrink: 0;
  margin-top: 5rem;
}

.hero-heading .line1,
.hero-heading .line2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 5.5vw, 50px);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  width: 100%;
  display: block;
}

.hero-heading .line1 {
  color: #ffffff;
}

.hero-heading .line2 {
  color: #f9c834;
}

/* ─── MIDDLE: image + button ─── */
.hero-middle {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.hero-image {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* wrapper com aspect-ratio da imagem (752×494) → botão sempre alinhado com a foto */
.hero-image-inner {
  position: relative;
  aspect-ratio: 752 / 494;
  max-height: 100%;
  max-width: 100%;
}

.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ─── CTA BUTTON — bottom-right da imagem, abaixo do texto "GRUPO GRATUITO" ─── */
.hero-button-wrap {
  position: absolute;
  bottom: 18%;
  right: 3%;
  display: flex;
  justify-content: center;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(204,255,0,0.3); background-color: rgb(51,255,0); }
  50%       { box-shadow: 0 0 36px 12px rgba(204,255,0,0.75); background-color: rgb(204,255,0); }
}

.hero-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 52px;
  height: 96px;
  background-color: rgb(51, 255, 0);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  will-change: transform;
  transform-origin: center bottom;
  animation: btn-glow 0.85s ease-in-out infinite;
}

/* ─── FOOTER: social + copyright ─── */
.hero-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-social {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-social a {
  color: #fff;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.hero-social a:hover { color: rgb(58,58,58); }

.hero-social svg { width: 22px; height: 22px; }

.hero-copyright {
  flex-shrink: 0;
  width: 100%;
}

.hero-copyright h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 1.2vw, 16px);
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  body {
    padding-top: 50px;
  }

  .site-header {
    height: 50px;
  }

  .header-text {
    font-size: 12px;
  }

  .hero-block {
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
  }

  .hero-container {
    padding: 8px 16px 40px;
    justify-content: center;
    gap: 10px;
  }

  .hero-heading {
    margin-top: 0;
    flex-shrink: 0;
  }

  .hero-middle {
    flex: 0 0 auto;
    width: 100%;
    gap: 6px;
    margin-top: 37px;
  }

  .hero-image {
    flex: 0 0 auto;
  }

  .hero-image-inner {
    width: 100%;
    max-height: none;
  }

  .hero-footer {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
  }

  .hero-heading .line1,
  .hero-heading .line2 {
    font-size: clamp(18px, 5.5vw, 24px);
  }

  .hero-image img {
    border-radius: 8px;
  }

  .hero-button-wrap {
    bottom: 18%;
    right: 3%;
  }

  .hero-button {
    height: 54px;
    font-size: 16px;
    padding: 0 22px;
    border-radius: 6px;
  }
}
