/* =========================
   기본 변수 & 리셋
========================= */
:root {
  --primary-color: #006994;   /* 메인 파란색 */
  --accent-color:  #ff8a00;   /* 포인트 오렌지 (히어로 CTA - 전화) */
  --light-bg:      #f5f8fa;   /* 연한 섹션 배경 */
  --dark-text:     #222;
  --muted-text:    #666;
  --max-width:     1000px;
  --header-h:      60px;      /* 고정 헤더 기본 높이 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* 전체 폰트 크기를 키워 어르신도 잘 보이도록 조정 */
/* 더욱 큰 글꼴로 기본 크기를 재설정하여 40~50대 사용자도 편히 읽을 수 있도록 합니다 */
html {
  font-size: 18px;
}
@media (min-width: 768px) {
  html { font-size: 19px; }
}
@media (min-width: 1200px) {
  html { font-size: 20px; }
}

/* 기본 여백 제거 및 고정 헤더 보정 */
body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--dark-text);
  background: #fff;
  /* 줄간격 증가로 가독성 향상 */
  line-height: 1.7;
  /* 헤더 + 노치 안전영역만큼 상단 패딩 */
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

a { text-decoration: none; color: inherit; }

/* header-spacer 대응 */
.header-spacer { display: none !important; height: 0 !important; }

/* =========================
   Header / Global Nav
========================= */
.header {
  position: fixed; /* 상단 고정 유지 */
  top: 0; left: 0; right: 0;
  /* 안전영역 포함 높이/패딩 */
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: #ffffff;
  border-bottom: 1px solid #e0e6ec;
  z-index: 4000; /* 충분히 높게 */
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
}

/* 기본(데스크톱) 가로 메뉴 */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}
.nav a {
  color: var(--dark-text);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--primary-color); }

/* ===== 햄버거 버튼 (CSS 3줄) ===== */
.menu-toggle {
  display: none; /* 데스크톱에서 숨김 */
  appearance: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  width: 40px;
  height: 32px;
  padding: 0;
  position: relative;
  line-height: 1;
  font-size: 0; /* 내부 텍스트 숨김 */
  background: linear-gradient(currentColor 0 0) left 6px top 50%/calc(100% - 12px) 2px no-repeat;
}
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle::before { top: 9px; }
.menu-toggle::after  { bottom: 9px; }

/* =========================
   모바일/태블릿 (<=1024px)
========================= */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 5000;
    touch-action: manipulation;
  }

  .nav {
    position: fixed;
    /* 헤더+노치만큼 아래에서 시작 */
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    /* 실제 보이는 화면 기준 높이 계산 (vh→svh→dvh) */
    height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
    height: calc(100svh - var(--header-h) - env(safe-area-inset-top));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    border-top: 1px solid #e0e6ec;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: translateY(-100%);
    transition: transform .28s ease;
    z-index: 4500;           /* 콘텐츠 위, 헤더/버튼보단 아래 */
    pointer-events: none;    /* 닫힌 상태에서 클릭 차단 */
    /* background: none;     ← 투명 유지 */
  }
  .nav.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav ul { flex-direction: column; gap: 0; padding-top: .5rem; }
  .nav ul li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e6ec;
    text-shadow: 0 1px 2px rgba(0,0,0,.12);
  }
  .nav ul li:last-child { border-bottom: none; }

  body::after {
    content: "";
    position: fixed;
    left: 0; right: 0;
    /* 헤더+노치 영역 아래부터 딤드 */
    top: calc(var(--header-h) + env(safe-area-inset-top));
    bottom: 0;
    background: transparent;
    z-index: 4200;           /* nav(4500) 아래, 콘텐츠 위 */
    pointer-events: none;
    transition: background .2s ease;
  }
  body.nav-open { overflow: hidden; } /* 메뉴 열리면 바디 스크롤 잠금 */
  body.nav-open::after {
    background: rgba(0,0,0,.35);
    pointer-events: auto;
  }
}

/* ===== 데스크톱 (>=1025px) ===== */
@media (min-width: 1025px) {
  .menu-toggle { display: none !important; }
  .nav {
    position: static !important;
    transform: none !important;
    height: auto !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    z-index: auto !important;
    transition: none !important;
    pointer-events: auto !important;
  }
  .nav ul { flex-direction: row !important; gap: 1.2rem !important; padding-top: 0 !important; }
  .nav ul li { padding: 0 !important; border: 0 !important; }
}

