/* =========================================================
   세이프짐 (Safe Gym) — 복원 스타일시트
   원본 디자인 토큰 (Wayback 2022-02-20 번들에서 추출)
   - blue  #155be8  / accent #2970ff
   - white #ffffff  / black  #000000 / dark #121212
   - 폰트: Noto Sans KR (본문), Oswald (영문 컨덴스드 디스플레이)
   - 반응형 브레이크포인트: 600px
   ========================================================= */

:root {
  --blue: #155be8;
  --accent: #2970ff;
  --white: #ffffff;
  --black: #000000;
  --dark: #121212;
  --grey: #cccccc;
  --breakpoint: 600px;
  --kr: "Noto Sans KR", sans-serif;
  --eng: "Oswald", "Noto Sans KR", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .8s ease-in-out, transform .8s ease-in-out;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  height: 4rem;
  padding: 0 3.125rem;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 0.1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  z-index: 10;
}
.nav__column { display: flex; flex-direction: row; align-items: center; }

.nav__logo {
  display: inline-block;
  width: 3.5rem;
  height: 2.7rem;                /* 로고 비율 800:625 유지 */
  background: url("assets/safe-gym-logo.png") center / contain no-repeat;
  filter: brightness(0) invert(1);  /* 로고 → 흰색 (어두운 네비 대비) */
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.75rem;
}
.nav__chevron {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  transition: transform 0.3s ease-in-out;
}

.nav__list { display: flex; margin-left: 2rem; }
.nav__btn + .nav__btn { margin-left: 1.5rem; }
.nav__link {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  transition: color 0.1s ease-in-out;
}
.nav__link:hover { color: var(--accent); }

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: center;
    height: 7rem;
    padding: 2rem 0;
    font-size: 1.1rem;
  }
  .nav.shown { height: auto; }
  .nav__toggle { display: inline-flex; }
  .nav.shown .nav__chevron { transform: rotate(-135deg); }
  .nav__list {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-top: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility .2s, opacity .2s ease-in-out;
  }
  .nav.shown .nav__list { visibility: visible; opacity: 1; }
  .nav__btn + .nav__btn { margin-left: 0; margin-top: 0.5rem; }
}

/* =========================================================
   Intro / Hero
   ========================================================= */
.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  min-height: 40rem;
  overflow: hidden;
}
.intro__cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(18, 18, 18, 0.6) 0%, rgba(18, 18, 18, 0.6) 50%),
    /* 원본 히어로 사진 자리 — 실제 매장 사진으로 교체하세요 */
    radial-gradient(circle at 70% 30%, #2a3447 0%, #121216 60%),
    linear-gradient(120deg, #0d1b3e 0%, #121216 100%);
  background-size: cover;
  background-position: 75% 75%;
}
.intro__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}
.intro__eng {
  font-family: var(--eng);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: clamp(0.8rem, 2vw, 1.4rem);
  color: var(--grey);
  margin-bottom: 1.2rem;
}
.intro__main {
  font-weight: 900;
  letter-spacing: 0.1rem;
  line-height: 1.4;
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.intro__main span {
  color: var(--accent);
  text-shadow: rgba(0, 0, 0, 1) 0 0 10px;
}
@media (max-width: 600px) {
  .intro__main { font-size: clamp(1.4rem, 7vw, 2.5rem); }
}

.intro__separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  line-height: 0;
}
.intro__separator svg { width: 100%; height: 100%; display: block; }

/* =========================================================
   About / Values
   ========================================================= */
.about {
  display: flex;
  flex-direction: column;
  background: var(--dark);
}

/* Step blocks (원본: 전면 사진 + 오버레이 카피) */
.step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 70vh;
  padding: 0 clamp(1.5rem, 8vw, 10rem);
  overflow: hidden;
}
.step__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
/* 원본 사진(1.jpeg / 3.jpeg / 5.jpeg)은 아카이브에 남아있지 않아
   블루 듀오톤 그라데이션으로 대체했습니다. 실제 사진으로 교체 가능. */
