/* ============================================================
   Kim Young Development — Main Stylesheet
   Design: Clean, crisp, tight, no unnecessary gaps
   ============================================================ */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Colour Palette --------------------------------------- */
:root {
  --navy:      #1a1a2e;
  --orange:    #c8612a;
  --orange-lt: #f4ede7;
  --mid:       #4a4a6a;
  --light-bg:  #f8f8f8;
  --border:    #e2e2e2;
  --white:     #ffffff;
  --link:      #0077b6;
  --teal:      #0077b6;
}

/* ---- SDG Rainbow Strip ------------------------------------ */
.sdg-strip {
  display: flex;
  height: 7px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 101;
}
.sdg-strip span {
  flex: 1;
}
/* 17 SDG colors */
.sdg-strip span:nth-child(1)  { background: #e5243b; }
.sdg-strip span:nth-child(2)  { background: #dda63a; }
.sdg-strip span:nth-child(3)  { background: #4c9f38; }
.sdg-strip span:nth-child(4)  { background: #c5192d; }
.sdg-strip span:nth-child(5)  { background: #ff3a21; }
.sdg-strip span:nth-child(6)  { background: #26bde2; }
.sdg-strip span:nth-child(7)  { background: #fcc30b; }
.sdg-strip span:nth-child(8)  { background: #a21942; }
.sdg-strip span:nth-child(9)  { background: #fd6925; }
.sdg-strip span:nth-child(10) { background: #dd1367; }
.sdg-strip span:nth-child(11) { background: #fd9d24; }
.sdg-strip span:nth-child(12) { background: #bf8b2e; }
.sdg-strip span:nth-child(13) { background: #3f7e44; }
.sdg-strip span:nth-child(14) { background: #0a97d9; }
.sdg-strip span:nth-child(15) { background: #56c02b; }
.sdg-strip span:nth-child(16) { background: #00689d; }
.sdg-strip span:nth-child(17) { background: #19486a; }

/* ---- Navigation ------------------------------------------ */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.nav-logo {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 58px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* ---- Section wrapper ------------------------------------- */
.section {
  padding: 3rem 2rem;
}
.section--dark {
  background: var(--navy);
  color: #fff;
}
.section--light {
  background: var(--light-bg);
}
.section--orange {
  background: var(--orange);
  color: #fff;
}
.inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Section headings ------------------------------------ */
.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.section-title--white { color: rgba(255,255,255,0.7); }

.section-heading {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-heading--white { color: #fff; }

/* ---- Hero ------------------------------------------------- */
.hero {
  background: var(--navy);
  padding: 0;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; margin-left: 0.75rem; }

/* ---- Stats bar ------------------------------------------- */
.stats-bar {
  background: var(--orange);
  padding: 1rem 2rem;
}
.stats-bar .inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
}
.stat-item { text-align: center; color: #fff; }
.stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; margin-top: 0.2rem; }

/* ---- Quote box ------------------------------------------- */
.quote-box {
  background: var(--orange);
  padding: 2rem 2.5rem;
  border-left: 5px solid rgba(255,255,255,0.4);
}
.quote-box blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.quote-box cite {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-style: normal;
}

/* ---- Two-col grid ---------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.two-col--tight { gap: 1.5rem; }

/* ---- Card grid ------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  padding: 1.4rem 1.4rem 1.2rem;
}
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.card-text {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
}
.card-tags {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--orange-lt);
  color: var(--orange);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

/* ---- SDG Wheel section ----------------------------------- */
.sdg-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: center;
}
.sdg-wheel-img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---- SDG 17-goal colour grid ----------------------------- */
.sdg-goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: 256px;
  flex-shrink: 0;
}
.sdg-goal-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 3px 5px;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  min-height: 58px;
}
.sdg-goal-grid div:last-child {
  grid-column: span 1;
}
.sdg-goal-grid span {
  font-size: 1rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}
.sdg-goal-grid small {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
  line-height: 1.2;
}

/* ---- Comparison table ------------------------------------ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.compare-col { padding: 1.4rem; }
.compare-col--old { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.compare-col--new { background: rgba(200,97,42,0.15); border: 1px solid rgba(200,97,42,0.3); }
.compare-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.compare-col--old .compare-heading { color: rgba(255,255,255,0.55); }
.compare-col--new .compare-heading { color: var(--orange); }
.compare-list { list-style: none; }
.compare-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  gap: 0.5rem;
}
.compare-col--new .compare-list li { color: rgba(255,255,255,0.9); }
.compare-list li::before { content: '→'; color: var(--orange); flex-shrink: 0; }
.compare-col--old .compare-list li::before { content: '×'; color: rgba(255,255,255,0.3); }

/* ---- Institution links ----------------------------------- */
.inst-list {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}
.inst-list li {
  margin-bottom: 0.55rem;
  break-inside: avoid;
}
.inst-list a {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inst-list a:hover { color: var(--navy); }

/* ---- Process steps --------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}
.process-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.process-text { font-size: 0.8rem; color: var(--mid); line-height: 1.55; }

/* ---- Mandela / pull quote -------------------------------- */
.pull-quote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  background: var(--orange-lt);
}
.pull-quote--both-borders {
  border-left: 4px solid var(--orange);
  border-right: 4px solid var(--orange);
}
.pull-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 0.4rem;
}
.pull-quote cite {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  font-style: normal;
}

/* ---- Global Voices --------------------------------------- */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.voice-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.4rem;
}
.voice-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 0.7rem;
}
.voice-attr {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- CTA strip ------------------------------------------- */
.cta-strip {
  background: var(--navy);
  padding: 2.5rem 2rem;
  text-align: center;
}
.cta-strip h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-strip p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 1.2rem; }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.55);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }

/* ---- Contact page ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: stretch;
}
.contact-info-block {
  background: var(--navy);
  color: #fff;
  padding: 2rem;
}
.contact-info-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #fff;
}
.contact-info-item {
  margin-bottom: 1rem;
}
.contact-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.contact-info-value a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.avail-list {
  list-style: none;
  margin-top: 0.4rem;
}
.avail-list li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}
.avail-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); }

/* ---- Form ------------------------------------------------ */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.35rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border: 1px solid #a5d6a7;
  font-size: 0.88rem;
  margin-top: 1rem;
}

/* ---- About page image fixes ------------------------------ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}
.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  min-height: 420px;
}
.about-hero-text {
  padding: 2.5rem;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* UN image + Windrush text – no gap */
.windrush-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.windrush-text {
  padding: 2.5rem 2rem 2.5rem 0;
}
.windrush-img-wrap {
  overflow: hidden;
}
.windrush-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 340px;
}

/* ---- Utilities ------------------------------------------- */
.text-orange { color: var(--orange); }
.text-mid { color: var(--mid); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
p + p { margin-top: 0.75rem; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .card-grid,
  .compare-grid,
  .voices-grid,
  .contact-grid,
  .process-grid,
  .about-hero-grid,
  .windrush-grid,
  .sdg-section { grid-template-columns: 1fr; }
  .inst-list { columns: 1; }
  .stats-bar .inner { gap: 2rem; flex-wrap: wrap; }
  .hero-image { min-height: 260px; }
  .about-hero-img, .windrush-img-wrap img { min-height: 200px; }
  .sdg-wheel-img { width: 180px; height: 180px; }
  .nav-links li a { padding: 0 0.6rem; font-size: 0.78rem; }
  .hero-title { font-size: 1.6rem; }
  .section-heading { font-size: 1.4rem; }
}


/* ---- Small polish fixes added after deployment ------------ */
.hero-content > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-content > div:last-child .btn-outline {
  margin-left: 0;
}

@media (max-width: 900px) {
  .site-nav {
    padding: 0 1rem;
  }
  .nav-inner {
    height: auto;
    min-height: 58px;
    padding: 0.6rem 0;
    flex-direction: column;
    gap: 0.45rem;
  }
  .nav-logo {
    text-align: center;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.2rem;
  }
  .nav-links li a {
    height: auto;
    min-height: 38px;
    padding: 0.35rem 0.65rem;
  }
  .section {
    padding: 2.2rem 1.15rem;
  }
  .hero-content {
    padding: 2rem 1.15rem;
  }
  .stats-bar {
    padding: 0.9rem 1rem;
  }
  .quote-box,
  .contact-info-block,
  .voice-card,
  .compare-col,
  .card {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .story-split {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .nav-logo {
    font-size: 0.9rem;
  }
  .nav-links li a {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.18;
  }
  .hero-sub,
  .text-sm,
  .card-text,
  .process-text,
  .voice-quote {
    font-size: 0.82rem;
  }
  .section-heading {
    font-size: 1.2rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .stats-bar .inner {
    gap: 1rem;
  }
  .stat-item {
    width: calc(50% - 0.5rem);
  }
  .sdg-goal-grid {
    width: 100%;
  }
}
