/* ==========================================================================
   다산아카데미 원페이지
   모티프: 강의실 정면 벽 - 밝은 다산 블루 + 하단의 진한 블루 띠
   ========================================================================== */

:root {
  --blue: #0091db;        /* 다산 블루 (벽 상단) */
  --blue-deep: #0072ad;   /* 벽 하단 띠. 흰 글자 대비 5.2:1 */
  --blue-ink: #005a8a;    /* 흰 배경 위 작은 파란 글자 */
  --blue-soft: #e6f4fc;
  --blue-line: #cce7f6;
  --navy: #0b2238;
  --kakao: #fee500;
  --text: #2b3440;
  --text-sub: #5f6b78;
  --line: #e1e7ed;
  --bg: #ffffff;
  --bg-tint: #f3f8fc;

  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

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

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Common
   -------------------------------------------------------------------------- */

.section { padding: 120px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-ink);
}
/* 벽면 두 톤을 축소한 작은 막대 */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--blue) 0 60%, var(--blue-deep) 60%);
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-sub);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-bottom: 56px;
}
.section-head .lead { max-width: 420px; padding-bottom: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
/* 카카오 공식 버튼 가이드: #FEE500 배경, 검정 심볼, 85% 검정 텍스트 */
.btn-kakao { background: var(--kakao); color: rgba(0, 0, 0, .85); }
.btn-kakao .icon { color: #000; }
.btn-kakao:hover { background: #f5dc00; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { background: var(--blue-soft); }
.btn-outline { height: 48px; padding: 0 20px; border-color: var(--line); background: #fff; color: var(--navy); font-size: 15px; }
.btn-outline .icon { color: var(--blue); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-ink); }

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

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .25s, box-shadow .25s, color .25s;
}
.header.is-solid {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--line);
  color: var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}

/* 원본 로고가 흰색 PNG라 마스크로 써서 배경에 맞춰 색을 바꾼다 */
.logo-mark {
  display: block;
  width: 190px;
  height: 25px;
  background-color: #fff;
  -webkit-mask: url("../img/logo.png") no-repeat left center / contain;
          mask: url("../img/logo.png") no-repeat left center / contain;
  transition: background-color .25s;
}
.header.is-solid .logo-mark { background-color: var(--blue); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 8px; }
.nav ul a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.nav ul a:hover { background: rgba(255, 255, 255, .16); }
.nav ul a.is-active { background: rgba(255, 255, 255, .22); }
.header.is-solid .nav ul a:hover { background: var(--bg-tint); }
.header.is-solid .nav ul a.is-active { background: var(--blue-soft); color: var(--blue-ink); }
.nav-call { display: none; }

.header-kakao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--kakao);
  color: rgba(0, 0, 0, .85);
  font-size: 15px;
  font-weight: 700;
}
.header-kakao .icon { color: #000; }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .when-open,
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: block; }

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

.hero {
  --overlap: 120px;
  position: relative;
  color: #fff;
  background-color: var(--blue);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 56px;
  padding-top: calc(var(--header-h) + 72px);
}

.hero-eyebrow {
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.hero-body {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-bottom: calc(var(--overlap) + 32px);
}
.hero-actions .btn { min-width: 200px; padding: 0 36px; }

/* 사진이 아래 진한 띠까지 걸쳐 내려간다 */
.hero-photo {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: calc(var(--overlap) * -1);
  border: 4px solid #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 40, 70, .45);
  background: #fff;
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-band { background: var(--blue-deep); }

.hero-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  min-height: calc(var(--overlap) + 40px);
  padding-top: 36px;
  padding-bottom: 36px;
}

.hero-facts {
  display: flex;
  align-items: flex-start;
}
.hero-facts div {
  flex: 1;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { font-size: 14px; font-weight: 500; opacity: .85; }
.hero-facts dd {
  margin-top: 2px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}
.about-head .lead { margin-top: 24px; }

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.points li {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.points li::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 60%, var(--blue-deep) 60%);
}
.point-num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-line);
  letter-spacing: 0.04em;
}
.point-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}
.point-icon .icon { width: 26px; height: 26px; }
.points h3 {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.points p { margin-top: 10px; font-size: 15px; color: var(--text-sub); }

/* --------------------------------------------------------------------------
   Facilities
   -------------------------------------------------------------------------- */

.facilities { background: var(--bg-tint); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.gallery-item.is-main { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* 장비 목록은 진한 블루 패널로 묶는다 */
.equipment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--blue-deep);
  color: #fff;
}
.equipment li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 24px 20px;
}
.equipment li:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, .16); }
.equipment li:not(:nth-child(3n + 1)) { border-left: 1px solid rgba(255, 255, 255, .16); }
.equipment-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
}
.equipment-icon .icon { width: 24px; height: 24px; }
.equipment h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.equipment p { font-size: 14px; opacity: .85; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  text-align: center;
}
.price-table thead th {
  padding: 18px 20px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 3px solid var(--navy);
}
.price-table tbody th,
.price-table tbody td {
  width: 50%;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.price-table tbody tr:first-child th,
.price-table tbody tr:first-child td { border-top: 0; }
.price-table tbody th { font-weight: 700; color: var(--navy); }
.price-table tbody td { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.price-table tbody tr.is-daily { background: var(--bg-tint); }
.price-tag { font-weight: 600; color: var(--text-sub); }

.notes {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  font-size: 15px;
  color: var(--text-sub);
}
.notes li { position: relative; padding-left: 16px; }
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

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

#location { padding-top: 0; }

.location-wrap {
  padding-top: 120px;
  border-top: 1px solid var(--line);
}

/* 지도(위) + 주소 띠(아래)를 한 상자로 */
.location-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* 카카오맵 지도 퍼가기: 기본 폭 550px 을 꽉 채우도록. 높이는 index.php 의 mapHeight */
.location-map { min-height: 200px; background: var(--bg-tint); }
.location-map .root_daum_roughmap { width: 100% !important; }
.location-map-fallback {
  display: grid;
  place-items: center;
  height: 200px;
  font-weight: 700;
  color: var(--blue-ink);
}

/* 지도 아래 주소 띠: 사이트 모티프(하단의 진한 블루 띠) */
.location-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 22px 28px;
  background: var(--blue-deep);
  color: #fff;
}
.location-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
}
.location-address .icon { color: var(--kakao); }
.location-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-left: 32px;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
}
.location-meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: rgba(255, 255, 255, .5);
}
.location-meta a { font-weight: 600; color: #fff; }
.location-meta a:hover { text-decoration: underline; }

/* 교통편 카드 3개 (지도 아래) */
.routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.route {
  padding: 26px 26px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
}
.route-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.route-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.route-icon .icon { width: 24px; height: 24px; }
.route-title { font-size: 19px; font-weight: 700; color: var(--navy); }
.route-stops { font-size: 15px; }
.route-stops div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--blue-line);
}
.route-stops dt { font-weight: 600; color: var(--text); }
.route-stops dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue-ink);
}

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

