/* ════════════════════════════════════════
   SECTIONS — About / Video / Profile /
              Philosophy / Programs /
              Facilities / Gallery / Testimonials
   ════════════════════════════════════════ */

/* ── 공통 섹션 타이포그래피 ── */
.section-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}
.section-eyebrow.eyebrow-light {
  color: rgba(184, 154, 106, 0.9);
}
.section-eyebrow.eyebrow-light::before {
  background: rgba(184, 154, 106, 0.9);
}

.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.section-body {
  font-size: 18px;
  line-height: 2.1;
  color: var(--text-sub);
  letter-spacing: 0.03em;
  max-width: 480px;
}

/* ── ABOUT ── */
.about {
  padding: 160px 52px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-visual {
  position: relative;
  height: 520px;
}

.about-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
  opacity: 1;
  position: absolute;
  left: 0; top: 0;
  border-radius: 2px;
}

.about-img-accent {
  width: 46%;
  height: 260px;
  object-fit: cover;
  background: #ddd;
  opacity: 1;
  position: absolute;
  left: 0; bottom: 0;
  border-radius: 2px;
  border: 6px solid var(--cream);
}

.about-stat {
  position: absolute;
  right: 12%;
  bottom: 30px;
  background: var(--white);
  padding: 20px 28px;
  border-left: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(44,36,24,0.08);
}
.about-stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.about-stat .label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ── VIDEO SECTION ── */
.process-section {
  position: relative;
  height: 800px; /* 영상이 더 많이 보이도록 높이 상향 */
  overflow: hidden;
}

.video-bg {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.process-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 14, 8, 0.45);
  pointer-events: none;
}

.video-overlay-content {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 440px;
}

.video-overlay-content .section-eyebrow { color: rgba(184,154,106,0.9); }
.video-overlay-content .section-eyebrow::before { background: rgba(184,154,106,0.9); }

.video-overlay-content .section-title {
  color: rgba(255,255,255,0.92);
  font-size: clamp(24px, 2.8vw, 36px);
}

.video-overlay-content .section-body {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.video-float-card {
  position: absolute;
  right: 80px;
  bottom: 60px; /* 섹션 높이 증가에 맞춰 카드가 잘리지 않도록 안쪽으로 위치 조정 */
  z-index: 10;
  
  /* [가독성 & 투명도 최적 배합] */
  background: rgba(253, 250, 246, 0.42); /* 투명도를 42%로 설정하여 텍스트 하단에 안정적인 밝은 면 확보 */
  backdrop-filter: blur(24px) saturate(110%); /* 블러를 24px로 높여 뒷 배경 영상의 노이즈를 몽환적으로 뭉개줌 */
  -webkit-backdrop-filter: blur(24px) saturate(110%);
  border: 1px solid rgba(253, 250, 246, 0.45); /* 은은하게 빛나는 외곽선 */
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(44, 36, 24, 0.08), 
              inset 0 1px 0 rgba(255, 255, 255, 0.5); /* 상단 유리 반사 광택 */
  
  width: 340px;
  padding: 36px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.mobile-process-video {
  display: none;
}

.float-card-label {
  font-size: 13.5px;
  letter-spacing: 0.25em;
  color: var(--brown-mid); /* 투명 유리 위에서 대비가 약했던 금색 대신 짙은 미드 브라운 적용 */
  margin-bottom: 16px;
  font-weight: 600;
}

.float-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--brown-deep); /* 대비감이 확실한 딥 브라운 지정 */
}

.float-card-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-card-items li {
  font-size: 15px;
  color: var(--brown-deep); /* 투명 유리 대비 가독성을 보장하는 딥 브라운 */
  letter-spacing: 0.05em;
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
  font-weight: 700;
}
.float-card-items li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 4px; height: 1.5px;
  background: var(--gold); /* 브랜드 시그니처 골드로 포인트 마커 지정 */
}

/* ── PROFILE SECTION ── */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background: url('../img/profileSection.jpg') no-repeat center right / cover;
}

