/* 한국형 특수청소 사이트 기본 보정 */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Gmarket Sans";
  src: url("../fonts/GmarketSansMedium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Gmarket Sans";
  src: url("../fonts/GmarketSansBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --kr-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --kr-heading-font: "Gmarket Sans", "Pretendard", sans-serif;
  --thm-font: var(--kr-font);
  --thm-font-2: var(--kr-font);
  --kr-accent: #1d67b1;
  --kr-accent-dark: #174b7b;
  --kr-text: #17344f;
  --kr-soft: #eff6fc;
  --kr-border: #cdddea;
  --kr-muted: #52677c;
  --thm-base: #185b92;
  --thm-base-rgb: 24, 91, 146;
  --thm-black: #17344f;
  --thm-black-rgb: 23, 52, 79;
  --thm-primary: #1d67b1;
  --thm-primary-rgb: 29, 103, 177;
  --thm-gray: #52677c;
  --thm-gray-rgb: 82, 103, 124;
  --thm-gray-bg: #f5f8fc;
}

body,
input,
textarea,
button,
select {
  font-family: var(--kr-font);
}

body,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body a,
body span,
body li,
body input,
body textarea,
body button,
body select {
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* 제목과 강조문구의 내부 링크·텍스트에도 같은 서체 적용 */
body :is(h1, h2, h3, h4, h5, h6),
body :is(h1, h2, h3, h4, h5, h6) :where(a, span, strong, em, b),
body strong,
body b,
body .font-emphasis,
body .font-emphasis :where(a, span, strong, em, b) {
  font-family: var(--kr-heading-font) !important;
  font-weight: 700;
}

.site-brand-text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.site-brand-text img,
.logo-box-one .site-brand-text img {
  display: block;
  width: 196px;
  height: auto;
  max-width: 100%;
}

.logo-box-one .site-brand-text .brand-logo--on-dark,
.main-header-one .logo-box-one .site-brand-text .brand-logo--on-light {
  display: none;
}

.main-header-one .logo-box-one .site-brand-text .brand-logo--on-dark {
  display: block;
}

/* 사진 배경이 없는 후기 페이지는 본문과 분리된 블루 헤더를 사용합니다. */
.main-header-one.main-header-one--solid {
  position: relative;
  background: var(--kr-accent-dark);
  border-bottom: 1px solid #ffffff24;
}

.main-header-one--solid .main-header-one__inner {
  background: transparent;
}

/* 스크롤 헤더 역시 어두운 배경이므로 흰색 로고를 유지합니다. */
.stricky-header.stricky-header--one .main-menu__wrapper {
  background: var(--kr-accent-dark);
}

.stricky-header--one .logo-box-one .site-brand-text .brand-logo--on-light {
  display: none;
}

.stricky-header--one .logo-box-one .site-brand-text .brand-logo--on-dark {
  display: block;
}

.main-header-one--solid .main-menu__list > li.current > a,
.main-header-one--solid .main-menu__list > li:hover > a,
.main-header-one--solid .main-menu__list > li.current.dropdown > a::before,
.main-header-one--solid .main-menu__list > li:hover.dropdown > a::before {
  color: #bde4ff;
}

.main-slider-one__content .title h2,
.sec-title :is(h1, h2),
.cta-one__inner .text-box h2,
.slogan-one__inner h2 {
  line-height: 1.35;
}

.features-one__single .text-box p,
.about-one__content .text p {
  color: var(--kr-muted);
  line-height: 1.7;
}

.footer-widget__single-about .text-box p {
  color: #ffffff;
  line-height: 1.7;
}

.footer-widget__single-newsletter .text-box a {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.footer-widget__single-newsletter .text-box a:hover,
.footer-widget__single-newsletter .text-box a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.social-naver-blog img {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
}

.mobile-nav__social a.social-naver-blog {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__contact li {
  align-items: flex-start;
  line-height: 1.7;
}

.mobile-nav__contact li > i {
  flex: 0 0 30px;
}

.mobile-nav__contact li a:hover,
.mobile-nav__contact li a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.header-one-social-links ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 헤더 채널 링크는 이름이 보이는 동일한 크기의 버튼으로 정렬합니다. */
.main-header-one .main-menu__list > li.dropdown > a,
.stricky-header--one .main-menu__list > li.dropdown > a {
  padding-right: 0;
}

.main-header-one .main-menu__list > li.dropdown > a::before,
.stricky-header--one .main-menu__list > li.dropdown > a::before {
  content: none;
}

.main-header-one__left .header-search-box {
  margin-left: 24px;
  padding-left: 24px;
}

.main-header-one__left .header-search-box::before {
  top: 6px;
  bottom: 6px;
}

.main-header-one__left .header-search-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.main-header-one__left .header-one-social-links {
  margin-left: 12px;
}

.header-one-social-links ul li {
  margin-right: 0;
}

.header-one-social-links ul li a.header-channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.header-one-social-links ul li a.header-channel-link:hover,
.main-header-one__left .header-search-box a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.header-one-social-links a.header-channel-link:focus-visible,
.main-header-one__left .header-search-box a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.footer-service-list li {
  margin-bottom: 14px;
}

.footer-service-list .text-box span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.footer-service-list .text-box p {
  margin: 0;
}

.footer-service-list .text-box a {
  font-weight: 600;
}

.counter-one__single .text-box .plus {
  font-size: 0.55em;
  margin-left: 2px;
}

@media (min-width: 1200px) {
  .counter-one--four .counter-one__single {
    width: 25%;
  }
}

@media (max-width: 991px) {
  .site-brand-text img,
  .logo-box-one .site-brand-text img {
    width: 168px;
  }
}

/* 사진은 기존 이미지 영역의 비율을 유지 */
.main-slider-one__img img,
.page-header__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-one__img1 img,
.about-one__img2 img,
.features-two__img img,
.portfolio-one__single-img img,
.services-details-img1 img {
  display: block;
  max-width: 100%;
  height: auto;
}

.testimonials-one__single .client-info .img-box .inner img {
  width: 115px;
  height: 115px;
  object-fit: cover;
}

.features-one__bg::before,
.slogan-one__bg::before,
.cta-one__bg::before {
  z-index: 0;
}

/* 상담 창구: 전화 · 문자 · 오픈카카오톡 */
.contact-channels--sidebar {
  position: fixed;
  z-index: 995;
  top: 50%;
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  width: 100px;
  padding: 6px;
  gap: 4px;
  transform: translate3d(0, calc(-50% + var(--contact-follow-offset, 0px)), 0);
  border: 1px solid var(--kr-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(18, 52, 82, 0.16);
}

.contact-channels--sidebar.is-following {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .contact-channels--sidebar {
    --contact-follow-offset: 0px !important;
  }
}

.contact-channels__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--kr-accent-dark);
  background: var(--kr-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.contact-channels__link:hover {
  color: var(--kr-accent-dark);
  background: var(--kr-soft);
  box-shadow: inset 0 0 0 1px var(--kr-border);
}

.contact-channels__link:focus-visible {
  outline: 3px solid #2466c2;
  outline-offset: 3px;
}

.contact-channels__link--phone,
.contact-channels__link--phone:hover {
  color: #fff;
  background: var(--kr-accent);
}

.contact-channels__link--phone:hover {
  background: var(--kr-accent-dark);
}

.contact-channels__link--kakao,
.contact-channels__link--kakao:hover {
  color: #35251a;
  background: #fee500;
}

.contact-channels__link--kakao:hover {
  background: #f2d900;
}

.contact-channels__icon {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.contact-channels__label,
.contact-channels__detail {
  display: block;
}

.contact-channels__label {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  white-space: nowrap;
}

.contact-channels__detail {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-channels--sidebar .contact-channels__link {
  flex-direction: column;
  gap: 8px;
  min-height: 86px;
  padding: 14px 3px;
}

.contact-channels--sidebar .contact-channels__label {
  font-size: 12px;
}

.contact-channels--sidebar .contact-channels__detail {
  display: none;
}

.contact-channels--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 24px;
}

.contact-channels--cards .contact-channels__link {
  min-height: 180px;
  flex-direction: column;
}

.contact-page__intro,
.contact-page__hours {
  text-align: center;
}

.contact-page__intro h2 {
  margin: 8px 0 16px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.4;
}

.contact-page__eyebrow {
  margin: 0;
  color: var(--kr-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.testimonials-one.testimonials-one--reviews {
  margin-top: 0;
  background: var(--thm-base);
}

.testimonials-one--reviews::before {
  display: none;
}

.testimonials-one--reviews .testimonials-one__left {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 0;
}

body:has(.mobile-nav__wrapper.expanded) .contact-channels--sidebar,
body:has(.search-popup.active) .contact-channels--sidebar {
  visibility: hidden;
}

@media (max-width: 767px) {
  .contact-channels--sidebar {
    top: auto;
    right: env(safe-area-inset-right, 0px);
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    width: 72px;
    padding: 4px;
    border-radius: 16px 0 0 16px;
    transform: translate3d(0, var(--contact-follow-offset, 0px), 0);
  }

  .contact-channels--sidebar .contact-channels__link {
    min-height: 68px;
    padding: 10px 0;
    gap: 5px;
    border-radius: 10px;
  }

  .contact-channels--sidebar .contact-channels__icon {
    font-size: 22px;
  }

  .contact-channels--sidebar .contact-channels__label {
    font-size: 10px;
  }

  .contact-channels--cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-channels--cards .contact-channels__link {
    min-height: 100px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    text-align: left;
  }

  .contact-page--channels {
    padding-right: 64px;
  }
}

@media (max-height: 500px) and (max-width: 767px) {
  .contact-channels--sidebar {
    top: 50%;
    bottom: auto;
    transform: translate3d(0, calc(-50% + var(--contact-follow-offset, 0px)), 0);
  }
}

/* 약관과 개인정보 안내 */
.footer-one__bottom-menu .footer-privacy-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-hero {
  padding: 190px 24px 58px;
  background: linear-gradient(125deg, var(--kr-accent-dark), var(--kr-accent-dark));
}

.legal-hero h1 {
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.4;
}

.legal-hero p {
  margin: 0;
  color: var(--kr-soft);
}

.legal-hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
}

.legal-content {
  padding: 64px 120px 88px 24px;
  background: #fff;
}

.legal-content .container {
  max-width: 1000px;
}

.legal-content p,
.legal-content li,
.legal-content dd {
  color: var(--kr-muted);
  font-size: 16px;
  line-height: 1.9;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content a {
  color: var(--kr-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:focus-visible {
  outline: 3px solid #2466c2;
  outline-offset: 4px;
}

.legal-intro {
  max-width: 780px;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 28px 0 48px;
  padding: 24px;
  border-radius: 16px;
  background: var(--kr-soft);
}

.legal-toc a {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-section {
  padding-bottom: 30px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--kr-border);
  scroll-margin-top: 160px;
}

.legal-section h2,
.legal-business h2 {
  margin: 0 0 18px;
  color: var(--kr-text);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.legal-section li + li {
  margin-top: 10px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.legal-table-wrap table {
  width: 100%;
  min-width: 530px;
  border-collapse: collapse;
  color: var(--kr-muted);
  font-size: 14px;
  line-height: 1.8;
}

.legal-table-wrap caption {
  caption-side: top;
  padding: 0 0 12px;
  color: var(--kr-text);
  font-weight: 600;
  text-align: left;
}

.legal-table-wrap th,
.legal-table-wrap td {
  padding: 14px 16px;
  border: 1px solid var(--kr-border);
  text-align: left;
  vertical-align: top;
}

.legal-table-wrap th {
  background: var(--kr-soft);
  color: var(--kr-text);
  font-weight: 700;
}

.legal-review-note {
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid #e7cd95;
  border-radius: 14px;
  background: #fff7e7;
}

.legal-review-note strong {
  display: block;
  margin-bottom: 10px;
  color: #60451b;
}

.legal-review-note p {
  color: #60451b;
  font-size: 14px;
}

.legal-review-note p:last-child {
  margin-bottom: 0;
}

.legal-business {
  padding: 26px;
  border-radius: 16px;
  background: var(--kr-soft);
}

.legal-business dl,
.legal-contact-details {
  margin-bottom: 20px;
}

.legal-business dl > div,
.legal-contact-details > div {
  margin-bottom: 14px;
}

.legal-business dt,
.legal-contact-details dt {
  color: var(--kr-text);
  font-size: 14px;
  font-weight: 700;
}

.legal-business dd,
.legal-contact-details dd {
  margin: 3px 0 0;
}

@media (max-width: 767px) {
  .legal-hero {
    padding: 160px 16px 42px;
  }

  .legal-content {
    padding: 36px calc(78px + env(safe-area-inset-right, 0px)) 56px 0;
  }

  .legal-content p,
  .legal-content li,
  .legal-content dd {
    font-size: 15px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 10px;
    margin-bottom: 36px;
  }

  .legal-business,
  .legal-review-note {
    padding: 18px;
  }

  .legal-section {
    scroll-margin-top: 110px;
  }
}

/* 개발 중 프리로더가 남는 경우 대비 */
.loader-wrap.loaded,
body.loaded .loader-wrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 닫힌 검색창은 화면·키보드 탐색에서도 숨깁니다. */
.search-popup {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.search-popup.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* 구름케어 블루 시안: 흰 바탕, 하늘색 여백, 깊은 블루 강조 */
::selection {
  background: #d9ebfc;
  color: var(--kr-text);
}

.main-slider-one .image-layer {
  background-color: #154872;
  background-blend-mode: luminosity;
}

.main-slider-one .image-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #103b60ed, #185b92c9);
}

.main-slider-one__content .text p {
  color: #e6f2ff;
}

.main-header-one .main-menu__list > li.current > a,
.main-header-one .main-menu__list > li:hover > a,
.main-header-one .main-menu__list > li.current.dropdown > a::before,
.main-header-one .main-menu__list > li:hover.dropdown > a::before,
.stricky-header--one .main-menu__list > li.current > a,
.stricky-header--one .main-menu__list > li:hover > a,
.stricky-header--one .main-menu__list > li.current.dropdown > a::before,
.stricky-header--one .main-menu__list > li:hover.dropdown > a::before {
  color: #bde4ff;
}

.features-one__bg::before {
  background: linear-gradient(90deg, #f3f8fd 0%, #f3f8fd 79%, #f3f8fd19 100%);
}

.counter-one {
  background: #fff;
}

.counter-one__single .inner {
  background: var(--kr-soft);
  border: 1px solid #deebf5;
}

.counter-one__single .inner::before {
  background: #dfeefe;
}

.counter-one__single .icon-box span::before,
.counter-one__single .text-box h2 {
  color: var(--kr-accent);
}

.counter-one__single .text-box p {
  color: var(--kr-text);
}

.testimonials-one.testimonials-one--reviews {
  background: #f3f8fd;
}

.testimonials-one--reviews :is(.sec-title :is(h1, h2), .testimonials-one__single h2) {
  color: var(--kr-text);
}

.testimonials-one--reviews .testimonials-one__single .client-info .text-box .text h2 {
  color: var(--kr-text);
}

.testimonials-one--reviews .testimonials-one__single > .icon span::before {
  color: #73a9d7;
}

.testimonials-one--reviews .sec-title .sub-title .text span,
.testimonials-one--reviews .client-info .text-box .text p {
  color: var(--kr-accent-dark);
}

.testimonials-one--reviews .sec-title .sub-title .text span::before {
  background: var(--kr-accent);
}

.footer,
.footer-one__bottom {
  background: #102f4d;
}

.footer-one__bottom {
  border-top: 1px solid #ffffff24;
}

.footer .footer-service-list li .text-box span {
  color: #c1d4e7;
}

.page-header__service-area {
  max-width: 600px;
  margin: 0 0 18px;
  color: #e5f2ff;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.7;
}

.sec-title .service-area-title {
  display: block;
  white-space: nowrap;
}

.footer-widget__single-about .text-box .footer-service-area {
  margin-top: 16px;
  color: #c1dfff;
  font-weight: 650;
}

.case-editor-panel #case-editor > fieldset > .case-help {
  margin: -8px 0 20px;
}

.footer__pattern,
.footer > :is(.shape1, .shape2) {
  filter: grayscale(1);
}

.legal-hero {
  background: linear-gradient(125deg, #174b7b, #185b92);
}
