/* =========================================================
   오디산업 — 테마 색상은 아래 변수에서 한 번에 관리합니다.
   그린(선명) + 앰버 포인트 + 화이트,  로고는 원본 세이지 유지
   ========================================================= */
:root {
  --brand:        #2f5d49;   /* 딥 에메랄드 (차분·고급) */
  --brand-dark:   #234838;   /* 짙은 그린 (호버/강조) */
  --brand-deep:   #143229;   /* 아주 짙은 그린 (섹션 배경) */
  --brand-light:  #e6ede8;   /* 옅은 그린 틴트 */
  --brand-050:    #f4f1ea;   /* 크림빛 섹션 배경 */

  --accent:       #b28a4e;   /* 뮤트 브라스/골드 포인트 */
  --accent-dark:  #8f6d39;   /* 골드 텍스트/호버 */
  --accent-light: #f2ecdf;   /* 옅은 골드 틴트 */

  --logo:         #58645c;   /* 로고 전용 원본 세이지 */

  --paper:        #faf8f3;   /* 웜 오프화이트 페이지 배경 */
  --white:        #ffffff;   /* 카드 배경 */

  --ink:          #1a2620;   /* 기본 진한 텍스트 */
  --ink-soft:     #5b665f;   /* 보조 텍스트 */
  --line:         #e5e1d7;   /* 웜 그레이 경계선 */

  --radius:       14px;
  --radius-sm:    10px;
  --shadow:       0 18px 44px rgba(26, 38, 32, 0.09);
  --shadow-sm:    0 6px 18px rgba(26, 38, 32, 0.06);
  --maxw:         1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;      /* 한글 단어가 줄 끝에서 중간에 끊기지 않도록 */
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 93, 73, 0.24);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand);
}
.btn-ghost:hover { background: var(--brand-light); }
.btn-block { width: 100%; }

/* CTA 강조 펄스 (링이 퍼지는 효과) */
@keyframes ctaPulse {
  0%   { box-shadow: 0 10px 24px rgba(47, 93, 73, .24), 0 0 0 0 rgba(47, 93, 73, .5); }
  70%  { box-shadow: 0 10px 24px rgba(47, 93, 73, .24), 0 0 0 16px rgba(47, 93, 73, 0); }
  100% { box-shadow: 0 10px 24px rgba(47, 93, 73, .24), 0 0 0 0 rgba(47, 93, 73, 0); }
}
.cta-pulse { animation: ctaPulse 2s ease-out infinite; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 40px; height: 40px;
  display: block;
  flex-shrink: 0;
}
.brand-name { font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .brand-name { font-size: 1.32rem; letter-spacing: -0.01em; }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav a { position: relative; transition: color .2s ease; }
.nav a:hover { color: var(--brand-dark); }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--brand);
  transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.header-cta { padding: 10px 20px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--brand-050), var(--paper));
  padding: 92px 0 84px;
  overflow: hidden;
}
.eyebrow {
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-sub { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: 54px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; color: var(--accent-dark); letter-spacing: -0.02em; }
.hero-stats span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--brand-050); }

/* 회사 강점: 짙은 그린 배경으로 명암 대비 (깊이감) */
#why {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand-deep));
  color: #fff;
}
#why .section-head h2 { color: #fff; }
#why .eyebrow { color: var(--accent); }
#why .feature {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
#why .feature h3 { color: #fff; }
#why .feature p { color: rgba(255, 255, 255, 0.78); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-head h2::after {   /* 고급스러운 골드 헤어라인 */
  content: "";
  display: block;
  width: 42px; height: 2px;
  margin: 16px auto 0;
  background: var(--accent);
  opacity: 0.9;
}
.section-desc { color: var(--ink-soft); }

