/* ═══════════════════════════════════════════
   AI GOV KH — Reusable UI Components
   ═══════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 13px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(111,46,145,.22);
}
.btn--primary:hover {
  background: var(--royal-mid);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(111,46,145,.3);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(200,150,42,.30);
}
.btn--gold:hover {
  background: var(--gold-light);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,150,42,.40);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--royal);
  border: 1.5px solid var(--royal);
}

.btn--outline:hover {
  background: var(--royal);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--royal-light);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--royal);
  gap: var(--s3);
}

.btn--ghost .arrow {
  transition: transform var(--t-mid) var(--ease-spring);
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--lg { padding: 16px 36px; font-size: 1.0625rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card__body { padding: var(--s5); }
.card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink-05);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card__img img { transform: scale(1.04); }

/* ── Tags / Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag--blue  { background: var(--royal-pale); color: var(--royal); }
.tag--gold  { background: var(--gold-pale); color: #8A6218; }
.tag--red   { background: #FAEBEB; color: var(--crimson); }
.tag--green { background: #E8F5EE; color: #1D6B3E; }
.tag--gray  { background: var(--ink-05); color: var(--ink-70); }

/* ── Section Labels ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--royal-light);
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── Dividers ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--s5) 0;
}

/* ── Form Elements ── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

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

.input {
  padding: 11px 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
}
.input:focus {
  border-color: var(--royal-light);
  box-shadow: 0 0 0 3px rgba(111,46,145,.18);
  outline: none;
}
.input::placeholder { color: var(--ink-40); }

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

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A8898' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-mid) var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__logo-mark {
  width: 42px;
  height: 42px;
  background: var(--royal);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1;
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.nav__link {
  padding: 10px 16px;
  border-radius: var(--r-lg);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--royal);
  background: var(--royal-fade);
  transform: translateY(-1px);
}
.nav__link.active {
  color: var(--royal);
  background: rgba(111,46,145,.14);
  box-shadow: inset 0 0 0 1px rgba(111,46,145,.16);
}

.nav__cta { margin-left: var(--s4); }

.nav__lang {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 9px 14px;
  border: 1.5px solid rgba(142,68,173,.18);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.92);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-70);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.nav__lang:hover {
  border-color: var(--royal-light);
  color: var(--royal);
  background: rgba(142,68,173,.08);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--t-mid) var(--ease);
}

.nav__drawer {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: calc(var(--nav-h) + var(--s5)) var(--s5) var(--s5);
  gap: var(--s3);
  background: rgba(255,255,255,.98);
  overflow-y: auto;
  z-index: 1100;
}
.nav__drawer.open { display: flex; }

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: var(--s8) 0 var(--s6);
}
.footer h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.footer__link {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  text-decoration: none;
  padding: 3px 0;
  transition: color var(--t-fast) var(--ease);
}
.footer__link:hover { color: var(--gold-light); }
.footer__logo-text { color: var(--white); font-family: var(--font-display); font-size: 1.3rem; }
.footer__tagline { font-size: .9rem; margin-top: var(--s3); max-width: 280px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: var(--s7);
  padding-top: var(--s5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}
.footer__social {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s4);
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  font-size: .9rem;
}
.footer__social a:hover {
  background: var(--gold);
  color: var(--white);
}
