/* shared.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600;6..12,700;6..12,800&display=swap');

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Design tokens ──────────────────────────────────────── */
:root {
  --navy:    #162D3D;   /* main body text + section headings */
  --slate:   #475F70;   /* labels, secondary headings, nav accent */
  --muted:   #7A8E9C;   /* captions, placeholders */
  --hero-dt: #CED4D9;   /* hero date text */
  --bg-alt:  #F7F8F9;   /* alternating section background */
  --border:  #E8EAEC;   /* dividers */

  --font: 'Nunito Sans', system-ui, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font);
  font-weight: 300;
  background: #fff;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 15px; font-weight: 700;
  text-decoration: none; color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-logo span { font-weight: 400; color: var(--slate); margin-left: 5px; }

.nav-right { display: flex; align-items: center; gap: 40px; }

.nav-dropdown { position: relative; cursor: pointer; }
.nav-dropdown-label {
  font-size: 14px; font-weight: 400; color: var(--navy);
  padding: 6px 0;
  display: flex; align-items: center; gap: 5px;
  user-select: none;
}
.nav-dropdown-label::after { content: '▾'; font-size: 10px; color: var(--slate); }

.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 200;
  padding-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 11px 18px;
  font-size: 13px; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--bg-alt); }

.nav-link { font-size: 14px; text-decoration: none; color: var(--navy); font-weight: 400; }
.nav-link:hover { color: var(--slate); }

/* ─── PAGE WRAPPER ───────────────────────────────────────── */
.page-wrap { margin-top: 64px; }

/* ─── HERO ───────────────────────────────────────────────── */
.project-hero {
  width: 100%;
  min-height: 480px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 48px 72px;
  position: relative; overflow: hidden;
  background: #1a2332;
}
.project-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.project-hero-content { position: relative; z-index: 1; }

.project-hero-logo { margin-bottom: 24px; }
.project-hero-logo img { height: 44px; }

.project-hero h1 {
  font-size: 48px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.project-hero-date {
  font-size: 12px; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.35em;
  color: var(--hero-dt);
  margin-top: 20px;
}

/* ─── CONTENT SECTIONS ───────────────────────────────────── */
/*  Each major section gets its own .content-section wrapper  */
.content-section {
  width: 100%;
  padding: 72px 48px;
}
.content-section:nth-child(even) {
  background: var(--bg-alt);
}
.content-inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Legacy single-column content area (kept for compatibility) */
.project-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 48px 80px;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */

/* Section label — "RESEARCH", "IDEATION", "ITERATION No.1" */
.project-content h3,
.content-inner h3 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--slate);
  margin-bottom: 14px; margin-top: 60px;
}
/* Remove top margin when h3 is first child */
.content-inner h3:first-child,
.project-content h3:first-child { margin-top: 0; }

/* Section heading */
.project-content h2,
.content-inner h2 {
  font-size: 30px; font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* Sub-heading */
.project-content h4,
.content-inner h4 {
  font-size: 17px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px; margin-top: 36px;
}

/* Body text */
.project-content p,
.content-inner p {
  font-size: 18px; font-weight: 300;
  line-height: 1.85; color: var(--navy);
  margin-bottom: 22px;
}

/* Lists */
.project-content ul, .project-content ol,
.content-inner ul, .content-inner ol {
  margin: 0 0 22px 22px;
}
.project-content li,
.content-inner li {
  font-size: 18px; font-weight: 300;
  line-height: 1.85; color: var(--navy);
  margin-bottom: 6px;
}

/* Links inside content */
.project-content a, .content-inner a { color: var(--navy); }
.project-content a:hover, .content-inner a:hover { opacity: 0.6; }

/* ─── IMAGES ─────────────────────────────────────────────── */
.project-img {
  width: 100%; margin: 36px 0;
  display: block;
}
.project-img img {
  width: 100%; display: block;
  border-radius: 4px;
  border: 1px solid #D8DADC;
}
.project-img figcaption {
  font-size: 13px; font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-top: 10px; text-align: center;
}

.project-img-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 36px 0;
}
.project-img-pair figure { display: block; }
.project-img-pair img { width: 100%; display: block; border-radius: 4px; border: 1px solid #D8DADC; }
.project-img-pair figcaption {
  font-size: 12px; font-weight: 300; font-style: italic;
  color: var(--muted); margin-top: 8px; text-align: center;
}

/* ─── SECTION DIVIDER ────────────────────────────────────── */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}

/* ─── STATS ──────────────────────────────────────────────── */
.stat-row { display: flex; gap: 56px; margin: 44px 0; }
.stat { border-left: 3px solid var(--navy); padding-left: 20px; }
.stat-number { font-size: 48px; font-weight: 700; line-height: 1; margin-bottom: 6px; color: var(--navy); }
.stat-label { font-size: 14px; font-weight: 300; color: var(--slate); }

/* ─── ILLUSTRATION STRIP ─────────────────────────────────── */
.illustration-strip {
  text-align: center; padding: 44px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.illustration-strip a {
  font-size: 14px; font-weight: 300;
  color: var(--slate); text-decoration: underline;
}
.illustration-strip a:hover { color: var(--navy); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center;
  background: var(--bg-alt);
}
.footer-name { font-size: 13px; font-weight: 400; color: var(--slate); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px; font-weight: 400;
  color: var(--slate); text-decoration: none; opacity: 0.7;
}
.footer-links a:hover { opacity: 1; }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.project-img img,
.project-img-pair img { cursor: zoom-in; }

.lightbox-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.88);
  overflow: auto;
  cursor: zoom-out;
  padding: 32px;
}
.lightbox-overlay.active { display: block; }

.lightbox-overlay img {
  display: block;
  max-width: none;
  width: auto; height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  cursor: default;
  animation: lb-in 0.18s ease;
  margin: auto;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 32px; font-weight: 300;
  line-height: 1; cursor: pointer;
  background: none; border: none;
  transition: color 0.15s;
}
.lightbox-close:hover { color: #fff; }

/* ─── HERO META ROW ──────────────────────────────────────── */
.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.hero-meta-value {
  font-size: 14px;
  font-weight: 400;
}
/* Dark hero variant */
.hero-meta.dark .hero-meta-label { color: rgba(255,255,255,0.35); }
.hero-meta.dark .hero-meta-value { color: rgba(255,255,255,0.85); }
/* Light hero variant */
.hero-meta.light .hero-meta-label { color: rgba(22,45,61,0.4); }
.hero-meta.light .hero-meta-value { color: rgba(22,45,61,0.85); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-right { gap: 20px; }

  .project-hero { min-height: 320px; padding: 56px 24px 48px; }
  .project-hero h1 { font-size: 32px; }

  .content-section { padding: 48px 24px; }
  .project-content { padding: 48px 24px 64px; }

  .project-content h2, .content-inner h2 { font-size: 24px; }
  .project-content p, .content-inner p,
  .project-content li, .content-inner li { font-size: 16px; }

  .project-img-pair { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; gap: 28px; }

  footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 20px; }
  .hero-meta { gap: 20px; }
}