.cta {
  color: #fff;
  background: linear-gradient(to bottom, var(--blue) 0 16px, var(--blue-deep) 16px);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px 64px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.cta-copy { max-width: 560px; }
.cta h2 { color: #fff; }
.cta-copy p { margin-top: 16px; font-size: 17px; opacity: .9; }

.cta-contact {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-hours { font-size: 14px; opacity: .85; }
.cta-contact .btn { margin-top: 20px; width: 100%; }

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

.footer {
  padding: 48px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}
.footer-logo { width: 120px; height: auto; opacity: .9; }
.footer-info { display: grid; gap: 2px; }
.footer-contact span + span::before {
  content: "|";
  margin: 0 12px;
  color: rgba(255, 255, 255, .35);
}
.footer-contact a:hover { color: #fff; }
.footer-copy { margin-left: auto; }

.mobile-bar { display: none; }

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

@media (max-width: 1024px) {
  .hero-inner,
  .hero-band-inner,
  .about { grid-template-columns: 1fr; }

  .hero { --overlap: 64px; }
  .hero-inner { gap: 40px; padding-top: calc(var(--header-h) + 56px); }
  .hero-actions { padding-bottom: 0; }
  .hero-band-inner { min-height: 0; padding-top: calc(var(--overlap) + 32px); }

  .about { gap: 40px; }
  /* 태블릿까지 카드 3개 나란히 — 글자·여백만 줄인다 */
  .routes { gap: 12px; }
  .route { padding: 20px 16px 12px; }
  .route-icon { width: 36px; height: 36px; }
  .route-icon .icon { width: 20px; height: 20px; }
  .route-title { font-size: 17px; }
  .route-stops { font-size: 13px; }

  .equipment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment li:nth-child(n) { border: 0; }
  .equipment li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .equipment li:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, .16); }

  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-copy { max-width: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --header-h: 64px; }

  .section { padding: 88px 0; }
  .location-wrap { padding-top: 88px; }
  .location-info { flex-direction: column; align-items: stretch; padding: 20px; }
  .location-address { align-items: flex-start; font-size: 17px; }
  .location-address .icon { margin-top: 3px; }
  .location-meta { flex-direction: column; font-size: 15px; }
  .location-meta span + span::before { content: none; }
  .routes { grid-template-columns: 1fr; }
  .route { padding: 22px 20px 12px; }
  .route-stops { font-size: 15px; }

  .logo-mark { width: 150px; height: 20px; }
  .header-kakao { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 16px 24px rgba(11, 34, 56, .1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav ul a:hover, .nav ul a.is-active { background: none; }
  .nav ul a.is-active { color: var(--blue-ink); }
  .nav-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--blue-deep);
    color: #fff;
    font-weight: 700;
  }
  .header:has(.nav.is-open) { background: #fff; color: var(--navy); }
  .header:has(.nav.is-open) .logo-mark { background-color: var(--blue); }

  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 16px; }
  .hero-photo { border-width: 3px; }
  .hero-facts div { padding: 0 14px; }
  .hero-facts dt { font-size: 13px; }

  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .section-head .lead { padding-bottom: 0; }

  .points { grid-template-columns: 1fr; gap: 12px; }
  .points li { padding: 28px 24px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 8px; }
  .gallery-item.is-main { grid-row: span 2; }

  .equipment { grid-template-columns: 1fr; padding: 8px 12px; }
  .equipment li:nth-child(n) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .equipment li:first-child { border-top: 0; }
  .equipment li { padding: 18px 8px; }

  .price-table { font-size: 15px; }
  .price-table thead th { padding: 14px 12px; font-size: 15px; }
  .price-table tbody th, .price-table tbody td { padding: 14px 12px; }
  .notes { padding: 20px; }

  .cta-inner { padding-top: 64px; padding-bottom: 64px; }
  .cta-contact { padding: 24px; }

  .footer { padding: 40px 0 calc(40px + 64px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -1px 0 var(--line);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
  }
  .mobile-bar-phone { background: var(--blue-deep); color: #fff; }
  .mobile-bar-kakao { background: var(--kakao); color: rgba(0, 0, 0, .85); }
  .mobile-bar-kakao .icon { color: #000; }
}

@media (max-width: 400px) {
  .hero-facts div { padding: 0 10px; }
  .hero-facts dd { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