/* about.html 전용: 인물이 오른쪽에 있는 배경 대응 (약력 텍스트는 왼쪽 여백 위에 배치) */
.profile-section.alt-layout {
  background: url('../img/gradient_profile(r).jpg') no-repeat center right / cover;
  grid-template-columns: 0.8fr 1.2fr; /* 오른쪽(사진) 비율을 높여 텍스트 영역을 왼쪽으로 밀어냅니다 */
}

.profile-images {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.profile-img-main {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  padding: 80px 72px;
  display: flex; flex-direction: column;
  justify-content: center;
  /* 애니메이션 초기 상태: 오른쪽에서 들어옴 */
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.profile-logo-area {
  display: flex; align-items: center;
  gap: 16px; margin-bottom: 48px;
}

.profile-logo-area img { width: 52px; height: 52px; object-fit: contain; }
.profile-logo-area .logo-ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  color: var(--brown-deep);
}
.profile-logo-area .logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--text-sub);
  text-transform: uppercase;
}

.profile-desc {
  font-size: 16px; line-height: 2;
  color: var(--brown-mid); font-weight: 500;
  margin-bottom: 48px; max-width: 380px;
}
.profile-desc.desc-deep {
  color: var(--brown-deep);
}

.profile-sign {
  width: 150px; /* 사인 크기 조절 */
  height: auto;
  margin-top: 30px;
  opacity: 0.8; /* 약간의 투명도 */
  margin-right: 240px; /* 왼쪽 마진을 자동으로 설정하여 오른쪽 정렬 */
  display: block;
}

/* ── CAREER LIST (Profile Timeline) ── */
.career-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin-top: 10px;
}

.career-list li {
  position: relative;
  padding: 0 0 14px 18px; /* 왼쪽에 포인트 마커가 들어갈 공간 확보 */
  border-bottom: 1px solid rgba(139, 111, 71, 0.12);
  transition: border-color 0.3s ease;
}

/* 세련된 골드 라인 마커 */
.career-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%; /* 부모 li 높이의 정확히 절반 지점 */
  transform: translateY(-50%); /* 세로 정중앙 정렬 */
  width: 6px;
  height: 2px; /* 1.5px 소수점 대신 2px 정수값을 사용해 흐려짐(뭉개짐) 방지 */
  background: var(--gold);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.career-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.career-list li:hover {
  border-bottom-color: var(--gold-light);
}

.career-list li:hover::before {
  width: 10px; /* 마우스 오버 시 가로선이 살짝 늘어나는 세련된 효과 */
  background: var(--gold-light);
  transform: translateY(-50%); /* 수직 중앙 정렬 상태 유지 */
}

.career-list li span {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--brown-mid);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
  font-family: 'Noto Serif KR', serif;
}

.career-list li:hover span {
  color: var(--brown-deep);
}

/* ── PHILOSOPHY SECTION ── */
.philosophy-section {
  background: var(--brown-deep);
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.philosophy-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 40px;
}

.philosophy-body {
  font-size: 17px; line-height: 2.2;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.philosophy-cards { display: flex; flex-direction: column; gap: 2px; }

.philo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 40px 44px;
  display: flex; gap: 28px;
  transition: background 0.3s;
  /* 애니메이션 초기 상태 */
  opacity: 0;
  transform: translateX(50px);
}
.philo-card:hover { background: rgba(139,111,71,0.1); }

.philo-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; color: var(--gold);
  line-height: 1;
}

.philo-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 21px; color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.philo-card-desc {
  font-size: 17px; color: rgba(255,255,255,0.35);
  line-height: 1.85;
}

