/* =====================================================
   Isaac — Shared Nav & Footer  (nav-footer.css)
   Loaded by the server into every public template.
   ===================================================== */

/* ---- NAV ---- */
nav#main-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.9rem 2rem; display: flex; align-items: center; justify-content: space-between;
  background: rgba(242,243,245,0.93);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border, #E2E5EB);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}
nav#main-nav .nav-logo {
  display: flex; flex-direction: column; text-decoration: none; line-height: 1.1;
}
nav#main-nav .nav-logo-name {
  font-family: 'Ultra', serif; font-size: 1.25rem;
  color: var(--ink, #1A1F2E); letter-spacing: 0.5px; line-height: 1;
}
nav#main-nav .nav-logo-sub {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.48rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--slate-faint, #9CA3AF); margin-top: 3px;
}
nav#main-nav .nav-links {
  display: flex; gap: 2rem; align-items: center; list-style: none; margin: 0; padding: 0;
}
nav#main-nav .nav-links a {
  color: var(--slate, #4A5568); text-decoration: none;
  font-size: 0.9rem; font-weight: 400;
  transition: color 0.2s;
}
nav#main-nav .nav-links a:hover { color: var(--ink, #1A1F2E); }
nav#main-nav .nav-links a.nav-active {
  color: var(--ink, #1A1F2E); font-weight: 600;
  position: relative;
}
nav#main-nav .nav-links a.nav-active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--cyan, #0094B0); border-radius: 2px;
}
nav#main-nav .nav-web-app {
  padding: 0.5rem 1.1rem; border-radius: 8px; font-weight: 500 !important;
  font-size: 0.85rem !important; border: 1px solid var(--border, #E2E5EB) !important;
  background: #fff !important; color: var(--ink, #1A1F2E) !important;
  transition: box-shadow 0.2s !important; margin-left: -0.75rem !important;
}
nav#main-nav .nav-web-app:hover {
  box-shadow: 0 4px 14px rgba(13,27,42,0.12) !important; color: var(--ink,#1A1F2E) !important;
}
nav#main-nav .nav-cta {
  background: var(--ink, #1A1F2E) !important; color: #fff !important;
  padding: 0.55rem 1.3rem; border-radius: 8px; font-weight: 600 !important;
  font-size: 0.85rem !important; transition: transform 0.2s, box-shadow 0.2s !important;
  display: inline-flex !important; align-items: center !important;
  margin-left: -1.5rem !important;
}
nav#main-nav .nav-cta:hover {
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,27,42,0.18);
  color: #fff !important;
}
nav#main-nav .hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px; z-index: 9999;
}
nav#main-nav .hamburger span {
  width: 22px; height: 2px; background: var(--ink, #1A1F2E);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s; display: block;
}
nav#main-nav .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav#main-nav .hamburger.open span:nth-child(2) { opacity: 0; }
nav#main-nav .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000; background: #fff; flex-direction: column;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border, #E2E5EB); flex-shrink: 0;
}
.mobile-menu-header .nav-logo-name { font-family: 'Ultra', serif; font-size: 1.2rem; color: #1A1F2E; letter-spacing: 0.5px; line-height: 1; }
.mobile-menu-header .nav-logo-sub { font-size: 0.48rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: #9CA3AF; margin-top: 3px; }
.mobile-menu-header .nav-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.mobile-menu-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: #F2F3F5; border: none; color: #4A5568;
  font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-links {
  flex: 1; display: flex; flex-direction: column; padding: 0.5rem 1.5rem; overflow-y: auto;
}
.mobile-menu-links a {
  display: flex; align-items: center; width: 100%; padding: 1rem 0;
  font-size: 1.05rem; font-weight: 400; color: #1A1F2E; text-decoration: none;
  border-bottom: 1px solid #F2F3F5; transition: color 0.15s;
}
.mobile-menu-links a:last-child { border-bottom: none; }
.mobile-menu-links a.nav-active { font-weight: 600; color: #0094B0; }
.mobile-menu-actions {
  padding: 1.25rem 1.5rem 2rem; display: flex; flex-direction: column;
  gap: 0.65rem; border-top: 1px solid #E2E5EB; flex-shrink: 0;
}
.mobile-menu-login {
  display: flex !important; align-items: center; justify-content: center;
  width: 100%; padding: 0.85rem 1.5rem;
  background: #fff; color: #1A1F2E !important;
  border: 1.5px solid #E2E5EB !important; border-radius: 10px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.mobile-menu-cta {
  display: flex !important; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 0.9rem 1.5rem !important;
  background: #1A1F2E !important; color: #fff !important;
  border-radius: 10px !important; font-weight: 600 !important;
  font-size: 0.95rem !important; border: none !important; text-decoration: none;
}

/* ---- FOOTER ---- */
footer#main-footer {
  padding: 4rem 2rem 2rem;
  background: #1A1F2E;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}
footer#main-footer .footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
footer#main-footer .footer-logo {
  display: flex; flex-direction: column; text-decoration: none; margin-bottom: 0.75rem;
}
footer#main-footer .footer-logo-name {
  font-family: 'Ultra', serif; font-size: 1.2rem; color: #fff; letter-spacing: 1px; line-height: 1;
}
footer#main-footer .footer-logo-sub {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 3px;
}
footer#main-footer .footer-brand p {
  font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.6;
  max-width: 260px; margin-bottom: 1rem;
}
footer#main-footer .footer-badges {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem;
}
footer#main-footer .footer-badge img { height: 36px; width: auto; display: block; }
footer#main-footer .footer-badge { transition: opacity 0.2s; }
footer#main-footer .footer-badge:hover { opacity: 0.8; }
footer#main-footer .footer-col h3 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85); margin-bottom: 1rem; font-weight: 600;
}
footer#main-footer .footer-col a {
  display: block; color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.82rem; padding: 0.25rem 0; transition: color 0.2s;
}
footer#main-footer .footer-col a:hover { color: #0094B0; }
footer#main-footer .footer-bottom {
  max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  footer#main-footer .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav#main-nav { padding: 0.75rem 1.25rem; }
  nav#main-nav .nav-links { display: none !important; }
  nav#main-nav .hamburger { display: flex; }
  footer#main-footer .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  footer#main-footer .footer-bottom { flex-direction: column; text-align: center; }
}
