/* 굿데이그라운드 — 모바일 우선, PC에서도 가운데 모인 한 줄 레이아웃 */

:root {
  /* 브랜드: 굿데이그라운드 로고 색 #FCC990 기준 */
  --brand: #fcc990;
  --brand-hover: #f9b877;
  --brand-deep: #8a5520;   /* 로고 색과 같은 계열의 진한 톤 — 작은 글씨 강조용 */
  --bg: #fbf7f0;
  --bg-alt: #fcf0e1;
  --surface: #ffffff;
  --text: #2a251f;
  --muted: #6e655a;
  --line: #efdfc9;

  --radius: 16px;
  --wrap: 960px;        /* 모든 섹션 공통 콘텐츠 폭 */
  --media: 720px;       /* 사진·안내 이미지 폭 */
  --narrow: 640px;      /* 본문 문단·목록 폭 */
  --gutter: 20px;
  --header-h: 104px;
  --section-y: 64px;
  --font: Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.35; letter-spacing: -0.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nowrap { white-space: nowrap; }
.br-m { display: inline; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
}
.header-inner nav { width: 100%; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 36px; width: auto; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.brand-name small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
}
.menu {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 calc(var(--gutter) - 10px) 6px;
}
.menu::-webkit-scrollbar { display: none; }
.menu li:first-child { margin-left: auto; }
.menu li:last-child { margin-right: auto; }
.menu a {
  display: block;
  padding: 8px 10px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
}
.menu a:hover,
.menu a:focus-visible { color: var(--text); background: var(--bg-alt); }

section[id] { scroll-margin-top: var(--header-h); }

/* Typography 계층 */
.eyebrow {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  max-width: var(--narrow);
  margin: 0 auto 36px;
}
.section-head h2 { font-size: 26px; font-weight: 700; }
.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

/* Buttons */
.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--text); }
.btn-primary[href]:hover { background: var(--brand-hover); }
.btn[aria-disabled="true"] { cursor: default; }

/* 사진 공통 */
.photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.media { max-width: var(--media); margin: 0 auto; }

/* Hero */
.hero { padding: 40px 0 var(--section-y); text-align: center; }
.hero h1 { font-size: 30px; font-weight: 700; }
.lead {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
}
.hero-size { margin-top: 6px; color: var(--muted); font-size: 15px; }
.hero .cta { margin-top: 28px; }
/* KCIA 수상 안내 */
.award { margin: 40px auto 0; }
.award-title { font-size: 15px; font-weight: 700; color: var(--brand-deep); }
.award img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 14px auto 0;
  border-radius: 8px;
}
.award-sub { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-media {
  position: relative;
  max-width: 440px;
  margin: 36px auto 0;
}
.hero-video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
/* 영상 재생/일시정지 버튼 (우측 하단, 최소 크기) */
.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.88);
  color: var(--text);
  cursor: pointer;
}
.video-toggle:hover { background: var(--brand); }
.video-toggle:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.video-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.video-toggle .i-play,
.video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }

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

/* 특징 2 x 2 */
.features {
  display: grid;
  max-width: var(--media);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.features li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.features .icon { grid-row: span 2; font-size: 24px; line-height: 1.3; }
.features strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.features p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* 안내 이미지 (이미지 안 글자가 많아 모바일은 화면 끝까지 넓게) */
.promo { margin: 40px calc(var(--gutter) * -1) 0; }
.section-head + .promo { margin-top: 0; }
.promo img { width: 100%; height: auto; }

/* 유치원 목록 — 가운데 블록 */
.checklist {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 36px;
}
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 17px;
}
.checklist .emoji { flex: none; width: 1.4em; text-align: center; }

/* 프로그램 */
.programs {
  display: grid;
  gap: 28px;
  max-width: var(--media);
  margin: 0 auto;
}
.programs h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

/* 시설 수치 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--media);
  margin: 0 auto 40px;
  text-align: center;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 4px 0;
}
.stats div + div { border-left: 1px solid var(--line); }
.stats dd {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.stats dd small { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 3px; letter-spacing: 0; }
.stats dd span { font-size: 18px; margin-left: 1px; }
.stats dt { color: var(--muted); font-size: 14px; margin-top: 4px; }

.indoor { max-width: 440px; margin: 0 auto; text-align: center; }
.indoor img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.indoor figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* 후기 */
.trust {
  display: grid;
  gap: 28px;
  max-width: var(--media);
  margin: 0 auto;
  text-align: center;
}
.reviews-intro {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.reviews-intro p + p { margin-top: 10px; }
.trust-value { font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.trust-label { color: var(--muted); margin-top: 6px; }
.text-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  text-underline-offset: 3px;
}
.trust-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 13px; }
.tel { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brand); }

/* 이용안내 */
.info {
  max-width: var(--narrow);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.info div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.info dt { color: var(--muted); }

/* 이용 요금 */
.price { margin-top: 64px; }
.sub-title { font-size: 22px; font-weight: 700; }
.price-main {
  text-align: center;
  font-size: 18px;
}
.price-main span { color: var(--muted); margin-right: 4px; }
.price-main strong { font-size: 26px; letter-spacing: -0.02em; }
.price-notes {
  margin: 12px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.price-table { margin-top: 32px; }

/* 오시는 길 */
.location {
  max-width: var(--narrow);
  margin: 0 auto 32px;
  text-align: center;
}
.location div { padding: 14px 0; }
.location div + div { border-top: 1px solid var(--line); }
.location dt { color: var(--muted); font-size: 14px; margin-bottom: 2px; }
.location dd { font-size: 17px; }

/* Footer */
.site-footer {
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer .wrap { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.site-footer p + p { margin-top: 10px; }
.footer-name { display: flex; flex-direction: column; line-height: 1.4; }
.footer-name strong { color: var(--text); font-size: 16px; }
.footer-name span { font-size: 11px; letter-spacing: 0.14em; color: var(--brand-deep); font-weight: 600; }
.site-footer .tel { color: var(--text); }
.copy { font-size: 12px; }

/* Tablet+ */
@media (min-width: 720px) {
  :root { --section-y: 88px; }
  .br-m { display: none; }
  .promo { margin: 48px auto 0; max-width: var(--media); }
  .promo img { border-radius: var(--radius); }
  .features { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .programs { grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--wrap); }
  .section-head h2 { font-size: 32px; }
  .section-lead { font-size: 17px; }
  .stats dd { font-size: 44px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust li + li { border-left: 1px solid var(--line); }
  .sub-title { font-size: 26px; }
}

/* Desktop */
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 56px;
    padding-top: 0;
    min-height: 64px;
  }
  .header-inner nav { width: auto; }
  .menu { margin: 0; padding: 0; overflow: visible; gap: 6px; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 21px; }
  .hero-size { font-size: 16px; }
  .hero-media { max-width: 420px; margin-top: 48px; }
  .award { margin-top: 48px; }
  .award img { max-width: 440px; }
}