/* ── WHY JEONGBONE SECTION (About 전용 · 글래스모피즘 + 3D tilt) ── */
/* footer(brown-deep) 바로 위에 놓이므로 밝은 배경으로 전환해 경계를 분리 */
.why-section {
  position: relative;
  background: var(--cream);
  padding: 140px 80px;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(184,154,106,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 45% 60% at 10% 85%, rgba(184,154,106,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.why-watermark {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 560px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.why-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

.why-header {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.why-header .section-eyebrow {
  justify-content: center;
  margin-bottom: 0;
}

.why-title-main {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  color: var(--brown-deep);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 20px 0 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 44px 32px 56px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(184,154,106,0.18);
  box-shadow: 0 4px 24px rgba(44,36,24,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  cursor: default;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 스크롤 등장 애니메이션 — 이동 거리·속도를 fade-up 기본값보다 크게 */
.why-card.fade-up {
  transform: translateY(60px);
  transition: opacity 1.1s ease, transform 1.1s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.why-card.fade-up.visible {
  transform: translateY(0);
}
.why-card:hover {
  border-color: rgba(184,154,106,0.4);
  box-shadow: 0 16px 48px rgba(44,36,24,0.14), 0 0 0 1px rgba(184,154,106,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 호버 시 상단 골드 라인 */
.why-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.why-card:hover::after { opacity: 0.6; }

.why-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}

.why-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  color: var(--brown-deep);
  line-height: 1.5;
  margin-bottom: 14px;
}

.why-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
  font-weight: 500;
}

/* ── EQUIPMENT SECTION ── */
.equipment-section {
  background: var(--cream);
  padding: 140px 80px;
  position: relative;
  overflow: hidden;
}

/* 배경 미묘한 그라디언트 */
.equipment-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(184,154,106,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(184,154,106,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.equipment-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.equipment-header {
  text-align: left;
  max-width: 640px;
  margin: 0 0 80px;
}

.equipment-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 500;
  color: var(--brown-deep);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.equipment-desc {
  font-size: 20px;
  line-height: 2;
  color: var(--text-sub);
  font-weight: 500;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── 카드 글래스모피즘 + 3D tilt ── */
.equip-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(184,154,106,0.18);
  box-shadow: 0 4px 24px rgba(44,36,24,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  cursor: default;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.equip-card:hover {
  border-color: rgba(184,154,106,0.4);
  box-shadow: 0 16px 48px rgba(44,36,24,0.14), 0 0 0 1px rgba(184,154,106,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 호버 시 상단 골드 라인 */
.equip-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.equip-card:hover::after {
  opacity: 0.6;
}

.equip-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.equip-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.equip-card:hover .equip-img-wrap img {
  transform: scale(1.06);
}

.equip-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,24,0.55) 0%, rgba(44,36,24,0.05) 60%, transparent 100%);
}

.equip-info {
  padding: 28px 28px 32px;
  position: relative;
}

.equip-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 10px;
}

.equip-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--brown-deep);
  line-height: 1.4;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.equip-body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-sub);
  font-weight: 500;
  margin-top: 14px;
}

/* 배경 번호 워터마크 */
.equip-num-bg {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 500;
  color: rgba(44,36,24,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

/* ── PROGRAMS ── */
.programs {
  position: relative;
  padding: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--brown-deep); /* 영상 로드 전 배경색 */
}

.programs-video-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.programs-video-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.77vh;
  transform: translate(-50%, -50%);
}

.programs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 18, 0.2); /* 0.6에서 0.4로 낮추면 영상이 더 밝게 보입니다 */
  z-index: 1;
}

.programs-header {
  position: absolute;
  top: 60px;
  left: 52px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: calc(100% - 104px);
  max-width: 1400px;
  margin: 0;
}

.programs-header .section-title {
  color: var(--white);
}

.programs-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 380px); /* 카드 너비를 줄여서 고정 */
  justify-content: space-between; /* 양옆으로 밀착시켜 가운데 여백 확보 */
  row-gap: 30px;
  grid-template-columns: repeat(4, 1fr); /* 4열 1행 나란히 배치 */
  gap: 20px; /* 카드 사이 간격 조정 */
  justify-content: normal;
  background: none; /* 그리드 선 제거 */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 52px;
  top: 350px; /* 영상 중심을 덜 가리도록 10px 하단으로 이동 */
}

.program-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 32px 28px; /* 내부 여백 축소 */
  padding: 24px 20px; /* 4열 배치를 위해 내부 여백 추가 축소 */
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); /* 개별 카드 테두리 */
  border-radius: 4px;

  /* 애니메이션 초기 상태: 아래 숨겨짐 */
  opacity: 0;
  transform: translateY(40px);
}

/* 지그재그(Staggered) 효과: 오른쪽 카드들을 아래로 배치 */
@media (min-width: 1025px) {
  .program-item:nth-child(even) {
    margin-top: 80px;
  }
  .programs {
    padding-bottom: 220px; /* 지그재그로 인한 하단 여백 보정 */
  }
}

