/* ═══════════════════════════════════════════════════════════
   EDITORA CONHECIMENTO LIVRE — CSS Global (site.css)
   ═══════════════════════════════════════════════════════════ */

/* ══ DESIGN TOKENS ════════════════════════════════════════ */
:root {
  --c-black:      #1A1A1A;
  --c-grey:       #515151;
  --c-white:      #FCFCFC;
  --c-light:      #F4F4F4;
  --c-navy:       #142952;
  --c-blue:       #233592;
  --c-amber:      #F0A516;
  --c-border:     #E4E8FF;
  --c-input-bg:   #E9EFFB;
  --c-icon-blue:  #E9EFFB;
  --c-icon-amber: #FBF6E9;
  --c-blue-bg:    #EEF3FB;
  --shadow:       8px 8px 35px 0 rgba(26,26,26,.10);
  --shadow-stats: -4px 15px 100px 0 rgba(26,26,26,.10);
}

/* ══ BASE ═════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--c-black);
  background: #fff;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, .font-sarabun {
  font-family: 'Sarabun', sans-serif;
}

.font-questrial {
  font-family: 'Questrial', sans-serif;
}


/* ══ NAVBAR ═══════════════════════════════════════════════ */
.navbar-main {
  background: var(--c-white);
  box-shadow: var(--shadow);
  padding: 0 64px;
  height: 105px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-main .logo { height: 57px; }

.navbar-main .nav-link {
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #515151 !important;
  padding: 12px !important;
  border-radius: 16px;
  transition: background .15s;
}

.navbar-main .nav-link:hover { background: #f5f5f5; }
.navbar-main .nav-link.active { color: var(--c-black) !important; }

.btn-entrar {
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-black);
  background: var(--c-white);
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  cursor: pointer;
}
.btn-entrar:hover { background: #f0f0f0; }

.btn-cadastrar {
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-white);
  background: var(--c-navy);
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  cursor: pointer;
}
.btn-cadastrar:hover { background: #0e1f3a; color: var(--c-white); }

/* ── Navbar mobile: botões dentro do collapse ── */
@media (max-width: 991.98px) {
  .navbar-main { padding: 0 20px; height: auto; min-height: 70px; }

  .navbar-auth-buttons {
    flex-direction: column;
    width: 100%;
    padding: 12px 0 4px;
    border-top: 1px solid #e5e5e5;
    margin-top: 8px;
  }
  .navbar-auth-buttons .btn-entrar,
  .navbar-auth-buttons .btn-cadastrar {
    width: 100%;
    text-align: center;
  }
}


/* ══ BREADCRUMB ═══════════════════════════════════════════ */
.site-breadcrumb {
  padding: 4px 64px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 2px 20px;
  border-radius: 4px;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #515151;
  text-decoration: none;
  white-space: nowrap;
}
.bc-btn:hover { background: #f5f5f5; color: #515151; }
.bc-btn.active { color: #27272a; }
.bc-sep { opacity: .8; display: flex; align-items: center; }


/* ══ PAGE LAYOUT ═════════════════════════════════════════ */
.page-content { padding: 32px 64px 64px; }

.page-title {
  font-family: 'Sarabun', sans-serif;
  font-size: 60px;
  font-weight: 800;
  color: var(--c-black);
  line-height: 1.1;
  margin-bottom: 8px;
}

.page-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--c-grey);
  line-height: 1.6;
  margin-bottom: 48px;
}


/* ══ SECTION TITLES (shared) ═════════════════════════════ */
.section-h {
  font-family: 'Sarabun', sans-serif;
  font-size: 50px;
  font-weight: 600;
  color: var(--c-black);
  line-height: 1;
}

.section-sub {
  font-family: 'Questrial', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--c-grey);
  line-height: 40px;
}

.section-title {
  font-family: 'Sarabun', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--c-black);
  line-height: 1.15;
}

.section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--c-grey);
  line-height: 2;
}


