/* ============================================
   GLOBAL — Design System Maio Amarelo × Loma
   Tokens, Reset, Tipografia, Utilitários
   ============================================ */

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

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

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

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Design Tokens ---------- */
:root {
  /* Campanha Maio Amarelo */
  --color-campaign: #F5B800;
  --color-campaign-dark: #D49E00;
  --color-campaign-light: #FFD54F;

  /* Loma Brand */
  --color-loma-tiffany: #0ABAB5;
  --color-loma-tiffany-hover: #2e9c8f;

  /* Neutros */
  --color-bg: #F5B800;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-text: #1A1A1A;
  --color-text-muted: #4A4A4A;
  --color-text-light: #6B6B6B;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-600: #4B5563;

  /* Tipografia (Design System) */
  --font-heading: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Sombras (Design System multi-layer) */
  --shadow-card: 0 2.8px 2.2px rgba(0,0,0,0.02),
                 0 6.7px 5.3px rgba(0,0,0,0.028),
                 0 12.5px 10px rgba(0,0,0,0.035),
                 0 22.3px 17.9px rgba(0,0,0,0.042),
                 0 41.8px 33.4px rgba(0,0,0,0.05),
                 0 100px 80px rgba(0,0,0,0.07);
  --shadow-button: 0 2.8px 2.2px rgba(0,0,0,0.034),
                   0 6.7px 5.3px rgba(0,0,0,0.048),
                   0 12.5px 10px rgba(0,0,0,0.06),
                   0 22.3px 17.9px rgba(0,0,0,0.072),
                   0 41.8px 33.4px rgba(0,0,0,0.086),
                   0 100px 80px rgba(0,0,0,0.12);
  --shadow-glass: rgba(255,255,255,0.1) 0px 1px 1px 0px inset,
                  rgba(50,50,93,0.25) 0px 50px 100px -20px,
                  rgba(0,0,0,0.3) 0px 30px 60px -30px;

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Fold base ---------- */
.fold {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* ---------- Botão Primário (Design System) ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-button);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  background: #1a1a1a;
}

/* ---------- Botão Secundário (Design System) ---------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: var(--color-gray-50);
}

/* ---------- Animations (Design System) ---------- */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

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

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---------- Global CTA Animation & Hover (Tiffany Blue) ---------- */
@keyframes heartbeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.04); }
  30% { transform: scale(1); }
  45% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.navbar__cta,
.hero-cta,
.fold-hero__cta,
.fold-benefits__cta,
.fold-special__cta,
.fold-institutional__cta,
.fold-faq__cta,
.open-quotation {
  animation: heartbeat 2s infinite ease-in-out !important;
  transform-origin: center;
  will-change: transform;
}

.navbar__cta:hover,
.hero-cta:hover,
.fold-hero__cta:hover,
.fold-benefits__cta:hover,
.fold-special__cta:hover,
.fold-institutional__cta:hover,
.fold-faq__cta:hover,
.open-quotation:hover {
  background-color: var(--color-loma-tiffany) !important;
  color: #ffffff !important;
  border-color: var(--color-loma-tiffany) !important;
  box-shadow: 0 15px 35px rgba(10, 186, 181, 0.4) !important;
  animation: none !important; /* Para a pulsação no hover para focar na interação */
  transform: scale(1.05) !important;
}

.navbar__cta:hover svg,
.hero-cta:hover svg,
.fold-hero__cta:hover svg,
.fold-benefits__cta:hover svg,
.fold-special__cta:hover svg,
.fold-institutional__cta:hover svg,
.fold-faq__cta:hover svg,
.open-quotation:hover svg,
.navbar__cta:hover i,
.hero-cta:hover i,
.fold-hero__cta:hover i,
.fold-benefits__cta:hover i,
.fold-special__cta:hover i,
.fold-institutional__cta:hover i,
.fold-faq__cta:hover i,
.open-quotation:hover i {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }
}
