/* ===========================================================
   송도 멀티플렉스 교육집단 페르마 — style.css
   대표색: 민트/청록(#4FBFA8), 진청록 보조, 연두 포인트
   =========================================================== */

:root {
  /* 브랜드 핵심 팔레트 */
  --ink: #0e3a3f;         /* 아주 진한 청록 (어두운 배경 / 제목) */
  --ink-deep: #082a2e;    /* 최심 청록 */
  --teal: #2a9d8f;        /* 메인 청록 (버튼 / 포인트 텍스트) */
  --teal-bright: #4fbfa8; /* 밝은 민트 (로고색 / hover) */
  --teal-dark: #15666b;   /* 진청록 보조 */
  --lime: #8bc53f;        /* 포인트 연두 (로고 '마') */
  --sky: #e7f6f2;         /* 연한 민트 배경 */

  --text: #11212b;
  --text-soft: #3d4f5e;
  --line: #e2e8f0;
  --line-strong: #0e3a3f;  /* 진한 청록 윤곽선 (2~3px 고대비 테두리) */
  --line-mid: #15666b;     /* 중간 톤 청록 윤곽선 */
  --bg: #ffffff;
  --bg-soft: #f3faf8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 58, 63, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 58, 63, 0.16);
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* 키보드 포커스 표시 (접근성) */
:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: rgba(79, 191, 168, .22); color: var(--ink); }

body {
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===== 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--ink); box-shadow: 0 6px 16px rgba(14, 58, 63, .28); }
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* ===== 헤더 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(14, 58, 63, .18); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
/* 로고 이미지 (공식 가로 로고) */
.logo { display: flex; align-items: center; }
.logo-img { height: 38px; width: auto; }

.main-nav ul { display: flex; gap: 14px; }
.main-nav a {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-soft);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color .18s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width .22s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s ease, transform .15s ease;
}
.header-cta:hover { background: var(--teal); transform: translateY(-1px); }

/* 햄버거 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== 히어로 ===== */
.hero {
  position: relative;
  padding: 150px 0 100px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(79, 191, 168, .5), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(139, 197, 63, .22), transparent 55%),
    linear-gradient(135deg, var(--ink-deep) 0%, var(--ink) 55%, var(--teal-dark) 100%);
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}
.hero-eyebrow {
  display: inline-block;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--lime);
  background: rgba(139, 197, 63, .14);
  border: 1px solid rgba(139, 197, 63, .42);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.01em;
}
.hero-title .accent { color: var(--lime); }
.hero-desc {
  max-width: 640px;
  margin: 24px 0 36px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, .88);
}
.hero-desc strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 52px;
}
.hero-badges li {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(4px);
}
.badge-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-bright);
  margin-bottom: 4px;
}
.badge-label { font-size: .95rem; color: rgba(255, 255, 255, .82); }

