/* ==========================================================================
   Formação Tributária — Seções
   Geometria conferida contra o Figma (docs/DESIGN-SPEC.md)
   ========================================================================== */

/* ========================= HEADER ========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px var(--section-pad-x);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
}

.header__logo img {
  height: 56px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__link {
  font-size: 16px;
  line-height: 24px;
  color: var(--header-link);
  transition: color 0.15s ease;
}

.header__link:hover {
  color: var(--brand);
}

.header__menu-btn {
  display: none;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
}

@media (max-width: 1024px) {
  .header {
    padding: 24px 16px;
  }

  .header__logo img {
    height: 48px;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 12px 24px rgba(12, 33, 59, 0.08);
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav .header__link {
    padding: 12px 8px;
  }
}

/* ========================= HERO ========================= */

.hero {
  position: relative;
  background: var(--brand);
  padding: 176px var(--section-pad-x);
  overflow: hidden;
}

/* hero.svg já é o recorte visível do logo (691×419) — encosta na borda direita */
.hero__watermark {
  position: absolute;
  bottom: 115px;
  right: 0;
  width: 691px;
  height: 419px;
  max-width: none;
  pointer-events: none;
}

.hero__caption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 768px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__subheading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero__h1 {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 500;
  line-height: 72px;
  color: #fff;
  max-width: 752px;
}

.hero__h1 strong {
  font-weight: 700;
}

.hero__text {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 707px;
}

.hero__actions {
  display: flex;
  gap: 16px;
}

.hero__scroll {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Seta desce suavemente, esmaece e reaparece em cima — indica scroll */
.hero__scroll-arrow {
  animation: hero-arrow 1.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

@keyframes hero-arrow {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  65% {
    transform: translateY(6px);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 40px 16px;
  }

  .hero__watermark {
    top: 30px;
    right: -131px;
    bottom: auto;
    width: 282px;
    height: 96px;
  }

  .hero__h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .hero__text {
    font-size: 16px;
    line-height: 24px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scroll {
    position: static;
    transform: none;
    margin: 40px auto 0;
  }
}

/* ========================= ABOUT ========================= */

.about .container {
  display: flex;
  flex-direction: column;
}

.about__hero-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 424px;
  margin-top: 50px; /* folga para a imagem vazar 50px acima do card */
  padding: 74px 620px 74px 56px;
  background: var(--primary-400);
  border-radius: var(--radius);
}

.about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 539px;
}

.about__content .heading {
  margin-top: 8px;
}

.about__text {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--fg-disabled);
  margin-top: 16px;
}

.about__image {
  position: absolute;
  top: 50%;
  right: 56px;
  transform: translateY(-50%);
  width: 524px;
  height: 524px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image--mobile {
  display: none;
}

.about__principles {
  display: flex;
  gap: 32px;
  margin-top: 98px;
}

.about__principle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
}

.about__principle h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--brand);
}

.about__principle p {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--brand);
}

.about__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .about__hero-card {
    min-height: 0;
    margin-top: 0;
    padding: 56px 24px 24px;
  }

  .about__image--desktop {
    display: none;
  }

  .about__text {
    font-size: 16px;
    line-height: 24px;
  }

  /* Mobile (Figma): imagem vem antes do card azul, que sobrepõe seus 32px finais */
  .about__image--mobile {
    display: block;
    position: static;
    transform: none;
    width: 100%;
    max-width: 310px;
    height: 310px;
    margin: 0 auto;
  }

  .about__hero-card {
    position: relative;
    margin-top: -32px;
  }

  .about__principles {
    flex-direction: column;
    margin-top: 32px;
  }

  .about__cta {
    margin-top: 32px;
  }
}

/* ========================= BIG NUMBERS ========================= */

.numbers__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 48px 216px;
  background: var(--brand);
  border-radius: var(--radius);
}

.numbers__stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.numbers__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 368px;
  min-height: 80px;
}

.numbers__value {
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  color: var(--fg-inverse);
}