/* ---------- 핵심 강조 카드 (지원금 / 직접 계약) ---------- */
.highlights { position: relative; z-index: 2; margin-top: -26px; padding-bottom: 6px; }
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.hl-card {
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.hl-card--dark {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}
.hl-card--gold {
  background: var(--accent-light);
  border: 1px solid #e8dabf;
  color: var(--ink);
}
.hl-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 16px;
}
.hl-icon svg { width: 27px; height: 27px; }
.hl-card--dark .hl-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent);
}
.hl-card--gold .hl-icon {
  background: #fff;
  border: 1px solid #e8dabf;
  color: var(--accent-dark);
}
.hl-eyebrow {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 8px;
}
.hl-card--dark .hl-eyebrow { color: var(--accent); }
.hl-card--gold .hl-eyebrow { color: var(--accent-dark); }
.hl-card h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.hl-card--dark h3 { color: #fff; }
.hl-card--dark h3 strong { color: var(--accent); }
.hl-card--gold h3 strong { color: var(--brand); }
.hl-desc { margin-top: 8px; font-size: 0.98rem; }
.hl-card--dark .hl-desc { color: rgba(255, 255, 255, 0.82); }
.hl-card--gold .hl-desc { color: var(--ink-soft); }
.hl-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.hl-points li {
  display: flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 0.92rem;
}
.hl-points li::before { content: "✓"; font-weight: 800; }
.hl-card--dark .hl-points li { color: rgba(255, 255, 255, 0.92); }
.hl-card--dark .hl-points li::before { color: var(--accent); }
.hl-card--gold .hl-points li { color: var(--ink); }
.hl-card--gold .hl-points li::before { color: var(--brand); }
.hl-link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}
.hl-link:hover { text-decoration: underline; }
.hl-link--gold { color: var(--accent-dark); }
.hl-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8dabf;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hl-note svg { width: 20px; height: 20px; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px; }
.hl-note strong { color: var(--ink); }
/* 딥그린 카드용 노트 */
.hl-card--dark .hl-note {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}
.hl-card--dark .hl-note svg { color: var(--accent); }
.hl-card--dark .hl-note strong { color: #fff; }

@media (max-width: 820px) {
  .highlights-grid { grid-template-columns: 1fr; }
}

/* 메리트 바 (당일 방문 / 시간 / 지역) */
.merit-bar {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.merit { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.merit + .merit { border-left: 1px solid var(--line); }
.merit-ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
}
.merit-ic svg { width: 22px; height: 22px; }
.merit strong { display: block; font-size: 1.02rem; color: var(--ink); }
.merit span { font-size: 0.88rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .merit-bar { grid-template-columns: 1fr; }
  .merit + .merit { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- 서비스 카드 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 13px;
  margin-bottom: 20px;
}
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); line-height: 1.62; margin-bottom: 20px; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.card-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.4;
}
.card-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.05em;
  color: var(--brand);
  font-weight: 800;
}
/* 카드마다 문단 줄 수가 달라도 체크리스트 시작 높이를 맞춤 */
@media (min-width: 901px) {
  .card p { min-height: 6.5em; }
}

/* ---------- 강점 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-num {
  font-size: 1rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-soft); }

/* ---------- 진행 과정 ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}
.step-no {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 문의 (CTA) ---------- */
.section-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-text .eyebrow { color: var(--accent); }
.contact-text h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.contact-text > p { color: rgba(255, 255, 255, 0.9); margin-bottom: 26px; }
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-info li {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.05rem;
}
.contact-info span {
  min-width: 74px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 93, 73, 0.2);
}
.contact-form textarea { resize: vertical; }

/* 문의 유형 - 중복 선택 칩 */
.type-field { display: flex; flex-direction: column; gap: 8px; }
.type-label { font-weight: 600; font-size: 0.92rem; }
.type-label em {
  font-style: normal; font-weight: 500;
  color: var(--ink-soft); font-size: 0.85rem; margin-left: 4px;
}
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form .check-chip { display: inline-flex; gap: 0; font-weight: 500; cursor: pointer; }
.check-chip input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0;
}
.check-chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdfe;
  color: var(--ink);
  font-size: 0.94rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.check-chip:hover span { border-color: var(--brand); }
.check-chip input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 93, 73, 0.2); }

