/* ==========================================================================
   외대HS어학원 — 공통 스타일 (미니멀 · 큰 타이포)
   ========================================================================== */

:root {
  --primary: #002843;        /* 외대 로고 남색 */
  --primary-hover: #003a61;
  --accent: #1f6fd1;         /* 라벨·링크 강조 */
  --accent-soft: #e8f1fc;
  --text-strong: #191f28;
  --text: #333d4b;
  --text-sub: #6b7684;
  --text-faint: #8b95a1;
  --bg: #ffffff;
  --bg-gray: #f2f4f6;
  --line: #e5e8eb;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

.main-nav ul { display: flex; gap: 4px; }

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s ease;
}

.main-nav a:hover { background: var(--bg-gray); }

.nav-cta-mobile { display: none !important; }

.header-cta {
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.header-cta:hover { background: var(--primary-hover); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--bg-gray); color: var(--text-strong); }
.btn-secondary:hover { background: #e5e8eb; }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #eef3f8; }

/* ---------- Sections ---------- */

section { padding: 140px 0; }

.section-gray { background: var(--bg-gray); }

.label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.headline {
  font-size: 48px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.desc {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-sub);
}

.center { text-align: center; }

/* ---------- Hero ---------- */

.hero { padding: 120px 0 0; text-align: center; }

.hero h1 {
  font-size: 68px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.hero h1 .point { color: var(--primary); }

.hero .desc { max-width: 560px; margin: 24px auto 0; font-size: 20px; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.hero-photo {
  margin-top: 80px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.photo-caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- Keywords (3 points) ---------- */

.point-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.point-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-gray);
}

.section-gray .point-card { background: #fff; }

.point-card .num {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.point-card h3 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.point-card p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- Contest (big facts) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.fact-list { display: grid; gap: 32px; margin-top: 48px; }

.fact dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-faint);
}

.fact dd {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.split-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 40, 67, 0.08);
}

.news-tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.news-card h3 {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-strong);
}

.news-card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-sub);
}

.news-more {
  margin-top: auto;
  padding-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-faint);
}

/* ---------- Process ---------- */

.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.step {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-gray);
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.step h4 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- Location ---------- */

.info-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.info-row dt { font-weight: 600; color: var(--text-faint); }
.info-row dd { margin: 0; font-weight: 600; color: var(--text-strong); }

.location-actions { margin-top: 40px; }

/* ---------- CTA ---------- */

.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.cta .headline { color: #fff; }
.cta .desc { color: rgba(255, 255, 255, 0.72); }
.cta .btn { margin-top: 40px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 72px;
  background: var(--bg-gray);
  font-size: 14px;
  color: var(--text-sub);
}

.footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--text);
}

.footer-links a:hover { text-decoration: underline; }

.footer-info { margin-top: 20px; line-height: 1.9; }

.footer-copy { margin-top: 24px; color: var(--text-faint); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .point-list, .news-grid { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; padding: 8px 16px 20px; gap: 0; }
  .main-nav a { padding: 14px 8px; font-size: 17px; }
  .nav-cta-mobile { display: block !important; color: var(--accent) !important; }

  .header-cta { display: none; }
  .nav-toggle { display: block; }

  section { padding: 96px 0; }
  .hero { padding: 72px 0 0; }
  .hero h1 { font-size: clamp(27px, 7.6vw, 40px); }
  .hero .desc { font-size: 17px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { margin-top: 56px; border-radius: var(--radius-lg); }
  .hero-photo img { aspect-ratio: 4 / 3; }

  .headline { font-size: 32px; }
  .desc { font-size: 17px; }

  .point-list, .news-grid, .step-list { grid-template-columns: 1fr; margin-top: 48px; }
  .point-card { padding: 32px 24px; }
  .fact dd { font-size: 22px; }

  .info-row { grid-template-columns: 1fr; gap: 4px; font-size: 17px; padding: 20px 0; }
  .location-actions .btn { width: 100%; }
}

/* ---------- 추가: 비행기 소개, 버튼 묶음, 카카오 버튼 ---------- */

.big-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.more-actions { margin-top: 40px; text-align: center; }

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.cta .cta-actions .btn { margin-top: 0; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.info-row dd a { color: var(--accent); }
.footer-info a { color: inherit; }

.kakao-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  background: #fee500;
  color: #191919;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease;
}

.kakao-float:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
  .cta-actions { flex-direction: column; }
  .cta-actions .btn, .more-actions .btn { width: 100%; }
  .kakao-float { right: 16px; bottom: 16px; }
}

/* ---------- 로고 ---------- */

.brand { align-items: center; gap: 8px; }
.brand-emblem { width: 36px; height: 36px; }
.brand-word { height: 22px; width: auto; }
.brand-sub { margin-left: 2px; }

.brand-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 96px;
  padding: 36px 48px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
}

.bb-org {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.bb-org .gold, .bb-en { color: #c9ab76; }

.bb-main { display: flex; align-items: center; gap: 16px; }
.bb-emblem { width: 76px; height: 76px; }
.bb-word { height: 52px; width: auto; }

.bb-en {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-align: left;
}

.bb-en span { font-size: 14px; letter-spacing: 0.08em; font-variant: small-caps; }

.cta-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}

.cta-emblem { width: 88px; height: 88px; }
.cta-emblem { margin-bottom: 12px; }
.cta-word { height: 48px; width: auto; }

.cta-en {
  margin-top: 6px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

.cta-en span { font-variant: small-caps; }

.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img:first-child { width: 40px; height: 40px; }
.footer-word { height: 22px; width: auto; }
.footer-brand span { font-size: 14px; font-weight: 600; color: var(--text-sub); }

@media (max-width: 960px) {
  .brand-banner { flex-direction: column; text-align: center; gap: 20px; padding: 36px 24px; }
  .bb-org { flex-direction: row; gap: 8px; }
  .bb-en { text-align: center; }
}

@media (max-width: 760px) {
  .brand-word { height: 18px; }
  .brand-emblem { width: 32px; height: 32px; }
  .brand-banner { margin-bottom: 72px; }
  .bb-emblem { width: 56px; height: 56px; }
  .bb-word { height: 36px; }
  .bb-org { font-size: 14px; }
}

@media (max-width: 360px) {
  .brand-sub { display: none; }
}

.info-note { font-weight: 500; color: var(--text-sub); }

/* 긴 제목: 두 줄에 맞도록 크기 조정 */
.headline-long { font-size: 40px; }

@media (max-width: 960px) {
  .headline-long { font-size: clamp(24px, 6.4vw, 40px); }
}

.footer-brand .footer-name { font-size: 17px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }

/* 상단 학원명 (글자) */
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  white-space: nowrap;
}

.brand-branch { color: var(--text-strong); }

@media (max-width: 760px) {
  .brand-name { font-size: 16px; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 15px; }
}
