/* ========== Design Tokens ========== */
:root {
  --brand: #1fa67a;
  --ink: #102a43;
  --muted: #4e5968;
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #2b6cb0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.23rem;
  padding-bottom: 1rem;
}
h1,
h2 {
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(62px, 5vw, 44px);
}
h2 {
  font-size: clamp(53px, 3.4vw, 36px);
  padding-bottom: 1rem;
}
p.lead {
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 18px);
  margin: 0 0 39px;
}
/* utilities */
.mt-6 {
  margin-top: 6px;
}
.mt-18 {
  margin-top: 18px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
}
.card--flush {
  padding: 0;
  overflow: hidden;
}

/* ========== Hero ========== */ /* Hero Section */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.slide-content h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #283848;
}

.slide-content .subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #367c81;
}

.slide-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  opacity: 0.9;
  color: #283848;
}

/* 슬라이드 배경 */
.slide-1 {
  background: url(../img/main_1.jpg) center;
  background-size: cover;
}

.slide-2 {
  background: url(../img/main_2.jpg) center;
  background-size: cover;
}

.slide-3 {
  background: url(../img/main_3.jpg) center;
  background-size: cover;
}

/* 커스텀 네비게이션 */

.hero .container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none; /* 배경 클릭 방지 */
}

.custom-navigation {
  max-width: 1240px;
  position: relative; /* absolute에서 relative로 변경 */
  bottom: 15em;
  left: auto;
  pointer-events: all; /* 네비게이션만 클릭 가능 */
  width: fit-content;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slide-counter {
  font-size: 14px;
  font-weight: 600;
  color: #2c5282;
  min-width: 20px;
}

.progress-container {
  position: relative;
  width: 120px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #2c5282;
  border-radius: 2px;
  width: 0%;
}

.progress-bar.animating {
  transition: width 4s linear;
}

.total-slides {
  font-size: 14px;
  font-weight: 400;
  color: #718096;
}

.play-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #2c5282;
}

.play-pause-btn:hover {
  background: #2c5282;
  transform: scale(1.1);
}

.play-pause-btn svg {
  width: 16px;
  height: 16px;
}

/* bar */
.bar {
  background: #195739da;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 150px;
  color: #fff;
  font-size: 19px;
  width: 100%;
  max-width: 1300px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 1px 11px #13381093;
}

/* ========== Building (단독건물) ========== */
.building {
  background: url(../img/building_bg.jpg) center;
  background-size: cover;
}
.building__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 98px;
}

.building__card {
  comp: unset;
}
.building__points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  font-size: 20px;
}
.building__point {
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  font-weight: 600;
  color: #0f172a;
  transition: transform 0.15s ease, background 0.15s ease;
}
.building__point i {
  font-style: normal;
  opacity: 0.45;
  font-weight: 400;
}
.building__point:hover {
  background: #eef2f7;
  transform: translateY(-2px);
}
.building__photo {
  padding: 0;
  overflow: hidden;
}

/* ========== Values (5C) ========== */
.values {
  background: #fff;
}
.values__stair {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) {
  .values__stair {
    grid-template-columns: repeat(2, 1fr);
  }
}
.values__card {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/5;
  color: #fff;
  display: grid;
  place-items: end start;
  box-shadow: var(--shadow);
  text-align: center;
}
.values__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.22) 60%,
    rgba(0, 0, 0, 0.35)
  );
}

.values__card:hover {
  background: #eef2f7;
}

.values__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.values__card .label {
  position: relative;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.1px;
  font-size: 30px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.values__card small {
  display: block;
  font-weight: 600;
  opacity: 1.2;
  font-size: 20px;
}
.values__stair > :nth-child(1) {
  margin-top: 400px;
}
.values__stair > :nth-child(2) {
  margin-top: 300px;
}
.values__stair > :nth-child(3) {
  margin-top: 200px;
}
.values__stair > :nth-child(4) {
  margin-top: 100px;
}
.values__stair > :nth-child(5) {
  margin-top: 0;
}

/* ========== Services (3가지) ========== */
.services {
  background: var(--bg);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.services__card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
}
.services__card > img {
  aspect-ratio: 4/3;
  object-fit: cover;
}
.services__icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 132px;
  background: #207c50;
  color: #fff;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(31, 166, 122, 0.3);
}
.services__icon img {
  width: 50px;
  height: 50px;
  filter: brightness(200);
}
.services__body {
  padding: 18px;
}
.services__card h3 {
  margin: 0 0 4px;
  font-size: 27px;
}
.services__card p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 19px;
}
.services__card:hover {
  background: #eee;
}
.badge {
  display: inline-block;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--brand);
  font-weight: 800;
  margin-top: 6px;
}

