/* 라이트만 지원 선언 (UA 자동 다크 방지용) */
:root { color-scheme: light only; }

/* OS가 다크여도 우리 페이지는 라이트 유지 */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light only !important; }

  /* 핵심 영역은 확실한 라이트 배경으로 고정 */
  html, body { background:#ffffff !important; color:#111 !important; }

  /* 네 사이트 구조에 맞춰 추가: 반투명/블러가 있으면 어둡게 보여서 라이트 고정 */
  header, .global-header, .global-nav, .site-nav,
  .hero, .hero-overlay, .cd-pricing-hero,
  .cd-card, .cd-result {
    background:#ffffff !important;
    /* 혹시 배경에 반투명/그라데이션을 쓰면 여기서 라이트 값으로 재정의 */
  }

  /* 자동 다크가 이미지/비디오에 필터를 먹일 때 해제 */
  html { filter: none !important; }
  img, picture, video, canvas { filter: none !important; }
}


/* ===== Footer Base ===== */
.cd-footer {
  background: #fff;
  border-top: 8px solid #0066f5;
  padding: clamp(24px, 4vw, 48px) 16px 0;
}

/* 푸터 전체 가운데 정렬 */
.cd-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-top: clamp(5px, 1.2vw, 9px);
}

/* 로고 + 타이틀 묶음 */
.cd-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* 로고 크기 */
.cd-footer__logo {
  width: clamp(90px, 10vw, 145px);
  height: auto;
  display: block;
}

/* 타이틀 묶음 (세로정렬) */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}





/* 타이틀 */
.cd-footer__title {
    font-family: "GimpoTitle" ;
    font-size: clamp(50px, 6vw, 80px) ;
    font-weight: 600 ;
    color: #0066f5 ;
    margin: 0 ;
    line-height: 1.2 ;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 서브타이틀 */
.cd-footer__subtitle {
    font-family: "GimpoTitle" ;
    font-size: clamp(17px, 2vw, 26px) ;
    font-weight: 500 ;
    color: #0066f5 ;
    margin: 2px 0 0 ;
    line-height: 1.1 ;
}

/* 주소/연락처 정보 */
.cd-footer__info {
  font-family: "AritaDotum";
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  color: #333;
  margin: 0;
}

/* 메일 링크 스타일 */
.cd-footer .cd-footer__info a[href^="mailto:"] {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
  cursor: default;
}
.cd-footer .cd-footer__info a[href^="mailto:"]:hover,
.cd-footer .cd-footer__info a[href^="mailto:"]:focus,
.cd-footer .cd-footer__info a[href^="mailto:"]:active {
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* ===== Footer Helper (정중앙 보정) ===== */
.cd-footer__helper {
  width: 100%;
  border-top: 4px solid #0066f5;
  border-bottom: 4px solid #0066f5;
  margin: clamp(16px, 3vw, 28px) 0 clamp(80px, 10vw, 200px);
  padding: 16px 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 좌/중/우 */
  align-items: center;
  column-gap: clamp(8px, 2vw, 24px);
}

/* 좌측 Legal */
.cd-footer__legal {
  grid-column: 1;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 0 20px;
}
.cd-footer__link {
  font-family: "AritaDotum";
  font-size: clamp(14px, 1.9vw, 20px);
  font-weight: 500;
  color: #616161;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap; /* 줄바꿈 방지 */
}

/* 중앙 Center */
.cd-footer__center {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap; /* 줄바꿈 방지 */
}
.cd-footer__copy {
  font-family: "AritaDotum";
  font-size: clamp(14px, 1.9vw, 20px);
  font-weight: 700;
  color: #616161;
  margin: 0;
}
.cd-footer__slogan {
  font-family: "Yeongdeok Sea";
  font-size: clamp(15px, 1.9vw, 21px);
  font-weight: 500;
  color: #616161;
  margin: 0;
}

/* 우측 Social */
.cd-footer__social {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: clamp(1px, 2.2vw, 8px);
  align-items: center;
  padding: 0 20px;
}
.cd-footer__social-img {
  width: clamp(40px, 10vw, 100px);
  height: auto;
  padding: clamp(1px, 1vw, 5px);
  cursor: pointer;
}

/* ===== Responsive (태블릿/모바일: 세로 정렬) ===== */
@media (max-width: 900px) {
  .cd-footer__helper {
    grid-template-columns: 1fr;
    row-gap: 12px;
    justify-items: center;
    text-align: center;
  }
  .cd-footer__legal,
  .cd-footer__center,
  .cd-footer__social {
    grid-column: auto;
    justify-self: center;
    align-items: center;
    padding: 0;
  }
  .cd-footer__social {
    flex-direction: row; /* 아이콘 가로 정렬 */
  }
}

/* ==== Footer 면역 패치 ==== */
.cd-footer .cd-footer__title {
  font-family: "GimpoTitle" ;
  font-size: clamp(50px, 6vw, 80px) ;
  font-weight: 600 ;
  color: #0066f5 ;
  margin: 0 ;
  line-height: 1.2 ;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.cd-footer .cd-footer__subtitle {
  font-family: "GimpoTitle" ;
  font-size: clamp(17px, 2vw, 26px) ;
  font-weight: 500 ;
  color: #0066f5 ;
  margin: 2px 0 0 ;
  line-height: 1.1 ;
}


/* 전체 레이아웃에서 가로 스크롤 방지 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  