/* ===== Design tokens - Warm Timber (온픽스 걸레받이·몰딩) ===== */
@font-face {
    font-family: 'Pretendard';
    src: url('/assets/fonts/Pretendard-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}
:root {
  --ink:          #16211B;
  --ink-mid:      #1D2A22;
  --ink-soft:     #5B6A60;
  --accent:       #2F6B4F;
  --accent-deep:  #234F3A;
  --accent-light: #B7D9C4;
  --paper:        #F7F5EC;
  --paper-mid:    #EDE9DA;
  --paper-dark:   #DCD5BE;
  --white:        #FFFFFF;
  --border:       #DDD6C2;

  --f-sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --fs-display: clamp(2.6rem, 6.6vw, 4.8rem);
  --fs-h1:      clamp(2.1rem, 4.4vw, 3.2rem);
  --fs-h2:      clamp(1.5rem, 2.6vw, 2.1rem);
  --fs-h3:      clamp(1.02rem, 1.6vw, 1.25rem);
  --fs-body:    clamp(0.92rem, 1.3vw, 1rem);
  --fs-small:   0.83rem;
  --fs-label:   0.75rem;

  --sp:    clamp(36px, 5vw, 72px);
  --sp-sm: clamp(24px, 3.2vw, 48px);
  --max-w: 1120px;
  --col:   clamp(16px, 4vw, 40px);

  --t:        0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 600px) {
  :root { --sp: 32px; --sp-sm: 22px; }
}
@media (max-width: 480px) {
  :root {
    --fs-display: clamp(2.1rem, 10vw, 2.7rem);
    --fs-h1: clamp(1.7rem, 7.5vw, 2.2rem);
    --fs-h2: clamp(1.3rem, 5vw, 1.6rem);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body, p, h1, h2, h3, h4, li, td, th, a, span, div, button { word-break: keep-all; overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2 { font-family: var(--f-sans); font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
h3, h4 { font-family: var(--f-sans); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
table { border-collapse: collapse; width: 100%; }
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--col); }
.table-scroll { overflow-x: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 1200; }
.skip-link:focus { left: 8px; top: 8px; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 1200; }

/* ===== Header ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--paper); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--col); max-width: calc(var(--max-w) + var(--col)*2); margin: 0 auto; }
.site-logo { display: flex; flex-direction: column; }
.logo-text { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.01em; }
.logo-sub { font-size: 0.66rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.01em; }
.nav-cta { background: var(--ink); color: var(--paper); padding: 10px 20px; font-weight: 700; font-size: 0.85rem; transition: background var(--t); }
@media (hover: hover) and (pointer: fine) { .nav-cta:hover { background: var(--accent-deep); } }

/* ===== Label tag ===== */
.label-tag { display: inline-block; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-left: 20px; position: relative; }
.label-tag::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 12px; height: 2px; background: var(--accent); }
.label-tag--light { color: var(--accent-light); }
.label-tag--light::before { background: var(--accent-light); }

/* ===== Hero (full-bleed crossfade, 메인페이지) ===== */
.hero-full { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 56px; overflow: hidden; background: var(--ink); }
.hero-full-media { position: absolute; inset: 0; }
.hero-full-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hero-crossfade 12s ease-in-out infinite; }
.hero-full-media img:nth-child(1) { animation-delay: 0s; }
.hero-full-media img:nth-child(2) { animation-delay: 4s; }
.hero-full-media img:nth-child(3) { animation-delay: 8s; }
@keyframes hero-crossfade { 0%, 100% { opacity: 0; } 3%, 30% { opacity: 1; } 33% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-full-media img { animation: none; opacity: 0; }
  .hero-full-media img:nth-child(1) { opacity: 1; }
}
.hero-full-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(28,23,18,0.95) 0%, rgba(28,23,18,0.64) 55%, transparent 100%); pointer-events: none; }
.hero-full-content { position: relative; z-index: 2; padding-bottom: 40px; }
.hero-full-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-full-eyebrow-line { width: 40px; height: 1px; background: var(--accent-light); }
.hero-full-eyebrow-text { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.hero-full h1 { color: var(--white); font-size: var(--fs-display); line-height: 1.1; margin-bottom: 20px; }
.hero-full-sub { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.82); line-height: 1.8; max-width: 480px; margin-bottom: 30px; }
.hero-full-sub strong { color: var(--accent-light); font-weight: 700; }
.hero-full-meta { position: relative; z-index: 2; display: flex; gap: 26px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,0.16); flex-wrap: wrap; }
.hero-full-meta-num { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 4px; }
.hero-full-meta-val { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Sub-hero (서브페이지) ===== */
.sub-hero { min-height: 42vh; position: relative; display: flex; align-items: flex-end; padding-bottom: 44px; padding-top: 56px; overflow: hidden; background: var(--ink); }
.sub-hero-img { position: absolute; inset: 0; }
.sub-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,23,18,0.95) 0%, rgba(28,23,18,0.5) 55%, rgba(28,23,18,0.14) 100%); }
.sub-hero-content { position: relative; z-index: 2; max-width: calc(var(--max-w) + var(--col)*2); margin: 0 auto; padding: 0 var(--col); }
.sub-hero h1 { color: var(--white); font-size: var(--fs-h1); }
.sub-hero-content p { color: rgba(255,255,255,0.74); font-size: 1rem; margin-top: 12px; max-width: 540px; font-weight: 400; }
.sub-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 768px) { .sub-hero { min-height: 34vh; } .sub-hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); } }

