/* Legato Learning Hub — landing page
   Palet diambil dari logo Legato */
:root {
  --slate: #6C8090;
  --navy: #485C70;
  --navy-dark: #2E3B48;
  --charcoal: #5C5C5C;
  --ink: #343C44;
  --gold: #FCB82C;
  --gold-soft: #FFF6E3;
  --plum: #B0588C;
  --plum-soft: #F7EAF2;
  --gray: #9C9C9C;
  --mist: #F2F5F7;
  --line: #DDE3E8;
  --white: #FFFFFF;

  --font-head: "Fira Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(46, 59, 72, 0.08);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-dark); line-height: 1.2; margin: 0; }
p { margin: 0; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy-dark); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-dark); box-shadow: 0 4px 14px rgba(252, 184, 44, .35); }
.btn-primary:hover { background: #FFC444; }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--mist); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-plum { background: var(--plum); color: var(--white); }
.btn-plum:hover { background: #9C4A7B; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center { justify-content: center; }

/* ---------- Labels ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--gold); }
.section-title { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; margin-bottom: 36px; position: relative; padding-bottom: 16px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--plum); }
.section-title.light { color: var(--white); }
.pill {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 7px 16px; border-radius: 999px;
}
.pill-gold { background: var(--gold); color: var(--navy-dark); }
@media (max-width: 420px) { .pill { font-size: 13px; padding: 6px 14px; } .hero-sub { font-size: 16.5px; } .hero h1 { font-size: 32px; } }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; padding: 3px 12px; border-radius: 999px; letter-spacing: .02em; }
.tag-gold { background: var(--gold-soft); color: #7A5200; border: 1px solid #F5D89A; }
.tag-slate { background: var(--mist); color: var(--navy); border: 1px solid var(--line); }
.tag-plum { background: var(--plum-soft); color: #8A3D6A; border: 1px solid #E8C6DA; }

.icon-badge {
  flex: none; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft);
}
.icon-badge svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge svg rect { fill: var(--gold); stroke: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(46,59,72,.06); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand img { width: 150px; height: auto; }
.main-nav { display: none; }
.header-cta { margin-left: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 68px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px; box-shadow: 0 10px 20px rgba(46,59,72,.08);
}
.main-nav a {
  font-family: var(--font-head); font-weight: 500; color: var(--navy-dark);
  text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--mist);
}
.main-nav a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .brand img { width: 170px; }
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open {
    display: flex; flex-direction: row; gap: 4px; position: static;
    margin-left: auto; padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .main-nav a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 15.5px; }
  .main-nav a:hover { background: var(--mist); }
  .header-cta { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(46,59,72,.15) 0%, rgba(46,59,72,.55) 38%, rgba(46,59,72,.94) 72%, var(--navy-dark) 100%);
}
.hero-content { padding-top: 120px; padding-bottom: 40px; }
.tagline { font-family: var(--font-head); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--gold); margin: 18px 0 10px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 7vw, 58px); font-weight: 700; max-width: 14ch; letter-spacing: -.01em; }
.hero-sub { margin-top: 16px; max-width: 56ch; font-size: 17.5px; color: rgba(255,255,255,.92); }
.hero-sub strong { color: var(--gold); }
.hero-loc { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--white); }
.hero-loc svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2; }

@media (min-width: 900px) {
  .hero { min-height: 640px; align-items: center; }
  .hero-photo { object-position: 70% 40%; }
  .hero-shade { background: linear-gradient(90deg, var(--navy-dark) 0%, rgba(46,59,72,.92) 34%, rgba(46,59,72,.55) 58%, rgba(46,59,72,.05) 85%); }
  .hero-content { padding-top: 96px; padding-bottom: 96px; }
  .hero-content > * { max-width: 600px; }
}

/* ---------- Partners ---------- */
.partners { border-bottom: 1px solid var(--line); }
.partners-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.partners .eyebrow { margin: 0; color: var(--gray); color: #6B7480; }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.partner-logos img:first-child { width: 190px; }
.partner-logos img:last-child { width: 110px; }
@media (min-width: 700px) {
  .partners-inner { flex-direction: row; justify-content: center; gap: 36px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-warm { background: var(--gold-soft); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* Timeline */
.timeline {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; gap: 0; position: relative;
}
.timeline li { position: relative; padding: 0 0 24px 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 8px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--slate);
}
.timeline li::after { content: ""; position: absolute; left: 15px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(252,184,44,.3); }
.tl-year { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--plum); }
.timeline h3 { font-size: 18px; margin: 2px 0 4px; }
.timeline p { font-size: 15.5px; color: var(--charcoal); }
.timeline li.is-now h3 { color: var(--navy-dark); }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .timeline li { padding: 36px 0 0; }
  .timeline li::before { left: 0; top: 0; }
  .timeline li::after { left: 20px; right: -20px; top: 8px; bottom: auto; width: auto; height: 2px; }
  .timeline li:last-child::after { display: none; }
}

.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

.photo-stack { position: relative; margin: 0 0 40px; }
.photo-main { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.photo-inset {
  position: absolute; right: -6px; bottom: -40px; width: 52%; margin: 0;
  background: var(--white); padding: 8px 8px 6px; border-radius: 14px; box-shadow: 0 10px 30px rgba(46,59,72,.18);
  transform: rotate(2deg);
}
.photo-inset img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-inset figcaption { font-size: 12.5px; color: var(--charcoal); padding: 6px 4px 2px; text-align: center; }
@media (min-width: 900px) { .photo-inset { right: -24px; } }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; }
.value-list h3 { font-size: 19px; margin-bottom: 4px; }
.value-list p { color: var(--charcoal); }

/* Program cards */
.group-title { font-size: 20px; color: var(--navy); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card-grid { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(46,59,72,.12); border-color: #C9D2DA; }
.card .icon-badge { margin-bottom: 4px; }
.card .tag { align-self: flex-start; }
.card h4 { font-size: 19px; }
.card p { color: var(--charcoal); flex: 1; }
.card .btn { align-self: flex-start; margin-top: 6px; min-height: 44px; padding: 8px 20px; }

.club-card {
  display: grid; gap: 20px; align-items: center;
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--plum-soft) 0%, #FFFFFF 70%);
  border: 2px solid var(--plum); margin-bottom: 40px;
}
.club-card h4 { font-size: 26px; margin: 10px 0 8px; }
.club-card p { color: var(--charcoal); max-width: 52ch; margin-bottom: 20px; }
.club-art svg { width: 100%; max-width: 220px; margin: 0 auto; display: block; }
.club-art rect, .club-art path { fill: var(--white); stroke: var(--plum); stroke-width: 3; stroke-linejoin: round; }
.club-art .alt { fill: var(--gold); stroke: var(--navy); }
.club-art text { font-family: var(--font-head); font-weight: 700; font-size: 22px; fill: var(--plum); }
.club-art .alt-text { fill: var(--navy-dark); }
@media (min-width: 760px) { .club-card { grid-template-columns: 1.6fr 1fr; padding: 40px; } }

.soon { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; background: var(--mist); }
.soon-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 18px; margin-bottom: 12px; }
.soon ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.soon li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; color: var(--charcoal); font-size: 15.5px; }
.soon-note { font-size: 15.5px; color: var(--charcoal); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 12px;
}
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--charcoal); }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -20px; width: 16px; height: 16px;
    border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); transform: rotate(45deg);
  }
}