/* 내부 앵커 스크롤 오프셋 */
section[id] { scroll-margin-top: 70px; }

/* =========================
   Hero (슬라이더 포함)
========================= */
.hero {
  position: relative;
  /* 주소/하단바 변동에 안전한 높이: vh→svh→dvh 순으로 선언 */
  height: 60vh;
  height: 60svh;
  height: 60dvh;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 1rem; }
.hero h1 {
  /* 가변 폰트 크기: 작은 화면에서도 잘리지 않도록 */
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  margin-bottom: 1.2rem;
  color: #fff;
  font-weight: 800;
}
.hero p  {
  /* 소개 문구도 가변 크기 */
  font-size: clamp(1rem, 3.2vw, 1.4rem);
  margin-bottom: 1.8rem;
  color: #f5f5f5;
}

/* 히어로 CTA: 전화/카톡 색 구분 */
.hero-ctas {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent-color); /* 전화(첫 버튼) */
  color: #fff;
  /* 버튼을 더욱 눈에 띄게 키웁니다 */
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  transition: background 0.2s ease, transform .12s ease, box-shadow .12s ease;
  /* 기본 전화/상담 버튼에 광고형 반짝임 애니메이션 적용 */
  position: relative;
  overflow: hidden;
  animation: sparklePulse 1.8s ease-in-out infinite;
}
.btn-primary:hover { background: #e67600; }
.hero-ctas .btn-primary:last-child {
  background: #FEE500; /* 카카오 */
  color: #111;
  /* 카카오 버튼은 광고형 반짝임 적용 */
  position: relative;
  overflow: hidden;
  animation: sparklePulse 1.8s ease-in-out infinite;
}
.hero-ctas .btn-primary:last-child:hover {
  background: #f3d900;
}
@media (min-width: 768px) {
  /* 더 큰 글씨 크기를 유지하여 데스크톱에서도 돋보이게 */
  .hero h1 { font-size: 2.8rem; }
  .hero p  { font-size: 1.4rem; }
}

/* =========================
   Services
========================= */
.services { padding: 3rem 1rem; background-color: var(--light-bg); }
.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  /* 제목을 더 크게 */
  font-size: 1.7rem;
  color: var(--primary-color);
}
.service-section {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  max-width: var(--max-width); margin: 0 auto 2rem; gap: 1rem;
}
.service-section.reverse { flex-direction: row-reverse; }
.service-image { flex: 1 1 45%; }
.service-content { flex: 1 1 55%; }
.service-image img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
@media (max-width: 480px) {
  .service-section, .service-section.reverse { flex-direction: row !important; align-items: flex-start; gap: .8rem; }
  .service-image, .service-content { flex: 1 1 50%; }
  .service-image img { height: 160px; }
}
@media (min-width: 768px) {
  .service-image img { height: 240px; }
  .service-section { gap: 2rem; }
}
.service-content h3 {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
  font-size: 1.35rem;
  color: var(--primary-color);
}
.service-icon { width: 1.6rem; height: 1.6rem; margin-right: .1rem; vertical-align: middle; }
.service-content p {
  font-size: 1rem;
  color: var(--dark-text);
  margin-bottom: .6rem;
}
.service-content .price {
  display: inline-block;
  margin-top: .6rem;
  font-weight: 700;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 30px;
  font-size: 1rem;
}