.program-item:hover { 
  background: rgba(255, 255, 255, 0.08); 
  border-color: rgba(184, 154, 106, 0.3); /* 호버 시 옅은 골드 테두리 */
  box-shadow: inset 0 0 0 1px var(--gold-light); /* 안쪽으로 강조되는 테두리 */
}

.program-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s;
}
.program-item:hover::before { width: 100%; }

.program-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; /* 폰트 사이즈 축소 */
  font-size: 20px; /* 4열 배열에 맞춰 크기 최적화 */
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.program-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px; /* 폰트 사이즈 축소 */
  font-size: 18px; /* 4열 배열에 맞춰 크기 최적화 */
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  color: var(--white);
}

.program-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; /* 폰트 사이즈 축소 */
  font-size: 14px; /* 4열 배열에 맞춰 크기 최적화 */
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.program-desc {
  font-size: 14px; /* 폰트 사이즈 축소 */
  font-size: 13px; /* 4열 배열에 맞춰 크기 최적화 */
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.program-item:hover .program-desc {
  color: rgba(255, 255, 255, 0.9); /* 호버 시 텍스트 밝기 증가로 가독성 향상 */
}

/* ── FACILITIES ── */
.facilities {
  padding: 120px 52px;
  max-width: 1400px;
  margin: 0 auto;
}

.facilities-header {
  margin-bottom: 60px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* 오른쪽 2x2 배열의 비중을 높여 가로 길이를 확대 */
  gap: 12px; /* 간격을 20px에서 12px로 축소 */
  height: 600px; /* 고정 높이를 주어 정렬 유지 */
}

.facility-main, .facility-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* 모서리를 12px로 라운딩 처리 */
  opacity: 0; /* JS 애니메이션용 */
  transform: translateY(30px);
  background: #eee;
  cursor: pointer;
}

.facility-main img, .facility-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-main:hover img, .facility-item:hover img {
  transform: scale(1.05);
}

.facility-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: var(--white);
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.facility-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px; /* 서브 그리드 간격도 12px로 축소 */
}

@media (max-width: 1024px) {
  .facilities {
    padding: 80px 24px;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px; /* 모바일 간격 추가 축소 */
  }
  .facility-main { height: 350px; }
  .facility-sub-grid { height: 400px; gap: 10px; }
}

/* ── GALLERY MODAL ── */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 24, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.gallery-modal.active {
  display: flex;
}

.gallery-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gallery-indicators {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: var(--gold-light);
  transform: scale(1.3);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: background 0.2s, opacity 0.2s;
}
.gallery-nav:hover { background: rgba(255,255,255,0.2); opacity: 1; }
.gallery-prev { left: -70px; }
.gallery-next { right: -70px; }

@media (max-width: 900px) {
  .gallery-nav { width: 40px; height: 40px; font-size: 15px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--brown-deep);
  padding: 120px 52px;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '정본';
  position: absolute;
  top: -40px; right: 40px;
  font-family: 'Noto Serif KR', serif;
  font-size: 220px;
  font-weight: 600;
  color: rgba(255,255,255,0.02);
  letter-spacing: -0.05em;
  pointer-events: none;
}

.testimonials .section-eyebrow { color: rgba(184,154,106,0.8); }
.testimonials .section-eyebrow::before { background: rgba(184,154,106,0.8); }
.testimonials .section-title { color: rgba(255,255,255,0.9); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 36px;
  transition: background 0.3s;
}
.testimonial-card:hover { background: rgba(255,255,255,0.07); }

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--gold);
  line-height: 0.8;
  margin-bottom: 20px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(139,111,71,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--gold-light);
}
.author-name { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; }
.author-condition { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; margin-top: 2px; }

/* ── FOOTER ── */
footer {
  padding: 60px 24px;
  background: var(--brown-deep);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer-logo-img {
  height: 40px;
  margin-bottom: 10px;
}

.footer-info {
  font-size: 12px;
  line-height: 1.6;
  font-family: 'Noto Serif KR', serif;
}

.footer-copy {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.2);
}
