/* ===== ETAPA 5: CSS COMPLETO COM ANIMAÇÕES DINÂMICAS ===== */

/* 1. VARIÁVEIS CSS (DESIGN TOKENS) */
:root {
  /* Paleta COPEEX */
  --azul-navy: #1B365D;
  --azul-escuro: #1a2332;
  --azul-claro: #2c5282;
  --ouro: #D4A574;
  --ouro-claro: #E8C4A0;
  --ouro-escuro: #B8934A;
  --branco: #FFFFFF;
  --cinza-claro: #F5F5F5;
  --cinza-medio: #E0E0E0;
  --cinza-escuro: #333333;
  --texto-principal: #1a1a1a;
  --texto-secundario: #666666;
  
  /* Tipografia */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  
  /* Espaçamentos */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.25);
  
  /* Transições */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s ease-in-out;
  --transition-slow: 0.6s ease-in-out;
}

/* 2. RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--texto-principal);
  background-color: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 3. TIPOGRAFIA GLOBAL */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--azul-navy);
}

h1 {
  font-size: 4rem;
  letter-spacing: -2px;
}

h2 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--texto-secundario);
  font-size: 1.05rem;
  line-height: 1.8;
}

a {
  color: var(--ouro);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--ouro-escuro);
}

/* 4. LAYOUT GLOBAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.section--dark {
  background-color: var(--azul-navy);
  color: var(--branco);
}

.section--light {
  background-color: var(--cinza-claro);
}

.section--white {
  background-color: var(--branco);
}

/* 5. COMPONENTES REUTILIZÁVEIS */

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--ouro), var(--ouro-escuro));
  color: var(--azul-navy);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--azul-navy);
  color: var(--ouro);
  border: 2px solid var(--ouro);
}

.btn--secondary:hover {
  background: var(--ouro);
  color: var(--azul-navy);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--ouro);
  border: 2px solid var(--ouro);
}

.btn--outline:hover {
  background: var(--ouro);
  color: var(--azul-navy);
}

/* Cards */
.card {
  background: var(--branco);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card--dark {
  background: var(--azul-navy);
  color: var(--branco);
}

/* Badges */
.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--ouro);
  color: var(--azul-navy);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--danger {
  background: #DC3545;
  color: var(--branco);
}

/* 6. SEÇÕES ESPECÍFICAS */

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--azul-navy) 0%, var(--azul-claro) 100%);
  color: var(--branco);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  color: var(--branco);
  margin-bottom: var(--spacing-md);
  animation: slideInLeft 0.8s ease-out;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero__image {
  position: relative;
  animation: slideInRight 0.8s ease-out 0.2s both;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
}

.hero__cta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

/* PROOF SECTION */
.proof {
  background: var(--branco);
  padding: var(--spacing-xxl) 0;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.proof__item {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: 8px;
  background: var(--cinza-claro);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.6s ease-out;
}

.proof__item:hover {
  background: var(--ouro);
  color: var(--azul-navy);
  transform: translateY(-8px);
}

.proof__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ouro);
  margin-bottom: var(--spacing-sm);
}

.proof__item:hover .proof__number {
  color: var(--azul-navy);
}

.proof__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto-principal);
}

/* FRAMEWORK SECTION */
.framework {
  background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-navy) 100%);
  color: var(--branco);
  padding: var(--spacing-xxl) 0;
}

.framework__title {
  color: var(--ouro);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.6s ease-out;
}

.framework__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.framework__pillar {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border-left: 4px solid var(--ouro);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.6s ease-out;
}

.framework__pillar:hover {
  background: rgba(212, 165, 116, 0.1);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.framework__icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.framework__pillar h3 {
  color: var(--ouro);
  margin-bottom: var(--spacing-md);
}

.framework__pillar p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* INSTRUCTOR SECTION */
.instructor {
  background: var(--branco);
  padding: var(--spacing-xxl) 0;
}

.instructor__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.instructor__image {
  position: relative;
  animation: slideInLeft 0.8s ease-out;
}

.instructor__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
}

.instructor__content h2 {
  margin-bottom: var(--spacing-md);
  animation: slideInRight 0.8s ease-out 0.1s both;
}

.instructor__content p {
  margin-bottom: var(--spacing-md);
  animation: slideInRight 0.8s ease-out 0.2s both;
}

.instructor__credentials {
  list-style: none;
  margin: var(--spacing-lg) 0;
}

.instructor__credentials li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--texto-secundario);
  animation: slideInRight 0.8s ease-out 0.3s both;
}

.instructor__credentials li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ouro);
  font-weight: 700;
}

/* CONTENT SECTION */
.content {
  background: var(--cinza-claro);
  padding: var(--spacing-xxl) 0;
}

.content__title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.6s ease-out;
}

.content__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.content__item {
  background: var(--branco);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.6s ease-out;
}

.content__item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.content__item h3 {
  color: var(--ouro);
  margin-bottom: var(--spacing-md);
}