/* 텍스트 히어로 (상담페이지) */
.text-hero { background: var(--ink); padding: 110px 0 52px; }
.text-hero h1 { color: var(--white); font-size: var(--fs-h1); margin-top: 14px; }
.text-hero p { color: rgba(255,255,255,0.74); margin-top: 14px; max-width: 560px; font-weight: 400; }

/* ===== Breadcrumb ===== */
.breadcrumb { background: var(--paper-mid); border-bottom: 1px solid var(--border); padding: 68px 0 10px; font-size: 0.8rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--ink-soft); }

/* ===== Buttons ===== */
.btn-primary { display: inline-block; background: var(--ink); color: var(--paper); padding: 14px 26px; font-size: 0.9rem; font-weight: 700; transition: background var(--t); }
.btn-outline-dark { display: inline-block; border: 1.5px solid var(--paper); color: var(--paper); padding: 12px 22px; font-size: 0.88rem; font-weight: 600; transition: background var(--t), color var(--t); }
.btn-accent { display: inline-block; background: var(--accent); color: var(--white); padding: 14px 26px; font-size: 0.9rem; font-weight: 700; transition: background var(--t); }
.btn-block { display: block; text-align: center; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent); }
  .btn-outline-dark:hover { background: var(--paper); color: var(--ink); }
  .btn-accent:hover { background: var(--accent-deep); }
}
.btn-primary:active, .btn-outline-dark:active, .btn-accent:active { transform: scale(0.97); }

/* ===== Grid card system ===== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.grid2 > *, .grid3 > * { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 768px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.card { background: var(--white); transition: border-color var(--t); overflow: hidden; }
.card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid var(--border); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out); }
.card-body { padding: 20px 22px 24px; }
.card-num { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; display: block; }
.card-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 6px; }
.card-desc { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; }
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: var(--ink); } a.card:hover .card-img img { transform: scale(1.04); } }

/* Before/After */
.ba-grid { display: flex; flex-direction: column; gap: 10px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); }
.ba-item { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--white); }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-label { position: absolute; bottom: 8px; left: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; padding: 3px 10px; text-transform: uppercase; }
.ba-label.before { background: var(--ink); color: var(--paper); }
.ba-label.after { background: var(--accent); color: #fff; }

/* Featured 이미지 갤러리 (메인) */
.case-gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); }
.case-gallery-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 2px; }
.case-feature, .case-mini { position: relative; background: var(--white); overflow: hidden; display: block; }
.case-feature { min-height: 380px; }
.case-feature img, .case-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-mini { min-height: 189px; }
.case-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px; background: linear-gradient(to top, rgba(28,23,18,0.88), transparent); }
.case-cap-mini { padding: 12px 14px; }
.case-cap-title { display: block; font-weight: 800; color: var(--white); font-size: 1rem; }
.case-cap-mini .case-cap-title { font-size: 0.82rem; }
@media (max-width: 900px) {
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery-side { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .case-feature { min-height: 300px; }
  .case-mini { min-height: 170px; }
}

/* ===== Features strip ===== */
.feature-strip { background: var(--accent); }
.feature-strip-inner { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid rgba(255,255,255,0.16); }
.feature-strip-item { padding: 28px 22px; border-right: 1px solid rgba(255,255,255,0.16); display: flex; flex-direction: column; gap: 8px; }
.feature-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.feature-value { font-size: 1rem; font-weight: 900; color: var(--white); }
@media (max-width: 768px) {
  .feature-strip-inner { grid-template-columns: 1fr; }
  .feature-strip-item { padding: 16px 20px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.16); }
  .feature-strip-item:last-child { border-bottom: none; }
}

