/* =========================================================
   KIET — Modern Editorial Theme
   Drop-in stylesheet for the homepage redesign.
   Off-white / deep ink / brand indigo + gold.
   ========================================================= */

:root {
  --ink: #0b0d12;
  --ink-soft: #1a1d26;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --line: rgba(11, 13, 18, 0.08);
  --line-strong: rgba(11, 13, 18, 0.16);
  --muted: #5b5e68;
  --muted-2: #8a8d96;

  --brand: #2a3a8c;       /* deep indigo — trust, education */
  --brand-ink: #1a265e;
  --accent: #c8a44a;      /* warm gold — premium accent */
  --accent-soft: #e6c97a;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(11,13,18,.04), 0 4px 12px rgba(11,13,18,.04);
  --shadow: 0 8px 30px rgba(11,13,18,.08);
  --shadow-lg: 0 30px 80px -20px rgba(11,13,18,.25);

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(.2,.7,.1,1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container-k {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

h1, h2, h3, h4 {
  font-family: "Inter", "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.display {
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.muted { color: var(--muted); }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  background: transparent;
}
.nav.is-scrolled {
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__brand img {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.nav__brand-text { line-height: 1.1; }
.nav__brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__brand-text span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: rgba(11,13,18,.06); }
.nav__links a.active {
  background: var(--ink);
  color: var(--paper);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav__cta:hover { background: var(--brand); transform: translateY(-1px); }

@media (max-width: 960px) {
  .nav__links { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.hero__media,
.hero__media::after {
  position: absolute; inset: 0;
}
.hero__media {
  background-image: url("../images/kiet/DSC_8068_small.JPG");
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease) forwards;
}
.hero__media::after {
  content: "";
  background:
    linear-gradient(180deg, rgba(11,13,18,.10) 0%, rgba(11,13,18,.55) 65%, rgba(11,13,18,.85) 100%),
    linear-gradient(90deg, rgba(11,13,18,.55) 0%, rgba(11,13,18,.10) 60%);
}
@keyframes heroZoom {
  to { transform: scale(1.0); }
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  width: 100%;
}
.hero__eyebrow {
  color: var(--accent-soft);
  margin-bottom: 28px;
}
.hero h1 {
  color: var(--paper);
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #f6e6b3 0%, #c8a44a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 28px;
  color: rgba(247,245,240,.78);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 56ch;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.btn--primary:hover { background: var(--accent); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247,245,240,.28);
}
.btn--ghost:hover { border-color: var(--paper); }
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: var(--brand); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--ink); }

.btn__arrow {
  width: 16px; height: 16px;
  transition: transform .2s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(247,245,240,.7);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(247,245,240,.7));
  animation: scrollLine 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); }
  60% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================== MARQUEE ===================== */
.marquee {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(247,245,240,.08);
  border-bottom: 1px solid rgba(247,245,240,.08);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247,245,240,.65);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee__dot { color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===================== STATS ===================== */
.stats {
  padding: 80px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat__num em {
  font-style: normal;
  color: var(--accent);
}
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat { border-left: 0; padding: 0 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); padding-top: 24px; }
  .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 24px; }
}

/* ===================== SECTIONS ===================== */
.section { padding: clamp(80px, 10vw, 140px) 0; }

.section--alt { background: var(--paper-2); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .muted { color: rgba(247,245,240,.65); }

/* ===================== ABOUT (split) ===================== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.split__media:hover img { transform: scale(1.04); }
.split__media-tag {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(11,13,18,.78);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.split__body h2 { margin-top: 18px; }
.split__body .lede { margin-top: 24px; }
.split__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.split__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}
.split__list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ===================== COURSES ===================== */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 42ch; }
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: start; }
}

.courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .courses { grid-template-columns: 1fr; } }

.course {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.course__img {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s var(--ease);
}
.course:hover .course__img { transform: scale(1.06); }
.course__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,.05) 0%, rgba(11,13,18,.7) 70%, rgba(11,13,18,.92) 100%);
}
.course__body {
  position: relative;
  z-index: 1;
  padding: 36px;
}
.course__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 8px 14px;
  border: 1px solid rgba(247,245,240,.2);
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.course h3 {
  color: var(--paper);
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.02em;
}
.course__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(247,245,240,.75);
}
.course__meta span::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}
.course__meta span:first-child::before { content: ""; margin-right: 0; }
.course__foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(247,245,240,.16);
}
.course__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--paper);
}
.course__arrow {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.course:hover .course__arrow { background: var(--accent); transform: rotate(-45deg); }

/* ===================== CTA ===================== */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px);
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/kiet/auditorium.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: -1;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--ink) 75%);
  z-index: -1;
}
.cta h2 { color: var(--paper); max-width: 22ch; margin: 18px auto 0; }
.cta p { color: rgba(247,245,240,.75); margin: 24px auto 0; max-width: 52ch; }
.cta__actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== TESTIMONIALS ===================== */
.testi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testi { grid-template-columns: 1fr; } }
.testi__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.testi__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi__quote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}
.testi__quote::before {
  content: "\201C";
  display: block;
  font-size: 48px;
  line-height: 0.5;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 20px;
}
.testi__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi__avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.testi__name { font-weight: 600; font-size: 14px; }
.testi__role { font-size: 12px; color: var(--muted); }

/* ===================== CONTACT BAR ===================== */
.contactbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .contactbar { grid-template-columns: 1fr; } }
.contactbar__form { padding: clamp(32px, 4vw, 48px); }
.contactbar__form h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
.field textarea { min-height: 120px; resize: vertical; }
.contactbar__info {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.contactbar__info h3 { color: var(--paper); }
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 18px;
}
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14px;
  color: rgba(247,245,240,.8);
}
.contact-list .ic {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(247,245,240,.08);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent-soft);
}
.contact-list strong { color: var(--paper); display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; font-weight: 600; }
.contact-list a { color: var(--paper); border-bottom: 1px solid rgba(247,245,240,.18); }
.contact-list a:hover { border-color: var(--accent); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(247,245,240,.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
  color: var(--paper);
}
.socials a:hover { background: var(--accent); color: var(--ink); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  color: rgba(247,245,240,.6);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(247,245,240,.08);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 600; }
.footer__brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--paper); }

/* ===================== REVEAL ===================== */
/* No-JS / safety fallback: never hide content permanently */
.reveal { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
/* Only animate if browser is modern and JS is available (added by script) */
html.has-reveal .reveal { opacity: 0; transform: translateY(20px); }
html.has-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.has-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
