/* ============================================================
   Kevin Perlas Portfolio — Shared Styles
   Nav, footer, and the site color system live here so every
   page (index + 5 case studies + Let's Connect) stays in sync.
   Page-specific layout stays in each page's own <style> block.
   ============================================================ */

:root {
  --teal: #0F766E;       /* non-linked highlights: metrics, images/frames, badges, brand mark */
  --blue: #2563EB;       /* all links */
  --blue-hover: #1D4ED8; /* link hover/active shade */
  --ink: #1a1a1a;        /* body text / active nav label */
}

html {
  scroll-behavior: smooth;
}

/* ============ NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  height: 52px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  gap: 24px;
}
.nav-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}

/* -- shared link + active-label treatment -- */
.nav-link {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-link:hover {
  text-decoration: underline;
}
.nav-active {
  font-size: 12px;
  color: var(--ink);
  text-decoration: underline;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: default;
}
.nav-case-label {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-sep {
  font-size: 12px;
  color: #ccc;
}

/* -- wide layout: case study links inline -- */
.nav-links-wide {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

/* -- narrow layout: case studies collapse into a dropdown -- */
.nav-links-narrow {
  display: none;
  align-items: center;
  gap: 20px;
}
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  font-size: 12px;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  letter-spacing: 0.3px;
  padding: 0;
}
.nav-dropdown-btn:hover { text-decoration: underline; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding-top: 12px;
  padding-bottom: 6px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: #f7f7f7; text-decoration: underline; }
.nav-dropdown-menu .nav-active {
  display: block;
  padding: 9px 16px;
  border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 1100px) {
  .nav-links-wide { display: none; }
  .nav-links-narrow { display: flex; }
}
@media (max-width: 480px) {
  .nav-dropdown-menu { left: 0; right: auto; }
}

/* ============ FOOTER ============ */
.portfolio-footer {
  background: white;
  padding: 14px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #666;
  border-top: 1px solid #e8e8e8;
}
.footer-top-link {
  color: var(--blue);
  text-decoration: none;
}
.footer-top-link:hover { text-decoration: underline; }
