/* =========================================
   SUNSHINE WELLNESS — Full-Screen Hero Style
   ========================================= */

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

:root {
  --black:   #111111;
  --dark:    #222222;
  --gray:    #888888;
  --light:   #F5F5F3;
  --white:   #FFFFFF;
  --accent:  #3B6259;
  --border:  #E0E0E0;
  --font:    'Noto Sans KR', sans-serif;
  --ease:    0.35s ease;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================
   HEADER — 투명, 히어로 위에 겹침
   스크롤 시 흰색으로 전환
   ========================================= */
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  background: transparent !important;
  transition: background var(--ease), box-shadow var(--ease);
}
#header.scrolled {
  background: rgba(255,255,255,0.97) !important;
}

/* 스크롤 후 — 흰색 배경 */
#header.scrolled {
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
}

/* 로고 */
.logo { display: flex; flex-direction: column; gap: 1px; }
.logo-en {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--ease);
}
.logo-kr {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}

/* 스크롤 후 로고 색상 */
#header.scrolled .logo-en { color: var(--black); }
#header.scrolled .logo-kr { color: var(--gray); }

/* 가운데 GNB */
.gnb ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.gnb a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.gnb a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width var(--ease);
}
.gnb a:hover::after { width: 100%; }

#header.scrolled .gnb a { color: var(--dark); }
#header.scrolled .gnb a::after { background: var(--dark); }

/* 오른쪽 — 로그인 + 언어 */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  transition: color var(--ease);
  white-space: nowrap;
}
.auth-links .divider { opacity: 0.5; }
#header.scrolled .auth-links { color: var(--gray); }

.lang-wrap {
  display: flex;
  gap: 4px;
}
.lang-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--ease);
}
.lang-btn.active,
.lang-btn:hover {
  border-color: var(--white);
  color: var(--white);
}
#header.scrolled .lang-btn {
  border-color: var(--border);
  color: var(--gray);
}
#header.scrolled .lang-btn.active,
#header.scrolled .lang-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
}

/* 햄버거 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: var(--ease);
}
#header.scrolled .hamburger span { background: var(--dark); }

/* 모바일 메뉴 */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.mobile-nav ul { padding: 20px 40px; display: flex; flex-direction: column; gap: 18px; }
.mobile-nav a { font-size: 0.95rem; font-weight: 500; color: var(--dark); }
.mobile-nav.open { display: block; }

/* =========================================
   HERO — 100vh 풀스크린
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  padding: 0;   /* section 공통 padding 덮어씌움 */
}

/* 캐러셀 */
.carousel { width: 100%; height: 100%; }

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 슬라이드 — 크로스페이드 */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 슬라이드 — overflow hidden 필수 */
.slide { overflow: hidden; }

/* 배경 전용 div — 텍스트와 분리해서 Ken Burns 적용 */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  transform: scale(1.0);
  will-change: transform;
}

/* Ken Burns 줌인 — scale 1.0 → 1.2 (배경 div에만) */
@keyframes kenburns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.0); }
}
.slide.active .slide-bg {
  animation: kenburns 6s ease-out forwards;
}

/* 슬라이드별 배경 이미지 */
.slide-1 .slide-bg {
  background-image: url('images/gwangan-bridge-haeundae-busan-korea.jpg');
  background-color: #2A3D35;
}
.slide-2 .slide-bg {
  background-image: url('images/51315836390_c2d8b2c7e2_o.jpg');
  background-color: #3D2A35;
}
.slide-3 .slide-bg {
  background-image: url('images/haedong-yonggungsa-temple-haeundae-sea-busan-buddhist-temple-busan-south-korea.jpg');
  background-color: #2A3540;
}
.slide-4 .slide-bg {
  background-image: url('images/Inside_Jagalchi_Fish_Market,_Busan.jpg');
  background-color: #3D3525;
}
.slide-5 .slide-bg {
  background-image: url('images/sulee-busan-tower-825463.jpg');
  background-color: #2A2A40;
}
.slide-6 .slide-bg {
  background-image: url('images/(BB2024)부산현대미술관_외부.jpg');
  background-color: #2A3040;
}

/* 다크 오버레이 */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* =========================================
   슬라이드 콘텐츠 — 왼쪽 하단
   ========================================= */
.slide-content {
  position: absolute;
  left: 70px;
  top: 48%;
  z-index: 2;
  color: var(--white);
  max-width: 620px;
}

/* 슬라이드 번호 */
.slide-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.slide-num span {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  margin-left: 6px;
}

/* 메인 제목 */
.slide-title {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.slide-title strong {
  font-weight: 800;
  display: block;
}

/* 설명 문구 */
.slide-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.7;
}

/* 영문 슬로건 */
.slide-tagline {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

/* Hero Dots — 슬라이드 바깥, hero 하단 왼쪽 고정 */
.hero-dots {
  position: absolute;
  bottom: 52px;
  left: 70px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s ease, transform 0.35s ease;
}
.pdot.active {
  background: rgba(255,255,255,1);
  transform: scale(1.4);
}

/* 이전/다음 버튼 */
.carousel-btn {
  position: absolute;
  bottom: 48px; right: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 48px; height: 48px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--ease);
  z-index: 5;
}
.carousel-btn:hover { background: rgba(255,255,255,0.12); }
.prev { right: 112px; }
.next { right: 56px; }

