/* =============================================
   PROF. DR. ODAIR ALFREDO — FIEL AO ORIGINAL
   Cores e fontes extraídas do CSS do Elementor
   ============================================= */

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

:root {
  --topbar-bg:   #467FF7;
  --hero-text:   #75473D;
  --hero-desc:   #3B0909;
  --btn-hero:    #75473D;
  --shape-green: #46C331;
  --mid-bg:      #F0F0F0;
  --card-bg:     #341F1B;
  --card-border: rgba(255,255,255,0.11);
  --card-title:  #99837C;
  --card-old:    #ADADAD;
  --card-price:  #FFFFFF;
  --card-text:   #F0F0F0;
  --btn-course:  #086331;
  --footer-bg:   #202020;
  --footer-text: #ADADAD;
  --faq-title:   #341F1B;
  --faq-item-bg: #341F1B;
  --faq-icon:    #46C331;
  --font: 'Sora', sans-serif;
  --font-top: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: #fff; color: #111; line-height: 1.4; font-weight: 300; letter-spacing: -0.1px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--topbar-bg);
  color: #fff;
  text-align: center;
  padding: 0 3%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-top);
  font-size: 16px;
  font-weight: 300;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 900px;
  background-image: url('https://oprofessoralfredo.com/wp-content/uploads/2025/09/Design-sem-nome.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 30px;
  display: flex;
  align-items: center;
}
.hero__content {
  width: 56%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 15px;
  margin-left: -5px;
}
.hero__name {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 600;
  line-height: 39px;
  color: var(--hero-text);
  -webkit-text-stroke: 2px var(--hero-text);
  margin-bottom: 4px;
}
.hero__sub {
  font-family: var(--font);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--hero-text);
}
.hero__desc {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 31px;
  color: var(--hero-desc);
  margin-top: 16px;
  margin-bottom: 8px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-hero);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  width: fit-content;
  margin-top: 12px;
}
.btn-hero svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }
.btn-hero:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-hero--sm { font-size: 14px; padding: 10px 20px; }

/* Shape divider bottom */
.hero__shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
}
.hero__shape svg { display: block; width: 100%; height: 0; }
.shape-fill { fill: var(--shape-green); }

/* ===== MIDDLE SECTION ===== */
.middle-section {
  background: var(--mid-bg);
  padding: 0;
}
.middle-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 476px;
  justify-content: center;
}
/* Itens que precisam ficar centralizados dentro do middle-inner */
.middle-inner .section-title-dark,
.middle-inner .divider-line,
.middle-inner .divider-dotted,
.middle-inner .video-wrap,
.middle-inner .btn-hero {
  align-self: center;
}
.section-title-dark {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 600;
  line-height: 39px;
  letter-spacing: -0.5px;
  color: #272727;
  text-align: center;
  margin-bottom: 24px;
}
.divider-line {
  width: 100%;
  height: 1px;
  background: #000;
  margin: 15px 0;
}
.divider-dotted {
  width: 100%;
  height: 1px;
  border-top: 1px dotted #000;
  margin: 15px 0;
}
.video-wrap {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 8px;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* DEPOIMENTOS — seção própria fora do flex-column */
.testimonials-section {
  background: var(--mid-bg);
  padding: 40px 24px;
}
.testimonials-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-top: 24px;
}
.stars { font-size: 20px; margin-bottom: 8px; letter-spacing: 2px; }
.testimonial {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: #111;
  min-width: 0;
}
.testimonial p { margin-bottom: 8px; }
.testimonial em { font-style: italic; }

