@import url('tokens.css?v=2');

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--gray-600);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--header-height);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--sp-3); }

/* ============ HEADER / NAV ============ */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: var(--ink);
  z-index: var(--z-fixed);
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  column-gap: var(--sp-6);
}
.nav__logo { flex: 0 0 auto; }
.nav__logo img { max-width: 200px; height: auto; }
.nav__menu { flex: 1 1 auto; min-width: 0; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Seletor de idioma (bandeiras) — vive no rodapé, junto aos ícones sociais */
.lang-switch {
  display: inline-flex;
  border: 1px solid #444;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.lang-switch--footer { margin: 0 auto var(--sp-3); }
.lang-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: none;
  color: #bbb;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: .4rem .65rem;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang-btn .lang-flag { font-size: 1rem; line-height: 1; }
.lang-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}
.lang-btn:not(.is-active):hover { background: #333; color: var(--white); }

.nav__list {
  display: flex;
  align-items: center;
  column-gap: var(--sp-4);
  height: 100%;
}
.nav__list li:last-child { margin-left: auto; }
.nav__link, .dropdown__trigger {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  height: 100%;
  padding: 0;
}
.dropdown__arrow { font-size: 1.1rem; transition: transform .3s; }
.dropdown__trigger[aria-expanded="true"] .dropdown__arrow { transform: rotate(180deg); }

.dropdown__item { position: relative; }
.dropdown__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 1rem);
  min-width: 200px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.dropdown__menu.show-dropdown {
  opacity: 1;
  pointer-events: initial;
  transform: translateY(0);
}
.dropdown__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--white);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: background-color .2s;
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: #333; }

/* CTA de topo — sempre visível, imune ao bug de dropdown */
.nav__cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--fs-xs);
  padding: .6rem 1.1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: transform .2s ease;
}
.nav__cta:hover { transform: scale(1.04); }

/* Mobile nav */
@media screen and (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__logo img { max-width: 150px; }
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--ink);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
  }
  .nav__menu.show-menu { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    column-gap: 0;
    padding: var(--sp-2) 0;
  }
  .nav__list li:last-child { margin-left: 0; }
  .nav__link, .dropdown__trigger {
    height: auto;
    padding: var(--sp-2) var(--sp-3);
    width: 100%;
    justify-content: space-between;
  }
  .dropdown__menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: #262626;
    max-height: 0;
    opacity: 1;
    transform: none;
    pointer-events: initial;
    transition: max-height .3s ease;
  }
  .dropdown__menu.show-dropdown { max-height: 400px; }
  .nav__cta { margin: var(--sp-2) var(--sp-3); text-align: center; }
}

/* ============ HERO (reutilizável em todas as páginas verticais) ============ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: var(--sp-6) var(--sp-3);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,25,25,.55), rgba(25,25,25,.75));
}
.hero__content { position: relative; max-width: 720px; }
.hero__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.hero h1 { color: var(--white); margin-bottom: var(--sp-2); }
.hero__subtitle { font-size: var(--fs-md); margin-bottom: var(--sp-4); color: #eee; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  font-weight: 700;
  font-size: var(--fs-xs);
  border-radius: var(--radius-full);
  transition: transform .2s ease, background-color .2s ease;
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: scale(1.03); }
.btn--upper { text-transform: uppercase; letter-spacing: .02em; }
.btn--dark { background: var(--gray-700); color: var(--white); }
.btn--dark:hover { background: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

/* ============ SECÇÕES GENÉRICAS ============ */
.section { padding: var(--sp-6) 0; }
.section--subtle { background: var(--bg-subtle); }
.section-title {
  text-align: center;
  margin-bottom: var(--sp-4);
}
.section-lead {
  max-width: 720px;
  margin: 0 auto var(--sp-5);
  text-align: center;
  color: var(--gray-600);
  font-size: var(--fs-md);
}

/* Grid de cartões genérico (usado em Home, fundadores, ofertas Academy) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__body { padding: var(--sp-3); }
.card__title { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.card__caption { color: var(--gray-500); font-size: var(--fs-xs); }

/* Accordion (FAQ / Como trabalhamos) */
.accordion-item { border-top: 1px solid #ddd; }
.accordion-item:last-child { border-bottom: 1px solid #ddd; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--sp-3) 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-item.is-open .accordion-panel { max-height: 600px; }
.accordion-panel p { padding-bottom: var(--sp-3); color: var(--gray-600); }
.accordion-trigger .chev { transition: transform .3s ease; }
.accordion-item.is-open .chev { transform: rotate(180deg); }

/* Scroll reveal (micro-interação subtil) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ FORMULÁRIOS ============ */
.form-input, .form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ccc;
  margin-bottom: var(--sp-2);
}
.form-input:focus, .form-textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-hint { font-size: var(--fs-xs); color: var(--gray-500); margin: .35rem 0 0; }

.checkbox-fieldset { border: none; padding: 0; margin: 0; text-align: left; }
.checkbox-fieldset legend {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  margin-bottom: var(--sp-2);
}
.checkbox-grid { display: flex; flex-direction: column; gap: .5rem; }
.checkbox-item { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--gray-600); }
.checkbox-item input { width: auto; margin: 0; }
.form-status {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; color: #1a7a3d; }
.form-status.is-error { display: block; color: var(--danger); }

.contact-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.contact-card form.js-ajax-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--sp-3);
  row-gap: var(--sp-3);
  text-align: left;
}
.contact-card form.js-ajax-form .form-input,
.contact-card form.js-ajax-form .form-textarea {
  margin-bottom: 0;
}
.form-field { display: flex; flex-direction: column; }
.form-field > label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .4rem;
}
.form-field .required-mark { color: var(--danger); margin-left: .15rem; }
.form-full { grid-column: 1 / -1; }

@media screen and (max-width: 700px) {
  .contact-card form.js-ajax-form { grid-template-columns: 1fr; }
}

/* Newsletter mini-form (rodapé, em todas as páginas) */
.newsletter {
  background: var(--gray-700);
  padding: var(--sp-5) var(--sp-3);
  text-align: center;
  color: var(--white);
}
.newsletter h3 { color: var(--white); margin-bottom: var(--sp-1); }
.newsletter p { color: #ccc; margin-bottom: var(--sp-3); }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}
.newsletter-form .form-input { flex: 1 1 200px; margin-bottom: 0; border: none; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: var(--sp-5) var(--sp-3) var(--sp-4);
}
.footer-title { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.footer-icon { font-size: 1.4rem; color: var(--white); transition: transform .2s ease, color .2s ease; }
.footer-icon:hover { color: var(--accent); transform: scale(1.15); }
.footer-legal { color: #999; font-size: var(--fs-xs); }
.footer-legal span { color: #ccc; }

@media screen and (max-width: 700px) {
  h1 { font-size: var(--fs-xl); }
  h2 { font-size: var(--fs-lg); }
  .hero { min-height: 60vh; }
}
