/* ==============================================
   SEÇÃO HERO - Design Premium e Profissional
   Página inicial com visual impactante e moderno
   REFATORADO PARA VISUALIZAÇÃO COMPLETA
============================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px; /* Altura mínima garantida */
  background: 
    linear-gradient(
      rgba(0, 0, 0, 0.4), /* Overlay escuro sutil para legibilidade */
      rgba(0, 0, 0, 0.4)
    ),
    url('../img/imagem1.png') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

/* Overlay sutil para legibilidade */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.1) 0%, transparent 70%),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  background-repeat: no-repeat;
  animation: heroFloat 12s ease-in-out infinite;
  pointer-events: none;
}

/* Container principal do hero - REDESENHADO PARA ENQUADRAMENTO PERFEITO */
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 30px 20px; /* Adiciona padding-top para não sobrepor o header fixo */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 450px;
  text-align: center;
}

/* Título principal - OTIMIZADO PARA MÁXIMA VISIBILIDADE */
.hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 8px 16px rgba(0, 0, 0, 0.4);
  animation: heroSlideIn 1.2s ease-out;
  position: relative;
  max-width: 100%;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: center;
  z-index: 10;
}

/* Efeito de brilho no título */
.hero h1::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: titleShine 3s ease-in-out 2s infinite;
}

/* Subtítulo - REDESENHADO PARA MELHOR ENQUADRAMENTO */
.hero p {
  font-size: clamp(0.75rem, 1.3vw, 0.9rem);
  max-width: 550px;
  margin: 0 auto 18px auto;
  line-height: 1.45;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: heroSlideIn 1.2s ease-out 0.3s both;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
  text-align: center;
  padding: 0 15px;
}

/* Container dos botões - OTIMIZADO PARA ENQUADRAMENTO */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  animation: heroSlideIn 1.2s ease-out 0.6s both;
  margin-top: 6px;
  width: 100%;
  max-width: 500px;
}

/* Botões - REDESENHADOS PARA MELHOR PROPORÇÃO E ALINHAMENTO */
.hero .btn {
  position: relative;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 50px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  min-height: 48px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 1 auto;
  min-width: 180px;
  max-width: 240px;
  line-height: 1.2;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #8B5A3C 0%, #B8860B 100%);
  box-shadow: 0 8px 25px rgba(139, 90, 60, 0.4);
}

.hero .btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(139, 90, 60, 0.6);
  background: linear-gradient(135deg, #6D4428 0%, #A67C5A 100%);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(30px);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Elemento decorativo inferior */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    180deg, 
    transparent 0%, 
    rgba(248, 249, 250, 0.1) 30%,
    var(--background-color) 100%
  );
  z-index: 1;
}

/* ==============================================
   ANIMAÇÕES PREMIUM DO HERO
============================================== */

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-15px) rotate(0.3deg);
  }
}

@keyframes titleShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes particlesFloat {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-200px) translateY(-100px);
  }
}

/* ==============================================
   RESPONSIVIDADE PREMIUM - REDESENHADA
============================================== */

/* Desktop Grande (1400px+) - ENQUADRAMENTO OTIMIZADO */
@media (min-width: 1400px) {
  .hero .container {
    max-width: 950px;
    padding: 45px 30px;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    margin-bottom: 14px;
    max-width: 85%;
  }
  
  .hero p {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    margin-bottom: 22px;
    max-width: 580px;
  }
  
  .hero-buttons {
    gap: 18px;
    margin-top: 10px;
    max-width: 520px;
  }
  
  .hero .btn {
    padding: 14px 28px;
    font-size: 0.85rem;
    min-width: 180px;
    max-width: 240px;
  }
}

/* Desktop Padrão (1024px - 1399px) - ENQUADRAMENTO OTIMIZADO */
@media (min-width: 1024px) and (max-width: 1399px) {
  .hero {
    min-height: 100vh;
    height: 100vh;
  }
  
  .hero .container {
    padding: 35px 25px;
    min-height: 420px;
    max-width: 850px;
  }
  
  .hero h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 11px;
    max-width: 82%;
  }
  
  .hero p {
    font-size: clamp(0.75rem, 1.3vw, 0.88rem);
    margin-bottom: 18px;
    max-width: 500px;
  }
  
  .hero-buttons {
    gap: 14px;
    max-width: 480px;
  }
  
  .hero .btn {
    padding: 10px 20px;
    font-size: 0.78rem;
    min-width: 170px;
    max-width: 220px;
  }
}

/* Tablet (768px - 1023px) - ENQUADRAMENTO OTIMIZADO */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    min-height: 100vh;
    height: 100vh;
    background-attachment: scroll;
  }
  
  .hero .container {
    padding: 120px 20px 30px 20px; /* Ajuste para header fixo */
    min-height: 380px;
    max-width: 700px;
  }
  
  .hero h1 {
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    margin-bottom: 10px;
    line-height: 1.15;
    max-width: 88%;
  }
  
  .hero p {
    font-size: clamp(0.7rem, 1.6vw, 0.82rem);
    margin-bottom: 15px;
    max-width: 440px;
    line-height: 1.4;
  }
  
  .hero-buttons {
    gap: 12px;
    max-width: 460px;
  }
  
  .hero .btn {
    padding: 9px 18px;
    font-size: 0.74rem;
    min-width: 160px;
    max-width: 210px;
  }
}