/* ========== Contact ========== */
.contact-section {
  background: #fff;
  padding: 0;
}
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 980px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
  }
}
.contact__list {
  display: grid;
  gap: 8px;
}
.contact__item {
  font-size: 20px;
}

.contact__item2 {
  font-size: 18px;
  display: flex;
  align-items: center;
  grid-gap: 15px;
  font-weight: 400;
  color: #666;
  padding: 2rem 0;
}
.contact__item b {
  font-size: 1.69em;
  font-weight: 700;
}

.contact__dot {
  width: 100px;
  font-size: 17px;
  height: 28px;
  border-radius: 8px;
  background: #e8f7f0;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 900;
}
.contact__ {
  font-size: 20px;
  font-weight: 600;
}
.map-embed {
  border: 0;
}

.contact .card {
  box-shadow: none;
  padding: 15%;
}

.contact h3 {
  font-size: 30px;
}
.root_daum_roughmap .wrap_map {
  height: 700px !important;
}
.root_daum_roughmap.root_daum_roughmap_landing {
  width: 100% !important;
  height: 600px !important;
}

.roughmap_maker_label .roughmap_lebel_text {
  background: url(../img/logo_m.png) center !important;
  background-size: 100% !important;
  color: #fff;
  font-size: 0 !important;
  width: 166px;
  height: 60px;
  border-radius: 20px !important;
}

.root_daum_roughmap .cont {
  display: none;
}

.wrap_controllers {
  display: none;
}

/* ========== Footer ========== */
footer {
  padding: 40px 0;
  color: #4b5563;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== Mobile Overrides (≤768px) ====== */
@media (max-width: 768px) {
  .slide-1 {
    background-image: url(../img/main_1m.jpg);
  }
  .slide-2 {
    background-image: url(../img/main_2m.jpg);
  }
  .slide-3 {
    background-image: url(../img/main_3m.jpg);
  }
  .slide-content .subtitle {
    font-size: 20px;
  }
  /* 타이포 크기 바로잡기 */
  h1 {
    font-size: clamp(32px, 7.8vw, 32px) !important;
  }
  h2 {
    font-size: clamp(29px, 5.5vw, 33px) !important;
  }
  p.lead {
    font-size: clamp(17.7px, 4.4vw, 18px) !important;
  }

  .slide-content {
    padding: 20px !important;
    padding-bottom: 200px !important;
  }
  .slide-content p {
    font-size: 1.1em;
  }
  .custom-navigation {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 16px !important;
    justify-content: space-between !important;
  }
  .progress-container {
    width: 40vw !important;
  }

  /* 히어로 하단 바: 넘침 방지 & 줄바꿈 */
  .hero .container {
    bottom: 14px;
  }
  .bar {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .bar span {
    display: inline-flex !important;
    margin-right: 8px !important;
  }

  /* 단독건물 섹션: 2열 → 1열 */
  .building {
    padding: 50px 0 55vw;
    background: url(../img/bulidm.png) no-repeat bottom;
    background-size: 100%;
  }
  .building__layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .building__points {
    grid-template-columns: 1fr !important;
    font-size: 18px !important;
  }
  .building__point {
    height: 60px !important;
    padding: 0 18px !important;
  }

  /* 5C 계단형: 모바일 평탄화 */
  .values__stair {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .values__stair > * {
    margin-top: 0 !important;
  }
  .values__card {
    aspect-ratio: 3 / 4 !important;
  }
  .values__card .label {
    font-size: 22px !important;
  }
  .values__card small {
    font-size: 14px !important;
  }

  /* 서비스 카드: 아이콘 겹침 방지 */
  .services__grid {
    grid-template-columns: 1fr !important;
  }
  .services__card > img {
    aspect-ratio: 16 / 9 !important;
  }
  .services__icon {
    bottom: 99px !important;
    width: 72px !important;
    height: 72px !important;
  }
  .services__icon img {
    width: 40px !important;
    height: 40px !important;
  }
  .services__body {
    padding: 14px !important;
  }
  .services__card h3 {
    font-size: 22px !important;
  }
  .services__card p {
    font-size: 16px !important;
  }

  /* 연락처/지도: 카드 과도한 패딩 축소 + 지도 높이 축소 */
  .contact {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contact .card {
    padding: 30px !important;
    box-shadow: none !important;
  }
  .contact__ {
    font-size: 17px;
  }
  .contact h3 {
    font-size: 18px !important;
  }
  .contact__item b {
    font-size: 1.2em !important;
  }
  .contact__dot {
    width: auto !important;
    padding: 0 10px !important;
  }

  .root_daum_roughmap.root_daum_roughmap_landing {
    height: 360px !important; /* 600px → 360px */
  }
  .root_daum_roughmap .wrap_map {
    height: 360px !important;
  }
}