/* ══ SHARED ICONS ════════════════════════════════════════ */
.icon-amber {
  background: var(--c-icon-amber);
  border-radius: 16px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue {
  background: var(--c-icon-blue);
  border-radius: 16px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ══ SHARED CARDS ════════════════════════════════════════ */
.value-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
  height: 100%;
}

.card-title-h {
  font-family: 'Sarabun', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--c-black);
  margin-bottom: 10px;
}

.card-body-p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-grey);
  line-height: 1.7;
  margin: 0;
}


/* ══ SHARED BUTTONS ══════════════════════════════════════ */
.btn-navy {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--c-navy);
  border: none;
  border-radius: 10px;
  padding: 24px 35px;
  letter-spacing: -.48px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-navy:hover { background: #0e1f3a; color: #fff; }

.btn-cta {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  background: var(--c-amber);
  border: none;
  border-radius: 10px;
  padding: 15px 35px;
  letter-spacing: .48px;
}
.btn-cta:hover { background: #d4920e; color: var(--c-navy); }

.btn-cta-outline {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    font-size: 14px;
    border: none;
    text-decoration: none;
    padding: 0;
    border-top: 1px solid #ffffff40;
    border-radius: 0;
    padding-top: 28px;
    margin-top: 28px;
    padding-bottom: 24px;
}

.cta-divider { border-top: 1px solid rgba(255,255,255,.2); margin: 24px 0 16px; }
.stat-divider { width: 1px; background: #E0E0E0; align-self: stretch; }

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.feature-badge i { color: var(--c-amber); font-size: 14px; }


/* ══ FAQ (shared: index + contato) ═══════════════════════ */
.faq-section { padding: 80px 0; }

.faq-heading {
  font-family: 'Sarabun', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--c-black);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 48px;
}

.faq-box {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 32px;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid #F0F0F0;
}
.faq-item:last-child { border-bottom: none; }

.faq-btn {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  cursor: pointer;
  gap: 8px;
  text-align: left;
}

.faq-num {
  font-family: 'Sarabun', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-black);
  width: 36px;
  flex-shrink: 0;
  line-height: 1.4;
}

.faq-q {
  font-family: 'Sarabun', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-black);
  flex: 1;
  line-height: 1.4;
}

.faq-a {
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  color: var(--c-black);
  line-height: 25px;
  margin-top: 16px;
  padding-bottom: 12px;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--c-black);
  margin-top: 2px;
}

.faq-body {
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-body.collapsed { max-height: 0 !important; padding-bottom: 0; }


/* ══ FOOTER ═══════════════════════════════════════════════ */
.footer-amber-bar { height: 4px; background: var(--c-amber); width: 100%; }

.site-footer {
  background: var(--c-navy);
  padding: 56px 64px 32px;
  color: rgba(255,255,255,.70);
}

.footer-logo { height: 57px; filter: brightness(0) invert(1); }

.footer-brand {
  font-family: 'Sarabun', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
}

.footer-desc {
     font-family: 'Questrial', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,.60);
  line-height: 1.7;
  margin: 0;
}

.footer-h {
    font-family: 'Questrial', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
      font-family: 'Questrial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-link:hover { color: var(--c-amber); }

.footer-divider { border-top: 1px solid rgba(255,255,255,.15); margin: 32px 0 24px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.40); }

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 15px;
  transition: background .2s; background: #fff;
}
.social-icon:hover { background: rgba(255,255,255,.15); color: #fff; }


/* ══ FEATURE ITEMS ═══════════════════════════════════════ */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--c-black);
  letter-spacing: -.42px;
}
.feature-item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ══ RESPONSIVE (global) ═════════════════════════════════ */
@media (max-width: 1199px) {
  .site-breadcrumb,
  .page-content,
  .site-footer { padding-left: 32px; padding-right: 32px; }

  .section-h { font-size: 38px; }
  .faq-heading { font-size: 36px; }
}

@media (max-width: 767px) {
  .site-breadcrumb,
  .page-content,
  .site-footer { padding-left: 20px; padding-right: 20px; }

  .page-title { font-size: 40px; }
  .section-h { font-size: 30px; }
  .faq-heading { font-size: 24px; }
}