/* ND78 — layout.css
 * Cabeçalho (Joomla fj4-header) e rodapé (fj-footer).
 * Reconstruído localmente porque os CSS originais são remotos/offline.
 */

/* ============================ HEADER ============================ *
 * Escopado para o header do site (filho direto de <body>).
 * Motivo: assets/js/page.js injeta <header class="nd-page-hero"> dentro de
 * #main nas páginas internas. Sem o escopo, ele herdava position:sticky +
 * z-index:200 e atropelava o menu do topo (e os submenus) ao rolar.
 */
body > header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nd-line);
}
body > header .fill { display: none; }

.menu-bg { width: 100%; }
.menu {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.logo { flex: 0 0 auto; display: flex; align-items: center; }
.logo img { height: 30px; width: auto; }

.menu-list {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.nav-template {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--nd-ink);
  transition: background 0.2s ease;
}
.nav-template:hover { background: var(--nd-bg-soft); }
.nav-template img { height: 15px; width: auto; }

.web-nav-ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.web-nav-ul > li { position: relative; }
.nav-hover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--nd-ink);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-hover:hover { background: var(--nd-bg-soft); }
.nav-hover .top-icon { transition: transform 0.2s ease; opacity: 0.7; }
.banner-li:hover .nav-hover .top-icon { transform: rotate(180deg); }
.ai-svg { display: inline-flex; }
.ai-svg svg { width: 18px; height: 18px; }

/* Dropdowns */
.child-menu,
.child-learn-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--nd-line);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
  padding: 20px;
  display: flex;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}
.child-learn-menu > div { display: contents; }
.banner-li:hover > .child-menu,
.banner-li:hover > .child-learn-menu,
.banner-li:focus-within > .child-menu,
.banner-li:focus-within > .child-learn-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.child-menu-raw-list { display: flex; gap: 28px; }
.child-menu-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.child-menu-ul .menu-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nd-muted);
  padding: 6px 10px;
  margin-top: 2px;
}
.child-menu-ul .menu-title.menu-title-image {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--nd-ink);
}
.child-menu-ul li > a,
.child-menu-ul .ai-menu-li > a,
.child-menu-ul li.learn-color > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nd-ink-soft);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.child-menu-ul li > a:hover,
.child-menu-ul .ai-menu-li > a:hover { background: var(--nd-bg-soft); color: var(--nd-ink); }
.child-menu-ul li img { width: 18px; height: 18px; }
.h-new {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--nd-grad-orange);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 2px;
}

/* "More" (mobile trigger) + hamburger */
.more-li { display: none; }
.header-more { display: none; align-items: center; }
.header-more span { display: inline-flex; padding: 8px; border-radius: 10px; }
.header-more span:hover { background: var(--nd-bg-soft); }

.login-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.btn-login,
.btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-login { color: var(--nd-ink); border: 1px solid var(--nd-line); background: #fff; }
.btn-login:hover { background: var(--nd-bg-soft); }
.btn-signup { color: #fff; background: var(--nd-grad-orange); box-shadow: 0 8px 22px rgba(255, 120, 45, 0.32); }
.btn-signup:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 120, 45, 0.42); }

.mobile-menu-list { display: none; }

body.nd-nav-open { overflow: hidden; }

/* ============================ FOOTER ============================ */
footer { background: #fff; border-top: 1px solid var(--nd-line); margin-top: 0; }
.mod_fj_footer { max-width: 1280px; margin: 0 auto; padding: 56px 28px 40px; }
.footer_wrapper {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 56px;
}
.left_box > svg { height: 38px; width: auto; }
.left_box > p {
  margin: 20px 0 0;
  color: var(--nd-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}

.language_box { position: relative; margin-top: 24px; max-width: 240px; }
.language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--nd-line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
}
.language div::after { content: "▾"; color: var(--nd-muted); }
.language_box .lang_list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--nd-line);
  border-radius: 10px;
  box-shadow: var(--nd-shadow-sm);
  transition: max-height 0.25s ease, padding 0.25s ease;
  z-index: 10;
}
.language_box.open .lang_list { max-height: 360px; overflow: auto; padding: 6px; }
.language_box .lang_list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--nd-ink-soft); font-size: 14px; }
.language_box .lang_list a:hover { background: var(--nd-bg-soft); }

.left_box > ol {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}
.left_box > ol a { display: inline-flex; }
.left_box > ol svg { width: 36px; height: 36px; border-radius: 10px; }
.left_box > ol a:hover svg { transform: translateY(-2px); transition: transform 0.15s ease; }

.cp_wrapper { margin-top: 24px; color: var(--nd-muted); font-size: 13px; }
.cp_wrapper span { color: var(--nd-ink); font-weight: 700; }
.preferred_source { margin-top: 16px; }
#preferredSourceBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nd-bg-soft);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nd-ink-soft);
}
#preferredSourceBtn svg { width: 18px; height: 18px; }

.nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.nav_row { display: contents; }
.footer_row { display: flex; flex-direction: column; gap: 2px; }
.row_category_name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nd-ink);
  margin-bottom: 14px;
}
.footer_row .top-icon { display: none; }
.row_item_name a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--nd-muted);
  transition: color 0.15s ease;
}
.row_item_name a:hover { color: var(--nd-orange); }
.footer_row .row_item_name:last-child a { color: var(--nd-orange); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
