/* ==========================================================
   interior-landing 베이스 템플릿 (다크 에디토리얼 톤)
   컬러·폰트는 js/config.js 에서 CSS 변수로 주입됩니다
   ========================================================== */

:root {
  --brand: #7a4c2b;        /* 딥 코퍼(그라데이션 베이스) */
  --accent: #c98f66;       /* 포인트(코퍼) */
  --kakao: #fee500;
  --kakao-ink: #191919;
  --bg: #131311;           /* 웜 블랙 */
  --tint: #1b1a17;
  --panel: #201f1b;
  --ink: #ece7de;          /* 웜 크림 */
  --ink-soft: #a39c8f;
  --line: #2c2a25;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1120px, 92%); margin: 0 auto; }
.container--narrow { width: min(760px, 92%); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.btn--kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn--accent { background: var(--accent); color: #17130f; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 17px; }

/* ---------- 헤더 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.is-scrolled {
  background: rgba(19, 19, 17, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 32px; }
.header__logo { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__nav a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.header__nav a:hover { color: var(--accent); }

/* ---------- 히어로 ---------- */
.hero { position: relative; color: #fff; padding-bottom: 72px; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: -25% 0 0 0;   /* 패럴럭스 여유분 */
  background: url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=2000&q=80")
    center 55% / cover no-repeat, var(--bg);
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(12, 11, 9, 0.94) 0%, rgba(12, 11, 9, 0.7) 45%, rgba(12, 11, 9, 0.45) 100%);
}
.hero__content {
  position: relative;
  padding: 190px 0 90px;
  max-width: 760px;
}
.hero__badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(201, 143, 102, 0.14);
  border: 1px solid rgba(201, 143, 102, 0.5);
  color: #e6b993;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 30%;
  background: rgba(201, 143, 102, 0.22);
  z-index: -1;
  border-radius: 4px;
}
.hero__sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* 실적 스트립 */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 10px;
  transform: translateY(40px);
  margin-top: -10px;
}
.stats__item { text-align: center; padding: 6px 12px; }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__item strong {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stats__item strong span { font-size: inherit; font-weight: inherit; color: var(--accent); }
.stats__item > span:last-child { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 110px 0 96px; }
.section--tint { background: var(--tint); }
.section__eyebrow {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}
.section__note { margin-top: 28px; font-size: 13px; color: var(--ink-soft); }

/* ---------- 카드 ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 143, 102, 0.4); }
.card__icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- 시공 사례 갤러리 ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--panel);
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work:hover img { transform: scale(1.07); }
.work__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(10, 9, 7, 0.85), transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.work__caption strong { font-size: 16px; font-weight: 800; color: #fff; }
.work__caption span { font-size: 13px; color: rgba(255, 255, 255, 0.75); }

/* ---------- 스텝 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  border-top: 3px solid var(--accent);
}
.step__num {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 사진 ---------- */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 420px; object-fit: cover; }
.photo--tall img { height: 520px; }

/* ---------- 스플릿 레이아웃 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.checklist { list-style: none; margin: 6px 0 30px; }
.checklist li {
  position: relative;
  padding: 13px 0 13px 38px;
  font-size: 16.5px;
  font-weight: 600;
  border-bottom: 1px dashed var(--line);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #17130f;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 후기 ---------- */
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review__stars { color: var(--accent); font-size: 18px; letter-spacing: 3px; }
.review p { font-size: 15.5px; flex: 1; }
.review span { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 24px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 오시는 길 ---------- */
.split--map { align-items: stretch; }
.info { list-style: none; margin-bottom: 30px; }
.info li {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.info strong { flex: 0 0 84px; color: var(--accent); font-weight: 800; }
.info a { font-weight: 700; color: var(--ink); }
.map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 380px;
  box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.map__placeholder {
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 600;
}
.map__placeholder span { font-size: 42px; }
.map__placeholder small { font-weight: 400; }

/* ---------- CTA 밴드 ---------- */
.cta-band {
  background: linear-gradient(135deg, #5c3a20 0%, var(--brand) 55%, var(--accent) 130%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.cta-band p { font-size: 17px; color: rgba(255, 255, 255, 0.82); margin-bottom: 34px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- 푸터 ---------- */
.footer {
  background: #0d0d0b;
  color: rgba(255, 255, 255, 0.5);
  padding: 44px 0 120px;
  font-size: 13.5px;
}
.footer strong { display: block; color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer__biz { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.3); }

/* ---------- 모바일 하단 고정 바 ---------- */
.fixed-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}
.fixed-bar__btn {
  flex: 1;
  text-align: center;
  padding: 17px 0;
  font-size: 16px;
  font-weight: 800;
}
.fixed-bar__btn--tel { background: #26241f; color: #fff; }
.fixed-bar__btn--kakao { background: var(--kakao); color: var(--kakao-ink); }

/* ---------- 패럴럭스 (JS가 --py 값을 매 프레임 갱신) ---------- */
.parallax-on .photo img {
  transform: translateY(var(--py, 0px)) scale(1.12);
  will-change: transform;
}

/* ---------- 등장 애니메이션 (JS 활성 시에만 숨김 → 실패해도 콘텐츠 보장) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-on { opacity: 1; transform: translateY(0); }

/* ---------- 반응형 ---------- */
.br-mobile { display: none; }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .cards--3 { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .photo--tall img { height: 320px; }
}

@media (max-width: 640px) {
  .hero__content { padding: 150px 0 70px; }
  .stats { transform: translateY(30px); padding: 22px 4px; }
  .stats__item { padding: 6px 4px; }
  .stats__item strong { font-size: 22px; }
  .stats__item > span:last-child { font-size: 12px; }
  .section { padding: 84px 0 72px; }
  .works { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .photo img { height: 260px; }
  .br-mobile { display: block; }
  .header .btn { display: none; }
  .fixed-bar { display: flex; }
  .footer { padding-bottom: 140px; }
}
