:root {
  --cream: #FFFFFF;
  --beige: #F4F8F7;
  --beige2: #DDE9E6;
  --mint: #9DBDB4;
  --mint-light: #C4D9D4;
  --mint-dark: #6A9E94;
  --clay: #C0705A;
  --brown: #3A5450;
  --brown-light: #6A9E94;
  --text: #1A2E2B;
  --text-muted: #5A7570;
  --serif: 'Cormorant Garamond', 'Noto Serif KR', Georgia, serif;
  --sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.8; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige2);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7%;
}
.logo {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: 0.05em; color: var(--text); text-decoration: none;
}
.logo em { color: var(--mint-dark); font-style: italic; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--mint-dark); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: 
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)),
    url('IMG_02.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  padding: 120px 7% 80px;
  position: relative; overflow: hidden;
}
.hero-content { max-width: 560px; z-index: 2; position: relative; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mint-dark); margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(48px, 7vw, 88px);
  font-weight: 300; line-height: 1.05; color: var(--text);
  margin-bottom: 32px;
}
.hero-title em {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--mint-dark);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 0;
  width: 100%; height: 8px;
  background: var(--mint-light);
  opacity: 0.4; z-index: -1;
}
.hero-desc {
  font-size: 15px; color: var(--text-muted); line-height: 1.9;
  max-width: 400px; margin-bottom: 48px;
}
.hero::after {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--mint-light) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.3; z-index: 0;
}

/* ── HERO DECO ── */
.hero-deco {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; z-index: 1;
}
.hero-deco::after {
  content: '';
  position: absolute;
  top: 50%; right: -20%;
  width: 600px; height: 600px;
  border: 1px solid var(--mint-dark);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.2;
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.circle-fill {
  position: absolute; border-radius: 50%;
  background: var(--mint-light); opacity: 0.5;
  width: 280px; height: 280px; top: 70px; left: 80px;
}
.circle-stroke {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--mint); opacity: 0.4;
  width: 320px; height: 320px; top: 30px; right: 20px;
}
.circle-sm {
  position: absolute; border-radius: 50%;
  background: var(--beige2);
  width: 80px; height: 80px; top: 20px; left: 20px;
}

/* ── BUTTONS ── */
.btn-outline {
  display: inline-block; padding: 14px 36px;
  border: 1px solid var(--text); color: var(--text);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s; background: transparent;
  cursor: pointer;
}
.btn-outline:hover { background: var(--text); color: var(--cream); }
.btn-mint {
  display: inline-block; padding: 14px 36px;
  background: var(--mint-dark); color: white;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
  margin-left: 16px;
}
.btn-mint:hover { background: var(--brown); }

/* ── SECTION COMMON ── */
section { padding: 100px 7%; }
.section-label {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mint-dark); margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300; line-height: 1.15; color: var(--text);
  margin-bottom: 24px;
}

/* ── ABOUT ── */
.about { background: var(--beige); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-image {
  position: relative;
  z-index: 1;
  /* overflow: visible 유지 — 데코가 밖으로 나와야 함 */
  overflow: visible;
  max-width: 75%;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative; z-index: 2;
  display: block;
  box-shadow: 15px 15px 40px rgba(0,0,0,0.05);
}
/* 뒤쪽 beige 박스 데코 */
.about-image::after {
  content: '';
  position: absolute;
  top: 30px; left: -30px;
  width: 100%; height: 100%;
  background: var(--beige2);
  border-radius: 20px;
  z-index: 1;
  transition: transform 0.3s ease;
}
/* 오른쪽 아래 mint 원 데코 */
.about-image::before {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--mint-light);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 3;
}
.about-image:hover::after { transform: translate(-10px, -10px); }

.about-text .section-title { margin-bottom: 28px; }
.about-text p { font-size: 15px; color: var(--text-muted); line-height: 1.95; margin-bottom: 20px; }
.about-stats {
  display: flex; gap: 40px; margin-top: 40px; padding-top: 40px;
  border-top: 1px solid var(--beige2);
}
.stat-num { font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--text); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.05em; }

/* ── LESSONS ── */
.lessons {
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    url('IMG_03.jpg') center/cover no-repeat ;
}
.lessons-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.lessons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lesson-card {
  background: var(--beige); padding: 48px 36px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.lesson-card::before {
  content: '';
  position: absolute; width: 120px; height: 120px;
  border-radius: 50%; background: var(--mint-light); opacity: 0.35;
  top: -30px; right: -30px;
}
.lesson-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(106,158,148,0.1); }
.lesson-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--mint-light); margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.lesson-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 12px; color: var(--text); }
.lesson-card .duration { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint-dark); margin-bottom: 16px; }
.lesson-card p { font-size: 14px; color: var(--text-muted); line-height: 1.85; margin-bottom: 28px; flex: 1; }
.lesson-price { font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--text); border-top: 1px solid var(--beige2); padding-top: 20px; }
.lesson-price span { font-size: 13px; color: var(--text-muted); font-family: var(--sans); }
.lessons-approach { margin-top: 60px; padding: 48px; background: var(--beige); border-left: 3px solid var(--mint-dark); }
.lessons-approach .section-label { margin-bottom: 16px; }
.lessons-approach p { font-size: 15px; color: var(--text-muted); line-height: 1.95; max-width: 720px; }
.lessons-approach strong { color: var(--text); font-weight: 400; }