/* ===== 공통 섹션 ===== */
.section { padding: 92px 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-eyebrow {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.section-sub {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--text-soft);
}
.section-sub strong { color: var(--teal-dark); }

/* ===== 교육집단 소개 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-lead h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.about-lead p { color: var(--text-soft); margin-bottom: 18px; }
.about-lead strong { color: var(--teal); }

.about-points { display: grid; gap: 18px; }
.about-points li {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.point-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--sky);
  color: var(--teal);
  border-radius: 12px;
  font-size: 1.4rem;
}
.about-points h4 { font-size: 1.12rem; color: var(--ink); margin-bottom: 5px; }
.about-points p { font-size: .97rem; color: var(--text-soft); margin: 0; }

/* ===== 6대 전문 브랜드 ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--line-strong);
  border-top: 6px solid var(--brand, var(--teal));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px 20px;
  background: #fff;
  border-bottom: 2px solid var(--line-strong);
}
.brand-logo img {
  width: 100%;
  max-width: 260px;
  height: auto;
}
.brand-body { padding: 22px 24px 26px; }
.brand-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
  background: var(--brand, var(--teal));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.brand-body h3 {
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.brand-slogan {
  font-size: .98rem;
  font-weight: 700;
  color: var(--brand, var(--teal));
  margin-bottom: 12px;
}
.brand-desc {
  font-size: .95rem;
  color: var(--text-soft);
  margin: 0;
}

/* ===== 교육 철학 ===== */
.philo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.philo-card {
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.philo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.philo-no {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 14px;
}
.philo-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 12px; }
.philo-card p { font-size: .97rem; color: var(--text-soft); }

/* ===== 커리큘럼 ===== */
.curri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.curri-card {
  background: #fff;
  border: 2px solid var(--line-strong);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.curri-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.curri-card.bridge { border-top-color: var(--lime); background: linear-gradient(180deg, #f6fbed 0%, #fff 40%); }
.curri-tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--sky);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.curri-card.bridge .curri-tag { color: #5f8f17; background: #eaf6d4; }
.curri-card h3 { font-size: 1.22rem; color: var(--ink); margin-bottom: 10px; }
.curri-card > p { font-size: .95rem; color: var(--text-soft); margin-bottom: 16px; }
.curri-card > p strong { color: var(--teal-dark); }
.curri-card ul { display: grid; gap: 8px; }
.curri-card li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  color: var(--text);
}
.curri-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}
.curri-card.bridge li::before { color: var(--lime); }
.bridge-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--lime);
  background: #f3f9e6;
  border-radius: 8px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.bridge-note strong { color: #5f8f17; }

/* ===== 학습 진단 ===== */
.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.diag-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid var(--line-strong);
  border-top: 6px solid var(--teal);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.diag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.diag-card:nth-child(2) { border-top-color: var(--lime); }
.diag-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--sky);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.diag-card:nth-child(2) .diag-tag { color: #5f8f17; background: #eaf6d4; }
.diag-card h3 { font-size: 1.32rem; color: var(--ink); margin-bottom: 12px; }
.diag-desc { font-size: .97rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 24px; }
.diag-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.diag-hint { font-size: .84rem; color: var(--text-soft); font-weight: 600; }

/* ===== 상담 ===== */
.consult-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}
.consult-form {
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: #e23b3b; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid var(--line-mid);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fcfefe;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, .14);
}
.form-row textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--text-soft); }

/* 개인정보 수집·이용 동의 */
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 8px;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.consent-note {
  margin: 0;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.consult-contact {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink-deep);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.consult-contact .contact-value a { text-decoration: underline; }
.consult-contact h3 { font-size: 1.3rem; margin-bottom: 22px; }
.contact-list { display: grid; gap: 18px; margin-bottom: 26px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.contact-label { font-size: .85rem; color: var(--lime); font-weight: 700; }
.contact-value { font-size: 1.05rem; color: #fff; word-break: break-all; }
.contact-cta { display: grid; gap: 12px; }

/* ===== 공지 ===== */
.notice-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 2px solid var(--ink);
}
.notice-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
}
.notice-cat {
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--sky);
  padding: 4px 11px;
  border-radius: 6px;
}
.notice-link { flex: 1; font-weight: 600; color: var(--text); transition: color .18s ease; }
.notice-link:hover { color: var(--teal); }
.notice-date { flex-shrink: 0; font-size: .9rem; color: var(--text-soft); }
.notice-foot { max-width: 860px; margin: 18px auto 0; font-size: .88rem; color: var(--text-soft); }

/* ===== 오시는 길 ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.map-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 320px;
  background: var(--sky);
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  padding: 34px 28px;
  color: var(--text-soft);
}
.map-pin { font-size: 3rem; color: var(--teal); margin-bottom: 4px; }
.map-card-name { font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.map-card-addr { font-size: .96rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 8px; }
.location-info {
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.location-info li span a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
.location-info h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 22px; }
.location-info ul { display: grid; gap: 16px; margin-bottom: 26px; }
.location-info li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  font-size: .98rem;
}
.location-info li strong { color: var(--teal); }
.location-info li span { color: var(--text-soft); }
.location-info .btn { margin-top: auto; }

/* ===== 푸터 ===== */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .82); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 40px;
  padding-bottom: 42px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