/* =========================
   Process (진행 절차)
========================= */
.process { padding: 3rem 1rem; background-color: #fff; }
.process h2 {
  text-align: center;
  margin-bottom: 2rem;
  /* 제목을 더 크게 */
  font-size: 1.7rem;
  color: var(--primary-color);
}
.process-steps {
  display: flex; max-width: var(--max-width); margin: 0 auto;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.step {
  flex: 1 1 150px; background-color: var(--light-bg);
  border-radius: 8px; padding: 1rem; text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  border-top: 3px solid transparent; /* 색상은 아래에서 단계별 지정 */
}
.step-icon {
  width: 36px; height: 36px; margin: 0 auto .5rem; border-radius: 50%;
  background: var(--accent-color); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step h4 {
  font-size: 1.2rem;
  margin-bottom: .4rem;
  color: var(--primary-color);
}
.step p  {
  font-size: 1rem;
  color: var(--dark-text);
}

/* 진행 절차 1~5 색상 (아이콘/타이틀/보더) */
.step-icon.step-1 { background: #007bff; }
.step-icon.step-2 { background: #28a745; }
.step-icon.step-3 { background: #6f42c1; }
.step-icon.step-4 { background: #e83e8c; }
.step-icon.step-5 { background: #fd7e14; }

.process-steps .step:nth-of-type(1) { border-top-color: #007bff; }
.process-steps .step:nth-of-type(1) h4 { color: #007bff; }

.process-steps .step:nth-of-type(2) { border-top-color: #28a745; }
.process-steps .step:nth-of-type(2) h4 { color: #28a745; }

.process-steps .step:nth-of-type(3) { border-top-color: #6f42c1; }
.process-steps .step:nth-of-type(3) h4 { color: #6f42c1; }

.process-steps .step:nth-of-type(4) { border-top-color: #e83e8c; }
.process-steps .step:nth-of-type(4) h4 { color: #e83e8c; }

.process-steps .step:nth-of-type(5) { border-top-color: #fd7e14; }
.process-steps .step:nth-of-type(5) h4 { color: #fd7e14; }

/* =========================
   Gallery + Lightbox (CENTER SNAP + 초기 쏠림 개선)
========================= */
.gallery { padding: 3rem 1rem; background-color: var(--light-bg); }
.gallery h2 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; color: var(--primary-color); }
.gallery-container { max-width: var(--max-width); margin: 0 auto; }

.gallery-slider { position: relative; overflow: hidden; }

/* 핵심: 가운데 정렬 스냅 + 첫/마지막 아이템도 중앙에 올 수 있게 패딩 보정 */
.gallery-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  /* 중앙 보정 제거 → 왼쪽 정렬 시작 */
  padding-inline: 0;
}

/* 트랙: 내부 여백 대신 gap 사용 → 카드 폭 정확히 맞춤 */
.gallery-track {
  display: flex;
  gap: 12px;                 /* 카드 간격 */
  /* transition: transform .5s ease;  불필요 */
}

/* 카드: 내부 패딩 제거(폭을 정확히 80%/33.333%로) */
.gallery-item {
  flex: 0 0 80%;
  padding: 0;
  scroll-snap-align: center;     /* 중앙 기준 스냅 */
  scroll-snap-stop: always;      /* 빠르게 스와이프해도 한 장씩 멈춤 */
}

@media (min-width: 768px) {
  .gallery-item { flex: 0 0 33.333%; }
}

.gallery-item img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08); cursor: pointer;
}

/* 스크롤바 숨김(선택) */
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* 드래그 시 포인터(선택) */
.gallery-scroll.dragging { cursor: grabbing; cursor: -webkit-grabbing; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: #fff; border: none;
  font-size: 2.2rem; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 4px; z-index: 10;
}
.gallery-nav.prev { left: 5px; }
.gallery-nav.next { right: 5px; }

.lightbox { display: none; position: fixed; inset: 0; justify-content: center; align-items: center; background: rgba(0,0,0,.8); z-index: 5000; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90%; max-height: 90%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 2rem; color: #fff; cursor: pointer; }

/* =========================
   Pricing
========================= */
.pricing { padding: 3rem 1rem; background: #fff; }
.pricing h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: var(--primary-color);
}
.pricing .note {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--muted-text);
}
.price-table {
  width: 100%; max-width: var(--max-width); margin: 0 auto;
  border-collapse: collapse; overflow: hidden; border-radius: 8px;
}
.price-table thead { background: var(--primary-color); color: #fff; }
.price-table th, .price-table td {
  padding: .8rem 1rem;
  font-size: 1rem;
  text-align: left;
}
.price-table tbody tr:nth-child(even) { background: var(--light-bg); }
.price-table tbody tr:hover { background: #e8f3f8; }

/* =========================
   FAQ
========================= */
.faq { padding: 3rem 1rem; background: var(--light-bg); }
.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.7rem;
  color: var(--primary-color);
}
.faq-list { max-width: var(--max-width); margin: 0 auto; }
.faq-item { margin-bottom: 1rem; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.question {
  width: 100%;
  padding: .8rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--light-bg);
  border: none;
  text-align: left;
  cursor: pointer;
}
.answer {
  display: none;
  padding: .8rem 1rem;
  font-size: 1rem;
  background: #fafafa;
  border-top: 1px solid #eee;
  color: var(--dark-text);
}

/* =========================
   Floating Action Buttons (아이콘 전용)
========================= */
/* 반짝이는 애니메이션 정의
   각 버튼 유형에 맞춰 세 가지 색상 계열을 준비합니다. */
@keyframes glowBlue {
  0%, 100% {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  }
  50% {
    background-color: #1596c8; /* 메인 파랑을 살짝 밝게 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

@keyframes glowOrange {
  0%, 100% {
    background-color: #ff8a00;
    box-shadow: 0 0 8px rgba(255, 138, 0, 0.3);
  }
  50% {
    background-color: #ffb14d;
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.8);
  }
}

@keyframes glowYellow {
  0%, 100% {
    background-color: #FEE500;
    box-shadow: 0 0 8px rgba(255, 235, 0, 0.3);
  }
  50% {
    background-color: #fff474;
    box-shadow: 0 0 20px rgba(255, 235, 0, 0.8);
  }
}

/* 광고에서 볼 수 있는 반짝반짝 효과를 위한 새로운 애니메이션들 */
@keyframes sparkleTwinkle {
  0%, 100% { opacity: .25; filter: brightness(1); }
  12%      { opacity: .8;  filter: brightness(1.15); }
  24%      { opacity: .15; }
  36%      { opacity: .9;  filter: brightness(1.2); }
  48%      { opacity: .25; }
  60%      { opacity: .7; }
  72%      { opacity: .2; }
  84%      { opacity: .85; }
}
@keyframes sparkleSweep {
  0%   { transform: translateX(-120%) rotate(20deg); }
  50%  { transform: translateX(20%)   rotate(20deg); }
  100% { transform: translateX(120%)  rotate(20deg); }
}
@keyframes sparklePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,255,255,0); transform: translateY(0) scale(1); }
  50%      { box-shadow: 0 0 24px rgba(255,255,255,.35); transform: translateY(-1px) scale(1.01); }
}
.floating-buttons {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4600; /* 모바일 메뉴 딤드(4200)보다 위 */
}
.floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 크기를 더 키워 눈에 띄게 */
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
  text-decoration: none;
}
.floating-button.call {
  background: var(--primary-color);
  color: #fff;
  /* 플로팅 버튼도 광고형 반짝임 효과 적용 */
  position: relative;
  overflow: hidden;
  animation: sparklePulse 1.8s ease-in-out infinite;
}
.floating-button.call:hover {
  background: #004d6e;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.floating-button.kakao {
  background: #FEE500;
  color: #111;
  /* 노란색 플로팅 버튼도 광고형 반짝임 효과 적용 */
  position: relative;
  overflow: hidden;
  animation: sparklePulse 1.8s ease-in-out infinite;
}
.floating-button.kakao:hover {
  background: #f3d900;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

/* 작은 화면에서 여백 보정 */
@media (max-width: 480px){
  .floating-buttons{ right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); gap: 10px; }
  /* 모바일에서도 플로팅 버튼이 잘 보이도록 약간 크게 조정 */
  .floating-button{ width: 58px; height: 58px; font-size: 1.4rem; }
}

/* =========================
   Footer
========================= */
.footer { background: #f0f4f7; padding: 1.5rem 1rem; text-align: center; font-size: .8rem; color: var(--muted-text); }

/* 푸터의 전화번호를 눈에 띄게 강조 */
.footer p:last-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 상담 CTA 섹션 */
.contact-cta {
  padding: 3rem 1rem;
  background: var(--light-bg);
  text-align: center;
}
.contact-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}
.contact-cta p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--dark-text);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.contact-cta .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
}
.contact-cta .kakao-cta {
  background: #FEE500;
  color: #111;
  /* 카카오 CTA 버튼도 광고형 반짝임 적용 */
  position: relative;
  overflow: hidden;
  animation: sparklePulse 1.8s ease-in-out infinite;
}
.contact-cta .kakao-cta:hover {
  background: #f3d900;
}

/* 중간 상담 CTA 섹션: 배경을 다르게 하여 다른 섹션과 구분 */
.contact-cta.mid-cta {
  background: #053347;
  color: #fff;
}
.contact-cta.mid-cta h2,
.contact-cta.mid-cta p {
  color: #fff;
}

/* 광고형 반짝반짝 효과: 별가루와 글린트 스윕 */
.btn-primary::before,
.hero-ctas .btn-primary:last-child::before,
.contact-cta .kakao-cta::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  /* 작은 별가루 무늬 여러 개를 배경으로 깔아 반짝이는 듯한 느낌을 줍니다 */
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9) 50%, transparent 52%) 0 0/32px 32px,
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,.8) 50%, transparent 52%) 0 0/28px 28px,
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.75) 50%, transparent 52%) 0 0/36px 36px;
  opacity: .25;
  animation: sparkleTwinkle 1.6s steps(5, end) infinite;
}

.btn-primary::after,
.hero-ctas .btn-primary:last-child::after,
.contact-cta .kakao-cta::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -50%;
  width: 40%;
  /* 대각선으로 움직이는 글린트 스윕 */
  background: linear-gradient(to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 45%,
    rgba(255,255,255,.9) 50%,
    rgba(255,255,255,.55) 55%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-120%) rotate(20deg);
  filter: blur(1px);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: sparkleSweep 1.8s cubic-bezier(.25,.1,.25,1) infinite;
}

/* 플로팅 버튼에도 별가루와 스윕 효과 적용 */
.floating-button::before {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 30% 40%, rgba(255,255,255,.9) 50%, transparent 52%) 0 0/30px 30px,
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(255,255,255,.8) 50%, transparent 52%) 0 0/26px 26px;
  opacity: .28;
  animation: sparkleTwinkle 1.4s steps(5, end) infinite;
}

