
/* File: /assets/css/barti-header-footer.css
   Scope: Only header/footer layout & dropdowns. Prefixed with .barti-* to avoid conflicts.
   Assumes Tailwind base is already loaded.
*/

/* ---------- Topbar ---------- */
.barti-topbar {
  background: #0c3e78; /* deep blue close to site */
  color: #ffffff;
  font-size: 0.875rem;
}
.barti-topbar a { color: #ffffff; text-decoration: none; }
.barti-topbar .barti-topbar-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.35rem 0;
}
.barti-topbar .barti-left, .barti-topbar .barti-right {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.barti-topbar .barti-fs a { font-weight: 600; margin-left: 0.25rem; }
.barti-topbar .barti-lang a { padding: 0 0.25rem; border-left: 1px solid rgba(255,255,255,0.25); }
.barti-topbar .barti-lang a:first-child { border-left: 0; padding-left: 0; }

/* ---------- Header / Branding ---------- */
.barti-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.barti-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.barti-brand .barti-title {
  flex: 1 1 auto;
}
.barti-brand img {
  height: 64px;
  width: auto;
}
@media (min-width: 1024px) {
  .barti-brand img { height: 72px; }
}

.barti-title {
  line-height: 1.25;
}
.barti-title .barti-institute {
  font-weight: 700; font-size: 1.125rem; color: #0c3e78;
}
.barti-title .barti-sub {
  font-size: 0.875rem; color: #111827;
}

/* ---------- Main Nav ---------- */
.barti-nav {
  position: relative;
  background: #0c3e78;
}
.barti-nav ul { list-style: none; margin: 0; padding: 0; }
.barti-menu { display: flex; align-items: stretch; gap: 0; }
.barti-menu > li {
  position: relative;
}
.barti-menu > li > a,
.barti-menu > li > button {
  display: flex; align-items: center; padding: 0.875rem 1rem;
  color: #ffffff; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.barti-menu > li:hover > a,
.barti-menu > li:hover > button { background: #0a3566; }

/* Dropdown */
.barti-dropdown {
  position: absolute; left: 0; top: 100%; min-width: 240px;
  background: #ffffff; color: #111827; border: 1px solid #e5e7eb;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 150ms ease-in-out; z-index: 40; box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.barti-menu > li:hover .barti-dropdown,
.barti-menu > li:focus-within .barti-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.barti-dropdown a { display: block; padding: 0.625rem 0.875rem; color: #111827; text-decoration: none; }
.barti-dropdown a:hover { background: #f3f4f6; }

/* ---------- Footer ---------- */
.barti-footer {
  background: #0c3e78; color: #ffffff;
}
.barti-footer a { color: #ffffff; text-decoration: none; }
.barti-footer a:hover { text-decoration: underline; }
.barti-footer .barti-footer-top {
  padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.barti-footer .barti-footer-bottom {
  padding: 1rem 0; font-size: 0.875rem;
}
.barti-footer .barti-footer-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .barti-footer .barti-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.barti-footer h4 {
  font-weight: 700; margin-bottom: 0.75rem; font-size: 1rem;
}
.barti-footer .barti-addr p { margin: 0.25rem 0; }
.barti-footer .barti-ul { list-style: none; padding: 0; margin: 0; }
.barti-footer .barti-ul li { margin: 0.25rem 0; }

/* ---------- Utilities ---------- */
.barti-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.barti-skip { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.barti-skip:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: 0.5rem 0.75rem; background: #111827; color: #fff; z-index: 50; }

/* Mobile nav (simple collapsible) */
.barti-nav-toggle { display: none; }
@media (max-width: 1023.98px) {
  .barti-nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; color: #fff; background: #0a3566; border: 0; }
  .barti-menu { display: none; flex-direction: column; }
  .barti-nav.open .barti-menu { display: flex; }
  .barti-menu > li > a, .barti-menu > li > button { padding: 0.75rem 1rem; }
  .barti-dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; }
}