.numbers__label {
  font-size: 16px;
  line-height: 24px;
  color: var(--fg-inverse);
}

@media (max-width: 1024px) {
  .numbers__card {
    gap: 40px;
    padding: 40px 24px;
  }

  .numbers__stats {
    flex-direction: column;
    width: 100%;
  }

  .numbers__stat {
    width: 100%;
  }

  .numbers__value {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ========================= COURSES ========================= */

.courses .section-title {
  padding: 8px 0;
  margin-bottom: 60px;
}

.courses__grid {
  display: flex;
  gap: 32px;
}

.courses__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  overflow: hidden;
}

.courses__image {
  height: 310px;
  overflow: hidden;
}

.courses__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.courses__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
}

.courses__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.courses__label {
  color: var(--fg-primary);
  text-transform: uppercase;
}

.courses__name {
  font-family: var(--font-card);
  font-size: 28px;
  font-weight: 500;
  line-height: 42px;
  color: var(--fg-primary);
}

.courses__btn {
  width: 100%;
}

@media (max-width: 1024px) {
  .courses .section-title {
    margin-bottom: 32px;
  }

  .courses__grid {
    flex-direction: column;
  }

  .courses__image {
    height: 187px;
  }

  .courses__body {
    padding: 24px;
  }

  .courses__name {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ========================= HIGHLIGHTS ========================= */

.highlights {
  padding-top: 56px;
  padding-bottom: 56px;
}

.highlights__grid {
  display: grid;
  grid-template-columns: 528px 1fr;
  column-gap: 40px;
}

.highlights__visual {
  position: relative;
  height: 846px;
}

.highlights__logo-block {
  position: relative;
  width: 528px;
  height: 100%;
  background: var(--bg-highlight);
  border-radius: var(--radius);
  overflow: hidden;
}

.highlights__logo-block img {
  position: absolute;
  top: 59px;
  left: -338px;
  width: 978px;
  max-width: none;
}

.highlights__image {
  position: absolute;
  top: 252px;
  left: 56px;
  width: 564px;
  height: 538px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.highlights__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlights__content {
  padding-top: 56px;
}

.highlights__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 389px;
}

.highlights__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 556px;
  margin: 88px 0 0 92px;
  padding: 0;
}

.highlights__feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.highlights__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin-top: 3px;
}

.highlights__feature h3 {
  font-family: var(--font-card);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #182330;
}

.highlights__feature p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  color: var(--fg-tertiary);
}

@media (max-width: 1024px) {
  .highlights {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .highlights__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .highlights__content {
    padding-top: 0;
    order: 1;
  }

  .highlights__heading {
    max-width: none;
  }

  .highlights__features {
    margin: 32px 0 0;
    max-width: none;
  }

  .highlights__visual {
    order: 2;
    height: auto;
    padding-top: 92px; /* imagem vaza 92px acima do bloco-logo */
  }

  .highlights__logo-block {
    width: 100%;
    height: 505px;
  }

  .highlights__logo-block img {
    top: auto;
    bottom: 0;
    left: -307px;
    width: 615px;
  }

  .highlights__image {
    top: 0;
    left: auto;
    right: 0;
    width: 310px;
    max-width: 86%;
    height: 538px;
  }
}

/* ========================= TEACHERS ========================= */

.teachers {
  background: rgba(245, 246, 248, 0.3); /* #F5F6F84D do Figma */
}

.teachers .section-title {
  margin-bottom: 64px;
}

.teachers__heading {
  max-width: 886px;
}

.teachers__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* cards da mesma linha com altura uniforme, como no Figma */
  gap: 32px;
}

.teachers__card {
  display: flex;
  flex-direction: column;
  width: 384px;
  background: var(--fg-inverse);
  border: 1px solid var(--fg-disabled);
  border-radius: var(--radius);
  overflow: hidden;
}

.teachers__photo {
  height: 384px;
  overflow: hidden;
}

.teachers__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.teachers__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
}

.teachers__body h3 {
  font-family: var(--font-card);
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  color: var(--fg-primary);
}