.floating-button::after {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -60%;
  width: 45%;
  background: linear-gradient(to right,
    rgba(255,255,255,0),
    rgba(255,255,255,.95),
    rgba(255,255,255,0)
  );
  transform: translateX(-120%) rotate(25deg);
  mix-blend-mode: screen;
  filter: blur(.5px);
  animation: sparkleSweep 1.5s cubic-bezier(.25,.1,.25,1) infinite;
}

/* 모바일에서 히어로 섹션의 CTA 버튼은 다른 버튼보다 너무 커 보이지 않도록 축소 */
@media (max-width: 480px){
  .hero-ctas .btn-primary{
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    border-radius: 48px;
  }
}

/* 사용자가 모션을 선호하지 않을 경우 애니메이션 비활성화 */
@media (prefers-reduced-motion: reduce){
  .btn-primary,
  .btn-primary::before,
  .btn-primary::after,
  .hero-ctas .btn-primary:last-child,
  .hero-ctas .btn-primary:last-child::before,
  .hero-ctas .btn-primary:last-child::after,
  .contact-cta .kakao-cta,
  .contact-cta .kakao-cta::before,
  .contact-cta .kakao-cta::after,
  .floating-button,
  .floating-button::before,
  .floating-button::after {
    animation: none !important;
  }
}