.step--a .step__overlay {
  background-image: linear-gradient(90deg, rgba(18,18,18,.5), rgba(18,18,18,.5)),
    linear-gradient(135deg, #10275f 0%, #121216 70%);
}
.step--b .step__overlay {
  background-image: linear-gradient(90deg, rgba(18,18,18,.5), rgba(18,18,18,.5)),
    linear-gradient(135deg, #121216 0%, #15306e 100%);
}
.step--c .step__overlay {
  background-image: linear-gradient(90deg, rgba(18,18,18,.5), rgba(18,18,18,.5)),
    linear-gradient(135deg, #1a2a55 0%, #121216 60%);
}
.step--b { justify-content: flex-end; text-align: right; }

.step__copy { position: relative; z-index: 1; max-width: 32rem; }
.step__title {
  color: var(--accent);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: 0.05rem;
}
.step__desc {
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #eaeaea;
}

/* Values: SG 로고 마스크 + 원형 가치 */
.values {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1rem 6rem;
}
.values__mask {
  width: min(72vw, 26rem);
  height: min(50vw, 18rem);
  background-color: #ffffff;              /* 로고 뒷배경 흰색 */
  background-image: url("assets/safe-gym-logo.png");
  background-repeat: no-repeat;
  background-size: 74% auto;              /* 안쪽 여백 */
  background-position: center;
  border-radius: 1rem;
}
.values__title {
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 1rem;
  letter-spacing: 0.1rem;
}
.values__circles {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap-reverse;
  gap: 1rem;
}
.circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(6rem, 20vw, 14rem);
  height: clamp(6rem, 20vw, 14rem);
  margin: 0 0.5rem;
  background-color: var(--blue);
  border-radius: 50%;
}
.circle span {
  color: var(--white);
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 900;
}

/* =========================================================
   Price
   ========================================================= */
.price {
  background: var(--white);
  color: var(--dark);
  display: flex;
  justify-content: center;
  padding: 6rem 1rem;
}
.price__inner {
  width: 100%;
  max-width: 60rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.price__bio {
  color: #555;
  font-weight: 400;
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-bottom: 3rem;
  text-align: center;
}

/* ---- 가격표 (2026-01 개정판: PT / FAMILY 2단 구성) ---- */
.ptable {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.7fr) 1fr 1fr;
  column-gap: clamp(1rem, 4vw, 3.5rem);
  color: var(--blue);
  border-top: 2.5px solid var(--blue);   /* 상단 굵은 선 */
}
.ptable__cell { padding: 1.4rem 0; }

/* 헤더 행 */
.ptable__corner,
.ptable__head { border-bottom: 2.5px solid var(--blue); padding-bottom: 1.6rem; }
.ptable__head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.15rem;
}
.ptable__eyebrow {
  font-family: var(--eng);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
}
.ptable__coltitle {
  font-family: var(--eng);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(0.95rem, 2.2vw, 1.4rem);
  line-height: 1.1;
}
.ptable__note {
  font-weight: 500;
  font-size: clamp(0.65rem, 1.4vw, 0.82rem);
  margin-top: 0.3rem;
}

/* 좌측 회차 라벨 + 세로 구분선 */
.ptable__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  border-right: 2px solid var(--blue);   /* 세로 구분선 */
  padding-right: clamp(0.8rem, 3vw, 2.5rem);
}
.ptable__label--op {
  font-family: var(--eng);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
}

/* 데이터 셀 (우측 정렬) */
.ptable__data {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}
.ptable__total {
  font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.01em;
}
.ptable__unit {
  font-weight: 400;
  font-size: clamp(0.95rem, 2.1vw, 1.35rem);
  margin-top: 0.3rem;
}
.ptable__data--op .ptable__unit { margin-top: 0; line-height: 1.5; }
.ptable__dash { font-size: clamp(1.1rem, 2.6vw, 1.7rem); }

/* ONEPOINT LESSON 위 얇은 가로선 */
.ptable__rule { border-top: 1.5px solid var(--blue); padding-top: 1.8rem; }

@media (max-width: 600px) {
  .ptable { column-gap: 0.9rem; grid-template-columns: minmax(4.2rem, 0.6fr) 1fr 1fr; }
  .ptable__cell { padding: 1rem 0; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  background: var(--blue);
  color: var(--white);
  display: flex;
  justify-content: center;
  padding: 5rem 1rem;
}
.contact__box {
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.contact__logo {
  display: inline-block;
  width: 9rem;
  height: 7.03rem;            /* 로고 비율 800:625 유지 */
  background: url("assets/safe-gym-logo.png") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
  filter: brightness(0) invert(1);  /* 파란 로고 → 흰색 (파란 배경 대비) */
  margin-bottom: 0.4rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact__links a {
  font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease-in-out;
}
.contact__links a:hover { border-bottom-color: var(--white); }

.contact__location {
  line-height: 1.8;
  font-weight: 400;
  font-size: clamp(0.85rem, 2vw, 1rem);
  opacity: 0.95;
}

.contact__copyright {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__copyright span {
  font-family: var(--eng);
  text-transform: uppercase;
  font-size: clamp(0.5rem, 1.6vw, 0.8rem);
  letter-spacing: 0;
  opacity: 0.85;
}
