/*
Theme Name: Alerta de Voos
Theme URI: https://alertadevoos.com.br
Author: Alerta de Voos
Author URI: https://alertadevoos.com.br
Description: Landing page profissional para captura de leads - Grupo de alertas de passagens aéreas
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alerta-de-voos
*/

/* ================================
   CSS RESET E VARIÁVEIS
   ================================ */

:root {
  /* Cores principais */
  --primary: 210, 80%, 45%;
  --primary-foreground: 210, 40%, 98%;
  --secondary: 185, 70%, 45%;
  --accent: 15, 90%, 55%;
  --accent-foreground: 0, 0%, 100%;
  
  /* Cores de fundo e texto */
  --background: 210, 40%, 98%;
  --foreground: 222, 47%, 11%;
  --muted: 210, 40%, 96%;
  --muted-foreground: 215, 16%, 47%;
  
  /* Cores de borda e card */
  --border: 214, 32%, 91%;
  --card: 0, 0%, 100%;
  --card-foreground: 222, 47%, 11%;
  
  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(185, 70%, 45%) 50%, hsl(15, 90%, 55%) 100%);
  --gradient-cta: linear-gradient(135deg, hsl(15, 90%, 55%) 0%, hsl(25, 95%, 53%) 100%);
  --gradient-sky: linear-gradient(180deg, hsl(200, 80%, 95%) 0%, hsl(210, 40%, 98%) 100%);
  
  /* Sombras */
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px -4px rgba(0, 0, 0, 0.15);
  --shadow-cta: 0 8px 25px -5px hsla(15, 90%, 55%, 0.4);
  
  /* Espaçamentos */
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   TIPOGRAFIA
   ================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ================================
   CONTAINER
   ================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ================================
   BOTÕES
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cta {
  background: var(--gradient-cta);
  color: white;
  box-shadow: var(--shadow-cta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px -5px hsla(15, 90%, 55%, 0.5);
}

.btn-cta-outline {
  background: transparent;
  color: hsl(var(--accent));
  border: 2px solid hsl(var(--accent));
}

.btn-cta-outline:hover {
  background: hsl(var(--accent));
  color: white;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: pulse-soft 3s ease-in-out infinite;
}

.hero-title {
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ================================
   PAIN SECTION
   ================================ */

.pain-section {
  padding: 5rem 0;
  background: var(--gradient-sky);
}

.pain-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pain-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.pain-highlight {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.pain-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto 3rem;
}

.pain-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .pain-icons {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
  }
}

.pain-icon-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.pain-icon-item svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--accent));
}

/* ================================
   HOW IT WORKS SECTION
   ================================ */

.how-it-works {
  padding: 5rem 0;
  background: hsl(var(--card));
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.section-title p {
  color: hsl(var(--muted-foreground));
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step-card {
  background: hsl(var(--background));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-cta);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.step-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}

/* ================================
   BENEFITS SECTION
   ================================ */

.benefits-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(185, 70%, 50%) 100%);
}

.benefits-section .section-title h2,
.benefits-section .section-title p {
  color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: white;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.benefit-item span {
  font-weight: 500;
}

/* ================================
   SOCIAL PROOF SECTION
   ================================ */

.social-proof {
  padding: 5rem 0;
  background: hsl(var(--background));
}

.social-proof-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  text-align: center;
  color: hsl(var(--foreground));
  margin-bottom: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: hsl(var(--muted));
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: hsla(210, 80%, 45%, 0.1);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.stat-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--primary));
}

.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}

.stat-label {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* ================================
   FAQ SECTION
   ================================ */

.faq-section {
  padding: 5rem 0;
  background: hsl(var(--card));
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid hsl(var(--border));
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ================================
   FINAL CTA SECTION
   ================================ */

.final-cta {
  padding: 5rem 0;
  background: var(--gradient-sky);
}

.final-cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.final-cta h2 {
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.final-cta-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.final-cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ================================
   FOOTER
   ================================ */

.footer {
  padding: 2rem 0;
  background: hsl(var(--foreground));
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsla(0, 0%, 100%, 0.6);
  font-weight: 600;
}

.footer-logo svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.4);
  text-align: center;
}

/* ================================
   MODAL / POPUP
   ================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: hsl(var(--card));
  border-radius: 1rem;
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: hsl(var(--foreground));
}

.modal-body {
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.modal-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(210, 80%, 45%, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: hsl(var(--primary));
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  cursor: pointer;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: hsla(142, 76%, 36%, 0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.success-icon svg {
  width: 2rem;
  height: 2rem;
  color: #22c55e;
}

.success-message h3 {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.success-message p {
  color: hsl(var(--muted-foreground));
}

/* ================================
   ANIMAÇÕES
   ================================ */

@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ================================
   UTILITIES
   ================================ */

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
