﻿:root {
  --primary: #7f1d1d;
  --primary-light: #a52a2a;
  --accent: #d4a93c;
  --accent-light: #f3dd8e;
  --text: #111827;
  --text-secondary: #4b5563;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 16px;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}

.container { width: min(var(--max-width), 92%); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo { font-size: 1.25rem; font-weight: 900; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.header-tel a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Header nav — 허브(드롭다운) 3개 + 모바일 햄버거 */
.header-inner { position: relative; }
.site-nav { display: flex; gap: 30px; align-items: center; }
.nav-group { position: relative; }
.nav-hd { font-weight: 700; font-size: 0.92rem; color: var(--text); cursor: pointer; padding: 10px 0; display: inline-flex; align-items: center; gap: 5px; }
.nav-hd::after { content: "▾"; font-size: 0.7em; color: var(--accent); }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,0.12); min-width: 190px; padding: 8px 0; display: none; z-index: 120; }
.nav-group:hover .nav-sub { display: block; }
.nav-sub a { display: block; padding: 10px 18px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.nav-sub a:hover { background: var(--bg-light); color: var(--primary); }
.nav-toggle { display: none; background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 8px 13px; font-size: 1.25rem; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .header-tel { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 14px; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
  .site-nav.open { display: flex; }
  .nav-group { width: 100%; }
  .nav-hd { width: 100%; padding: 13px 0 8px; border-bottom: 1px solid var(--bg-light); font-size: 0.98rem; }
  .nav-hd::after { margin-left: auto; }
  .nav-sub { position: static; transform: none; display: block; box-shadow: none; border: none; padding: 4px 0 10px 14px; min-width: 0; }
  .nav-sub a { padding: 8px 0; font-size: 0.92rem; }
}

/* Hero */
.hero {
  padding: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.hero-text { padding: 64px 0 48px; align-self: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.hero-img {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 100%;
}
.hero-img img {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
  display: block;
  margin: 0;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1e293b; box-shadow: 0 8px 24px rgba(201,162,39,0.35); }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-sms { background: var(--primary-light); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Section common */
.section { padding: 56px 0; }
.bg-light { background: var(--bg-light); }
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--primary);
}
.section-sub { color: var(--text-secondary); margin-bottom: 28px; }

/* H1 단어 중간 끊김 방지(균형 줄바꿈과 함께) */
.hero h1, .content h1 { word-break: keep-all; overflow-wrap: break-word; }

/* SEO 섹션 */
.seo-list { list-style: none; margin: 0; padding: 0; }
.seo-list li { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); line-height: 1.6; }
.seo-list li a { color: var(--primary); text-decoration: none; }
.seo-list li a:hover { text-decoration: underline; }
.seo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-chip { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 600; transition: all 0.15s ease; }
.seo-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Topic sections (flow / myth) */
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.flow-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.flow-list .step-no { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.flow-list li strong { color: var(--text); }
.myth-list { display: grid; gap: 14px; max-width: 820px; }
.myth { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--accent, #d4a93c); border-radius: 10px; padding: 16px 18px; }
.myth-q { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.myth-a { color: var(--muted, #555); }

/* Image tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.tile-cta { background: var(--primary); border-color: var(--primary); display: flex; align-items: center; justify-content: center; min-height: 260px; }
.tile-cta-inner { text-align: center; color: #fff; padding: 24px; }
.tile-cta-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.tile-cta-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.tile-cta-phone { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.5px; color: var(--accent-light); margin-bottom: 10px; }
.tile-cta-sub { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.5; }
.tile-cta:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.tile-body { padding: 18px; }
.tile-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(30,58,95,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tile-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.tile-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* Horizontal scroll variant */
.card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }
.card-row .tile { flex: 0 0 220px; scroll-snap-align: start; }

/* Content */
.content h2 { font-size: 1.35rem; color: var(--primary); margin: 32px 0 12px; }
.content h3 { font-size: 1.1rem; color: var(--primary-light); margin: 22px 0 10px; }
.content p { margin-bottom: 14px; color: var(--text-secondary); }
.content ul, .content ol { margin: 0 0 16px 20px; color: var(--text-secondary); }
.content li { margin-bottom: 8px; }
.checklist { list-style: none; margin-left: 0; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}
.data-table th { background: var(--primary); color: #fff; }
.data-table tr:nth-child(even) { background: var(--bg-light); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq-item.active .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 20px 18px; color: var(--text-secondary); }

/* CTA */
.cta-section {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
  color: #fff;
  text-align: center;
}
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-section .phone { font-size: 2rem; font-weight: 900; color: var(--accent-light); margin-bottom: 20px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-title { color: #fff; font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.site-footer a { color: #e8edf5; }
.site-footer a:hover { color: #fff; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--accent-light); }
/* 모바일 전용 줄바꿈 */
.mbr { display: none; }
@media (max-width: 768px) { .mbr { display: inline; } }
/* 히어로 버튼 PC/모바일 분기: PC=전화번호+화살표 1개 / 모바일=전화·문자 상담하기 2개 */
.hb-mo { display: none; }
@media (max-width: 768px) {
  .hb-pc { display: none; }
  .hb-mo { display: inline-flex; }
}

/* Floating bar */
.float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.float-bar a { flex: 1; max-width: 180px; }
.float-bar .btn { width: 100%; justify-content: center; padding: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-text { padding: 44px 0 32px; }
  .hero-img img { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .hero-btns, .cta-btns { justify-content: center; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tile-body { padding: 14px; }
  .tile-title { font-size: 0.95rem; }
  .tile-desc { font-size: 0.82rem; }
  .section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
  .card-row .tile { flex: 0 0 170px; }
}