/* ===== COURSES SECTION ===== */
.courses-section {
  background: #dbd3be;
  padding: 63px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 63px;
}
.courses-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1100px;
}
/* scroll animation */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* COURSE CARD */
.course-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 28px;
  gap: 12px;
  flex: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.course-card__img {
  width: 90%;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.course-card__title {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 35px;
  color: var(--card-title);
  text-align: center;
  width: 100%;
}
.course-card__old {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 24px;
  color: var(--card-old);
  text-decoration: line-through;
  text-align: center;
  width: 100%;
}
.course-card__price {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 24px;
  color: var(--card-price);
  text-align: center;
  width: 100%;
}
.course-card__installment {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  color: var(--card-old);
  text-align: center;
  width: 100%;
}
.course-card__divider {
  width: 26%;
  height: 1px;
  background: rgba(255,255,255,0.17);
  margin: 4px auto;
}
.topic-wip { color: #a89080; font-style: italic; }
.btn-course--wip { background: #555; cursor: not-allowed; opacity: 0.7; }
.btn-course--wip:hover { background: #555; transform: none; }

.course-card__topics {
  width: 96%;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  line-height: 33px;
  letter-spacing: 0.8px;
  color: var(--card-text);
  text-align: left;
  flex: 1;
}
.course-card__topics p { margin: 0; }
.btn-course {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--btn-course);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: auto;
  width: 90%;
  justify-content: center;
}
.btn-course svg { width: 14px; height: 14px; fill: #fff; flex-shrink: 0; }
.btn-course:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== FAQ ===== */
.faq-section {
  background: #dbd3be;
  padding: 60px 24px;
  display: flex;
  justify-content: center;
  min-height: 491px;
  align-items: center;
}
.faq-inner {
  width: 100%;
  max-width: 74%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.faq-title {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  line-height: 39px;
  letter-spacing: -0.5px;
  color: var(--faq-title);
  text-align: center;
  margin-bottom: 8px;
}
.accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.acc-item {
  border: 1px solid rgba(209,209,209,0.22);
  overflow: hidden;
}
.acc-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--faq-item-bg);
  color: #fff;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  padding: 15px 15px;
  border: none;
  cursor: pointer;
  text-align: left;
  border-top: 1px solid rgba(209,209,209,0.22);
}
.acc-icon { display: flex; align-items: center; flex-shrink: 0; }
.acc-icon svg { width: 16px; height: 16px; fill: var(--faq-icon); display: block; }
.icon-up { display: none; }
.acc-title[aria-expanded="true"] .icon-down { display: none; }
.acc-title[aria-expanded="true"] .icon-up { display: block; }
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fff;
  border-top: 0px solid rgba(209,209,209,0.22);
  padding: 0 15px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--faq-title);
}
.acc-content.open {
  max-height: 600px;
  padding: 15px 15px;
  border-top: 1px solid rgba(209,209,209,0.22);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
}
.footer p {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: var(--footer-text);
  text-align: center;
}

/* ===== WHATSAPP WIDGET ===== */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wa-btn {
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 32px; height: 32px; }
.wa-box {
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  width: 280px;
}
.wa-box.show { display: flex; }
.wa-header {
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.wa-label { font-family: var(--font); font-weight: 600; font-size: 15px; }
.wa-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.wa-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wa-bubble {
  background: #f0f0f0;
  border-radius: 8px 8px 8px 0;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: #333;
  align-self: flex-start;
}
.wa-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.wa-open:hover { opacity: 0.9; }
.wa-open svg { width: 20px; height: 20px; }

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .topbar { font-size: 14px; padding: 0 5%; }
  .hero__content { margin-left: 5%; margin-right: 43%; width: auto; }
}

@media (max-width: 767px) {
  .hero {
    background-image: url('https://oprofessoralfredo.com/wp-content/uploads/2025/09/a-natomia-1.png');
    background-position: top center;
    min-height: auto;
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-bottom: 50px;
  }
  .hero__inner { padding: 20px; }
  .hero__content {
    width: 100%;
    margin: 0;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-top: 347px;
  }
  .hero__name { font-size: 28px; }
  .hero__sub { font-size: 24px; line-height: 1.2; }
  .hero__desc { font-size: 16px; line-height: 2; }
  .section-title-dark { font-size: 26px; }
  .testimonials-grid { flex-direction: column; }
  .courses-row { flex-direction: column; align-items: center; }
  .course-card { width: 100%; max-width: 360px; }
  .faq-inner { max-width: 100%; }
  .faq-title { font-size: 25px; }
  .acc-title { font-size: 16px; line-height: 1.8; }
  .footer p { font-size: 13px; }
}
