/* Singapore Insight — V20 Light Theme */
:root {
  --white: #FFFFFF;
  --teal: #0D7377;
  --cream: #F5F3EF;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --teal-dark: #0A5C5F;
  --teal-light: #E8F4F4;
  --border: #E0DDD8;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
  --radius: 6px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --header-h: 72px;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body.site-insight {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* Surfaces */
.surface-light { background: var(--white); }
.surface-cream { background: var(--cream); }
.surface-muted { background: var(--teal-light); }
.surface-accent { background: var(--teal); color: var(--white); }
.surface-form { background: var(--cream); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 639px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* Header */
.insight-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.insight-header.is-scrolled {
  box-shadow: var(--shadow);
}

.insight-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.insight-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.insight-logo:hover { color: var(--teal); }

.insight-logo__symbol {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.insight-logo__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.insight-logo__text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop Nav */
.insight-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.insight-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.insight-nav a:hover,
.insight-nav a.is-active {
  background: var(--teal-light);
  color: var(--teal);
}

/* Hamburger */
.insight-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.insight-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.insight-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.insight-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.insight-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .insight-nav { display: flex; }
  .insight-hamburger { display: none; }
}

/* Mobile Panel — slides from RIGHT */
.insight-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.insight-panel-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.insight-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  z-index: 1002;
  padding: 5rem 2rem 2rem;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.insight-panel.is-open {
  transform: translateX(0);
}

.insight-panel__links {
  list-style: none;
  padding: 0;
}

.insight-panel__links li {
  margin-bottom: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.insight-panel.is-open .insight-panel__links li {
  opacity: 1;
  transform: translateX(0);
}

.insight-panel.is-open .insight-panel__links li:nth-child(1) { transition-delay: 0.05s; }
.insight-panel.is-open .insight-panel__links li:nth-child(2) { transition-delay: 0.1s; }
.insight-panel.is-open .insight-panel__links li:nth-child(3) { transition-delay: 0.15s; }
.insight-panel.is-open .insight-panel__links li:nth-child(4) { transition-delay: 0.2s; }
.insight-panel.is-open .insight-panel__links li:nth-child(5) { transition-delay: 0.25s; }
.insight-panel.is-open .insight-panel__links li:nth-child(6) { transition-delay: 0.3s; }

.insight-panel__links a {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.insight-panel__links a:hover { color: var(--teal); }

/* Main offset */
main {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* Hero Pattern C — Asymmetric Magazine */
.hero-magazine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 4rem;
}

.hero-magazine__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-magazine__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-magazine__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.hero-magazine__lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-magazine__visual {
  position: relative;
}

.hero-magazine__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-magazine__accent {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 40%;
  height: 40%;
  background: var(--teal);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-magazine__stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.hero-magazine__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--teal);
}

.hero-magazine__stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero-magazine {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    padding: 4rem 0 5rem;
  }

  .hero-magazine__visual {
    order: 2;
  }

  .hero-magazine__content {
    order: 1;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
}

.card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__image { order: 2; }
}

.split__image {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: var(--muted); max-width: 640px; }

/* Prose */
.prose { max-width: 72ch; }
.prose--wide { max-width: 80ch; }

.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }

/* FAQ two-column grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-item {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-item h3 {
  color: var(--teal);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-group label.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.form-checkbox {
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: auto;
  padding: 0;
}

.form-checkbox span {
  flex: 1;
  min-width: 0;
}

.form-success {
  padding: 1rem 1.25rem;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1.2fr; }
}

.contact-details {
  list-style: none;
  padding: 0;
}

.contact-details li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-details strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* Footer */
.insight-footer {
  border-top: 1px solid var(--border);
}

.footer-newsletter {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.footer-newsletter__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-newsletter__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-newsletter h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-newsletter p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-newsletter__form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
}

.footer-newsletter__form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1.25rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(26, 26, 26, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Cookie customise modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.cookie-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal__box h3 { margin-bottom: 1rem; }

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option label {
  font-weight: 500;
  font-size: 0.9rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* Legal pages */
.legal-toc {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.legal-toc h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  margin: 0;
  font-size: 0.9rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal hub */
.legal-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .legal-hub { grid-template-columns: repeat(3, 1fr); }
}

.legal-hub__card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow var(--transition);
}

.legal-hub__card:hover {
  box-shadow: var(--shadow);
}

.legal-hub__card h3 { margin-bottom: 0.5rem; }
.legal-hub__card p { font-size: 0.9rem; color: var(--muted); }

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

/* Programs timeline */
.program-list {
  list-style: none;
  padding: 0;
}

.program-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.program-list li:last-child { border-bottom: none; }

.program-list h3 { color: var(--teal); }
