/* ============================================================
   Moorish Lanka — design tokens
   Palette: deep navy ink + warm graphite paper + muted gold
   Type: Space Grotesk (display) / IBM Plex Sans (body)
   ============================================================ */

:root {
  --ink: #0E1420;
  --navy: #142C54;
  --navy-deep: #0A1930;
  --paper: #F2F3F1;
  --paper-raised: #FFFFFF;
  --gold: #C08A28;
  --gold-soft: #E7C77C;
  --line: #D7D9D4;
  --line-dark: #2A3650;
  --text: #171B24;
  --text-mute: #565F6E;
  --text-on-dark: #E9EAE6;
  --text-on-dark-mute: #9AA3B8;

  --serif-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --sans-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 2px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  color: var(--text);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text-mute); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,243,241,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-deep);
}

.brand .mark {
  width: 28px; height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  color: var(--text);
}

.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--gold); }

.nav-cta {
  background: var(--navy-deep);
  color: var(--text-on-dark) !important;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--navy); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: 14.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  max-width: 14ch;
}

.hero-lede {
  margin-top: 22px;
  font-size: 18px;
  max-width: 44ch;
  color: var(--text-mute);
}

.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat .n {
  font-family: var(--serif-display);
  font-size: 28px;
  color: var(--navy-deep);
}
.hero-stat .l {
  font-size: 13.5px;
  color: var(--text-mute);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy-deep); color: var(--text-on-dark); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: var(--line-dark); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }

/* network motif */
.net-motif {
  position: absolute;
  right: -60px; top: -40px;
  width: 480px; height: 480px;
  opacity: 0.55;
  z-index: 1;
}

/* ---------- Section scaffolding ---------- */

section { padding: 84px 0; }
.section-dark {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.section-dark p { color: var(--text-on-dark-mute); }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.section-dark .section-head { border-top-color: var(--line-dark); }

.section-head h2 { font-size: clamp(26px, 3vw, 36px); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper-raised);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card .idx {
  font-family: var(--serif-display);
  font-size: 14px;
  color: var(--gold);
}

.service-card h3 { font-size: 20px; }

.service-card ul {
  margin: 4px 0 0;
  padding: 0 0 0 18px;
  font-size: 14.5px;
  color: var(--text-mute);
}
.service-card li { margin-bottom: 6px; }

.service-card a.more {
  margin-top: auto;
  font-size: 14px;
  color: var(--navy-deep);
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-side { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; flex-direction: row; flex-wrap: wrap; }
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- About / credentials ---------- */

.credentials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.credential {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.credential .yr {
  font-family: var(--serif-display);
  color: var(--gold);
  font-size: 15px;
  min-width: 70px;
}
.credential .d { font-size: 14.5px; color: var(--text-mute); }
.section-dark .credential { border-top-color: var(--line-dark); }

@media (max-width: 700px) { .credentials-list { grid-template-columns: 1fr; } }

/* ---------- Partner / badge ---------- */

.partner-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: center;
  border: 1px solid var(--line-dark);
  padding: 40px;
  background: #0F2347;
}

.badge-box {
  border: 1px solid var(--gold-soft);
  padding: 24px;
  text-align: center;
}
.badge-box .mark { width: 56px; height: 56px; margin: 0 auto 12px; }
.badge-box .label { font-family: var(--serif-display); font-size: 15px; color: var(--text-on-dark); }
.badge-box .sub { font-size: 12.5px; color: var(--gold-soft); margin-top: 4px; }

@media (max-width: 760px) { .partner-panel { grid-template-columns: 1fr; } }

/* ---------- Academy teaser / Courses ---------- */

.course-list { display: flex; flex-direction: column; }
.course-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.course-list .course-row:last-child { border-bottom: 1px solid var(--line); }
.course-row h4 { font-size: 18px; }
.course-row .meta { font-size: 14px; color: var(--text-mute); }
.course-row .price { font-family: var(--serif-display); font-size: 17px; color: var(--navy-deep); }

@media (max-width: 760px) {
  .course-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Koko payment panel ---------- */

.pay-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pay-col { background: var(--paper-raised); padding: 36px; }
.pay-col h3 { font-size: 19px; margin-bottom: 10px; }
.koko-mark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--gold);
  font-size: 13.5px; font-weight: 600; color: var(--navy-deep);
  margin-bottom: 14px;
}
.installment-row {
  display: flex; justify-content: space-between;
  font-size: 14.5px; padding: 10px 0; border-top: 1px solid var(--line);
}
.installment-row:last-child { font-weight: 600; color: var(--text); }

@media (max-width: 760px) { .pay-panel { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; color: var(--text-on-dark-mute); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  font-family: var(--sans-body);
  font-size: 15px;
  padding: 10px 2px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.contact-info .row { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.contact-info .row:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-info .row .k { font-size: 13px; color: var(--text-on-dark-mute); min-width: 90px; }
.contact-info .row .v { font-size: 14.5px; }

@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

footer {
  padding: 36px 0;
  border-top: 1px solid var(--line-dark);
  background: var(--navy-deep);
  color: var(--text-on-dark-mute);
  font-size: 13.5px;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
