/* 이광택 공통 스타일 — 어두운 고급형, 휴대폰 기준(mobile-first)
   클래스 목록과 사용법: src/pages/README.md */

:root {
  --bg: #0b0b0d;
  --bg-alt: #121216;
  --surface: #18181d;
  --surface-2: #202027;
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(212, 175, 106, 0.35);
  --text: #f5f5f7;
  --text-muted: #a8a8b3;
  --gold: #d4af6a;
  --gold-light: #f1dca4;
  --gold-gradient: linear-gradient(135deg, #f6e6b4 0%, #d4af6a 45%, #9c7a3c 100%);
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #c9ccd3 50%, #8e929b 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --bar-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  /* 하단 고정 연락 줄에 내용이 가리지 않게 */
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #111; padding: 8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 상단 ---------- */
.site-header {
  background: rgba(11, 11, 13, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding-top: 12px; padding-bottom: 8px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.logo-img { height: 40px; width: auto; }
.logo-text {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-nav { width: 100%; }
.site-nav ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px;
}
.site-nav a {
  display: block; padding: 6px 7px; font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--gold-light); }

/* ---------- 구역 ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 28px; }
.section-eyebrow {
  display: inline-block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--gold);
}
.section-title { font-size: 1.5rem; }
.section-lead { color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-light); }
.gold-line { width: 48px; height: 2px; border: 0; margin: 0 0 16px; background: var(--gold-gradient); }

/* 첫 화면·페이지 제목 */
.hero { position: relative; padding: 40px 0 48px; overflow: hidden; }
.hero-badge {
  display: inline-block; padding: 4px 12px; margin-bottom: 14px; border: 1px solid var(--line-gold);
  border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--gold-light);
}
.hero-title { font-size: 1.75rem; font-weight: 800; }
.hero-title .accent,
.accent {
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text { color: var(--text-muted); font-size: 1.02rem; }
.hero-media { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-media img { width: 100%; object-fit: cover; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  min-height: 48px; padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-primary,
.btn-call { background: var(--gold-gradient); color: #17130a; border-color: transparent; }
.btn-sms { background: var(--silver-gradient); color: #121317; border-color: transparent; }
.btn-kakao { background: #fee500; color: #191600; border-color: transparent; }
.btn-naver { background: #03c75a; color: #fff; border-color: transparent; }
.btn-outline { background: transparent; border-color: var(--line-gold); color: var(--gold-light); }
.btn-sub { font-weight: 600; font-size: 0.9em; opacity: 0.85; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-group .btn { flex: 1 1 140px; }

/* 본문 연락 버튼 묶음 {{> contactButtons}} */
.contact-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
.contact-buttons .btn { width: 100%; }

/* 상담 안내 상자 */
.cta-box {
  padding: 28px 20px; border-radius: var(--radius); text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #2a2418 0%, var(--surface) 60%);
  border: 1px solid var(--line-gold);
}
.cta-box .contact-buttons { margin-top: 20px; text-align: left; }

/* ---------- 카드·목록·단계 ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  padding: 22px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line);
}
.card-title { font-size: 1.15rem; color: var(--text); }
.card-text { color: var(--text-muted); margin-bottom: 0; }
.card .check-list { margin-top: 10px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.card-link::after { content: " →"; }

.strengths { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; }
.strength {
  position: relative; padding: 18px 18px 18px 54px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-gold); font-weight: 700;
}
.strength::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--gold-gradient);
  -webkit-mask: radial-gradient(circle, transparent 0 4px, #000 5px); mask: radial-gradient(circle, transparent 0 4px, #000 5px);
}

.check-list { list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

.steps { list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps > li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 60px; min-height: 52px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; font-weight: 600;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-gradient); color: #17130a; font-weight: 800; font-size: 0.95rem;
}
.steps-note { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- 가격표 {{> promoTable}} / {{> priceTable}} ---------- */
.price-tables { display: grid; gap: 20px; }
.price-block {
  padding: 22px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.price-block-promo { border-color: var(--line-gold); background: linear-gradient(180deg, #1f1b13 0%, var(--surface) 55%); }
.price-block-title { font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.price-label {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 800;
  background: var(--gold-gradient); color: #17130a;
}
.price-table thead th {
  padding: 0 0 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table thead th:last-child { text-align: right; }
.price-row th,
.price-row td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-row:last-child th,
.price-row:last-child td { border-bottom: 0; }
.price-name { text-align: left; font-weight: 600; padding-right: 12px !important; }
.price-unit { display: block; font-size: 0.82rem; font-weight: 400; color: var(--text-muted); }
.price-value { text-align: right; font-weight: 800; white-space: nowrap; color: var(--gold-light); }
.price-block-promo .price-value { font-size: 1.15rem; }
.price-note { margin: 14px 0 6px; font-size: 0.88rem; color: var(--text-muted); }
.price-standalone {
  margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2);
  font-size: 0.92rem; font-weight: 600;
}

/* ---------- 사진 ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { padding: 8px 10px; font-size: 0.85rem; color: var(--text-muted); }
.photo-wide { grid-column: 1 / -1; }

/* 작업 전·후 비교 */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.compare + .compare { margin-top: 8px; }
.compare-item { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.compare-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.compare-label {
  position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; background: rgba(0, 0, 0, 0.72); color: var(--text);
}
.compare-item.is-after .compare-label { background: var(--gold-gradient); color: #17130a; }

/* ---------- 가게 정보 {{> shopInfo}} ---------- */
.info-list { margin: 0; display: grid; gap: 8px; }
.info-list > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.info-list dt { color: var(--text-muted); font-size: 0.9rem; padding-top: 1px; }
.info-list dd { margin: 0; font-weight: 600; }
.info-list a { color: var(--gold-light); text-decoration: none; }
.info-list + .btn-group { margin-top: 20px; }
.info-badge { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--gold); }

/* ---------- 하단 ---------- */
.site-footer {
  padding: 40px 0 32px; background: #070708; border-top: 1px solid var(--line); font-size: 0.95rem;
}
.footer-brand { font-size: 1.1rem; margin-bottom: 16px; }
.footer-badge { font-size: 0.85rem; color: var(--gold); margin-left: 6px; }
.site-footer .directions { margin-top: 20px; }
.footer-copy { margin: 24px 0 0; font-size: 0.8rem; color: var(--text-muted); }

/* ---------- 하단 고정 연락 줄 (휴대폰) ---------- */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 11, 13, 0.94); border-top: 1px solid var(--line-gold);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.contact-bar .btn {
  min-height: 48px; padding: 6px 4px; font-size: 0.88rem; flex-direction: column; gap: 0; border-radius: 10px;
}
.contact-bar .btn-sub { display: none; }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 600px) {
  .contact-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strengths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strength { padding: 54px 18px 20px; }
  .strength::before { left: 18px; top: 18px; margin-top: 0; }
  .contact-bar .btn-sub { display: inline; }
}

@media (min-width: 900px) {
  :root { --gutter: 24px; }
  .header-inner { flex-direction: row; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
  .site-nav { width: auto; }
  .site-nav a { padding: 8px 12px; font-size: 0.95rem; }
  .section { padding: 88px 0; }
  .section-title { font-size: 2rem; }
  .hero { padding: 72px 0 80px; }
  .hero-title { font-size: 2.6rem; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .price-block { padding: 28px 24px; }
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .compare-item img { aspect-ratio: 4 / 3; }
  .info-list > div { grid-template-columns: 7em 1fr; }
  .btn-group .btn { flex: 0 1 auto; }
  /* PC: 연락 버튼을 오른쪽 아래에 떠 있는 묶음으로 */
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 110px; }
  .contact-bar {
    left: auto; right: 24px; bottom: 24px; gap: 8px; padding: 8px;
    border: 1px solid var(--line-gold); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .contact-bar .btn { flex-direction: row; gap: 6px; padding: 8px 16px; white-space: nowrap; }
}
