/* ==========================================================================
   HERO SECTION - INOVANOC
   Design moderno e responsivo para a seção principal
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 8rem 1rem 4rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Elementos de fundo animados */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 138, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 138, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  animation: heroFloat 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  animation: heroGrid 20s linear infinite;
  opacity: 0.3;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  33% {
    transform: translateY(-15px) rotate(1deg) scale(1.02);
    opacity: 0.9;
  }
  66% {
    transform: translateY(-8px) rotate(-0.5deg) scale(0.98);
    opacity: 0.85;
  }
}

@keyframes heroGrid {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(4px) translateY(4px); }
}

/* Container principal do hero */
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Título principal */
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 2px 20px rgba(25, 118, 210, 0.3);
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--green-light));
  border-radius: 2px;
  animation: heroAccent 2s ease-in-out infinite alternate;
}

@keyframes heroAccent {
  0% {
    width: 60px;
    opacity: 0.8;
  }
  100% {
    width: 80px;
    opacity: 1;
  }
}

/* Parágrafo de descrição */
.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  margin: 2rem auto 3rem;
  opacity: 0.95;
  max-width: 750px;
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(25, 118, 210, 0.2);
}

/* CTA Button aprimorado */
.hero .cta-btn {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(0, 138, 0, 0.3),
    0 0 0 0 rgba(0, 138, 0, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.01em;
}

.hero .cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.hero .cta-btn:hover::before {
  left: 100%;
}

.hero .cta-btn:hover,
.hero .cta-btn:focus {
  background: linear-gradient(135deg, var(--green-dark) 0%, #005C00 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 8px 35px rgba(0, 138, 0, 0.4),
    0 0 0 4px rgba(0, 138, 0, 0.1);
}

.hero .cta-btn:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 4px 20px rgba(0, 138, 0, 0.5),
    0 0 0 2px rgba(0, 138, 0, 0.2);
}

.hero .cta-btn i {
  font-size: 1.3em;
  transition: transform 0.3s ease;
}

.hero .cta-btn:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Elementos decorativos flutuantes */
.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: heroElementFloat 15s ease-in-out infinite;
}

.hero-floating-element:nth-child(1) {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-floating-element:nth-child(2) {
  width: 15px;
  height: 15px;
  top: 60%;
  right: 15%;
  animation-delay: -5s;
}

.hero-floating-element:nth-child(3) {
  width: 25px;
  height: 25px;
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}

.hero-floating-element:nth-child(4) {
  width: 12px;
  height: 12px;
  top: 30%;
  right: 25%;
  animation-delay: -3s;
}

@keyframes heroElementFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(-5px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-25px) translateX(15px) rotate(270deg);
    opacity: 0.7;
  }
}

/* Particle effect opcional */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--white);
  border-radius: 50%;
  animation: heroParticleMove 20s linear infinite;
}

@keyframes heroParticleMove {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVIDADE - MOBILE FIRST
   ========================================================================== */

/* Tablets */
@media (max-width: 1024px) {
  .hero {
    padding: 7rem 1rem 3.5rem;
    min-height: 90vh;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    margin-bottom: 1.25rem;
  }

  .hero p {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    margin: 1.75rem auto 2.5rem;
  }

  .hero .cta-btn {
    padding: 1.125rem 2.5rem;
    font-size: 1.075rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 3rem;
    min-height: 85vh;
    text-align: center;
  }

  .hero-content {
    padding: 1.5rem 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero h1::after {
    width: 50px;
    height: 2px;
    bottom: -8px;
  }

  .hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin: 1.5rem auto 2rem;
    line-height: 1.6;
  }

  .hero .cta-btn {
    padding: 1rem 2.25rem;
    font-size: 1rem;
    gap: 0.6rem;
  }

  .hero .cta-btn i {
    font-size: 1.2em;
  }

  /* Reduzir elementos flutuantes em mobile */
  .hero-floating-element {
    display: none;
  }

  .hero::after {
    opacity: 0.1;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .hero {
    padding: 5.5rem 0.75rem 2.5rem;
    min-height: 80vh;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    margin-bottom: 0.875rem;
  }

  .hero p {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    margin: 1.25rem auto 1.75rem;
  }

  .hero .cta-btn {
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  /* Simplificar animações em dispositivos pequenos */
  .hero::before {
    animation-duration: 20s;
  }

  .hero::after {
    display: none;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 5rem 1rem 2rem;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  .hero p {
    margin: 1rem auto 1.5rem;
  }
}

/* Preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-floating-element,
  .hero-particle {
    animation: none;
  }

  .hero h1::after {
    animation: none;
    width: 60px;
    opacity: 1;
  }

  .hero .cta-btn::before {
    display: none;
  }

  .hero .cta-btn:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  .hero {
    background: var(--primary-blue);
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero h1 {
    background: var(--white);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: none;
  }

  .hero .cta-btn {
    border: 2px solid var(--white);
    box-shadow: none;
  }
}

/* Print styles */
@media print {
  .hero {
    background: none !important;
    color: #000 !important;
    padding: 2rem 0 !important;
    min-height: auto !important;
  }

  .hero::before,
  .hero::after,
  .hero-floating-elements,
  .hero-particles {
    display: none !important;
  }

  .hero .cta-btn {
    display: none !important;
  }
}