/* 흰 배경 공식 로고를 어두운 푸터 위에 얹기 위한 카드 */
.footer-logo-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  align-self: flex-start;
  max-width: 100%;
}
.footer-logo-wrap img { width: 100%; max-width: 360px; height: auto; }
.footer-brand p { font-size: .92rem; color: rgba(255, 255, 255, .64); }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col h4 { font-size: 1rem; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col li, .footer-col a { font-size: .92rem; color: rgba(255, 255, 255, .72); transition: color .18s ease; }
.footer-col a:hover { color: var(--lime); }

/* 학원 법정 표시사항 */
.footer-legal { border-top: 2px solid rgba(255, 255, 255, .16); padding: 30px 0 8px; }
.footer-legal-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--teal-bright);
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.footer-legal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 36px;
}
.footer-legal-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-legal-list dt { font-size: .84rem; font-weight: 700; color: rgba(255, 255, 255, .62); }
.footer-legal-list dd { font-size: .88rem; color: rgba(255, 255, 255, .85); }
.footer-legal-list dd a { color: var(--teal-bright); text-decoration: underline; }
.footer-legal-note { display: inline-block; margin-top: 4px; font-size: .8rem; color: rgba(255, 255, 255, .55); line-height: 1.55; }
.footer-legal-link { font-weight: 600; }
.footer-legal .todo { font-size: .8rem; color: var(--lime); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; margin-top: 22px; }
.footer-bottom p { font-size: .85rem; color: rgba(255, 255, 255, .55); text-align: center; }

/* 교습비 안내 표 (상담 영역, 학원법 게시) */
.tuition-notice {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 2px solid rgba(255, 255, 255, .18);
}
.tuition-notice h4 { font-size: 1.02rem; color: #fff; margin-bottom: 14px; }
.tuition-notice h4 span { font-size: .8rem; font-weight: 600; color: var(--lime); }
.tuition-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--teal-bright);
  border-radius: 10px;
  overflow: hidden;
}
.tuition-table th,
.tuition-table td {
  padding: 10px 14px;
  font-size: .95rem;
  border: 1px solid rgba(255, 255, 255, .2);
  text-align: left;
}
.tuition-table thead th {
  background: var(--teal-dark);
  color: #fff;
  font-weight: 700;
}
.tuition-table tbody th { color: var(--teal-bright); font-weight: 700; width: 42%; }
.tuition-table tbody td { color: #fff; font-weight: 600; }
.tuition-foot { margin-top: 12px; font-size: .82rem; color: rgba(255, 255, 255, .62); line-height: 1.55; }

/* ===========================================================
   반응형
   =========================================================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .philo-grid { grid-template-columns: repeat(2, 1fr); }
  .curri-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-card:not(:last-child)::after { display: none; }
  .consult-grid,
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-legal-list { grid-template-columns: 1fr; }
}

/* 1200px 이하: 헤더 메뉴를 햄버거(슬라이드) 메뉴로 전환 */
@media (max-width: 1200px) {
  .header-cta { display: none; }
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    width: min(78%, 320px);
    height: calc(100vh - 68px);
    background: #fff;
    box-shadow: -8px 0 30px rgba(14, 58, 63, .12);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 14px 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 26px; font-size: 1.05rem; white-space: normal; }
  .main-nav a::after { display: none; }
}

@media (max-width: 760px) {
  .logo-img { height: 32px; }

  .section { padding: 64px 0; }
  .hero { padding: 120px 0 72px; }
  .diagnosis-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .philo-grid,
  .curri-grid,
  .loop-grid,
  .brands-grid { grid-template-columns: 1fr; }
  .hero-badges li { min-width: 100%; }
  .consult-form,
  .consult-contact,
  .location-info { padding: 26px 22px; }
  .location-info li { grid-template-columns: 76px 1fr; }
}

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-hint span,
  .to-top { animation: none !important; transition: none !important; }
}

/* ===========================================================
   보조 요소
   =========================================================== */

/* 본문 바로가기 (스크린리더/키보드) */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* 상단 스크롤 진행 바 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 150;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transition: width .08s linear;
}

/* 활성 네비게이션 표시 (스크롤스파이) */
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after { width: 100%; }

/* 히어로 스크롤 유도 아이콘 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.scroll-hint span {
  margin-top: 8px;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--lime);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== 학습 관리 루프 ===== */