/* 인라인 달력 (희망 방문 / 철거 일정 - 클릭·드래그 선택) */
.cal {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
  background: #fff;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 700; font-size: 0.98rem; }
.cal-nav {
  width: 30px; height: 30px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ink);
  transition: border-color .15s ease, color .15s ease;
}
.cal-nav:hover { border-color: var(--brand); color: var(--brand); }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); }
.cal-days { touch-action: none; user-select: none; }
.cal-day {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border: none; background: transparent; border-radius: 8px;
  font: inherit; font-size: 0.9rem; color: var(--ink);
  cursor: pointer;
}
.cal-day.cal-empty { visibility: hidden; cursor: default; }
.cal-day.cal-past { color: #c4c9c5; cursor: default; }
.cal-day:not(.cal-past):not(.cal-empty):hover { background: var(--brand-light); }
.cal-day.is-sel { background: var(--brand); color: #fff; }
.cal-selected { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.cal-selected strong { color: var(--brand-dark); }

/* 기타 선택 시 나타나는 입력칸 */
.etc-input { display: none; width: 100%; }

/* 숫자 + 단위 접미사 */
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix input { flex: 1; }
.input-suffix em { font-style: normal; font-weight: 600; color: var(--ink-soft); }
/* 개인정보 수집·이용 동의 */
.consent-field { display: flex; flex-direction: column; gap: 8px; }
.consent-details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  font-size: 0.88rem;
}
.consent-details summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.consent-details summary::-webkit-details-marker { display: none; }
.consent-details summary::after { content: '＋'; float: right; color: var(--ink-soft); }
.consent-details[open] summary::after { content: '－'; }
.consent-details ul {
  margin: 0; padding: 0 14px 12px;
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--ink-soft); line-height: 1.5;
}
.consent-details ul strong {
  display: inline-block; min-width: 68px;
  color: var(--ink); font-weight: 600;
}
.contact-form .consent-check {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  cursor: pointer; font-weight: 500;
}
.consent-check input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0;
}
.consent-check > span {
  flex: none;
  width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fbfdfe;
  display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.consent-check > span::after {
  content: '';
  width: 6px; height: 11px;
  margin-top: -2px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.consent-check input:checked + span { background: var(--brand); border-color: var(--brand); }
.consent-check input:checked + span::after { transform: rotate(45deg) scale(1); }
.consent-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 93, 73, 0.2); }
.consent-check em { font-style: normal; font-size: 0.92rem; color: var(--ink); }
.consent-check em strong { color: var(--brand-dark); font-weight: 700; }

.form-note {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
  text-align: center;
}
.form-note.is-success { color: var(--brand-dark); }
.form-note.is-error   { color: #c0392b; }

/* ---------- 마무리 CTA 밴드 ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band .eyebrow { color: var(--accent); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.cta-band-text > p { color: rgba(255, 255, 255, 0.9); max-width: 520px; }
.cta-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: var(--brand-deep); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 1.12rem;
}
.cta-phone svg { width: 18px; height: 18px; color: var(--accent); }
.cta-phone:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .cta-band-actions { align-items: stretch; width: 100%; }
  .btn-lg { width: 100%; }
}

/* ---------- 문의 팝업 (모달) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 26, 21, 0.55);
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modalIn .25s cubic-bezier(.2, .7, .2, 1);
}
.modal-dialog h2 { font-size: 1.6rem; letter-spacing: -0.01em; }
.modal-sub { color: var(--ink-soft); margin: 8px 0 20px; font-size: 0.98rem; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--brand-050); color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--brand-light); color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
/* 모달 안의 폼은 카드 스타일 제거 (다이얼로그가 컨테이너 역할) */
.modal .contact-form { background: none; padding: 0; box-shadow: none; border-radius: 0; }
body.modal-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 플로팅 문의 버튼 ---------- */
.fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 120;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 18px 30px;
  border: none; border-radius: 999px;
  background: var(--accent); color: var(--brand-deep);
  font: inherit; font-weight: 800; font-size: 1.12rem;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(178, 138, 78, 0.5);
  transition: transform .18s ease, background .2s ease, color .2s ease;
}
.fab:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.fab svg { width: 26px; height: 26px; }
@media (max-width: 560px) {
  .fab span { display: none; }
  .fab { padding: 18px; }
  .fab svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { animation: none; }
  .fab { transition: none; }
  .cta-pulse { animation: none; }
}

/* ---------- 시공 사례 갤러리 ---------- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.gtab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gtab:hover { border-color: var(--brand); color: var(--brand-dark); }
.gtab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.gallery-carousel { position: relative; }
.gallery-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox 스크롤바 숨김 */
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.ba-item {
  margin: 0;
  flex: 0 0 calc(50% - 12px);     /* 데스크톱: 한 번에 2개 */
  scroll-snap-align: start;
}
.ba-item[hidden] { display: none; }
.ba-item figcaption {
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* 좌우 이동 버튼 */
.gcar-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gcar-btn:hover { color: var(--brand-dark); border-color: var(--brand); }
.gcar-prev { left: -12px; }
.gcar-next { right: -12px; }

/* 하단 점 인디케이터 */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.gdot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.gdot.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--brand);
}

