/* 몬스터매스 몬테수학 홈페이지 — 디자인 기준(작업지시서 2항) */
:root {
  --cream: #FFF8E7;
  --olive: #A3A35C;
  --forest: #294D3B;
  --orange: #EF7B22;
  --mustard: #FFD06A;
  --mustard-soft: #FFEFC4;
  --white: #FFFFFF;
  --text: #383D35;
  --text-on-olive: #1F2A22; /* 올리브 배경 본문 — 대비 4.5:1 이상 */
  --line: #E9DFC6;

  --max: 1160px;
  --gutter: 40px;
  --section-y: 80px;
  --gap: 24px;
  --radius-card: 20px;
  --radius-photo: 24px;
  --radius-btn: 12px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--forest); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--forest); color: var(--cream); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
section[id], #top { scroll-margin-top: calc(var(--header-h) + 8px); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn);
  font-size: 17px; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
}
.btn-mustard { background: var(--mustard); color: var(--forest); }
.btn-mustard:hover { background: #FFC54A; }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: #1F3C2E; }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: rgba(41, 77, 59, 0.08); }
/* 올리브 배경 위 외곽선 버튼 — 숲색(3.6:1)은 17px 글자에 부족해 진한 색(5.6:1) 사용 */
.hero .btn-outline { color: var(--text-on-olive); border-color: var(--text-on-olive); }

/* A. 상단 메뉴 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { font-size: 21px; font-weight: 800; color: var(--forest); text-decoration: none; margin-right: auto; white-space: nowrap; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a { font-size: 17px; font-weight: 600; color: var(--forest); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--orange); }
.menu-toggle { display: none; }
.header-cta { min-height: 44px; }

/* B. 첫 화면 */
.hero { background: var(--olive); padding: 72px 0; }
/* 첫 화면 사진은 가로형(3:2) — 사진 칸을 넉넉하게(글 1.1 : 사진 1). */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-region { font-size: 16px; font-weight: 600; color: var(--text-on-olive); }
.hero-name { margin-top: 14px; font-size: 22px; font-weight: 700; color: var(--text-on-olive); }
.hero-title { margin-top: 10px; font-size: 52px; line-height: 1.25; letter-spacing: -0.03em; color: var(--forest); }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: 18px; color: var(--text-on-olive); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius-photo); overflow: hidden; background: #8F8F50; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 공통 구역 */
.section { padding: var(--section-y) 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-olive { background: var(--olive); }
.section-mustard { background: var(--mustard-soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-title { font-size: 34px; letter-spacing: -0.01em; }
.section-lead { margin-top: 16px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }

/* C. 교육 방식 */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.approach-card { padding: 28px; }
.icon { width: 32px; height: 32px; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.approach-card h3 { margin-top: 16px; font-size: 21px; }
.approach-card p { margin-top: 8px; font-size: 17px; }
/* 교육 방식 아래 개별 지도 사진 + 짧은 설명(PC 2열 / 모바일 1열) */
.guided { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.guided-photo { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius-photo); overflow: hidden; background: #EFE6CF; }
.guided-photo img { width: 100%; height: 100%; object-fit: cover; }
.guided-text h3 { font-size: 26px; }
.guided-text p { margin-top: 12px; }

/* D. 수업 프로그램 */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.program-card { padding: 28px; border-top: 6px solid var(--accent); display: flex; flex-direction: column; }
.program-thinking { --accent: var(--orange); }
.program-curriculum { --accent: var(--olive); }
.program-middle { --accent: var(--forest); }
.program-badge {
  align-self: flex-start; font-size: 15px; font-weight: 700; color: var(--forest);
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px;
}
.program-card h3 { margin-top: 12px; font-size: 24px; }
.program-card > p:not(.program-badge) { margin-top: 12px; }
.program-for { margin-top: auto; padding-top: 20px; }
.program-for p { font-size: 17px; }
.program-for-title { font-weight: 700; color: var(--forest); margin-bottom: 4px; }

/* E. 실제 수업 모습 */
.classroom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.photo-frame { aspect-ratio: 3 / 2; border-radius: var(--radius-photo); overflow: hidden; background: #EFE6CF; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.step { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--text); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mustard); color: var(--forest); font-size: 15px; font-weight: 800;
}
.classroom-item h3 { margin-top: 6px; font-size: 22px; }
.classroom-item h3 + p { margin-top: 6px; }
.image-note { margin-top: 28px; font-size: 14px; color: #5E6259; }

/* F. 원장 소개 */
.about-panel { background: var(--cream); border-radius: var(--radius-photo); padding: 56px 48px; }
.about-body { max-width: 760px; margin-top: 24px; }
.about-body p + p { margin-top: 16px; }
.about-body .about-sign { margin-top: 28px; font-weight: 700; color: var(--forest); }

/* G. 학부모 소통 */
.comm-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.report-card { padding: 32px; }
.report-card h3 { font-size: 22px; }
.report-list { margin-top: 16px; }
.report-list li { padding: 14px 0 14px 28px; border-top: 1px solid var(--line); position: relative; font-weight: 600; color: var(--forest); }
.report-list li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--orange);
}

/* H. 상담과 위치 */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { margin: 0; padding: 12px 32px; }
.contact-row { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: 0; }
.contact-row dt { font-weight: 700; color: var(--forest); }
.contact-row dd { margin: 0; }
.pending-tag {
  display: inline-block; font-size: 15px; font-weight: 600; color: #6B5320;
  border: 1px dashed #B99642; border-radius: 8px; padding: 1px 10px; background: #FFF8E7;
}

/* I. 하단 */
.site-footer { background: var(--forest); color: var(--cream); padding: 40px 0; font-size: 16px; }
.footer-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }

/* 태블릿 */
@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card, .approach-card { padding: 24px; }
  .hero-title { font-size: 40px; }
  .guided { gap: 28px; }
  .guided-text h3 { font-size: 23px; }
  .site-nav ul { gap: 20px; }
}

/* 모바일 메뉴 전환 */
@media (max-width: 860px) {
  .header-inner { gap: 10px; flex-wrap: wrap; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; order: 3;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer;
  }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px; position: relative;
  }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }
  .header-cta { order: 2; }
  .site-nav { order: 4; flex-basis: 100%; display: none; padding-bottom: 12px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 4px; border-top: 1px solid var(--line); }
}

/* 모바일 */
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-y: 48px; --gap: 16px; --header-h: 64px; }
  body { font-size: 16.5px; }
  .brand { font-size: 18px; }
  .hero { padding: 40px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 34px; }
  .hero-name { font-size: 19px; }
  .hero-lead { font-size: 16.5px; }
  .hero-photo { max-width: 640px; }
  .guided { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .guided-text h3 { font-size: 21px; }
  .section-title { font-size: 27px; }
  .section-head { margin-bottom: 28px; }
  .program-grid, .classroom-grid { grid-template-columns: 1fr; }
  .approach-card, .program-card { padding: 24px; }
  .about-panel { padding: 32px 22px; }
  .comm-inner, .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .report-card { padding: 24px; }
  .contact-card { padding: 4px 20px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 600px) {
  .approach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .header-cta { padding: 0 14px; font-size: 16px; }
  .hero-title { font-size: 32px; }
}
