/* Kayangan Learning Institute — stylesheet v1.0
   Ubah identitas visual lewat CSS variables di :root. */
:root {
  --navy: #0A1F44;
  --navy-2: #12306A;
  --royal: #1F4FA8;
  --sky: #E8F0FC;
  --gold: #FFC20E;
  --gold-deep: #C9A227;
  --white: #FFFFFF;
  --gray: #F4F6FA;
  --gray-2: #DDE3EE;
  --text: #1B2438;
  --muted: #55607A;
  --wa: #1FA855;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(10, 31, 68, .10);
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text);
  background: var(--white); line-height: 1.65; font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--royal); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-2); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand-text { font-family: var(--font-head); font-weight: 800; line-height: 1.05; font-size: 1.05rem; letter-spacing: .01em; }
.brand-text small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .22em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gray-2); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy); margin: auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; min-height: 48px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; min-height: 42px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 4rem 0 4.5rem; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: #D5E0F5; max-width: 34em; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art { max-width: 460px; margin-inline: auto; }
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 3.2rem 0 3.4rem; border-bottom: 4px solid var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: .4em; }
.page-hero p { color: #D5E0F5; max-width: 40em; margin: 0; font-size: 1.1rem; }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--gray); }
.section.navy { background: var(--navy); color: #D5E0F5; }
.section.navy h2, .section.navy h3 { color: var(--white); }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--royal); margin-bottom: .6rem; display: block; }
.section-head { max-width: 42rem; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon-bubble { width: 52px; height: 52px; border-radius: 14px; background: var(--sky); display: grid; place-items: center; margin-bottom: 1rem; }
.icon-bubble svg { width: 28px; height: 28px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: var(--sky); color: var(--navy); }
.tag.gold { background: var(--gold); }
.note { font-size: .88rem; color: var(--muted); }

/* Pathway */
.pathway { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pathway li { background: var(--white); border: 2px solid var(--navy); color: var(--navy); font-family: var(--font-head); font-weight: 700; padding: .6rem 1rem; border-radius: 12px; font-size: .95rem; position: relative; }
.pathway li.start { background: var(--gold); border-color: var(--gold); }
.pathway li:not(:last-child)::after { content: "→"; position: absolute; right: -1.05rem; top: 50%; transform: translateY(-50%); color: var(--gold-deep); font-weight: 800; }
.pathway li:not(:last-child) { margin-right: .9rem; }
.pathway-wrap { background: var(--white); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--gray-2); box-shadow: var(--shadow); }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 1.2rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 800; margin-bottom: .7rem; }
.steps strong { display: block; font-family: var(--font-head); color: var(--navy); margin-bottom: .2rem; }
.steps span { font-size: .93rem; color: var(--muted); }

/* Lists / tables */
.check { list-style: none; margin: 0 0 1em; padding: 0; }
.check li { padding-left: 1.9rem; position: relative; margin-bottom: .55rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 1.1rem; height: .6rem; border-left: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep); transform: rotate(-45deg) scale(.8); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-2); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .96rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--gray-2); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: .85rem; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.callout { border-left: 5px solid var(--gold); background: var(--sky); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.cta-band { background: var(--navy); color: #D5E0F5; padding: 3.4rem 0; text-align: center; border-top: 4px solid var(--gold); }
.cta-band h2 { color: var(--white); }
.cta-band .hero-actions { justify-content: center; }
.float-wa { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.float-wa svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Footer */
.site-footer { background: #071733; color: #B9C6E2; padding: 3rem 0 1.4rem; font-size: .95rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer a { color: #D5E0F5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid #1B2D52; margin-top: 2rem; padding-top: 1.1rem; font-size: .84rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { padding: 2.8rem 0 3.2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps, .steps.four { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; border-bottom: 1px solid var(--gray-2); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--gray); }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 0; }
  .nav-links .btn { margin-top: .8rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .pathway li:not(:last-child)::after { content: none; }
  .pathway li:not(:last-child) { margin-right: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
