/* 새로운 연락처 버튼 스타일 */

/* 메인 버튼 공통 스타일 */
.btn-more, .main-btn, .btn-map, .btn-copy {
  display: inline-block;
  padding: 0.7em 1.5em;
  margin: 0.5em 0.2em;
  background: linear-gradient(135deg, #374151 0%, #6b7280 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
  text-align: center;
}

.btn-more:hover, .main-btn:hover, .btn-copy:hover {
  background: linear-gradient(135deg, #4b5563 0%, #9ca3af 100%) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(55, 65, 81, 0.4) !important;
}

/* 메인 헤더 버튼 컨테이너 */
.main-btns {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  margin-top: 1.5em;
}

/* 모바일 하단 고정 버튼 */
.mobile-bottom-btns {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: transparent; /* 배경을 투명하게 변경 */
  box-shadow: none; /* 그림자 제거 */
  display: none; /* 기본적으로 숨김 (모바일에서만 표시) */
  justify-content: space-around;
  padding: 0.2em 0 0.3em 0; /* 패딩 줄임 */
  z-index: 300;
  /* iOS Safe Area 지원 - 최소한만 유지 */
  padding-bottom: calc(0.3em + env(safe-area-inset-bottom));
  /* 모바일 브라우저 주소창 변화 대응 */
  transform: translateZ(0);
  will-change: transform;
  /* 항상 보이도록 설정 */
  opacity: 1;
  visibility: visible;
}

/* 모바일 하단 버튼 전용 스타일 */
.mobile-bottom-btns .main-btn,
.mobile-bottom-btns a.main-btn,
.mobile-bottom-btns a[href*="tel"],
.mobile-bottom-btns a[href*="sms"],
.mobile-bottom-btns a[href*="kakao"] {
  flex: 1 !important;
  margin: 0 0.15em !important;
  font-size: 0.8em !important;
  padding: 0.35em 0.6em !important;
  text-align: center !important;
  background: linear-gradient(135deg, #374151 0%, #6b7280 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 24px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.3em !important;
  word-spacing: 0.2em !important;
  white-space: pre !important;
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3) !important;
}

/* 모바일 하단 버튼 호버 효과 */
.mobile-bottom-btns .main-btn:hover,
.mobile-bottom-btns a.main-btn:hover {
  background: linear-gradient(135deg, #4b5563 0%, #9ca3af 100%) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(55, 65, 81, 0.4) !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .main-btns {
    display: none; /* 모바일에서는 하단 고정 버튼만 노출 */
  }
  
  .mobile-bottom-btns {
    display: flex; /* 모바일에서만 표시 */
  }
  
  /* 푸터 여백 조정 (하단 버튼 공간 확보) - 외부 여백 제거, 내부 패딩으로 확보 */
  footer {
    font-size: 0.98em !important;
    padding: 1em 0 calc(40px + 0.2em + env(safe-area-inset-bottom)) 0 !important;
    background: #374151 !important;
    margin-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
  }

  /* 페이지 공통 규칙 유지: 포트폴리오 전용 규칙 제거 */
}

@media (min-width: 769px) {
  .mobile-bottom-btns {
    display: none; /* PC에서는 하단 고정 버튼 숨김 */
  }
  
  .main-btns {
    display: flex; /* PC에서만 표시 */
  }
  
  /* PC에서만 푸터 여백 제거 */
  footer {
    padding-bottom: 0 !important;
  }
}

/* 메인 헤더 스타일 */
.main-welcome {
  text-align: center;
  padding: 2em 1em;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 16px;
  margin: 1em 0;
}

.main-welcome h1 {
  font-size: 1.8em;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5em;
}

.main-welcome p {
  font-size: 1.1em;
  color: #6b7280;
  margin-bottom: 1.5em;
}
