/* Variáveis do projeto - Instituto Elton Fagundes */
:root {
  --brand-blue: hsl(199, 100%, 38%);
  --brand-blue-hover: hsl(199, 100%, 32%);
  --brand-dark: hsl(240, 10%, 3.9%);
  --brand-black: hsl(0, 0%, 0%);
  --brand-light: hsl(0, 0%, 98%);
  --brand-gray: hsl(0, 0%, 63.9%);
  --brand-gray-light: hsl(0, 0%, 90%);
  --brand-gray-dark: hsl(0, 0%, 12%);
  --radius: 0.5rem;
  --container-max: 1400px;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--brand-black);
  color: var(--brand-light);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-light);
  font-size: 1.25rem;
  font-weight: 700;
}

.header-logo img {
  width: 6rem;
  margin-right: 0.75rem;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.nav-link {
  color: var(--brand-light);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.btn-cta {
  display: inline-block;
  background: var(--brand-blue);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem;
}

.btn-cta:hover {
  background: var(--brand-blue-hover);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--brand-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--brand-light);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero h1 .highlight {
  color: var(--brand-blue);
}

.hero p {
  font-size: 1.125rem;
  color: var(--brand-gray-light);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

/* Seções comuns */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-title .highlight {
  color: var(--brand-blue);
}

/* Comparative (O Curso) */
.section-curso {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.section-curso .section-title {
  color: var(--brand-dark);
}

.cards-grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  height: 100%;
}

.card-white {
  background: white;
  border: 1px solid #d1d5db;
}

.card-dark {
  background: var(--brand-dark);
  color: var(--brand-light);
  border: 1px solid #374151;
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-title {
  font-size: 1.875rem;
  font-weight: 600;
}

.card-content {
  padding: 1rem 1.5rem 1.5rem;
}

.card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-content li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.card-content li svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--brand-blue);
}

.card-white .card-content li {
  color: #374151;
}

.card-dark .card-content li {
  color: var(--brand-gray-light);
}

/* Vantagens */
.section-vantagens {
  background: var(--brand-dark);
}

.advantages-grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .advantages-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.advantage-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: rgba(199, 100%, 38%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.advantage-icon-wrap svg {
  width: 3rem;
  height: 3rem;
  color: var(--brand-blue);
}

.advantage-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-light);
}

/* New Advantages */
.section-new-vantagens {
  background: var(--brand-gray-dark);
}

.section-new-vantagens .section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--brand-gray);
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.advantage-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.advantage-item:hover img {
  transform: scale(1.05);
}

.advantage-item .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.advantage-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--brand-light);
}

.advantage-item p {
  color: var(--brand-gray);
  max-width: 20rem;
  margin: 0;
}

/* Conteúdo do curso (tópicos) */
.section-conteudo {
  background: var(--brand-dark);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .topics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.topic-card {
  background: var(--brand-dark);
  border: 1px solid #374151;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.topic-card:hover {
  border-color: var(--brand-blue);
  transform: scale(1.05);
}

.topic-card svg,
.topic-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--brand-blue);
  margin: 0 auto 1rem;
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

.topic-card .topic-icon {
  margin-left: auto;
  margin-right: auto;
  color: var(--brand-blue);
}

.topic-card p {
  font-weight: 600;
  color: var(--brand-light);
  margin: 0;
}

/* Feedback (depoimentos longos) */
.section-feedback {
  background: var(--brand-gray-dark);
  text-align: center;
}

.section-feedback .section-title {
  margin-bottom: 5rem;
}

.feedback-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .feedback-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feedback-card {
  background: rgba(230, 230, 230, 0.1);
  border: 1px solid var(--brand-gray-light);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.feedback-card p {
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--brand-light);
}

.feedback-card .author {
  font-weight: 600;
  color: var(--brand-blue);
}

/* Inscrição - Formulário */
.section-inscricao {
  background: var(--brand-gray-light);
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .section-inscricao {
    padding: 6rem 1.5rem;
  }
}

.section-inscricao .section-title {
  color: var(--brand-dark);
  margin-bottom: 3rem;
}

.form-wrapper {
  max-width: 32rem;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e5e7eb;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--brand-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  background: white;
  color: var(--brand-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(199, 100%, 38%, 0.2);
}

.form-group input.error {
  border-color: var(--brand-blue);
}

.form-group .error-msg {
  font-size: 0.75rem;
  color: var(--brand-blue);
  margin-top: 0.25rem;
}

.form-wrapper .btn-cta {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.125rem;
  text-align: center;
}

/* Testimonials (cards estilo chat) */
.section-testimonials {
  background: var(--brand-black);
}

.section-testimonials .section-subtitle {
  text-align: center;
  color: var(--brand-gray);
  font-size: 1.125rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--brand-gray-dark);
  border: 1px solid #374151;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: scale(1.05);
}

.testimonial-card .card-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-card .avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #d1d5db;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.testimonial-card .card-header > div {
  display: flex;
  align-items: center;
}

.testimonial-card .card-header span:first-of-type {
  font-weight: 600;
  color: white;
}

.testimonial-card .card-header .online {
  font-size: 0.75rem;
  color: #e5e7eb;
}

.testimonial-card .card-body {
  padding: 1rem;
}

.testimonial-card .card-body p {
  font-size: 0.875rem;
  color: var(--brand-gray-light);
  margin-bottom: 0.5rem;
}

.testimonial-card .card-body .time {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

/* Cores dos headers dos testimonials */
.bg-emerald { background: #059669; }
.bg-sky { background: #0284c7; }
.bg-indigo { background: #4f46e5; }
.bg-rose { background: #e11d48; }
.bg-amber { background: #d97706; }
.bg-teal { background: #0d9488; }

/* Garantia */
.section-garantia {
  background: var(--brand-gray-dark);
  text-align: center;
}

.section-garantia .icon-wrap {
  margin-bottom: 1.5rem;
}

.section-garantia .icon-wrap svg {
  width: 4rem;
  height: 4rem;
  color: var(--brand-blue);
}

.section-garantia .section-title {
  margin-bottom: 1rem;
}

.section-garantia p {
  font-size: 1.125rem;
  color: var(--brand-gray-light);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  background: var(--brand-black);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--brand-gray);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.footer-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer p {
  font-size: 0.875rem;
  color: var(--brand-gray);
  margin: 0;
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #22c55e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  z-index: 50;
  transition: background 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #16a34a;
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Mensagens de sucesso/erro no formulário */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.form-message.success {
  background: #059669;
  color: white;
}

.form-message.error {
  background: #dc2626;
  color: white;
}