.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;   /* 세로 스크롤 허용, 가로 드래그는 비교 슬라이더가 사용 */
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }

.ba-tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  background: rgba(31, 38, 34, 0.62);
  z-index: 3;
  pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after  { right: 12px; }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(31, 38, 34, 0.12);
}
.ba-handle::before {   /* 손잡이 원 */
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 38, 34, 0.3);
}
.ba-handle::after {    /* 좌우 화살표 */
  content: "\2039 \203A";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 1.05rem;
}
.ba-range {   /* 키보드 접근용 (마우스/터치는 컨테이너 드래그로 처리) */
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .ba-item { flex-basis: 100%; }      /* 모바일: 한 번에 1개 */
  .gcar-prev { left: 4px; }
  .gcar-next { right: 4px; }
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}
.site-footer .brand-name { color: var(--white); }
.site-footer p { font-size: 0.92rem; }

.footer-biz {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}
.footer-biz li { display: flex; gap: 10px; }
.footer-biz span {
  min-width: 104px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.footer-biz a:hover { text-decoration: underline; }

.copyright {
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}

/* ---------- 스크롤 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 텍스트 강조 (컬러 포인트 / 형광펜) ---------- */
/* 컬러 포인트: 화면에 들어오면 밑줄이 좌→우로 그려짐 */
.hl {
  display: inline-block;
  position: relative;
  font-weight: 800;
  color: var(--brand-dark);
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}
.in .hl::after   { animation: underlineDraw .6s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
.hero .hl::after { animation: underlineDraw .6s cubic-bezier(.4, 0, .2, 1) .5s forwards; }
@keyframes underlineDraw { to { transform: scaleX(1); } }

/* 형광펜: 스크롤 시 좌→우로 그려지고, 빛이 한 번 지나감 */
.marker {
  position: relative;
  padding: 0 3px;
  font-weight: 700;
  background-image: linear-gradient(transparent 58%, var(--brand-light) 58%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .7s cubic-bezier(.4, 0, .2, 1) .15s;
}
.marker::after {                 /* 하이라이트 위를 지나가는 빛 글린트 */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}
.in .marker,
.hero .marker { background-size: 100% 100%; }
.in .marker::after,
.hero .marker::after { animation: markerShine 1s ease .8s 1 forwards; }
@keyframes markerShine {
  0%   { transform: translateX(-130%); opacity: 1; }
  100% { transform: translateX(130%);  opacity: 1; }
}

/* 어두운 배경(문의 섹션)용 밝은 형광펜 */
.marker-light {
  color: #fff;
  background-image: linear-gradient(transparent 58%, rgba(255, 255, 255, 0.3) 58%);
}

/* ---------- 히어로 등장 애니메이션 (로드 시 순차) ---------- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow,
.hero-sub,
.hero-actions,
.hero-stats {
  opacity: 0;
  animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero .eyebrow { animation-delay: .05s; }
.hero-sub      { animation-delay: .30s; }
.hero-actions  { animation-delay: .44s; }
.hero-stats    { animation-delay: .58s; }

/* 히어로 제목: 타이핑 효과 (높이 미리 확보해 레이아웃 흔들림 방지) */
.hero-title { min-height: 2.4em; }
.hero-title .accent { color: var(--brand); }
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 3px;
  background: var(--brand);
  vertical-align: -0.08em;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 히어로 배경 은은한 움직임 */
.hero-inner { position: relative; z-index: 1; }

/* ---------- 카드 아이콘 미세 모션 ---------- */
.card-icon { transition: background .25s ease, color .25s ease; }
.card:hover .card-icon { background: var(--brand); color: #fff; }

/* ---------- 헤더 스크롤 시 그림자 ---------- */
.site-header.scrolled { box-shadow: 0 6px 20px rgba(31, 38, 34, 0.08); }

/* 통계 숫자 카운트업 중 폭 흔들림 방지 */
.hero-stats strong { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-stats {
    opacity: 1; animation: none;
  }
  .hero::before { animation: none; }
  .marker { transition: none; background-size: 100% 100%; }
  .marker::after { display: none; }
  .hl::after { animation: none; transform: scaleX(1); }
}
