/*
  광고주 랜딩페이지 공통 디자인 시스템.

  새 광고주 작업 시 손대야 하는 곳은 :root 안의 색상 값뿐입니다.
  --primary-*  : 배경/구조/신뢰감을 담당하는 메인 브랜드 컬러 (업종에 맞는 톤으로 교체)
  --accent-*   : 모든 CTA 버튼과 하단 고정바에 쓰이는 액션 컬러. 반드시 --primary와
                 대비되는 색으로 골라야 버튼이 눈에 띈다.
  --navy / --gray-600 / --gray-300 / --danger / --radius / --max-width은
  구조적인 값이라 보통 건드릴 필요 없음.

  섹션 순서(헤더 → 히어로 → 자가진단 체크리스트 → 강점 → 프로세스 → 유형별 안내 →
  상담폼 → 푸터 → 하단 고정 CTA)와 클래스 이름은 캠페인마다 동일하게 유지한다.
  이 파일의 구조 자체는 웬만하면 수정하지 말고, index.html의 텍스트/색상 값만 교체할 것.
*/

:root {
  --primary-900: #0a1f3c;
  --primary-700: #14345e;
  --primary-600: #1c4a80;
  --primary-500: #3a6ba5;
  --primary-100: #dde6f2;
  --primary-50: #f2f6fb;
  --accent-600: #a67c1a;
  --accent-700: #856214;
  --accent-100: #f6ecd2;
  --navy: #0d2039;
  --gray-600: #46566b;
  --gray-300: #d8e2ea;
  --white: #ffffff;
  --danger: #d64545;
  --radius: 14px;
  --max-width: 560px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 한글이 단어 중간에서 끊기지 않고 어절 단위로 줄바꿈되도록 한다.
     overflow-wrap:anywhere는 공백 없는 긴 문자열(예: `·`로 이은 목록)이
     넘칠 때만 강제 줄바꿈해 잘림을 막는다(min-content도 줄여 grid 칸이 수축). */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 900;
}

p {
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
}

/* 로고 파일이 아직 없을 때 쓰는 텍스트 대체.
   깨진 이미지 아이콘을 보여주느니 업체명을 제대로 조판해서 보여준다.
   로고를 확보하면 img로 교체하면 되고, 그때 이 클래스는 안 쓰인다. */
.logo-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-700);
  letter-spacing: -0.4px;
}

.hero-logo-text {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary-700);
  letter-spacing: -0.8px;
}

.footer-logo-text {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-600);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px;
}

.section h2 {
  font-size: 27px;
  text-align: center;
  color: var(--navy);
  letter-spacing: -0.6px;
  line-height: 1.35;
}

.section-desc {
  margin-top: 12px;
  text-align: center;
  color: var(--gray-600);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 20px 44px;
  background: linear-gradient(180deg, var(--primary-100) 0%, #ffffff 100%);
  text-align: center;
}

.hero-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-logo-img {
  height: 46px;
  width: auto;
}

.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge {
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
}

.badge-accent {
  background: var(--accent-100);
  color: var(--accent-700);
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.hero h1 {
  font-size: 32px;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.8px;
}

.hero-sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

.hero-sub strong {
  color: var(--primary-700);
  font-weight: 800;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-cta-note {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ffd98a;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero-trust {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: var(--primary-900);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-600);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: var(--accent-700);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Checklist ---------- */
.checklist-section {
  background: var(--primary-50);
  border-radius: 24px;
  max-width: calc(var(--max-width) + 40px);
}

.checklist {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-300);
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-item input {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary-600);
  flex-shrink: 0;
}

.check-item:has(input:checked) {
  border-color: var(--primary-600);
  background: var(--primary-100);
  font-weight: 700;
}

.checklist-result {
  margin-top: 24px;
  padding: 22px 20px;
  background: var(--white);
  border-radius: 14px;
  text-align: center;
  border: 1.5px solid var(--gray-300);
}

#checklistMsg {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.5;
}

#checklistMsg.warn {
  color: var(--danger);
}

/* ---------- Factsheet ----------
   자가진단 체크리스트 자리를 대신하는 "핵심 정보 요약". 분양·상품형처럼 증상이
   없는 업종에서 방문자가 가장 먼저 확인하려는 사실(위치·규모·평형·일정·가격)을
   한눈에 보여준다. 체크리스트와 같은 자리, 같은 역할(관여 → CTA)이다. */
.factsheet {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  overflow: hidden;
}

.fact-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  background: var(--white);
  padding: 15px 18px;
  align-items: baseline;
}

.fact-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-700);
  letter-spacing: -0.2px;
}

.fact-value {
  min-width: 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.55;
}

/* ---------- Strengths ---------- */
.strength-grid {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.strength-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.strength-card:hover {
  border-color: var(--primary-500);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.strength-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.strength-card h3 {
  font-size: 17.5px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.strength-card p {
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Process ---------- */
.process-section {
  background: var(--primary-900);
  border-radius: 24px;
  max-width: calc(var(--max-width) + 40px);
  color: var(--white);
}

.process-section h2 {
  color: var(--white);
}

.process-section .section-desc {
  color: #b9d4ec;
}

.process-steps {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.process-step h3 {
  font-size: 17px;
  letter-spacing: -0.2px;
}

.process-step p {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #d3e6fa;
}

/* ---------- Types ---------- */
.type-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.type-card {
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--primary-50);
  border: 1px solid var(--gray-300);
}

.type-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-700);
}

.type-card p {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray-600);
}

/* ---------- Form ---------- */
.form-section {
  background: var(--primary-50);
  border-radius: 24px;
  max-width: calc(var(--max-width) + 40px);
  margin-bottom: 40px;
}

.lead-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
}