/* ── REVIEWS ── */
.reviews { background: var(--beige); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.review-card { background: var(--cream); padding: 36px 32px; border-top: 2px solid var(--mint); }
.review-stars { color: var(--mint-dark); font-size: 16px; margin-bottom: 18px; letter-spacing: 3px; }
.review-text { font-size: 16px; color: var(--text-muted); line-height: 1.9; margin-bottom: 24px; font-style: italic; font-family: var(--serif); }
.review-author { font-size: 13px; color: var(--text); letter-spacing: 0.05em; }
.review-author span { color: var(--text-muted); font-size: 12px; }

/* ── POLICY ── */
.policy {
  background:
    linear-gradient(rgba(244,248,247,0.88), rgba(244,248,247,0.88)),
    url('IMG_04.jpg') center/cover no-repeat ;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.policy-item {
  position: relative; z-index: 2;
  background: rgba(244, 248, 247, 0.7);
  backdrop-filter: blur(5px);
  padding: 32px;
  border-radius: 15px;
}
.policy-item h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.policy-item p { font-size: 14px; color: var(--text-muted); line-height: 1.85; }
.policy-deco-container {
  position: absolute;
  top: 10%; right: 5%;
  width: 400px; height: 400px;
  z-index: 0;
  pointer-events: none;
}
.deco-circle {
  position: absolute;
  top: 40px; right: 20px;
  width: 220px; height: 220px;
  background: var(--mint-light);
  border-radius: 50%;
  opacity: 0.4;
}
.deco-line {
  position: absolute;
  top: 0; right: 60px;
  width: 280px; height: 280px;
  border: 1px solid var(--brown-light);
  border-radius: 50%;
  opacity: 0.3;
}

/* ── CONTACT ── */
.contact { background: var(--cream); position: relative; overflow: hidden; }
.contact-blob {
  position: absolute; top: 10%; left: -50px;
  width: 200px; height: 200px;
  background: var(--mint-light);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2; z-index: 0;
}
/* ── CONTACT ── */
.contact-inner { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 80px; 
  align-items: start;  /* center/end 제거하고 start로 */
}

.contact-form { 
  display: flex; 
  flex-direction: column; 
  gap: 20px;
  padding-top: 96px;  /* section-label + section-title + p 높이만큼 */
}

/* 모바일에서는 padding-top 제거 */
@media (max-width: 768px) {
  .contact-form {
    padding-top: 0;
  }
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.contact-info p { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 36px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-dark); margin-top: 8px; flex-shrink: 0; }
.contact-item-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mint-dark); margin-bottom: 4px; }
.contact-item-val { font-size: 15px; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  background: transparent; border: none; border-bottom: 1px solid var(--beige2);
  padding: 12px 0; font-size: 14px; color: var(--text); font-family: var(--sans);
  outline: none; transition: border-color 0.3s; resize: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-bottom-color: var(--mint-dark); }
.form-group select { appearance: none; cursor: pointer; }