/* =========================================
   SECTION COMMONS
   ========================================= */
section { padding: 100px 0; }

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--black);
}
.section-title strong { font-weight: 800; }
.section-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.9;
  max-width: 480px;
}

/* =========================================
   ABOUT
   ========================================= */
.about { background: var(--light); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-desc { margin-bottom: 0; }

.about-stats {
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--gray);
}

/* =========================================
   PROGRAMS
   ========================================= */
.programs { background: var(--white); }

.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.programs-header .section-desc { margin-bottom: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card { background: var(--white); overflow: hidden; cursor: pointer; }
.card:hover .card-img-wrap { transform: scale(1.05); }
.card:hover .card-btn { opacity: 1; transform: translateY(0); }

.card-img-outer { overflow: hidden; height: 240px; }
.card-img-wrap {
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
  background-size: cover;
  background-position: center;
}

/* 카드 이미지 — images/ 폴더 사진 적용 */
.card-img-1 {
  background-image: url('images/gwangan-bridge-haeundae-busan-korea.jpg');
  background-color: #2A4040;
}
.card-img-2 {
  background-image: url('images/51315836390_c2d8b2c7e2_o.jpg');
  background-color: #402A3A;
}
.card-img-3 {
  background-image: url('images/(BB2024)부산현대미술관_외부.jpg');
  background-color: #2A3550;
}
.card-img-4 {
  background-image: url('images/haedong-yonggungsa-temple-haeundae-sea-busan-buddhist-temple-busan-south-korea.jpg');
  background-color: #303D2A;
}
.card-img-5 {
  background-image: url('images/Inside_Jagalchi_Fish_Market,_Busan.jpg');
  background-color: #40382A;
}
.card-img-6 {
  background-image: url('images/sulee-busan-tower-825463.jpg');
  background-color: #2A3040;
}

.card-body { padding: 26px 26px 30px; }
.card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.card-info-btn {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--ease);
  opacity: 0;
  transform: translateY(6px);
}
.card-info-btn:hover {
  color: var(--dark);
  border-bottom-color: var(--dark);
}
.card:hover .card-info-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-btn {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--ease);
}

/* =========================================
   모달
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  width: 90%;
  max-width: 580px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--gray);
  cursor: pointer;
  transition: color var(--ease);
}
.modal-close:hover { color: var(--dark); }

.modal-content .modal-tag {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
  line-height: 1.3;
}
.modal-content .modal-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 20px;
}
.modal-content p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 16px;
}
.modal-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.modal-content ul li {
  font-size: 0.85rem;
  color: var(--dark);
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}
.modal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.modal-content .modal-tip {
  background: var(--light);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 20px;
  border-left: 3px solid var(--accent);
}
.modal-spots {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.modal-spot {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--light);
}
.modal-spot-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
  line-height: 1;
  padding-top: 2px;
}
.modal-spot-body { display: flex; flex-direction: column; gap: 4px; }
.modal-spot-body strong { font-size: 0.92rem; color: var(--black); font-weight: 700; }
.modal-spot-body em { font-size: 0.75rem; color: var(--accent); font-style: normal; letter-spacing: 0.05em; }
.modal-spot-body p { font-size: 0.82rem; color: var(--gray); line-height: 1.7; margin: 4px 0 0; }
.modal-spot-addr { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }

.modal-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-links-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
  width: fit-content;
}
.modal-links a::after {
  content: '↗';
  font-size: 0.75rem;
}
.modal-links a:hover { border-bottom-color: var(--accent); }

/* =========================================
   CONTACT
   ========================================= */
.contact { background: var(--light); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left .section-desc { margin-bottom: 40px; }

.contact-info { display: flex; flex-direction: column; gap: 0; }
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--gray);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-icon {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 1px;
}
.form-group {
  background: var(--white);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.form-group input,
.form-group select,
.form-group textarea {
  border: none; outline: none;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  background: transparent;
  padding: 0; resize: none;
}
.form-group textarea { min-height: 80px; }

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--ease);
  margin-top: 1px;
}
.btn-submit:hover { background: var(--accent); }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--black); padding: 56px 0 32px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .logo-en {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.footer-brand .logo-kr {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

.footer-links { display: flex; gap: 28px; align-items: center; }
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .header-inner { padding: 0 32px; }
  .gnb ul { gap: 20px; }
  .slide-content { left: 48px; }
}

@media (max-width: 900px) {
  .gnb { display: none; }
  .auth-links { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 28px; }
  .slide-content { left: 32px; max-width: 90%; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .programs-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .slide-title { font-size: 2.2rem; }
  .prev { right: 80px; bottom: 32px; }
  .next { right: 24px; bottom: 32px; }
  .footer-top { flex-direction: column; }
}

/* 터치 기기 — hover 없으므로 카드 버튼 항상 표시 */
@media (hover: none) {
  .card-info-btn,
  .card-btn {
    opacity: 1;
    transform: translateY(0);
  }
}
