/* 루트메이커스 영어교습소 — 공통 스타일 (블로그 카드와 같은 베이지 잡지풍) */
:root {
  --paper: #f6f0e4;
  --paper-2: #efe6d4;
  --card: #fffdf8;
  --ink: #2a2520;
  --ink-2: #5a5148;
  --muted: #8a7f72;
  --line: #ddd2bf;
  --accent: #9a3324;
  --accent-dark: #7a2619;
  --accent-soft: #f3e1d9;
  --radius: 6px;
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.serif { font-family: 'Noto Serif KR', serif; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.todo { background: #fff3b0; color: #6b5800; padding: 0 4px; border-radius: 3px; font-size: 0.92em; }

/* 상단 메뉴 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 240, 228, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: 'Noto Serif KR', serif; font-size: 19px; font-weight: 900; }
.brand small { font-size: 10px; letter-spacing: 2.5px; color: var(--muted); }
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb a { text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 11px; border-radius: var(--radius); }
.gnb a:hover, .gnb a[aria-current="page"] { color: var(--accent); }
.gnb a.cta { background: var(--accent); color: #fff; margin-left: 6px; }
.gnb a.cta:hover { background: var(--accent-dark); color: #fff; }
.menu-btn { display: none; position: relative; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: 0.2s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }

/* 공통 블록 */
section { padding: 84px 0; }
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: 'Noto Serif KR', serif; font-size: clamp(28px, 4.6vw, 42px); line-height: 1.3; margin: 10px 0 12px; letter-spacing: -0.5px; }
.page-head p { color: var(--ink-2); max-width: 680px; }
.sec-title { font-family: 'Noto Serif KR', serif; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.35; margin: 8px 0 14px; letter-spacing: -0.5px; }
.sec-lead { color: var(--ink-2); max-width: 680px; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 18px; margin: 6px 0 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .num { font-family: 'Noto Serif KR', serif; font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
a.card { text-decoration: none; display: block; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: var(--radius); border: 2px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer; font-size: 15px; font-family: inherit; }
.btn.fill { background: var(--accent); color: #fff; }
.btn:hover { opacity: 0.88; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.alt { background: var(--paper-2); }

/* 홈 첫 화면 */
.hero { padding: 72px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-family: 'Noto Serif KR', serif; font-size: clamp(32px, 5.6vw, 54px); line-height: 1.25; letter-spacing: -1px; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 17px; color: var(--ink-2); margin-bottom: 28px; }
.hero-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #d9ccb6, #b9a98f); border-radius: var(--radius); position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.hero-photo::before { content: ''; position: absolute; top: 18%; left: 50%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.hero-photo::after { content: ''; width: 64%; height: 42%; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, 0.35); }
.hero-photo span { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 12px; color: #6f6352; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.facts li { list-style: none; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }

/* 단계 흐름 */
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.route div { padding: 28px 24px; border-right: 1px solid var(--line); }
.route div:last-child { border-right: 0; }
.route b { display: block; font-family: 'Noto Serif KR', serif; font-size: 20px; margin: 4px 0 6px; }
.route p { font-size: 14.5px; color: var(--ink-2); }

/* 표 */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--paper-2); font-weight: 700; width: 28%; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* 하단 */
.site-footer { background: #231f1b; color: #a99d8c; font-size: 13.5px; padding: 48px 0 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.site-footer b { color: #f1e9db; font-family: 'Noto Serif KR', serif; font-size: 17px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 4px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid #3a342d; padding-top: 18px; font-size: 12px; }

/* 반응형 */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 360px; width: 100%; margin: 0 auto; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .gnb { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none; }
  .gnb.open { display: flex; }
  .gnb a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .gnb a.cta { margin: 12px 0 0; text-align: center; border-radius: var(--radius); border-bottom: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; }
  .route div { border-right: 0; border-bottom: 1px solid var(--line); }
  .route div:last-child { border-bottom: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .table th { width: 36%; }
}
