/* =========================
   FONT
========================= */
@font-face {
  font-family: 'SpokaHanSansNeo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SpoqaHanSansNeo-Regular.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SpokaHanSansNeo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SpoqaHanSansNeo-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

/* =========================
   BASE
========================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'SpokaHanSansNeo', sans-serif;
  color: #fff;
}

/* =========================
   BACKGROUND (스크롤됨)
========================= */
body {
  position: relative;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  min-height: 100vh;
  background: url("/web/images/bg.webp") no-repeat center / cover;
  z-index: -1;
}

/* =========================
   NAV
========================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  background: rgba(6,32,46,.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .08em;
}
.nav a.active {
  color: #ffd400;
}

/* =========================
   SECTION BASE
========================= */
.section {
  width: 100%;
  min-height: 100vh;
  padding-top: 72px;
  box-sizing: border-box;
}

.section-normal {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   HOME
========================= */
.section-home {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.home-title {
  font-size: clamp(56px, 12vw, 100px);
  font-weight: 900;
  color: #ff4f8b;
}
.home-bar {
  width: 240px;
  height: 10px;
  background: #ffd400;
  margin: 20px auto;
}
.home-desc {
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 800;
  color: #6fd0ff;
}

/* =========================
   SERVICE
========================= */
.service-title {
  margin-bottom: 40px; /* 기존 mb-5는 유지해도 됨 */
}

.section-service .container {
  padding-top: 60px;
}

.title-text {
  position: relative;
  padding-left: 22px;
  display: inline-block;          /* ⭐ 텍스트 높이에 맞춤 */
  line-height: 1;                 /* ⭐ 기본 줄간격 제거 */
}
/* 왼쪽 라인 */
.title-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;                    /* ⭐ 글자 위 여백 살짝 */
  bottom: 0.05em;                 /* ⭐ 글자 아래 여백 살짝 */
  width: 6px;
  background: #ff3b7f;
}
.title-text span {
  display: block;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 800;
  color: #ff3b7f;
  line-height: 1.05;              /* ⭐ 두 줄 간격 조절 (핵심) */
}
.service-card {
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 24px;
}
.service-card-title {
  color: #DEFF9A;
}
.service-card-title-sub {
  color: #888A8B;
}
.service-card-text {
  font-size: 15px;
  line-height: 1.6;
}

/* =========================
   PARTNERS
========================= */
.partners-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 기본: 6개 */
  gap: 32px;
  align-items: center;
}

.partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-item img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0);
}

/* <= 1200px : 4개 */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* <= 768px : 2개 */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* <= 480px : 1개 */
@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CONTACT
========================= */
.contact-box {
  background: #fff;
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  margin-bottom: 5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 동일 사이즈 */
  gap: 48px;
  align-items: stretch;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ⭐ 핵심 */
  height: 100%;                   /* ⭐ 그리드 높이 꽉 채우기 */
}

.contact-logo img {
  max-width: 180px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #222;
  font-size: 15px;
}

.contact-info .icon {
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #777;
  padding: 8px 4px;
  font-size: 15px;
  outline: none;
}

.contact-form textarea {
  resize: none;
  height: 120px;
  border: 1px solid #777;
  padding: 10px;
}

.contact-form button {
  align-self: flex-end;
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  background: #ccc;
  cursor: pointer;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .nav a {
    flex: 1 1 40%;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-left {
    justify-content: flex-start; /* 위/아래 고정 해제 */
    gap: 24px;                   /* 로고와 텍스트 사이 간격 */
  }

  .contact-logo {
    margin-bottom: 8px;          /* 로고 아래 여백 추가 */
  }
}

/* =========================
   PC FULLPAGE
========================= */
@media (min-width: 1200px) {
  .section {
    position: absolute;
    height: 100vh;
    padding-top: 0;
  }
}

@media (max-width: 1199px) {
  .section {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding-top: 72px;
  }
}

/* CONTACT 하단 정보 */
.contact-bottom {
  margin-top: 20px;
  padding: 14px 18px;

  background: rgba(0,0,0,.75);
  color: #fff;

  font-size: 13px;
  line-height: 1.6;

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .contact-bottom {
    flex-direction: column;
    gap: 4px;
  }
}