/* ============================================================
   Orflie — Landing de Cursos (Closer & SDR)
   Paleta da marca + layout moderno e responsivo
   ============================================================ */

:root {
  --orflie-primary: #F85916;        /* Laranja da marca */
  --orflie-primary-dark: #d8480c;
  --orflie-primary-soft: rgba(248, 89, 22, .12);
  --orflie-dark: #383E42;           /* Grafite da marca */
  --orflie-dark-2: #2a2f33;
  --orflie-gray: #B0B0B0;           /* Cinza de apoio */
  --orflie-text: #3a4149;
  --orflie-muted: #6b7280;
  --orflie-bg-soft: #f7f8fa;

  /* Sobrescreve o "primary" do Bootstrap para o laranja da Orflie */
  --bs-primary: #F85916;
  --bs-primary-rgb: 248, 89, 22;

  --shadow-sm: 0 .25rem .75rem rgba(56, 62, 66, .06);
  --shadow-md: 0 .75rem 1.75rem rgba(56, 62, 66, .10);
  --shadow-lg: 0 1.75rem 3.5rem rgba(56, 62, 66, .16);
  --radius: 1.25rem;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--orflie-text);
  overflow-x: hidden;              /* evita rolagem lateral no mobile */
}

h1, h2, h3, h4, .navbar-brand, .display-6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -.01em;
}

/* Rótulo "kicker" acima dos títulos */
.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orflie-primary);
  margin-bottom: .5rem;
}

.text-muted-2 { color: var(--orflie-muted) !important; }

/* ---------------- Botões ---------------- */
.btn { border-radius: 50rem; font-weight: 600; padding-inline: 1.5rem; }
.btn-lg { padding: .8rem 2rem; }

.btn-primary {
  --bs-btn-bg: var(--orflie-primary);
  --bs-btn-border-color: var(--orflie-primary);
  --bs-btn-hover-bg: var(--orflie-primary-dark);
  --bs-btn-hover-border-color: var(--orflie-primary-dark);
  --bs-btn-active-bg: var(--orflie-primary-dark);
  --bs-btn-active-border-color: var(--orflie-primary-dark);
  --bs-btn-disabled-bg: var(--orflie-primary);
  --bs-btn-disabled-border-color: var(--orflie-primary);
  box-shadow: 0 .5rem 1.25rem rgba(248, 89, 22, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 .75rem 1.5rem rgba(248, 89, 22, .45); }

.btn-outline-primary {
  --bs-btn-color: var(--orflie-primary);
  --bs-btn-border-color: var(--orflie-primary);
  --bs-btn-hover-bg: var(--orflie-primary);
  --bs-btn-hover-border-color: var(--orflie-primary);
  --bs-btn-active-bg: var(--orflie-primary);
  --bs-btn-active-border-color: var(--orflie-primary);
}
.text-primary { color: var(--orflie-primary) !important; }
.bg-primary   { background-color: var(--orflie-primary) !important; }

/* ---------------- Navbar ---------------- */
.navbar {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow .3s ease, padding .3s ease;
  padding-block: .9rem;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); padding-block: .55rem; }
.navbar-brand img { height: 34px; }
.navbar .nav-link { font-weight: 500; color: var(--orflie-dark); }
.navbar .nav-link:hover { color: var(--orflie-primary) !important; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(248, 89, 22, .28), transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, rgba(248, 89, 22, .12), transparent 55%),
    linear-gradient(135deg, var(--orflie-dark) 0%, var(--orflie-dark-2) 100%);
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; }
.hero .lead { color: rgba(255, 255, 255, .82); }
.hero .highlight { color: var(--orflie-primary); }
.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform .4s ease;
}
.hero-img:hover { transform: perspective(1200px) rotateY(0deg); }

.hero-check { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.hero-check i { color: var(--orflie-primary); }

/* Faixa de estatísticas */
.stats-band {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: -3.5rem;
  position: relative;
  z-index: 3;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--orflie-dark);
}
.stat-number span { color: var(--orflie-primary); }

/* ---------------- Seções ---------------- */
section { scroll-margin-top: 80px; }

/* Bloco de seção com mais respiro vertical */
.section-block { padding-block: clamp(4rem, 7vw, 6.5rem); }

/* Fundo alternado para separar as seções */
.section-alt { background: var(--orflie-bg-soft); }

.section-title {
  position: relative;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: .5rem;
}
/* Barra laranja de destaque abaixo do título */
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  border-radius: 2px;
  background: var(--orflie-primary);
  margin: .9rem auto 0;
}

