/* ============================================================
   WONDERS ENGLISH ACADEMY — Main Stylesheet
   Mobile-first / Minimal / SEO-friendly
   ============================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul[role="list"] { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Typography */
:root {
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold:   700;
  --fw-black:  800;
  --radius:    4px;
  --transition: 0.2s ease;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: var(--fw-normal);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #e8e8e4;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.logo-en {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.logo-kr {
  font-size: 1rem;
  font-weight: var(--fw-black);
  color: var(--green);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition);
  color: var(--text);
}
.site-nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  font-weight: var(--fw-bold) !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: #fff !important; }

/* ── Sections ── */
section { padding: 72px 0; }
.bg-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: var(--fw-black);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ── Hero ── */
.hero {
  padding: 80px 0 72px;
  background: var(--bg);
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: var(--fw-black);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  word-break: keep-all;
}
.hero-slogan {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: var(--fw-bold);
  color: var(--green);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 36px;
  word-break: keep-all;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.hero-fact {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-fact::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }

/* ── Grid ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ── Image placeholder ── */
.img-placeholder {
  background: #e8ede8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.ratio-4-3  { aspect-ratio: 4/3; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-1-1  { aspect-ratio: 1/1; }

/* ── Program Cards ── */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.program-card {
  background: var(--bg);
  border: 1px solid #e4e8e2;
  border-radius: 8px;
  padding: 24px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.program-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(41,65,41,0.08);
}
.program-name {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 8px;
}
.program-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

/* ── Differentiators ── */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.diff-item {
  display: flex;
  gap: 20px;
}
.diff-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  margin-top: 2px;
}
.diff-body h3 {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  margin-bottom: 6px;
  word-break: keep-all;
}
.diff-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid #e4e8e2; }
.faq-item:first-child { border-top: 1px solid #e4e8e2; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.5;
  word-break: keep-all;
}
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: var(--fw-normal);
  color: var(--green);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  padding: 0 0 20px;
  display: none;
  word-break: keep-all;
}
.faq-item.open .faq-a { display: block; }

/* ── CTA Section ── */
.section-cta {
  padding: 80px 0;
  background: var(--green);
}
.cta-inner { text-align: center; }
.cta-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: var(--fw-black);
  color: #fff;
  margin-bottom: 12px;
  word-break: keep-all;
}
.cta-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  word-break: keep-all;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.section-cta .btn-primary {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}
.section-cta .btn-primary:hover { background: #f0f4f0; border-color: #f0f4f0; }
.section-cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.section-cta .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo-en {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.footer-logo-kr {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 8px;
}
.footer-slogan {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.footer-address, .footer-phone {
  font-size: 0.8rem;
  font-style: normal;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.footer-phone a { color: rgba(255,255,255,0.5); }
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Tablet (640px+) ── */
@media (min-width: 640px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3       { grid-template-columns: repeat(3, 1fr); }
  .hero-facts   { flex-direction: row; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  section { padding: 96px 0; }
  .hero   { padding: 100px 0 96px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .footer-inner { grid-template-columns: 2fr 1fr; }
}
