/* ===== 공통(common) 스타일 =====
   모든 페이지에서 공유: 토큰, 리셋, 헤더/네비, 버튼, 섹션 기본,
   공용 카드 그리드, 서브히어로, CTA, 푸터, 빠른 메뉴, 애니메이션 */

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Yeongdo";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.2/Yeongdo-Rg.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yeongdo";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.2/Yeongdo-Bd.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Yeongdo";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.2/Yeongdo-Hv.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #fafaf8;
  --bg-soft: #ece3d1;
  --panel: #f8f1e4;
  --ink: #202724;
  --ink-dim: #67716d;
  --line: rgba(32, 39, 36, 0.2);
  --gold: #c99a45;
  --gold-soft: #a64032;

  /* 단청(丹靑) 오방색 포인트 컬러 - 최소한으로만 사용 */
  --dc-red: #a64032;
  --dc-red-soft: #a64032;
  --dc-green: #315f55;
  --dc-green-soft: #315f55;
  --dc-blue: #315f55;

  /* 밝은(솔리드) 헤더 등에서 쓰는 진한 먹색 텍스트 */
  --ink-solid: #202724;
  --ink-solid-dim: #67716d;

  --radius-chip: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: "Pretendard", "Noto Sans KR", sans-serif !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.serif {
  font-family: "Song Myung", "Noto Serif KR", serif;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  color: #fafaf8;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease, backdrop-filter 0.35s ease, opacity 0.35s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 128px;
  background:
    linear-gradient(180deg, rgba(12, 16, 18, 0.28) 0%, rgba(12, 16, 18, 0.16) 48%, rgba(12, 16, 18, 0.04) 82%, rgba(12, 16, 18, 0) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.header.solid::before {
  opacity: 0;
}

.header.solid {
  background: rgba(250, 250, 248, 0.42);
  color: var(--ink-solid);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(32, 39, 36, 0.045);
  box-shadow: 0 3px 10px rgba(32, 39, 36, 0.02);
}

.header-inner {
  min-height: 88px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-block: 0.7rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Yeongdo", "Song Myung", "Noto Serif KR", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-mark {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
}

.logo-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

.logo-img--solid {
  opacity: 0;
}

.header.solid .logo-img--stroke {
  opacity: 0;
}

.header.solid .logo-img--solid {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(250, 250, 248, 0.86);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.header.solid .nav a {
  color: var(--ink-solid-dim);
}

.header.solid .nav a:hover,
.header.solid .nav a.active {
  color: var(--gold);
}

.nav .cta {
  border: 1px solid rgba(250, 250, 248, 0.7);
  color: #fafaf8;
  border-radius: var(--radius-chip);
  padding: 0.5rem 1.1rem;
}

.nav .cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.header.solid .nav .cta {
  border-color: var(--dc-green);
  color: var(--dc-green);
}

.header.solid .nav .cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.burger {
  display: none;
  border: 0;
  background: transparent;
  color: #fafaf8;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
}

.header.solid .burger {
  color: var(--ink-solid);
}

.nav-back {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(250, 250, 248, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-chip);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header.solid .nav-back {
  color: var(--ink-solid-dim);
}

.nav-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-back:hover {
  color: var(--ink);
  border-color: var(--line);
}

.header.solid .nav-back {
  color: var(--ink-solid-dim);
}

.header.solid .nav-back:hover {
  color: var(--ink-solid);
  border-color: rgba(36, 29, 22, 0.14);
}

@media (min-width: 821px) {
  .nav-back {
    display: none;
  }
}

/* ===== Shared bits ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dc-red);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--dc-red), var(--gold), var(--dc-green));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-gold {
  background: var(--dc-green);
  color: #fafaf8;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-line {
  border-color: var(--line);
  color: var(--ink);
}

.submit-modal {
  width: min(92vw, 430px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.submit-modal::backdrop {
  background: rgba(32, 39, 36, 0.3);
  backdrop-filter: blur(2px);
}

.submit-modal-card {
  background: linear-gradient(165deg, #fbf6ec 0%, #efe5d3 100%);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 1rem;
}

.submit-modal-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--gold-soft);
}

.submit-modal-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-line;
}

.submit-modal-card form {
  margin-top: 0.2rem;
  display: flex;
  justify-content: flex-end;
}

.submit-modal-card .btn {
  min-width: 88px;
}

.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* ===== Section base ===== */
.section {
  padding: clamp(3.4rem, 8vw, 7rem) 0;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  margin: 0.9rem 0 0;
  font-family: "Song Myung", "Noto Serif KR", serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
}

.section-head p {
  margin: 0.9rem 0 0;
  color: var(--ink-dim);
}

/* ===== 공용 카드 그리드 (홈/회사소개/예상견적 등 공유) ===== */
.feature-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.2));
  padding: 1.8rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: rgba(200, 168, 106, 0.5);
  transform: translateY(-4px);
}

.feature .no {
  font-family: "Song Myung", "Noto Serif KR", serif;
  font-size: 1.3rem;
  color: var(--gold);
}

.feature h3 {
  margin: 1rem 0 0;
  font-size: 1.28rem;
}

.feature p {
  margin: 0.7rem 0 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

/* ===== Sub page hero ===== */
.subhero {
  position: relative;
  padding: 168px 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.subhero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subhero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.subhero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 39, 36, 0.36), rgba(32, 39, 36, 0.74)),
    radial-gradient(circle at 80% 20%, rgba(200, 168, 106, 0.22), rgba(200, 168, 106, 0)),
    radial-gradient(circle at 8% 92%, rgba(47, 93, 76, 0.16), rgba(47, 93, 76, 0) 60%);
}

