/* ===== 폰트 (font 폴더 사용) ===== */
@font-face {
  font-family: 'Paperlogy';
  src: url('font/Paperlogy-4Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('font/Paperlogy-3Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('font/Paperlogy-5Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('font/Paperlogy-6SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('font/Paperlogy-7Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-white: #ffffff;
  --color-blue: #1e5a8e;
  --color-blue-light: #2d7ab8;
  --color-blue-dark: #0f3d5c;
  --color-bg: #ffffff;
  --font-main: 'Paperlogy', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-blue-dark);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* ===== 헤더 (PC) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(30, 90, 142, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-pc {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-pc a {
  color: var(--color-blue-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-pc a:hover {
  color: var(--color-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(30, 90, 142, 0.06);
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-blue-dark);
  position: relative;
  transition: background 0.2s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-blue-dark);
  transition: transform 0.3s;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.header.menu-open .menu-icon {
  background: transparent;
}

.header.menu-open .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header.menu-open .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ===== 모바일 슬라이드 메뉴 (오른쪽 → 왼쪽) ===== */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 61, 92, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-blue-dark);
  z-index: 999;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s ease-out;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.nav-mobile-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.nav-mobile-inner a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.2s;
}

.nav-mobile-inner a:hover {
  opacity: 0.9;
}

.nav-mobile-logo {
  padding: 1.5rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-mobile-logo img {
  height: 54px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* 모바일 메뉴 열림 */
body.menu-open .nav-mobile-overlay {
  opacity: 1;
  visibility: visible;
}

body.menu-open .nav-mobile {
  transform: translateX(0);
}

/* ===== 모바일: 햄버거만 보이고 PC 네비 숨김 ===== */
@media (max-width: 768px) {
  .nav-pc {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile-overlay,
  .nav-mobile {
    display: flex;
  }
}

/* ===== 히어로 섹션 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 61, 92, 0.35) 0%,
    rgba(30, 90, 142, 0.25) 50%,
    rgba(15, 61, 92, 0.5) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
}

/* 히어로 강조 색상 */
.hero-accent {
  color: #b8e0ff;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(184, 224, 255, 0.4);
  display: inline-block;
  animation: hero-accent-glow 3s ease-in-out infinite;
}

@keyframes hero-accent-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(184, 224, 255, 0.4); }
  50% { text-shadow: 0 0 28px rgba(184, 224, 255, 0.6), 0 0 40px rgba(184, 224, 255, 0.3); }
}

/* 히어로 등장 애니메이션 */
.hero-anim {
  opacity: 0;
  animation: hero-fade-up 0.8s ease forwards;
}

.hero-anim--delay-1 { animation-delay: 0.15s; }
.hero-anim--delay-2 { animation-delay: 0.3s; }
.hero-anim--delay-3 { animation-delay: 0.45s; }
.hero-anim--delay-4 { animation-delay: 0.55s; }
.hero-anim--delay-5 { animation-delay: 0.65s; }
.hero-anim--delay-6 { animation-delay: 0.75s; }
.hero-anim--delay-7 { animation-delay: 0.85s; }

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  opacity: 0.95;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.hero-list li:hover {
  transform: scale(1.05);
}

.hero-list li .hero-accent {
  transition: color 0.25s ease;
}

.hero-list li:hover .hero-accent {
  color: #fff;
}

.hero-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.95);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-white);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== h-2, h-3 이미지 섹션 ===== */
.section-img {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: var(--color-bg);
}

.section-img__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

@media (min-width: 769px) {
  .section-img__img {
    max-width: 1080px;
  }
}

/* ===== 오른쪽 하단 고정 아이콘 (SNS 이미지만, 원형 없음) ===== */
.float-icons {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.float-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-blue-dark);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.float-icon:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.float-icon svg,
.float-icon img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.float-icon--top {
  background: rgba(30, 90, 142, 0.12);
}

.float-icon--top:hover {
  background: rgba(30, 90, 142, 0.2);
}

/* ===== 공통 섹션 / 컨테이너 ===== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-blue-dark);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--color-blue);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ===== Why 섹션 ===== */
.section-why {
  background: var(--color-white);
}

.check-list {
  list-style: none;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.check-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  font-size: 1rem;
  color: var(--color-blue-dark);
}

.check-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: 700;
}

.section-why-end {
  text-align: center;
  color: var(--color-blue);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ===== Before / After 섹션 (7세트 슬라이더) ===== */
.section-ba {
  background: var(--color-bg);
}

.section-ba .section-sub {
  margin-bottom: 1.5rem;
}

.ba-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.ba-slides {
  position: relative;
  min-height: 280px;
}

.ba-slide {
  display: none;
  animation: ba-fade 0.4s ease;
}

.ba-slide.active {
  display: block;
}

@keyframes ba-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ba-slide .ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 auto;
}

.ba-item {
  text-align: center;
}

.ba-label {
  display: block;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.ba-img {
  aspect-ratio: 4/3;
  background: #e8eef3;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.ba-img--before { background-color: #e8eef3; }
.ba-img--after { background-color: #d4e4f0; }

/* 이전/다음 버튼 */
.ba-prev,
.ba-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-blue-dark);
  box-shadow: 0 2px 12px rgba(30, 90, 142, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ba-prev:hover,
.ba-next:hover {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(30, 90, 142, 0.25);
}

.ba-prev {
  left: -0.5rem;
}

.ba-next {
  right: -0.5rem;
}

.ba-prev svg,
.ba-next svg {
  width: 24px;
  height: 24px;
}

/* 도트 네비게이션 */
.ba-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.ba-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c0d4e4;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.ba-dot:hover {
  background: var(--color-blue-light);
}

.ba-dot.active {
  background: var(--color-blue);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .ba-slide .ba-grid {
    grid-template-columns: 1fr;
  }

  .ba-prev {
    left: 0.25rem;
  }

  .ba-next {
    right: 0.25rem;
  }

  .ba-prev,
  .ba-next {
    width: 36px;
    height: 36px;
  }

  .ba-prev svg,
  .ba-next svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== 청소 진행 프로세스 ===== */
.section-process {
  background: var(--color-white);
}

.process-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: step;
}

.process-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 4rem;
  margin-left: 1.25rem;
  counter-increment: step;
  text-align: center;
}

.process-num {
  position: absolute;
  left: -1.25rem;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PC: 진행절차 번호를 텍스트 쪽(오른쪽)으로 이동 */
@media (min-width: 769px) {
  .process-num {
    left: 10.25rem;
  }
}

.process-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-blue-dark);
  margin-bottom: 0.35rem;
}

.process-desc {
  font-size: 0.95rem;
  color: var(--color-blue);
  line-height: 1.5;
}

/* 모바일: 진행절차 번호-텍스트 여백 축소, 중앙으로 정렬 */
@media (max-width: 768px) {
  .process-list {
    padding-left: 0;
    margin-left: 0.75rem;
  }

  .process-item {
    padding-left: 0.75rem;
    margin-left: 0;
  }

  .process-num {
    left: 0.25rem;
  }
}

/* ===== 비용 섹션 (한 줄에 한 카드, 전후/후기 카드 크기) ===== */
.section-cost {
  background: var(--color-bg);
}

.cost-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cost-card {
  width: 100%;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30, 90, 142, 0.08);
  text-align: center;
}

.cost-card__img {
  aspect-ratio: 4/3;
  background: #e8eef3;
  background-size: cover;
  background-position: center;
}

.cost-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-blue-dark);
  padding: 1rem 0.5rem 0.25rem;
}

.cost-card__price {
  font-size: 1.1rem;
  color: var(--color-blue);
  font-weight: 500;
  padding-bottom: 1rem;
}

/* ===== 고객후기 ===== */
.section-review {
  background: var(--color-bg);
}

.review-slider {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
}

.review-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 var(--review-card-width, 304px);
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30, 90, 142, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-card__img {
  aspect-ratio: 4/3;
  background: #e8eef3;
  background-size: cover;
  background-position: center;
}

.review-card__stars {
  color: #ffc107;
  font-size: 1rem;
  letter-spacing: 0.15em;
  padding: 0.6rem 1rem 0;
  line-height: 1;
}

.review-card__meta {
  font-size: 0.8rem;
  color: #666;
  padding: 0 1rem;
  margin: 0;
}

.review-card__text {
  font-size: 0.9rem;
  color: var(--color-blue-dark);
  line-height: 1.5;
  padding: 0.5rem 1rem 1rem;
  margin: 0;
  flex: 1;
}

/* PC: 3장 보이기 */
@media (min-width: 769px) {
  .review-slider {
    padding: 0 0.5rem;
  }

  .review-track {
    width: calc(7 * (100% - 3rem) / 3 + 9rem);
  }

  .review-card {
    flex: 0 0 calc((100% - 9rem) / 7);
  }
}

/* 모바일: 1장씩 보이기 */
@media (max-width: 768px) {
  .review-slider {
    padding: 0 1rem;
  }

  .review-track {
    width: calc(700% - 1.5rem);
  }

  .review-card {
    flex: 0 0 calc((100% - 10.5rem) / 7);
  }
}

/* ===== 문의폼 ===== */
.section-form {
  background: var(--color-white);
}

.inquiry-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-blue-dark);
  margin-bottom: 0.4rem;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  border: 1px solid #d0dce6;
  border-radius: 8px;
  color: var(--color-blue-dark);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.form-input::placeholder {
  color: #8fa3b8;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem;
  font-size: 1rem;
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.btn-submit:hover {
  background: var(--color-blue-dark);
}

/* ===== 푸터 ===== */
.footer {
  background: var(--color-blue-dark);
  color: var(--color-white);
  padding: 2.5rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  height: 54px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.footer-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.75;
}