/* ---------- Bintan ---------- */
.bintan { position: relative; isolation: isolate; color: var(--white); padding: 72px 0; overflow: hidden; }
.bintan-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bintan-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46,59,72,.55) 0%, rgba(46,59,72,.88) 45%, rgba(46,59,72,.92) 100%); }
.bintan-inner { display: grid; gap: 32px; align-items: start; }
.bintan-text p { color: rgba(255,255,255,.92); max-width: 56ch; }
.villages-label { margin-top: 20px; font-weight: 600; }
.villages { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.villages li { padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); font-size: 15px; font-weight: 600; }
.villages li:first-child { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }

.address-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.address-card h3 { font-size: 18px; margin-bottom: 6px; }
.address-card address { color: var(--charcoal); margin-bottom: 16px; }
.map-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; aspect-ratio: 4 / 3; background: var(--mist); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) {
  .bintan { padding: 104px 0; }
  .bintan-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
  .bintan-shade { background: linear-gradient(90deg, rgba(46,59,72,.92) 0%, rgba(46,59,72,.7) 50%, rgba(46,59,72,.25) 100%); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--slate); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 17.5px; color: var(--navy-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--plum); border-bottom: 2.5px solid var(--plum); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--charcoal); }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: var(--white); padding: 72px 0; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; }
.cta::before { width: 320px; height: 320px; left: -120px; top: -140px; background: rgba(252,184,44,.18); }
.cta::after { width: 260px; height: 260px; right: -80px; bottom: -120px; border: 18px solid rgba(176,88,140,.35); }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta .tagline { margin-top: 0; }
.cta h2 { color: var(--white); font-size: clamp(26px, 4.4vw, 38px); max-width: 24ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 56px 0 24px; font-size: 15.5px; }
.footer-grid { display: grid; gap: 32px; }
.footer-logo { width: 170px; background: var(--white); padding: 10px 14px; border-radius: 12px; box-sizing: content-box; }
.footer-tagline { color: var(--gold); font-family: var(--font-head); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; margin: 14px 0 10px; }
.site-footer h3 { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 14px; color: rgba(255,255,255,.6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