.teachers__body p {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--fg-tertiary);
}

.teachers__more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 160%;
  color: var(--brand);
}

.teachers__more .chevron {
  width: 24px;
  height: 24px;
}

.teachers__arrows {
  display: none;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .teachers {
    background: var(--primary-50);
  }

  .teachers .section-title {
    margin-bottom: 32px;
  }

  .teachers__track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .teachers__track::-webkit-scrollbar {
    display: none;
  }

  .teachers__card {
    flex: 0 0 304px;
    width: 304px;
    scroll-snap-align: start;
    scroll-margin-left: 16px;
  }

  .teachers__body {
    padding: 20px;
  }

  .teachers__arrows {
    display: flex;
  }
}

/* ========================= REVIEWS ========================= */

.reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  width: 572px;
  margin-top: 48px;
  margin-left: auto;
}

.reviews__header .heading {
  color: var(--brand);
  max-width: 389px;
}

.reviews__card {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 608px;
  margin-top: 48px;
  padding: 64px 40px;
  background: var(--brand);
  border-radius: var(--radius);
}

.reviews__image {
  position: absolute;
  left: 40px;
  bottom: 77px;
  width: 564px;
  height: 755px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.reviews__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews__track {
  display: flex;
  gap: 24px;
  width: 532px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.reviews__quote {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
}

.reviews__quote p {
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  line-height: 160%;
  color: var(--fg-inverse);
}

.reviews__quote-mark {
  flex-shrink: 0;
  width: 49px;
}

.reviews__quote-mark--right {
  align-self: flex-end;
}

@media (max-width: 1024px) {
  .reviews__header {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .reviews__card {
    flex-direction: column;
    align-items: center;
    min-height: 0;
    margin-top: 32px;
    padding: 40px 24px 0; /* Figma: card 940px fixos, imagem clipada na base */
  }

  .reviews__image {
    position: static;
    width: 100%;
    max-width: 310px;
    height: 380px;
    margin-top: 40px;
    order: 2;
  }

  .reviews__track {
    width: 100%;
    order: 1;
  }

  .reviews__quote {
    flex-direction: column;
    align-items: flex-start;
  }

  .reviews__quote p {
    font-size: 16px;
    line-height: 24px;
  }

  .reviews__quote-mark {
    width: 32px;
  }
}

/* ========================= CONTACT ========================= */

.contact .section-title {
  margin-bottom: 40px;
}

.contact__grid {
  display: flex;
  gap: 32px;
}

.contact__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background: var(--primary-400);
  border-radius: var(--radius);
}

.contact__icon img {
  width: 24px;
  height: 24px;
}

.contact__card h3 {
  font-family: var(--font-card);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: var(--fg-primary);
}

.contact__official {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  text-align: center;
}

.contact__official-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--brand);
}

.contact__official-phones {
  font-size: 16px;
  line-height: 24px;
  color: var(--brand);
}

.contact__official-phones span {
  color: #98a4b3;
}

@media (max-width: 1024px) {
  .contact__grid {
    flex-direction: column;
  }
}

/* ========================= FOOTER ========================= */

.footer {
  background: var(--brand);
  padding: 64px 0;
}

.footer__columns {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.footer__brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  height: 56px;
  width: auto;
}

.footer__slogan {
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-disabled);
  max-width: 175px;
}

.footer__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__col h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--fg-inverse);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.footer__col li {
  font-size: 14px;
  line-height: 20px;
}

.footer__col a {
  color: var(--fg-disabled);
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--fg-inverse);
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid var(--primary-200);
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-disabled);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  color: var(--fg-disabled);
  transition: color 0.15s ease;
}

.footer__legal a:hover {
  color: var(--fg-inverse);
}

@media (max-width: 1024px) {
  .footer {
    padding: 32px 0;
  }

  .footer__columns {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__logo {
    margin: 0 auto;
  }

  .footer__col {
    align-items: center;
  }

  .footer__bar {
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    text-align: center;
  }
}