/* ===== Services row list (dark, 메인) ===== */
.services-section { background: var(--ink); padding: var(--sp) 0; }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 36px; flex-wrap: wrap; gap: 16px; }
.services-head h2 { color: var(--white); margin-top: 10px; }
.row-list { border-top: 1px solid rgba(255,255,255,0.14); }
.row-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 24px 4px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.row-item-num { font-size: 1.3rem; font-weight: 800; color: var(--accent-light); }
.row-item-title { font-size: 1rem; font-weight: 800; color: var(--white); display: block; margin-bottom: 4px; }
.row-item-desc { font-size: 0.84rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ===== Process stepper ===== */
.process-section { background: var(--paper); padding: var(--sp) 0; }
.proc-list { display: flex; flex-direction: column; margin: 36px 0 0; padding: 0; max-width: 640px; }
.proc-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding-bottom: 26px; padding-left: 4px; }
.proc-step:not(:last-child)::before { content: ''; position: absolute; left: 25px; top: 50px; bottom: -4px; width: 1px; background: var(--border); }
.proc-num { position: relative; z-index: 1; width: 50px; height: 50px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.proc-step h4 { font-size: 0.98rem; margin-bottom: 6px; padding-top: 8px; }
.proc-step p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 600px) {
  .proc-step { grid-template-columns: 42px 1fr; padding-bottom: 26px; }
  .proc-num { width: 42px; height: 42px; font-size: 0.95rem; }
  .proc-step:not(:last-child)::before { left: 20px; top: 42px; }
}

/* ===== Pull quote ===== */
.pull-quote { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 36px 0; }
.pull-quote p { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.55; color: var(--ink); max-width: 820px; }
.pull-quote-cite { display: block; margin-top: 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* ===== CTA section ===== */
.cta-section { background: var(--ink-mid); padding: var(--sp) 0; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta-section h2 { color: var(--white); margin-bottom: 12px; font-size: clamp(1.6rem,4vw,2.3rem); }
.cta-desc { font-size: 0.95rem; color: rgba(255,255,255,0.62); font-weight: 400; max-width: 460px; line-height: 1.8; }
.cta-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cta-badge { font-size: 0.78rem; color: rgba(255,255,255,0.52); display: flex; gap: 8px; }
.cta-badge::before { content: '-'; color: var(--accent-light); }
@media (max-width: 1024px) { .cta-inner { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); counter-increment: faq; }
.faq-list { counter-reset: faq; }
.faq-summary { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; font-size: 0.95rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-summary::before { content: counter(faq, decimal-leading-zero); font-weight: 800; color: var(--accent); flex-shrink: 0; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-answer { display: grid; grid-template-rows: 0fr; padding: 0 0 0 40px; overflow: hidden; transition: grid-template-rows 0.24s var(--ease-out); }
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.75; min-height: 0; overflow: hidden; padding-bottom: 18px; }
.faq-aside-note { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.8; max-width: 440px; margin-bottom: 18px; }
@media (max-width: 768px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } }

/* ===== Related nseo grid ===== */
.nseo-section { background: var(--paper-mid); padding: var(--sp) 0; border-top: 1px solid var(--border); }

/* ===== Cost table ===== */
.compare-table th, .compare-table td { padding: 12px 16px; border: 1px solid var(--border); font-size: 0.85rem; text-align: left; }
.compare-table th { background: var(--paper-mid); font-weight: 700; }
.compare-table caption { text-align: left; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 10px; }
.table-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }

/* ===== Content section spacing ===== */
.section { padding: var(--sp) 0; }
.section-sm { padding: var(--sp-sm) 0; }
.section-head { margin-bottom: 24px; }
.section-head h2 { margin-top: 10px; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose img { border-radius: 2px; margin: 4px 0 18px; }
.eyebrow-block { margin-bottom: 10px; }
.last-modified { font-size: 0.78rem; color: var(--ink-soft); text-align: right; margin-top: 8px; }

/* ===== Sticky bottom CTA ===== */
.sticky-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001; box-shadow: 0 -2px 12px rgba(28,23,18,0.16); }
.sticky-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; min-height: 54px; font-weight: 700; font-size: 0.9rem; }
.sticky-tel { background: var(--ink); color: var(--paper); }
.sticky-sms { background: var(--accent); color: var(--white); }
@media (min-width: 769px) { .sticky-cta { display: none; } }

/* ===== Footer ===== */
.site-footer { background: #14100C; color: rgba(255,255,255,0.55); padding: 52px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-biz p, .footer-nav li { font-size: 0.82rem; line-height: 1.9; }
.footer-biz h4, .footer-nav h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px; }
.footer-nav a { transition: color var(--t); }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: var(--paper); } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; display: flex; justify-content: space-between; font-size: 0.75rem; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 110px; } }

/* ===== Floating buttons ===== */
.floating-btns { position: fixed; bottom: 24px; right: 20px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 768px) { .floating-btns { bottom: 76px; } }
.floating-home { display: flex; align-items: center; gap: 8px; background: var(--accent); color: var(--white); padding: 12px 16px; font-size: 0.82rem; font-weight: 700; box-shadow: 0 4px 20px rgba(181,113,31,0.35); }
@media (hover: hover) and (pointer: fine) { .floating-home:hover { background: var(--accent-deep); } }
.floating-top { width: 40px; height: 40px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out); }
.floating-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

.br-desktop { display: inline; }
@media (max-width: 768px) { .br-desktop { display: none; } }
