@charset "UTF-8";

/* --- 색상 변수 설정 --- */
:root {
  --primary-color: #C6168D; /* 포인트 색상 */
  --active-bg: #C6168D; /* 활성화/메인 강조색 */
  --text-dark: #222222; /* 제목 및 강조 텍스트 */
  --text-mid: #555555; /* 본문 텍스트 */
  --text-light: #666666; /* 부드러운 본문 텍스트 */
  --bg-light: #f8f9fb; /* 섹션 배경색 */
  --border-light: #eeeeee; /* 메뉴 경계선 */
  --border-dark: #dddddd; /* 구분선 */
  --white: #ffffff;
}

/* --- 기본 설정 --- */
body,
html {
  width: 100%;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
  overflow-x: hidden;
}

/* --- 상단 서브 배너 --- */
.sub-banner {
  width: 100%;
  height: 350px;
  background-image: url("../img/sub_main.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  margin-top: 70px;
}



.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.banner-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.home-icon {
  font-size: 16px;
  margin-top: -2px;
}

/* --- 서브 메뉴 탭 --- */
.sub-menu-wrap {
  border-bottom: 1px solid var(--border-dark);
  background: var(--white);
}

.sub-menu {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.sub-menu a {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  border-right: 1px solid var(--border-light);
  color: var(--text-light);
  transition: all 0.3s;
}

.sub-menu a:first-child {
  border-left: 1px solid var(--border-light);
}

.sub-menu a.active {
  background-color: var(--active-bg);
  color: var(--white);
  font-weight: 700;
}

.sub-menu a:hover:not(.active) {
  background-color: #f9f9f9;
  color: #333;
}

/* --- 업체 소개 메인 (Intro) --- */
.intro-main {
  padding: 80px 0;
  background: var(--white);
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.intro-text h2 {
  font-size: 36px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.intro-text .highlight {
  color: var(--active-bg);
}

.intro-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.intro-text p b {
  font-size: 1.14em;
  color: var(--text-dark);
}

/* 특장점 (Features) */
.intro-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #ececec;
  color: #000;
  transform: translateY(-5px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--active-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--white);
}

.feature-item:hover .feature-icon {
  background: var(--white);
  color: var(--active-bg);
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.intro-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- 갤러리 섹션 (Gallery) --- */
.gallery-section {
  padding: 80px 0;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  background: var(--white);
  height: 250px;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 48px;
  color: var(--white);
}

.gallery-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h3 {
  font-size: 15px;
  margin-bottom: 5px;
  text-shadow: 0 0 8px #000;
}

/* --- 오시는 길 (Map) --- */
.map_wrap {
  padding: 60px 20px;
  margin: 0 auto;
}

.root_daum_roughmap {
  width: 100% !important;
  padding-bottom: 30px;
}

.map_info {
  background: var(--bg-light);
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 10px;
}

.map_info_box {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 5px;
  font-size: 17px;
  color: var(--text-mid);
  padding: 0 20px;
}

.map_info_box [data-lucide] {
  width: 15px !important;
  height: 15px !important;
  color: var(--active-bg);
}

/* --- 라이트박스 (Lightbox) --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  border-radius: 50%;
}

.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

/* --- 반응형 설정 --- */
@media (max-width: 1024px) {
  .sub-banner {
    height: 320px;
  }
  .banner-title {
    font-size: 32px;
  }
  .intro-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .sub-banner {
    height: 260px;
  }
  .banner-title {
    font-size: 28px;
  }
  .sub-menu a {
    font-size: 13px;
    padding: 15px 0;
  }
  .intro-text h2 {
    font-size: 28px;
  }
  .intro-features {
    grid-template-columns: 1fr;
  }
  .gallery-container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .sub-banner {
    height: 200px;
  }
  .banner-title {
    font-size: 20px;
  }
  .intro-text h2 {
    font-size: 24px;
  }
  .gallery-item {
    height: 190px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
