/* Triango Education / 트라이앵고어학원. UK spelling in comments. No shop checkout styles. */
:root {
  --purple: #5f1a86;
  --purple-deep: #3d1058;
  --purple-soft: #f3eaf8;
  --gold: #f4b638;
  --gold-soft: #fff4d6;
  --ink: #2b1240;
  --muted: #5c4e68;
  --bg: #f7f4fa;
  --card: #ffffff;
  --line: #e8e0f0;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(43, 18, 64, 0.06);
  --header-h: 72px;
  --max: 1120px;
  --font: "Pretendard", "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip:focus { top: 12px; }

/* Language visibility: Korean is the default first paint.
   Use :not([lang="en"]) so later display rules (e.g. .eyebrow) cannot un-hide the off language. */
html:not([lang="en"]) .t-en { display: none !important; }
html[lang="en"] .t-ko { display: none !important; }
html[lang="en"] p.t-en,
html[lang="en"] li.t-en,
html[lang="en"] h1.t-en,
html[lang="en"] h2.t-en,
html[lang="en"] h3.t-en,
html[lang="en"] .t-en.block { display: block; }
html[lang="en"] span.t-en { display: inline; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.brand img {
  height: 40px;
  width: auto;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lang-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--purple);
  color: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-deep); color: #fff; }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #e5a62a; color: var(--ink); }
.btn-ghost {
  background: #fff;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-ghost:hover { background: var(--purple-soft); color: var(--purple-deep); }
.btn-call-header { padding: 10px 14px; }

/* Hero */
.hero {
  padding: 40px 0 28px;
}
.hero-inner {
  background: linear-gradient(180deg, #efe6f7 0%, #ffffff 70%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 24px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-inner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 182, 56, 0.35), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.hero .lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gold-bar {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin: 0 0 16px;
}

/* Sections */
section { padding: 28px 0; }
section, #contact { scroll-margin-top: calc(var(--header-h) + 16px); }
.section-head { margin: 0 0 20px; }
.section-head h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.section-head p { margin: 0; color: var(--muted); }

.trust-grid, .prog-grid, .stat-grid, .fee-grid, .campus-grid, .faq-list {
  display: grid;
  gap: 12px;
}
.trust-grid { grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); }
.icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.cambridge {
  background: var(--purple);
  color: #fff;
  border-radius: 28px;
  padding: 32px 24px;
}
.cambridge h2, .cambridge h3 { color: #fff; }
.cambridge .section-head p, .cambridge p, .cambridge li { color: #f3eaf8; }
.cambridge a { color: var(--gold); }
.cambridge ol, .cambridge ul { margin: 0; padding-left: 1.2em; }
.cambridge li { margin: 0 0 8px; }
.badge-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
}

.stat-grid { grid-template-columns: 1fr 1fr; }
.stat {
  text-align: left;
}
.stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.stat .label { color: var(--muted); font-size: 14px; margin: 0; }

.fee-grid { grid-template-columns: 1fr; }
.fee .price {
  font-size: 26px;
  font-weight: 800;
  color: var(--purple);
  margin: 4px 0 0;
}
.fee .unit { font-size: 13px; color: var(--muted); font-weight: 600; }
.fee-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.hours li span:last-child { color: var(--muted); font-weight: 500; text-align: right; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-list { list-style: none; margin: 0 0 16px; padding: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.faq-list { grid-template-columns: 1fr; }
details.card { padding: 0; }
details.card summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 20px;
  min-height: 44px;
  list-style: none;
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after {
  content: "+";
  float: right;
  color: var(--purple);
  font-weight: 800;
}
details.card[open] summary::after { content: "-"; } /* en dash? use minus to avoid em dash. This is a typographic minus/hyphen. */
details.card .faq-body { padding: 0 20px 18px; color: var(--muted); }

.footer {
  margin-top: 24px;
  background: var(--purple-deep);
  color: #f3eaf8;
  padding: 36px 0 28px;
}
.footer a { color: var(--gold); }
.footer a, .contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer .brand img { height: 36px; }
.footer .brand-name { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer h2 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.footer p, .footer li { margin: 0 0 6px; font-size: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #cbb8dc;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

@media (min-width: 720px) {
  .brand-name { font-size: 16px; }
  .trust-grid, .prog-grid, .fee-grid, .campus-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { padding: 56px 48px 48px; }
  .cambridge { padding: 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .faq-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .prog-grid { grid-template-columns: repeat(4, 1fr); }
}

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

@media (max-width: 480px) {
  .header .wrap { width: min(var(--max), calc(100% - 16px)); }
  .header-inner { gap: 6px; }
  .brand { gap: 6px; }
  .brand img { height: 26px; }
  .header .brand-name {
    font-size: 12px;
    letter-spacing: -0.04em;
  }
  .lang-toggle button { padding: 8px 6px; font-size: 11px; min-width: 44px; }
  .btn-call-header { padding: 8px 10px; font-size: 13px; }
}