/* ── FOOTER ── */
footer { background: var(--brown); color: rgba(255,255,255,0.7); padding: 60px 7% 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.footer-logo { font-family: var(--serif); font-size: 24px; color: white; font-weight: 300; }
.footer-logo em { color: var(--mint-light); font-style: italic; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; letter-spacing: 0.05em; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; font-size: 12px; letter-spacing: 0.05em; }

/* ── SCROLL ANIMATIONS ── */
.fade-in, .fade-right, .fade-left {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in    { transform: translateY(30px); }
.fade-right { transform: translateX(40px); }
.fade-left  { transform: translateX(-40px); }
.visible { opacity: 1 !important; transform: translate(0, 0) !important; }

/* ════════════════════════════════════
   RESPONSIVE — 태블릿 (≤ 1024px)
   ════════════════════════════════════ */
@media (max-width: 1024px) {
  section { padding: 80px 6%; }
  .hero { padding: 120px 6% 80px; }

  /* Hero 데코 — 크기 축소, 텍스트 뒤로 밀기 */
  .hero-deco {
    width: 260px; height: 260px;
    right: 2%; top: 50%;
    opacity: 0.5;
    z-index: 0;
  }
  .circle-fill  { width: 180px; height: 180px; top: 40px; left: 40px; }
  .circle-stroke { width: 220px; height: 220px; top: 15px; right: 5px; }
  .circle-sm    { width: 50px; height: 50px; }

  /* About */
  .about-inner { gap: 60px; }
  .about-image { max-width: 85%; }

  /* Lessons 2열 */
  .lessons-grid { grid-template-columns: repeat(2, 1fr); }

  /* Reviews 2열 */
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  /* Policy 데코 크기 축소 */
  .policy-deco-container { width: 280px; height: 280px; }
  .deco-circle { width: 160px; height: 160px; }
  .deco-line   { width: 200px; height: 200px; }
}

/* ════════════════════════════════════
   RESPONSIVE — 모바일 (≤ 768px)
   ════════════════════════════════════ */
@media (max-width: 768px) {

  /* NAV */
  nav { padding: 0 5%; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--beige2);
    padding: 8px 5%;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--beige); font-size: 13px; }
  .nav-links li:last-child a { border-bottom: none; }

  /* SECTION */
  section { padding: 72px 5%; }

  /* HERO — 데코를 배경으로 깔되, 텍스트 위로 올라오게 */
  .hero { min-height: 100svh; padding: 100px 5% 60px; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(42px, 11vw, 64px); }
  .hero-desc { font-size: 14px; margin-bottom: 36px; max-width: 100%; }
  .hero-content .btn-outline,
  .hero-content .btn-mint {
    display: block; width: 100%;
    margin-left: 0; margin-bottom: 12px; text-align: center;
  }
  .hero-content .btn-mint { margin-bottom: 0; }
  /* 데코 원 — 오른쪽 아래 배경으로 배치, 텍스트와 겹치지 않게 */
  .hero-deco {
    width: 200px; height: 200px;
    right: -20px; top: auto;
    bottom: 40px;
    transform: none;
    opacity: 0.35;
    z-index: 0;
  }
  .circle-fill  { width: 140px; height: 140px; top: 20px; left: 20px; }
  .circle-stroke { width: 170px; height: 170px; top: 5px; right: 5px; }
  .circle-sm    { width: 40px; height: 40px; top: 5px; left: 5px; }

  /* ABOUT */
  .about { overflow: visible; }
  .about-inner { grid-template-columns: 1fr; gap: 60px; }
  .about-image {
    max-width: 72%;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    /* 데코가 밖으로 나올 공간 확보 */
    margin-bottom: 30px;
  }
  /* ::after, ::before 크기 유지 — 모바일에서도 보임 */
  .about-image::after {
    top: 20px; left: -20px;
    border-radius: 16px;
  }
  .about-image::before {
    width: 80px; height: 80px;
    bottom: -15px; right: -15px;
  }
  .about-stats { gap: 24px; flex-wrap: wrap; }
  .stat-num { font-size: 32px; }

  /* LESSONS */
  .lessons-header { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .lessons-header .btn-outline { width: 100%; text-align: center; }
  .lessons-grid { grid-template-columns: 1fr; gap: 16px; }
  .lesson-card { padding: 36px 28px; }
  .lessons-approach { padding: 32px 24px; }

  /* REVIEWS */
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .review-card { padding: 28px 24px; }
  .review-text { font-size: 15px; }

  /* POLICY — 데코를 왼쪽 아래로 이동해서 카드와 겹치지 않게 */
  .policy-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .policy-item { padding: 24px 20px; }
  .policy-deco-container {
    width: 200px; height: 200px;
    top: auto; right: auto;
    bottom: 20px; left: 5%;
    opacity: 0.6;
  }
  .deco-circle { width: 120px; height: 120px; top: 20px; right: 10px; }
  .deco-line   { width: 160px; height: 160px; top: 0; right: 30px; }

  /* CONTACT */
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  #send-btn { width: 100% !important; }

  /* FOOTER */
  .footer-inner { flex-direction: column; gap: 32px; margin-bottom: 36px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
  .footer-links a { font-size: 12px; }
  .footer-bottom { font-size: 11px; }
}

/* ════════════════════════════════════
   RESPONSIVE — 소형 모바일 (≤ 480px)
   ════════════════════════════════════ */
@media (max-width: 480px) {
  section { padding: 60px 5%; }

  .hero-title   { font-size: clamp(38px, 12vw, 52px); }
  .hero-eyebrow { font-size: 10px; margin-bottom: 16px; }
  .hero-deco {
    width: 160px; height: 160px;
    right: -10px; bottom: 30px;
    opacity: 0.25;
  }
  .circle-fill  { width: 110px; height: 110px; }
  .circle-stroke { width: 135px; height: 135px; }
  .circle-sm    { width: 32px; height: 32px; }

  .about-image  { max-width: 88%; margin-bottom: 24px; }
  .about-image::before { width: 60px; height: 60px; }
  .about-stats  { flex-wrap: wrap; gap: 16px; padding-top: 24px; margin-top: 24px; }

  .lesson-card  { padding: 28px 20px; }
  .lesson-card h3 { font-size: 20px; }
  .review-card  { padding: 24px 18px; }
  .lessons-approach { padding: 24px 16px; }

  .section-title { font-size: clamp(30px, 9vw, 42px); }
  .logo { font-size: 19px; }

  .policy-deco-container { display: none; }
}