/* SGS — Social Governance System
   Clean, fast, AI-readable static site
   ===================================== */

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

:root {
  --navy:   #0d1b2a;
  --blue:   #1a56db;
  --blue-dark: #1e3a8a;
  --green:  #16a34a;
  --text:   #1a1a2e;
  --muted:  #64748b;
  --light:  #f1f5f9;
  --white:  #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max-w:  1100px;
  --font:   'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }
.section--light { background: var(--light); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  white-space: nowrap;
}
.nav__logo span { color: var(--blue); }
.nav__links {
  display: flex;
  list-style: none;
  gap: .25rem;
  flex-wrap: wrap;
}
.nav__links a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  padding: .35rem .7rem;
  border-radius: var(--radius);
  transition: background .15s;
}
.nav__links a:hover { background: var(--light); text-decoration: none; }
.nav__links a.active { color: var(--blue); }
.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: .4rem .9rem !important;
}
.nav__cta:hover { background: var(--blue-dark) !important; text-decoration: none; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero__sub {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}
.hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); text-decoration: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn--outline:hover { border-color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }

/* ── Video embed ── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-section h2 { margin-bottom: .5rem; }
.video-section .lead { color: var(--muted); margin-bottom: 2rem; }

/* ── 3-column grid ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .75rem; }
.card__icon { font-size: 2rem; margin-bottom: 1rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn--outline { border-color: rgba(255,255,255,.5); }

/* ── Page hero (interior pages) ── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0 2.5rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .5rem; }
.page-hero p  { color: #94a3b8; font-size: 1.05rem; }

/* ── Director cards ── */
.director-card {
  display: flex;
  gap: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.director-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--muted);
}
.director-card__photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.director-card__name { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.director-card__title { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.director-card__term  { color: var(--muted); font-size: .85rem; margin-bottom: .75rem; }
.director-cards { display: grid; gap: 1.5rem; }
.director-card a { font-size: .9rem; }

/* ── Job postings ── */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.job-card + .job-card { margin-top: 1.25rem; }
.job-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.job-card__title { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.job-card__tag { background: var(--light); color: var(--muted); border-radius: 999px; padding: .25rem .85rem; font-size: .8rem; white-space: nowrap; }
.job-card__meta { color: var(--blue); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.job-card details summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; margin-top: .75rem; }
.job-card details[open] summary { margin-bottom: .75rem; }
.job-card ul { padding-left: 1.25rem; }
.job-card ul li { margin-bottom: .35rem; font-size: .95rem; }

/* ── Video language grid ── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.lang-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(26,86,219,.12); text-decoration: none; }
.lang-card__flag { font-size: 2.25rem; }
.lang-card__name { font-size: .95rem; }
.lang-card__sub  { font-size: .75rem; color: var(--muted); font-weight: 400; }
.lang-card--coming { opacity: .5; pointer-events: none; }

.video-group { margin-bottom: 3rem; }
.video-group h2 { margin-bottom: .5rem; }
.video-group p  { color: var(--muted); margin-bottom: 1.5rem; }

/* ── Related Thinking ── */
.post-list { display: grid; gap: 1.25rem; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.post-card__date { color: var(--muted); font-size: .85rem; margin-bottom: .35rem; }
.post-card__title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.post-card__excerpt { color: #475569; font-size: .95rem; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-item__icon { font-size: 1.75rem; flex-shrink: 0; }
.contact-item__label { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 2.5rem 0;
  text-align: center;
  font-size: .875rem;
}
.footer a { color: #94a3b8; }
.footer a:hover { color: var(--white); }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--blue-dark);
  border-radius: 999px;
  padding: .2rem .75rem;
  font-size: .8rem;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .nav__links { display: none; }
  .director-card { flex-direction: column; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 2.5rem 0; }
  .job-card__header { flex-direction: column; }
}
