/* ============ 기본 설정 ============ */
:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe2;
  --ink: #2e2a26;
  --ink-soft: #6f675e;
  --accent: #9c8468;       /* 웜 토프 */
  --accent-deep: #7a644b;
  --sage: #8a9483;
  --line: #e3dccf;
  --white: #fffdf9;
  --serif: "Noto Serif KR", "Cormorant Garamond", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.section { padding: 110px 0; }
.section-sub { color: var(--ink-soft); margin-top: 12px; }
.note { color: var(--ink-soft); font-size: 14px; margin-top: 16px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h2.light { color: var(--white); }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.35em;
  color: var(--accent); font-weight: 600;
  margin-bottom: 14px; text-transform: uppercase;
}
.eyebrow.light { color: #d9cdb9; }

/* ============ 사진 자리표시 ============ */
.placeholder-photo {
  position: relative;
  background:
    linear-gradient(135deg, #e8e0d2 0%, #d8cdb9 50%, #cfc2ab 100%);
  overflow: hidden;
}
.placeholder-photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(138,148,131,.25), transparent 60%);
}
.placeholder-photo::after {
  content: "📷 " attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #8d8273; letter-spacing: 0.05em;
  border: 1px dashed rgba(141,130,115,.5);
  margin: 12px;
}

/* ============ 내비게이션 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: "Cormorant Garamond", var(--serif);
  font-size: 24px; letter-spacing: 0.18em; font-weight: 500;
}
.logo span {
  display: block; font-size: 10px; letter-spacing: 0.42em;
  color: var(--accent); text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 9px 20px; border-radius: 999px; font-size: 14px;
}
.nav-cta:hover { background: var(--accent-deep); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: .3s;
}

/* ============ 히어로 ============ */
.hero {
  position: relative; min-height: 94vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(40,34,28,.42), rgba(40,34,28,.55));
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 24px; max-width: 720px; color: var(--white);
}
.hero-eyebrow { font-size: 13px; letter-spacing: .4em; color: #ecdcc4; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.8vw, 58px); margin-bottom: 22px; color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: #e9c9a0; }
.hero-sub { color: rgba(255,253,249,.92); margin-bottom: 34px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; color: var(--ink-soft); z-index: 2;
}
.hero-scroll { color: rgba(255,255,255,.85); }
.hero-scroll i {
  display: block; width: 1px; height: 36px; margin: 8px auto 0;
  background: rgba(255,255,255,.7); animation: drop 1.6s infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { opacity: 0; } }

/* ============ 버튼 ============ */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: .25s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost.light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost.light:hover { background: var(--white); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* ============ 소개 ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text .lead { color: var(--ink-soft); margin: 22px 0 30px; }
.about-points li {
  display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line);
}
.about-points b { min-width: 92px; color: var(--accent-deep); }
.about-points span { color: var(--ink-soft); }
.split-media { position: relative; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.photo-frame { border-radius: 4px; background-size: cover; background-position: center; }
.photo-frame.tall { height: 380px; }
.photo-frame.offset { height: 380px; margin-top: 48px; }

/* ============ 프로그램 ============ */
.programs { background: var(--bg-alt); }
.program-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px;
}
.program-card {
  background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(46,42,38,.06);
  transition: transform .25s, box-shadow .25s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(46,42,38,.12); }
.program-photo { height: 170px; background-size: cover; background-position: center; }
.program-card h3 { font-size: 19px; padding: 18px 20px 6px; }
.program-card p { font-size: 14px; color: var(--ink-soft); padding: 0 20px; }
.program-card .tag {
  display: inline-block; margin: 14px 20px 20px;
  font-size: 12px; color: var(--accent-deep);
  border: 1px solid var(--accent); border-radius: 999px; padding: 3px 12px;
}

/* ============ 지점 소개 ============ */
.branch-list { display: flex; flex-direction: column; gap: 40px; margin-top: 52px; }
.branch {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(46,42,38,.07);
}
.branch.reverse { grid-template-columns: 1fr 1.1fr; }
.branch.reverse .branch-photo { order: 2; }
.branch-photo { min-height: 380px; background-size: cover; background-position: center; }
.branch-info { padding: 48px 44px; align-self: center; }
.branch-no {
  font-family: "Cormorant Garamond", serif; font-size: 42px;
  color: var(--accent); opacity: .55; line-height: 1;
}
.branch-info h3 { font-size: 26px; margin: 8px 0 6px; }
.branch-info h3 em { font-style: normal; color: var(--accent-deep); }
.branch-tag {
  font-size: 12px; letter-spacing: .25em; color: var(--accent);
  font-weight: 600; margin-bottom: 16px;
}
.branch-tag.pink { color: #e6177e; }
.branch-info > p { color: var(--ink-soft); margin-bottom: 22px; }
.branch-meta li { display: flex; gap: 14px; padding: 7px 0; font-size: 14px; }
.branch-meta b { min-width: 48px; color: var(--accent-deep); }
.branch-meta span { color: var(--ink-soft); }
.branch-meta a { color: var(--accent-deep); border-bottom: 1px solid var(--line); }
.branch-meta a:hover { color: var(--ink); }
.branch-link {
  display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600;
  color: var(--accent-deep); border-bottom: 1px solid var(--accent);
  padding-bottom: 2px; transition: .2s;
}
.branch-link:hover { color: var(--ink); border-color: var(--ink); }

/* ============ 강사진 ============ */
.instructor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px;
}
.instructor-card { text-align: center; }
.instructor-photo {
  height: 320px; border-radius: 4px 4px 120px 120px; margin-bottom: 20px;
}
.instructor-card h3 { font-size: 20px; }
.instructor-card .role { color: var(--accent-deep); font-size: 14px; letter-spacing: .08em; margin: 4px 0 12px; }
.instructor-card ul { font-size: 14px; color: var(--ink-soft); }

/* ============ 시간표 ============ */
.schedule { background: var(--bg-alt); }
.table-wrap { overflow-x: auto; margin-top: 44px; }
table {
  width: 100%; border-collapse: collapse; background: var(--white);
  font-size: 14px; min-width: 640px;
}
th, td { padding: 14px 10px; text-align: center; border: 1px solid var(--line); }
thead th { background: var(--ink); color: var(--white); font-weight: 600; letter-spacing: .05em; }
tbody td:first-child { background: var(--bg); font-weight: 600; color: var(--accent-deep); }

/* ============ 인스타그램 ============ */
.insta-banner {
  background: linear-gradient(150deg, #3c352e, #5a4d3e);
  color: var(--white); padding: 96px 0;
}
.insta-banner h2 { margin-bottom: 28px; }
.sns-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sns-btns .btn { font-size: 14px; padding: 12px 22px; }
.insta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px;
}
.insta-grid > div {
  aspect-ratio: 1; border-radius: 4px; opacity: .94;
  background-size: cover; background-position: center;
  transition: opacity .25s, transform .25s;
}
.insta-grid > div:hover { opacity: 1; transform: scale(1.02); }

/* ============ 오시는 길 ============ */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.loc-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 14px rgba(46,42,38,.06); }
.loc-map {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: 170px; text-decoration: none;
  background:
    linear-gradient(135deg, #ece4d5, #ddd2bd),
    repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 2px, transparent 2px 22px);
  transition: filter .2s;
}
.loc-map:hover { filter: brightness(1.03); }
.loc-map .pin {
  width: 30px; height: 30px; position: relative;
  background: var(--accent-deep); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(122,100,75,.35);
}
.loc-map .pin::after {
  content: ""; position: absolute; top: 9px; left: 9px;
  width: 12px; height: 12px; background: var(--white); border-radius: 50%;
}
.loc-map-txt { font-size: 13px; font-weight: 600; color: var(--accent-deep); letter-spacing: .02em; }
.loc-card h3 { font-size: 18px; margin: 24px 28px 8px; }
.loc-card .info-list { margin: 0 28px 28px; }
.info-list li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list b { min-width: 48px; color: var(--accent-deep); }
.info-list span { color: var(--ink-soft); }

/* ============ 문의 ============ */
.contact { background: var(--bg-alt); }
.contact-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px;
}
.btn-ghost.dark { border-color: var(--ink-soft); }

/* ============ 푸터 ============ */
.footer { background: var(--ink); color: #b9b1a6; padding: 48px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { color: var(--white); }
.footer-meta { margin-top: 10px; }

/* ============ 반응형 ============ */
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .instructor-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-frame.tall, .photo-frame.offset { height: 260px; }

  .branch, .branch.reverse { grid-template-columns: 1fr; }
  .branch.reverse .branch-photo { order: 0; }
  .branch-photo { min-height: 240px; }
  .branch-info { padding: 32px 28px; }
  .loc-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; right: 0; left: 0;
    background: rgba(250,247,242,.97); backdrop-filter: blur(10px);
    flex-direction: column; padding: 28px 24px; gap: 20px;
    transform: translateY(-130%); transition: transform .3s;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { transform: translateY(0); }
  .hero-content { padding: 40px 26px; }
}