/* ---------------- Cards de curso ---------------- */
.course-card {
  border: 1px solid rgba(56, 62, 66, .06);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.course-card .badge-course { font-size: .72rem; letter-spacing: .1em; font-weight: 700; }
.course-header { padding: 2.25rem 2rem; color: #fff; position: relative; }
.course-header.sdr    { background: linear-gradient(135deg, #383E42, #22262a); }
.course-header.closer { background: linear-gradient(135deg, #F85916, #d8480c); }
.course-header .course-icon {
  position: absolute; top: 1.75rem; right: 1.75rem;
  font-size: 2.5rem; opacity: .25;
}
.course-list li { padding: .35rem 0; }
.course-list i { color: var(--orflie-primary); }

/* ---------------- Ícones de benefício ---------------- */
.feature-card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem 1.5rem; height: 100%;
  border: 1px solid rgba(56, 62, 66, .06);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 1rem;
  background: var(--orflie-primary-soft);
  color: var(--orflie-primary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ---------------- Depoimentos ---------------- */
.testimonial-card {
  background: #fff; border: 1px solid rgba(56, 62, 66, .06);
  border-radius: var(--radius); height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.avatar {
  width: 44px; height: 44px;
  background: var(--orflie-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; flex-shrink: 0;
}
.stars { color: var(--orflie-primary); letter-spacing: .1em; }

/* ---- Carrossel de depoimentos (esteira contínua) ---- */
.testimonials-marquee {
  overflow: hidden;
  padding: .5rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.testimonials-track {
  display: flex;
  width: max-content;
  animation: testimonials-scroll 55s linear infinite;
}
.testimonials-marquee:hover .testimonials-track { animation-play-state: paused; }
.testimonial-item { flex: 0 0 340px; margin-right: 1.5rem; }

@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 575.98px) {
  .testimonial-item { flex-basis: 82vw; margin-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .testimonial-item { margin-bottom: 1.5rem; }
  .testimonials-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------------- Accordion (FAQ) ---------------- */
.accordion { --bs-accordion-border-color: rgba(56, 62, 66, .1); }
.accordion-item { border-radius: 1rem !important; overflow: hidden; margin-bottom: .75rem; }
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { color: var(--orflie-primary); background: var(--orflie-primary-soft); }
.accordion-button:focus { box-shadow: none; border-color: var(--orflie-primary); }
.accordion-button:not(.collapsed)::after {
  filter: invert(45%) sepia(89%) saturate(2000%) hue-rotate(350deg);
}

/* ---------------- Formulário ---------------- */
.form-control, .form-select { border-radius: .75rem; padding: .7rem 1rem; border-color: #e2e5e9; }
.form-control:focus, .form-select:focus {
  border-color: var(--orflie-primary);
  box-shadow: 0 0 0 .2rem var(--orflie-primary-soft);
}

/* ---------------- WhatsApp ---------------- */
.btn-whatsapp {
  background: #25D366; border-color: #25D366; color: #fff;
  font-weight: 600; border-radius: 50rem;
  box-shadow: 0 .5rem 1.25rem rgba(37, 211, 102, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-whatsapp:hover {
  background: #1da851; border-color: #1da851; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.5rem rgba(37, 211, 102, .45);
}

/* Divisor "ou" entre os dois canais */
.channel-divider {
  display: flex; align-items: center; gap: 1rem;
  color: rgba(255, 255, 255, .55); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .1em; margin: 1.5rem 0;
}
.channel-divider::before,
.channel-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .18);
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.9rem; z-index: 1050;
  box-shadow: 0 .5rem 1.5rem rgba(37, 211, 102, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 575.98px) {
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after { animation: none; }
}

/* ---------------- Rodapé ---------------- */
footer { background: var(--orflie-dark); color: #cbd5e1; }
footer a { transition: color .2s ease; }
footer a:hover { color: var(--orflie-primary) !important; }
footer .footer-logo img { height: 30px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1 !important;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.social-icon:hover {
  background: var(--orflie-primary);
  color: #fff !important;          /* mantém o ícone branco sobre o laranja */
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVO — celular e telas pequenas
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-img { transform: none; margin-top: 2.5rem; max-width: 90%; }
  .stats-band { margin-top: 1.5rem; }
}

@media (max-width: 767.98px) {
  .hero { text-align: center; padding: 3.5rem 0 2.5rem; }
  .hero .hero-actions { justify-content: center; }
  .hero .hero-checks { justify-content: center; }
  .course-header { padding: 1.75rem 1.5rem; }
  .stats-band .stat-item { border: none !important; }
}

@media (max-width: 575.98px) {
  .hero .hero-actions { flex-direction: column; }
  .hero .hero-actions .btn { width: 100%; }
  .navbar .btn { width: 100%; margin-top: .5rem; }
  .section-title { font-size: 1.6rem; }
  h1, .hero h1 { font-size: 2rem; }
}

/* Acessibilidade: respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
  *, .btn-primary, .course-card, .hero-img { transition: none !important; }
  * { scroll-behavior: auto; }
}