/* =========================
   Benefits
========================= */
.benefits { padding: 3rem 1rem; background: #fff; }
.benefits h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.7rem;
  color: var(--primary-color);
}
.benefit-cards { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.benefit-card { flex: 1 1 200px; background: var(--light-bg); border-radius: 8px; padding: 1.5rem 1rem; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.benefit-icon { width: 70px; height: 70px; margin: 0 auto .8rem; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.benefit-icon svg { width: 40px; height: 40px; }
.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: .6rem;
  color: var(--primary-color);
}
.benefit-card p {
  font-size: 1rem;
  color: var(--dark-text);
}

/* =========================
   Service Price Color Palette (1~5)
   - #services 섹션 내부 등장 순서 기준
========================= */
#services .service-section:nth-of-type(1) .price { background-color: #007bff; } /* 1. 수전 교체: 파랑 */
#services .service-section:nth-of-type(2) .price { background-color: #28a745; } /* 2. 변기 교체: 초록 */
#services .service-section:nth-of-type(3) .price { background-color: #6f42c1; } /* 3. 세면대 교체: 보라 */
#services .service-section:nth-of-type(4) .price { background-color: #e83e8c; } /* 4. 패키지: 핑크 */
#services .service-section:nth-of-type(5) .price { background-color: #fd7e14; } /* 5. 누수/부품: 주황 */