/* Mobile Grande (481px - 767px) - PROPORÇÕES APRIMORADAS */
@media (min-width: 481px) and (max-width: 767px) {
  .hero {
    min-height: 100vh;
    height: 100vh;
    background-attachment: scroll;
  }
  
  .hero .container {
    padding: 160px 25px 45px 25px; /* Aumentado padding-top para header fixo */
    min-height: 480px;
    max-width: 100%;
    gap: 25px;
  }
  
  .hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.3rem) !important;
    margin-bottom: 16px;
    line-height: 1.15;
    max-width: 90%;
    font-weight: 900;
  }
  
  .hero p {
    font-size: clamp(0.95rem, 3vw, 1.15rem) !important;
    margin-bottom: 25px;
    max-width: 95%;
    line-height: 1.5;
    padding: 0 15px;
    font-weight: 400;
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 18px;
    width: 100%;
    max-width: 480px;
    justify-content: center;
  }
  
  .hero .btn {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    padding: 15px 22px;
    font-size: 0.9rem !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    min-height: 50px;
  }
}

/* Mobile Pequeno (até 480px) - MÁXIMA VISIBILIDADE E CORPO AUMENTADO */
@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    height: 100vh;
    background-attachment: scroll;
    padding: 0;
  }
  
  .hero .container {
    padding: 180px 25px 50px 25px; /* Aumentado padding-top para header fixo */
    min-height: 500px;
    max-width: 100%;
    gap: 30px;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 100%;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 
      0 3px 6px rgba(0, 0, 0, 0.9),
      0 6px 12px rgba(0, 0, 0, 0.7),
      0 12px 24px rgba(0, 0, 0, 0.5) !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
  }
  
  .hero p {
    font-size: clamp(1rem, 4vw, 1.3rem) !important;
    margin-bottom: 35px;
    max-width: 100%;
    line-height: 1.6;
    padding: 0 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 350px;
    align-items: center;
  }
  
  .hero .btn {
    width: 100%;
    min-width: 300px;
    max-width: 350px;
    padding: 20px 25px;
    font-size: 1.1rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    border-radius: 50px;
  }
}

/* Mobile Ultra Pequeno (320px-400px) - CORPO AINDA MAIOR */
@media (max-width: 400px) {
  .hero .container {
    padding: 45px 20px;
    min-height: 480px;
    gap: 25px;
  }
  
  .hero h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem) !important;
    margin-bottom: 18px;
    line-height: 1.05;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 
      0 3px 6px rgba(0, 0, 0, 0.9),
      0 6px 12px rgba(0, 0, 0, 0.7),
      0 12px 24px rgba(0, 0, 0, 0.5) !important;
  }
  
  .hero p {
    font-size: clamp(0.95rem, 4.5vw, 1.2rem) !important;
    margin-bottom: 30px;
    line-height: 1.55;
    padding: 0 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95) !important;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 18px;
    max-width: 320px;
  }
  
  .hero .btn {
    width: 100%;
    min-width: 280px;
    max-width: 320px;
    padding: 18px 22px;
    font-size: 1.05rem !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    min-height: 58px;
  }
}

/* ==============================================
   EFEITOS ESPECIAIS PARA INTERAÇÃO
============================================== */

/* Hover effect no container inteiro */
.hero:hover::before {
  animation-duration: 8s;
}

/* Efeito parallax suave */
@media (min-width: 769px) {
  .hero {
    transform-style: preserve-3d;
  }
  
  .hero .container {
    transform: translateZ(50px);
  }
}

/* Preloader para o hero */
.hero.loading {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero.loaded {
  opacity: 1;
}

/* ==============================================
   OVERRIDE ESPECIAL PARA ENQUADRAMENTO PERFEITO
============================================== */

/* Força enquadramento ideal em zoom padrão */
@media screen and (min-width: 1024px) {
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero .container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px 30px !important;
    max-width: 900px !important;
  }
  
  .hero h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
    margin: 0 0 12px 0 !important;
    text-align: center !important;
    max-width: 85% !important;
    line-height: 1.1 !important;
  }
  
  .hero p {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem) !important;
    margin: 0 auto 18px auto !important;
    text-align: center !important;
    max-width: 550px !important;
    line-height: 1.45 !important;
  }
  
  .hero-buttons {
    margin: 6px 0 0 0 !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 480px !important;
  }
  
  .hero .btn {
    padding: 12px 24px !important;
    font-size: 0.8rem !important;
    flex: 0 1 auto !important;
    min-width: 170px !important;
    max-width: 220px !important;
  }
}

/* Garantia extra para desktop padrão (1920x1080) - ENQUADRAMENTO IDEAL */
@media screen and (min-width: 1366px) and (min-height: 768px) {
  .hero .container {
    max-width: 800px !important;
    width: 100% !important;
    padding: 40px 35px !important;
  }
  
  .hero h1 {
    max-width: 72% !important;
    width: 100% !important;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important;
    margin-bottom: 10px !important;
  }
  
  .hero p {
    max-width: 500px !important;
    width: 100% !important;
    font-size: clamp(0.75rem, 1vw, 0.85rem) !important;
    margin-bottom: 14px !important;
  }
}