.loop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.loop-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--line-strong);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.loop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.loop-card--last { border-top-color: var(--lime); }
/* 단계 사이 화살표 (데스크톱) */
.loop-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-dark);
  z-index: 2;
}
.loop-no {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: var(--teal-dark);
  border: 2px solid var(--ink);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.loop-card--last .loop-no { background: #5f8f17; }
.loop-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.loop-card p { font-size: .93rem; color: var(--text-soft); margin: 0; }
.loop-foot {
  margin-top: 26px;
  text-align: center;
  font-size: .92rem;
  color: var(--text-soft);
}
.todo { color: var(--teal-dark); font-weight: 700; }

/* ===== FAQ 아코디언 ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: var(--teal); box-shadow: var(--shadow-lg); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
}
.faq-ico {
  flex-shrink: 0;
  position: relative;
  width: 20px; height: 20px;
}
.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.faq-ico::before { width: 14px; height: 2.5px; transform: translate(-50%, -50%); }
.faq-ico::after { width: 2.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.open .faq-ico::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p {
  padding: 0 24px 22px;
  font-size: .98rem;
  color: var(--text-soft);
}
.faq-a strong { color: var(--teal); }
.faq-a a { color: var(--teal); font-weight: 700; text-decoration: underline; }

/* ===== 맨 위로 버튼 ===== */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 120;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal); transform: translateY(-3px); }

/* 상담 폼 유효성 표시 */
.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid {
  border-color: #e23b3b;
  box-shadow: 0 0 0 3px rgba(226, 59, 59, .12);
}
.form-note.ok { color: #1a8a4a; font-weight: 700; }
.form-note.error { color: #e23b3b; font-weight: 700; }

/* ===========================================================
   송도 지역 중·고등학교 내신관리
   =========================================================== */
.naesin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.naesin-card {
  background: #fff;
  border: 2px solid var(--line-strong);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.naesin-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.naesin-tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--sky);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.naesin-card h3 { font-size: 1.14rem; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.naesin-card p { font-size: .94rem; color: var(--text-soft); }

/* 브랜드 연결 안내 */
.naesin-link {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.naesin-link-item {
  background: var(--bg-soft);
  border: 2px solid var(--line-strong);
  border-left: 6px solid var(--brand, var(--teal));
  border-radius: var(--radius);
  padding: 22px 24px;
}
.naesin-link-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  color: var(--brand, var(--teal));
  margin-bottom: 6px;
}
.naesin-link-item h4 { font-size: 1.18rem; color: var(--ink); margin-bottom: 6px; }
.naesin-link-item p { font-size: .92rem; color: var(--text-soft); }

/* 송도 지역 학교 목록 */
.school-list {
  margin-top: 46px;
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.school-list-title { font-size: 1.4rem; color: var(--ink); text-align: center; }
.school-list-lead {
  margin: 12px auto 26px;
  max-width: 640px;
  text-align: center;
  font-size: .98rem;
  color: var(--text-soft);
}
.school-group { margin-bottom: 26px; }
.school-group:last-of-type { margin-bottom: 8px; }
.school-group-title {
  font-size: 1.08rem;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line-mid);
}
.school-group-title span { font-size: .86rem; font-weight: 700; color: var(--teal); }

.school-accordion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.school-item {
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.school-item[open] { border-color: var(--teal); box-shadow: var(--shadow); }
.school-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.school-item summary::-webkit-details-marker { display: none; }
.school-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal);
  transition: transform .2s ease;
}
.school-item[open] summary::after { content: "–"; }
.school-item summary:hover { color: var(--teal-dark); }

.school-detail {
  padding: 6px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-top: 1px dashed var(--line);
}
.school-emblem {
  max-width: 96px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-top: 12px;
}
.school-name { font-size: .96rem; font-weight: 700; color: var(--text); }
.school-loc { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--text-soft); }

.school-note {
  margin-top: 20px;
  text-align: center;
  font-size: .86rem;
  color: var(--text-soft);
}

@media (max-width: 960px) {
  .naesin-grid { grid-template-columns: repeat(2, 1fr); }
  .school-accordion { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .school-list { padding: 26px 20px; }
}
@media (max-width: 520px) {
  .naesin-grid { grid-template-columns: 1fr; }
  .naesin-link { grid-template-columns: 1fr; }
  .school-accordion { grid-template-columns: 1fr; }
}

/* 보조 요소 반응형 */
@media (max-width: 520px) {
  .faq-q { font-size: .98rem; padding: 16px 18px; }
  .faq-a p { padding: 0 18px 18px; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