.subhero-inner {
  position: relative;
  z-index: 2;
  color: #fafaf8;
}

.crumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: rgba(250, 250, 248, 0.72);
  font-size: 0.86rem;
}

.crumb a {
  color: rgba(250, 250, 248, 0.86);
}

.crumb a:hover {
  color: var(--gold);
}

.subhero h1 {
  margin: 1rem 0 0;
  font-family: "Song Myung", "Noto Serif KR", serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  color: #fafaf8;
}

.subhero p {
  margin: 0.9rem 0 0;
  max-width: 46ch;
  color: rgba(250, 250, 248, 0.8);
}

/* ===== CTA band ===== */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 168, 106, 0.18), rgba(200, 168, 106, 0) 50%),
    radial-gradient(circle at 92% 100%, rgba(47, 93, 76, 0.14), rgba(47, 93, 76, 0) 55%),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0;
  font-family: "Song Myung", "Noto Serif KR", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-band p {
  margin: 0.5rem 0 0;
  color: var(--ink-dim);
}

.cta-band .phone {
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  padding: 2.4rem 0 6rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.footer-inner {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--dc-red), var(--gold), var(--dc-green));
}

.footer-admin-wrap {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.22rem 0.52rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-admin-link:hover {
  color: var(--ink);
  border-color: rgba(200, 168, 106, 0.5);
}

/* ===== Quick tab ===== */
.quick {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 55;
  width: min(94vw, 540px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(8px);
}

.quick a {
  min-height: 54px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.quick a:last-child {
  border-right: 0;
}

.quick a.hot {
  color: var(--dc-red);
}

.quick-ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick a.hot .quick-ico {
  fill: rgba(166, 64, 50, 0.14);
}

.kakao-share-float {
  display: none;
  position: fixed;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 92px;
  z-index: 56;
  width: 72px;
  height: 72px;
  padding: 7px 8px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(32, 39, 36, 0.16);
  border-radius: 50%;
  background: #fee500;
  color: #191919;
  box-shadow: 0 8px 22px rgba(32, 39, 36, 0.2);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.kakao-share-float:hover {
  box-shadow: 0 10px 26px rgba(32, 39, 36, 0.25);
}

.kakao-share-float:focus-visible {
  outline: 3px solid rgba(49, 95, 85, 0.34);
  outline-offset: 3px;
}

.kakao-share-float svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
  flex: 0 0 auto;
}

.kakao-share-label {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.kakao-share-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  padding: 0.42rem 0.6rem;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.kakao-share-float:hover .kakao-share-tooltip,
.kakao-share-float:focus-visible .kakao-share-tooltip {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
  }

  .logo {
    font-size: 1.4rem;
    gap: 0.5rem;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .header-inner {
    min-height: 58px;
    padding-block: 0.35rem;
    justify-content: center;
    gap: 0.55rem;
  }

  .nav-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav {
    position: fixed;
    inset: 58px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem;
    background: rgba(250, 250, 248, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .header.solid .nav {
    background: #fafaf8;
    border-bottom-color: rgba(32, 39, 36, 0.14);
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 0.6rem 0.4rem;
    font-size: 1rem;
    color: var(--ink-solid-dim);
  }

  .nav .cta {
    text-align: center;
    margin-top: 0.3rem;
    border-color: var(--dc-green);
    color: var(--dc-green);
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick {
    left: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    border-radius: 0;
  }

  .kakao-share-float {
    right: 16px;
    bottom: 70px;
  }
}
