/* ==========================================================================
   LANDING PAGE DRONE AGRÍCOLA - VERSÃO OTIMIZADA E LIMPA
   CSS Minimalista focado em Conversão e Performance
   ========================================================================== */

:root {
    /* Cores Principais */
    --primary: #2A5B7F;
    --secondary: #D96647;
    --accent: #F2B03B;
    --success: #667C4D;
    
    /* Neutros */
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #2c3e50;
    
    /* Sombras */
    --shadow-soft: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 30px rgba(0,0,0,0.12);
    --shadow-strong: 0 8px 40px rgba(0,0,0,0.15);
    
    /* Animações */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   HEADER - LIMPO E OTIMIZADO
   ========================================================================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo com dimensões fixas para evitar layout shift */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 150px;
    display: block;
    object-fit: contain;
}

/* Badges do Header */
.header-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background: var(--light);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}

.header-badge.header-badge--keep img.badge-icon{
  width: 55px;      /* ajuste aqui */
  height: 55px;
  object-fit: contain;
  flex: 0 0 auto;
}

.header-badge:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.badge-icon {
    font-size: 16px;
    line-height: 1;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Força GPU para elementos animados */
.cta-primary,
.trust-badge,
.avatar,
.hero-image-wrapper {
    will-change: transform;
    transform: translateZ(0);
}

/* Desativa animações para preferência do usuário */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-underline {
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.3);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   NOTIFICATIONS & POPUPS (mantidos mas simplificados)
   ========================================================================== */

.social-notification {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE BASE - Mobile First
   ========================================================================== */

/* Mobile Base */
@media (max-width: 767px) {
    /* Reset global para mobile */
    html {
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    body {
        overflow-x: hidden;
    }
    
    .container {
        width:100%;
        padding: 0 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    /* Header Mobile */
    .header {
        padding: 8px 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo img {
        height: 36px;
        max-width: 120px;
    }
    
    .header-badges {
        flex-wrap: nowrap;
    }
    
    .header-badge {
        font-size: 16px;
        padding: 6px 10px;
    }
    
    /* Esconde badges extras no mobile */
    .header-badge:not(.header-badge--keep) {
        display: none;
    }
    
    .header-badge--keep .badge-icon {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 24px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .header-badges,
    .cta-primary,
    .social-notification {
        display: none;
    }
}

@supports (-webkit-touch-callout: none) {
  /* Fix para iOS Safari */
  body {
    -webkit-text-size-adjust: 100%;
  }
  
  /* Previne zoom em inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* Fix para 100vh no Safari mobile */
  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}