/* ═══════════════════════════════════════════
   AI GOV KH — Homepage Styles
   ═══════════════════════════════════════════ */

/* ── Hero ── */
.hero--home {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: linear-gradient(180deg, #F7F3FB 0%, #FFFFFF 45%, #F5F0FB 100%);
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: var(--s10);
  align-items: center;
  position: relative;
  z-index: 1;
  padding: var(--s7) 0 var(--s5);
}

.hero__text { max-width: 560px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  margin: var(--s4) 0 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--royal-fade);
  color: var(--royal);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero__trustline {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 440px;
}

.hero__text h1 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin-top: var(--s4);
}

.hero__accent {
  color: var(--royal);
  font-style: normal;
  display: inline;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: var(--s5) 0 var(--s6);
  max-width: 520px;
  line-height: 1.7;
}

.hero__quiz-prompt {
  margin-bottom: var(--s5);
}

.hero__quiz-prompt {
  margin-bottom: var(--s5);
}

.quiz-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-70);
  margin-bottom: var(--s3);
}

.quiz-label span {
  color: var(--royal-light);
  font-weight: 600;
}

.quiz-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.quiz-chip {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border-mid);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-70);
  cursor: pointer;
  background: var(--white);
  transition: all var(--t-fast) var(--ease);
}

.quiz-chip:hover {
  border-color: var(--royal);
  color: var(--royal);
  background: var(--royal-pale);
  transform: translateY(-1px);
}

.hero__cta-group {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: var(--s5);
}

.hero__angkor {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(111,46,145,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__card-stack {
  position: relative;
  height: 360px;
  width: 100%;
  max-width: 360px;
}

.hero__card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-lg);
  animation: floatCard 8s ease-in-out infinite;
}

.hero__card--1 {
  top: 0;
  left: 0;
  right: 0;
  border-top: 4px solid var(--royal);
  animation-delay: 0s;
}
.hero__card--2 {
  top: 110px;
  left: 20px;
  right: -20px;
  border-top: 4px solid var(--gold);
  animation-delay: 2s;
}
.hero__card--3 {
  top: 220px;
  left: 40px;
  right: -40px;
  border-top: 4px solid var(--crimson);
  animation-delay: 4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  45%, 55% { transform: translateY(-3px); }
}

.hero__card-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero__card-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1;
}

/* ── PM Section ── */
.pm-section { background: var(--gold-pale); }

.pm-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s8);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s7) var(--s8);
  box-shadow: var(--shadow-md);
}

.pm-card__image { text-align: center; }

.pm-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--ink-05);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s4);
  color: var(--text-muted);
}

.pm-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gold-pale);
  border: 1px solid rgba(200,150,42,.3);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: #8A6218;
  letter-spacing: .04em;
}

.pm-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-70);
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: var(--s4);
  margin: var(--s4) 0 var(--s5);
}

/* ── Strategy Banner ── */
.strategy-banner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s7);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s7);
  box-shadow: var(--shadow-sm);
}

.strategy-banner__cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.strategy-banner__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.initiative-grid {
  gap: var(--s5);
}

.initiative-card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  min-height: 310px;
  padding: var(--s6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-fast) var(--ease);
}

.initiative-card:hover,
.initiative-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(111,46,145,.18);
}

.initiative-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.initiative-card__label {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--royal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.initiative-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.initiative-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}
  box-shadow: var(--shadow-lg);
}

.strategy-cover-art {
  text-align: center;
  color: var(--white);
  padding: var(--s5);
}

.cover-emblem {
  font-size: 3rem;
  margin-bottom: var(--s4);
  opacity: .8;
}

.cover-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cover-title span {
  font-family: var(--font-body);
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}

.strategy-pillars {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: var(--s4);
}

/* ── Impact Cards ── */
.impact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent, var(--royal));
  border-radius: var(--r-lg);
  padding: var(--s5);
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

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

.impact-meta {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

.impact-metric {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent, var(--royal));
}

/* ── Learn Cards ── */
.learn-card {
  display: flex;
  flex-direction: column;
  padding: var(--s6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.learn-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--text-primary);
}

.learn-card__icon {
  font-size: 2.25rem;
  margin-bottom: var(--s4);
}

.learn-card h5 {
  color: var(--ink);
  margin-bottom: var(--s2);
  font-size: 1rem;
}

.learn-card p {
  font-size: .9rem;
  flex: 1;
}

.learn-card .btn { margin-top: var(--s4); align-self: flex-start; }

/* ── Collab Cards ── */
.collab-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg);
  padding: var(--s5);
  backdrop-filter: blur(8px);
  transition: background var(--t-mid) var(--ease);
}

.collab-card:hover { background: rgba(255,255,255,.12); }

.collab-card h5 { color: var(--white); margin-bottom: var(--s2); }
.collab-card p { color: rgba(255,255,255,.65); }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--gold-pale);
  border-top: 1px solid rgba(200,150,42,.2);
  border-bottom: 1px solid rgba(200,150,42,.2);
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}

/* ── Quiz Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,25,35,.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  animation: fadeIn var(--t-mid) var(--ease);
}

.modal-overlay[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } }

.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s7) var(--s8);
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--t-slow) var(--ease-spring);
}

@keyframes slideUp { from { transform: translateY(32px); opacity: 0; } }

.modal__close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-05);
  border: none;
  font-size: 1.2rem;
  color: var(--ink-70);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease);
}

.modal__close:hover { background: var(--ink-15); }

.quiz-options { display: flex; flex-direction: column; gap: var(--s3); }

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--t-fast) var(--ease);
}

.quiz-option:hover {
  border-color: var(--royal);
  background: var(--royal-pale);
  color: var(--royal);
  transform: translateX(4px);
}

.quiz-option__icon { font-size: 1.8rem; flex-shrink: 0; }
.quiz-option strong { display: block; font-weight: 600; color: var(--ink); }
.quiz-option p { font-size: .85rem; margin: 0; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s6);
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero--home { min-height: auto; padding-top: calc(var(--nav-h) + 48px); }
  .hero__visual { display: none; }
  .pm-card { grid-template-columns: 1fr; text-align: center; padding: var(--s5); gap: var(--s4); }
  .pm-card__image { display: flex; flex-direction: column; align-items: center; }
  .strategy-banner { grid-template-columns: 1fr; }
  .strategy-banner__cover { aspect-ratio: 16/7; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
}