.req {
  color: var(--danger);
}

.form-row input[type="text"],
.form-row input[type="tel"] {
  padding: 15px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-300);
  font-size: 16px;
  background: var(--white);
  font-family: inherit;
}

.form-row input:focus {
  outline: none;
  border-color: var(--primary-600);
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}

.radio-item input {
  accent-color: var(--primary-600);
  width: 16px;
  height: 16px;
}

.radio-item:has(input:checked) {
  border-color: var(--primary-600);
  background: var(--primary-100);
  font-weight: 700;
}

.form-notice {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* 필수 개인정보 동의 — 사용자가 직접 체크해야 신청 가능(사전 체크 금지). */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-600);
  flex-shrink: 0;
}

.form-msg {
  font-size: 14.5px;
  text-align: center;
  min-height: 18px;
}

.form-msg.success {
  color: #147a3f;
  font-weight: 700;
}

.form-msg.error {
  color: var(--danger);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9bdd1;
  padding: 36px 20px 104px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.85;
}

/* 로고가 어떤 색이든 읽히도록 항상 흰 칩 위에 올린다 (푸터 배경은 짙은 navy). */
.footer-logo-chip {
  display: inline-flex;
  background: var(--white);
  padding: 9px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 26px;
  width: auto;
}

.footer-copy {
  margin-top: 10px;
  color: #6f88a0;
}

/* ---------- Sticky bottom CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 17px 0;
  font-size: 16px;
  font-weight: 800;
}

.sticky-form {
  background: var(--accent-600);
  color: var(--white);
}

/* ---------- Responsive (tablet/desktop) ---------- */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .btn {
    width: auto;
  }

  .strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   양산 힐스테이트 더 스카이 캠페인 전용 스타일
   (히어로 배경 이미지 · D-day 배너 · 입지 지도 · 상담원 이미지)
   공통 구조는 위쪽 그대로 두고, 이 캠페인에만 필요한 것들을 여기 모았다.
   ========================================================================== */

/* ---------- 히어로 배경 이미지 + 가독성 스크림 ---------- */
.hero.hero--photo {
  position: relative;
  background: linear-gradient(
      180deg,
      rgba(6, 16, 34, 0.62) 0%,
      rgba(6, 16, 34, 0.35) 42%,
      rgba(6, 16, 34, 0.82) 100%
    ),
    url("hero.jpg") center 32% / cover no-repeat;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

/* 이미지 위에서는 어두운 배경이므로 텍스트를 밝게 뒤집는다. */
.hero--photo .hero-logo-text {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero--photo h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero--photo .hero-sub {
  color: #e6eef8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero--photo .hero-sub strong {
  color: #f6d68b;
}

.hero--photo .hero-trust {
  color: #ffffff;
}

.hero--photo .hero-trust li {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- D-day / 마감 임박 배너 ---------- */
.dday-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: linear-gradient(135deg, #c0392b, #e0592b);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 24px;
  box-shadow: 0 12px 28px rgba(192, 57, 43, 0.42);
}

.dday-flag {
  flex-shrink: 0;
  align-self: flex-start;
  background: #ffffff;
  color: #c0392b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.2px;
  padding: 5px 11px;
  border-radius: 999px;
  animation: ddayPulse 1.4s ease-in-out infinite;
}

@keyframes ddayPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dday-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dday-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.dday-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dday-label {
  color: #ffe3d6;
  font-size: 12.5px;
  font-weight: 700;
}

.dday-num {
  background: rgba(0, 0, 0, 0.24);
  color: #ffd98a;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 3px 12px;
  border-radius: 8px;
}

/* ---------- 핵심 정보: 강조 행 ---------- */
.fact-row--hot {
  background: var(--accent-100);
}

.fact-row--hot .fact-value,
.fact-row--hot .fact-value strong {
  color: var(--accent-700);
  font-weight: 800;
}

/* ---------- 단지 투시도 갤러리 ---------- */
.render-gallery {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.render-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  box-shadow: 0 8px 22px rgba(10, 31, 60, 0.12);
  background: var(--white);
}

.render-item img {
  width: 100%;
  height: auto;
  display: block;
}

.render-item figcaption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
}

/* ---------- 입지 · 생활 인프라 섹션 ---------- */
.location-map {
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  box-shadow: 0 8px 22px rgba(10, 31, 60, 0.1);
  background: #eef4fa;
}

.location-map img {
  width: 100%;
  height: auto;
}

.location-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.location-list strong {
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 800;
}

.loc-ico {
  font-size: 22px;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ---------- 세대 안내: 강조 카드 ---------- */
.type-card--hot {
  background: var(--accent-100);
  border-color: var(--accent-600);
}

.type-card--hot h3 {
  color: var(--accent-700);
}

/* ---------- 상담원 상담 이미지 ---------- */
.consult-visual {
  margin: 0 auto 20px;
  max-width: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 31, 60, 0.2);
}

.consult-visual img {
  width: 100%;
  height: auto;
}
