/* ═══════════════════════════════════════════════════════════════
   NeolabCare Components CSS v4.0
   Universal nav + footer for ALL pages.
   Redesigned: clean fullscreen mobile overlay, no double cross.
   ═══════════════════════════════════════════════════════════════ */

/* ── NAV BAR ─────────────────────────────────────────────────── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 60px);
  height: 72px;
  transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}
#mainNav.sc {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border, rgba(200,184,154,.12));
  height: 64px;
  box-shadow: 0 1px 24px rgba(0,0,0,.4);
}

/* Logo */
.nl-logo { display: flex; align-items: center; flex-shrink: 0; z-index: 101; }
.nl-logo img { height: 36px; width: auto; transition: height 0.3s ease; }
#mainNav.sc .nl-logo img { height: 32px; }

/* Desktop links container */
.nl-links {
  display: flex; align-items: center; gap: 0;
  height: 100%;
}

/* Individual link */
.nl-link {
  position: relative;
  display: flex; align-items: center;
  height: 100%;
  padding: 0 clamp(14px, 2vw, 24px);
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, rgba(245,245,240,.52));
  transition: color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}
.nl-link::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent, #C8B89A);
  transition: left 0.3s cubic-bezier(.22,1,.36,1),
              right 0.3s cubic-bezier(.22,1,.36,1);
}
.nl-link:hover { color: var(--text, rgba(245,245,240,.94)); }
.nl-link:hover::after { left: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); }
.nl-link.active { color: var(--accent, #C8B89A); }
.nl-link.active::after { left: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); }

/* Right side: CTA + hamburger */
.nl-right { display: flex; align-items: center; gap: 16px; z-index: 101; }
.nl-cta {
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; white-space: nowrap;
  padding: 7px 14px;
  border: 1px solid var(--accent, #C8B89A);
  color: var(--accent, #C8B89A); border-radius: 2px;
  transition: all 0.25s ease;
  text-decoration: none;
}
.nl-cta:hover { background: var(--accent, #C8B89A); color: #000; }

/* ── HAMBURGER ──────────────────────────────────────────────── */
.nl-ham {
  display: none;
  position: relative;
  width: 28px; height: 28px;
  padding: 0; margin: 0;
  background: none; border: none; cursor: pointer;
  z-index: 102;
}
.nl-ham span {
  position: absolute; left: 3px;
  display: block; width: 22px; height: 1.5px;
  background: var(--text, rgba(245,245,240,.94));
  transition: transform 0.35s cubic-bezier(.22,1,.36,1),
              opacity 0.25s ease;
  transform-origin: center;
  border-radius: 1px;
}
.nl-ham span:nth-child(1) { top: 8px; }
.nl-ham span:nth-child(2) { top: 13px; }
.nl-ham span:nth-child(3) { top: 18px; width: 14px; }
.nl-ham.open span:nth-child(1) {
  top: 13px; transform: rotate(45deg);
}
.nl-ham.open span:nth-child(2) {
  opacity: 0;
}
.nl-ham.open span:nth-child(3) {
  top: 13px; width: 22px; transform: rotate(-45deg);
}

/* ── MOBILE OVERLAY (fullscreen centered) ───────────────────── */
.nl-overlay {
  position: fixed; inset: 0; z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.nl-overlay.open { opacity: 1; pointer-events: all; }

.nl-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nl-overlay-panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  width: 100%; max-width: 340px;
  padding: 60px 24px 40px;
  gap: 0;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.nl-overlay.open .nl-overlay-panel { transform: translateY(0); }

.nl-ov-link {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 350;
  letter-spacing: 0.02em;
  color: rgba(245,245,240,0.50);
  text-decoration: none;
  padding: 14px 0;
  width: 100%; text-align: center;
  transition: color 0.25s ease, letter-spacing 0.3s ease;
}
.nl-ov-link:hover, .nl-ov-link:active {
  color: var(--text, rgba(245,245,240,.94));
  letter-spacing: 0.06em;
}

.nl-ov-divider {
  width: 20px; height: 1px;
  background: var(--border-2, rgba(200,184,154,.18));
  margin: 12px 0;
}

.nl-ov-cta {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; text-align: center;
  color: #000; background: var(--accent, #C8B89A);
  padding: 14px 32px; border-radius: 2px; text-decoration: none;
  margin-top: 20px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nl-ov-cta:hover {
  background: var(--accent-2, #DDD0B8);
  transform: translateY(-1px);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer { padding: 80px 0; border-top: 1px solid var(--border, rgba(200,184,154,.10)); margin-top: 100px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.ft-logo img { height: 32px; width: auto; margin-bottom: 12px; }
.ft-tag { font-size: 11px; color: var(--muted, rgba(245,245,240,.52)); line-height: 1.7; }
.ft-hd {
  font-size: 9px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent, #C8B89A); margin-bottom: 14px;
}
.ft-lnk { display: block; font-size: 11px; color: var(--muted, rgba(245,245,240,.52)); margin-bottom: 8px; transition: color 0.2s; }
.ft-lnk:hover { color: var(--text, rgba(245,245,240,.94)); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nl-links { display: none; }
  .nl-cta { display: none; }
  .nl-ham { display: flex; }
  #mainNav { height: 64px; }
  #mainNav.sc { height: 56px; }
  .nl-logo img { height: 30px; }
  #mainNav.sc .nl-logo img { height: 28px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .nl-overlay-panel { max-width: 100%; padding: 60px 32px 40px; }
}
@media (max-width: 480px) {
  .ft-grid { grid-template-columns: 1fr; }
  .nl-overlay-panel { padding: 50px 24px 32px; }
}

/* ─── ARTICLE META (author + date) ─────────── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.article-author {
  color: var(--accent);
  font-weight: 500;
}
.article-date {
  color: var(--faint);
}
