/* Melbourne Edu — shared styles
   Palette derived from the app icon: deep navy, fresh green, amber spark. */

:root {
  --navy: #16233F;
  --navy-2: #22355C;
  --green: #2E9E6B;
  --amber: #F2A93B;
  --ink: #1E2633;
  --muted: #5B6675;
  --line: #E6EAF1;
  --bg: #FFFFFF;
  --tint: #F5F8FC;
  --maxw: 820px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .spark { flex: 0 0 auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--navy-2); font-weight: 600; }
@media (max-width: 560px) {
  .site-header .wrap { height: 56px; }
  .nav { gap: 16px; font-size: 14px; }
  .brand { font-size: 17px; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 140% at 88% -10%, rgba(242, 169, 59, 0.22), transparent 55%),
    radial-gradient(120% 120% at -10% 110%, rgba(46, 158, 107, 0.18), transparent 50%),
    var(--navy);
  color: #fff;
  padding: 74px 0 64px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(242, 169, 59, 0.4);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .accent { color: var(--green); }
.hero p { margin: 0; font-size: clamp(16px, 2.4vw, 19px); color: #C9D3E6; max-width: 46ch; }
.hero .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #268a5c; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.tint { background: var(--tint); }
.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin: 0 0 10px;
}
h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; margin: 0 0 18px; color: var(--navy); font-weight: 800; }
h3 { font-size: 18px; color: var(--navy); margin: 0 0 8px; font-weight: 700; }
.lead { font-size: 17px; color: var(--muted); max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
}
.card .ic { width: 34px; height: 34px; margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- document (support / privacy) ---------- */
.doc { padding: 52px 0 72px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); color: var(--navy); letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 800; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 34px; }
.doc h2 { font-size: 21px; margin: 38px 0 12px; padding-top: 8px; }
.doc h3 { margin-top: 22px; }
.doc p, .doc li { color: #384150; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

.faq { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 20px 20px; color: #384150; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.contact-card .k { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.contact-card .v { font-size: 17px; font-weight: 600; color: var(--navy); }
.contact-card .v a { color: var(--navy); }

.callout {
  background: var(--tint); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 10px; padding: 16px 18px; margin: 24px 0; color: #384150;
}
.callout strong { color: var(--navy); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #AEB9CE; padding: 40px 0 46px; font-size: 14px; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 18px; }
.biz { line-height: 1.9; }
.biz .row span { color: #7E8BA6; display: inline-block; min-width: 92px; }
.biz .row b { color: #D7DEEC; font-weight: 600; }
.foot-links { margin-top: 20px; display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: #AEB9CE; }
.foot-copy { margin-top: 22px; color: #6B7793; font-size: 13px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

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