.content__item ul {
  list-style: none;
}

.content__item li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--texto-secundario);
}

.content__item li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ouro);
  font-weight: 700;
}

/* TESTIMONIALS SECTION */
.testimonials {
  background: linear-gradient(135deg, var(--azul-navy) 0%, var(--azul-claro) 100%);
  color: var(--branco);
  padding: var(--spacing-xxl) 0;
}

.testimonials__title {
  color: var(--ouro);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.6s ease-out;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border-left: 4px solid var(--ouro);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.6s ease-out;
}

.testimonial:hover {
  background: rgba(212, 165, 116, 0.1);
  transform: translateY(-8px);
}

.testimonial__stars {
  color: #FFD700;
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.testimonial__text {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial__author {
  font-weight: 700;
  color: var(--ouro);
  margin-bottom: var(--spacing-xs);
}

.testimonial__role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* URGENCY SECTION */
.urgency {
  background: var(--branco);
  padding: var(--spacing-xxl) 0;
  border-top: 4px solid var(--ouro);
}

.urgency__title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.6s ease-out;
}

.urgency__content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--cinza-claro);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border-left: 4px solid #DC3545;
  animation: slideInUp 0.6s ease-out;
}

.urgency__item {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.urgency__icon {
  font-size: 1.5rem;
  color: #DC3545;
  flex-shrink: 0;
  margin-top: 4px;
}

.urgency__text {
  color: var(--texto-principal);
}

.urgency__highlight {
  color: #DC3545;
  font-weight: 700;
}

/* PRICING SECTION */
.pricing {
  background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-navy) 100%);
  color: var(--branco);
  padding: var(--spacing-xxl) 0;
}

.pricing__title {
  color: var(--ouro);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.6s ease-out;
}

.pricing__container {
  max-width: 900px;
  margin: 0 auto;
  animation: slideInUp 0.6s ease-out;
}

.pricing__value {
  background: rgba(212, 165, 116, 0.1);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border: 2px solid var(--ouro);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.pricing__old {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
  margin-bottom: var(--spacing-sm);
}

.pricing__new {
  font-size: 3rem;
  color: var(--ouro);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.pricing__savings {
  font-size: 1.1rem;
  color: #28a745;
  font-weight: 700;
}

.pricing__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.pricing__option {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border: 1px solid var(--ouro);
  text-align: center;
  transition: all var(--transition-normal);
}

.pricing__option:hover {
  background: rgba(212, 165, 116, 0.15);
  transform: translateY(-4px);
}

.pricing__option h3 {
  color: var(--ouro);
  margin-bottom: var(--spacing-md);
}

.pricing__option p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
}

/* FAQ SECTION */
.faq {
  background: var(--branco);
  padding: var(--spacing-xxl) 0;
}

.faq__title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.6s ease-out;
}

.faq__container {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--cinza-medio);
  animation: fadeInUp 0.6s ease-out;
}

.faq__question {
  width: 100%;
  padding: var(--spacing-lg);
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.faq__question:hover {
  color: var(--ouro);
}

.faq__icon {
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 var(--spacing-lg);
}

.faq__item.active .faq__answer {
  max-height: 500px;
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq__answer p {
  color: var(--texto-secundario);
}

/* FINAL CTA SECTION */
.final-cta {
  background: linear-gradient(135deg, var(--ouro) 0%, var(--ouro-escuro) 100%);
  color: var(--azul-navy);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.final-cta__title {
  color: var(--azul-navy);
  margin-bottom: var(--spacing-lg);
  animation: slideInDown 0.8s ease-out;
}

.final-cta__subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  animation: slideInDown 0.8s ease-out 0.1s both;
}

.final-cta__button {
  animation: slideInUp 0.8s ease-out 0.2s both;
}

/* FOOTER */
.footer {
  background: var(--azul-navy);
  color: var(--branco);
  padding: var(--spacing-lg) 0;
  text-align: center;
  border-top: 4px solid var(--ouro);
}

.footer__content {
  margin-bottom: var(--spacing-md);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer__link {
  color: var(--ouro);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--ouro-claro);
}

.footer__copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* 7. RESPONSIVIDADE (MEDIA QUERIES) */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
  }

  .proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .framework__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instructor__container {
    grid-template-columns: 1fr;
  }

  .content__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .pricing__options {
    grid-template-columns: 1fr;
  }
}

/* Mobile (&lt; 768px) */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero::before {
    width: 300px;
    height: 300px;
  }

  .hero__cta {
    flex-direction: column;
  }

  .proof__grid {
    grid-template-columns: 1fr;
  }

  .framework__grid {
    grid-template-columns: 1fr;
  }

  .content__grid {
    grid-template-columns: 1fr;
  }

  .pricing__options {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .footer__links {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

/* 8. ANIMAÇÕES */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Intersection Observer para animações ao scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}