/* ============================================================
   현관신발장리폼 (reshoe.korhomefactory.com)
   design_id=1(디자인2번) · font_id=4(MaruBuri+Pretendard) · hero_id=10(스플릿헤리티지)
   ============================================================ */

:root {
    --accent: #4A4A3C;
    --accent-soft: #EEEEEC;
    --accent-btn-text: #FFFFFF;
    --ink: #000000;
    --desc: #5B6169;
    --bg: #FFFFFF;
    --bar-chrome: #EDF0F2;
    --line: #E5E5E5;
    --font-title: "MaruBuri", serif;
    --font-body: "Pretendard", "Pretendard Variable", -apple-system, sans-serif;
    --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    letter-spacing: -0.02em;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
h1, h2, h3, .noto-title { font-family: var(--font-title); font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더 ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    background: #FFFFFF;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
    background: var(--bar-chrome);
    box-shadow: 0 1px 16px rgba(0,0,0,0.06);
    border-color: #E5E7EB;
}
.header-spacer { height: var(--header-h); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--accent); }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-family: var(--font-title); font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.logo-keyword { font-size: 0.7rem; font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-dropdown { position: relative; }
.nav-dd-toggle {
    background: none; border: none; font-family: inherit; font-size: 15px; font-weight: 600;
    color: var(--ink); display: flex; align-items: center; gap: 4px; padding: 8px 0;
}
.nav-dd-menu {
    position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08); min-width: 240px; padding: 8px 0;
    display: none; flex-direction: column; z-index: 50;
}
.nav-dropdown.open .nav-dd-menu { display: flex; }
.nav-dd-menu a { padding: 10px 18px; font-size: 14px; color: var(--ink); }
.nav-dd-menu a:hover { background: var(--accent-soft); }

.btn-consult {
    background: var(--accent); color: var(--accent-btn-text) !important; font-size: 14px; font-weight: 700;
    padding: 11px 22px; border-radius: 4px; white-space: nowrap;
}
.btn-consult-mobile { display: none; }
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow svg { flex-shrink: 0; width: 18px; height: 18px; }
.section-head { margin-bottom: 40px; }
.section-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.section-lead { margin-top: 14px; font-size: 16px; color: var(--desc); max-width: 640px; }

.section { padding: 88px 0; }

/* ---------- 히어로: hero_id=10 스플릿헤리티지 ---------- */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 160px 0 80px; }
.hero-copy .eyebrow { }
.hero-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.32; }
.hero-lead { margin-top: 22px; font-size: 17px; color: var(--desc); line-height: 1.8; max-width: 480px; }
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 15px 26px; border-radius: 4px; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 4px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 620px; object-fit: cover; border-radius: 0 0 20px 20px; }
.hero-media-tag { position: absolute; left: 20px; bottom: 20px; background: rgba(255,255,255,0.92); padding: 10px 16px; font-size: 13px; font-weight: 700; border-radius: 4px; }

/* 서브페이지 상단 배경 히어로 */
.page-hero { position: relative; padding: 168px 0 64px; background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,18,0.5); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: #F1F0EC; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.page-hero p { color: #f1f0ec; margin-top: 14px; font-size: 15px; }

/* ---------- 서비스 아이콘 그리드 (section_variant=9) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-card { padding: 32px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.svc-card:hover { background: var(--accent-soft); }
.svc-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 18px; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; color: var(--desc); line-height: 1.65; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc-card:nth-child(2n) { border-right: none; } }

/* ---------- 홈 #cases (design_id=1: 3장 흰박스) ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.case-card:hover { transform: scale(1.03); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
.case-card .case-thumb { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.case-card .case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .case-body { padding: 22px; }
.case-card .case-tag { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.case-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.case-card p { font-size: 13.5px; color: var(--desc); line-height: 1.6; }
@media (max-width: 767px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- /portfolio editorial-card (list_variant=1) ---------- */
.pf-hero-note { padding: 8px 0 40px; }
.pf-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.pf-intro-text h2 { font-size: 24px; margin-bottom: 16px; }
.pf-intro-text p { font-size: 15px; color: var(--desc); line-height: 1.85; margin-bottom: 14px; }
.pf-intro-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pf-intro-list li { font-size: 14px; color: var(--ink); padding-left: 18px; position: relative; }
.pf-intro-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.pf-intro-img { border-radius: 4px; overflow: hidden; min-width: 0; }
.pf-intro-img img { width: 100%; height: 340px; object-fit: cover; }

.editorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
.editorial-card { display: flex; flex-direction: column; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.editorial-card .ec-img-wrap { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 7/6; }
.editorial-card .ec-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.editorial-card:hover .ec-img-wrap img { transform: scale(1.04); }
.ec-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.94); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 3px; }
.ec-body { padding: 24px; }
.ec-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ec-tags span { font-size: 11.5px; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: 4px 10px; border-radius: 20px; }
.ec-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; line-height: 1.4; }
.ec-body p { font-size: 14px; color: var(--desc); line-height: 1.7; margin-bottom: 14px; }
.ec-progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ec-progress span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 767px) {
    .pf-intro { grid-template-columns: 1fr; }
    .editorial-grid { grid-template-columns: 1fr; }
}

/* ---------- 시공사례 상세 ---------- */
.case-detail-body { padding: 56px 0 20px; }
.case-meta-label { font-size: 12px; color: #8a8f97; margin-bottom: 18px; }
.case-hero-img { width: 550px; max-width: 100%; height: 410px; object-fit: cover; border-radius: 18px; margin: 0 0 40px; cursor: zoom-in; }
.case-detail-body h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 36px; }
.case-copy p { font-size: 15.5px; color: #3d4148; line-height: 1.9; margin-bottom: 20px; }
.case-copy strong { color: var(--ink); }

.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 48px 0; }
.ba-row figure { margin: 0; }
.ba-row img { width: 100%; height: auto; object-fit: contain; border-radius: 14px; cursor: zoom-in; background: #f4f4f2; }
.ba-row figcaption { margin-top: 10px; font-size: 13px; color: var(--desc); text-align: center; }
@media (max-width: 640px) { .ba-row { grid-template-columns: 1fr; } }

.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0; }
.case-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
@media (max-width: 767px) { .case-gallery { grid-template-columns: 1fr; } }

/* ---------- PROCESS ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #E0E0DC; }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid #E0E0DC; }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: none; }
.pnum { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.process-item h3 { font-size: 16px; font-weight: 800; color: #22262B; margin: 0 0 8px; }
.process-item p { font-size: 13.5px; color: #5B6169; line-height: 1.65; margin: 0; }
@media (max-width: 767px) { .process-list { grid-template-columns: 1fr 1fr; } .process-item { border-bottom: 1px solid #E0E0DC; padding-left: 20px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.faq-q .faq-plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .faq-plus::before, .faq-q .faq-plus::after { content: ""; position: absolute; background: var(--ink); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .faq-plus::before { width: 14px; height: 2px; }
.faq-q .faq-plus::after { width: 2px; height: 14px; transition: transform .25s; }
.faq-item.open .faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 22px; font-size: 14.5px; color: var(--desc); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 400px; }

.related-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 48px 0; }
.related-row a { display: block; border: 1px solid var(--line); overflow: hidden; }
.related-row img { width: 100%; height: 180px; object-fit: cover; }
.related-row .rr-body { padding: 16px; }
.related-row h4 { font-size: 14.5px; font-weight: 700; }
@media (max-width: 640px) { .related-row { grid-template-columns: 1fr; } }

.nearby { margin: 40px 0; padding-top: 32px; border-top: 1px solid var(--line); }
.nearby h3 { font-size: 15px; margin-bottom: 14px; }
.nearby-links { display: flex; gap: 10px; flex-wrap: wrap; }
.nearby-links a { font-size: 13.5px; border: 1px solid var(--line); padding: 8px 14px; border-radius: 20px; }

.prevnext { display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 40px 0; }
.prevnext a { flex: 1; padding: 18px 4px; font-size: 13.5px; color: var(--desc); }
.prevnext a:last-child { text-align: right; }

/* ---------- Closing (B-25) ---------- */
.closing { position: relative; height: 650px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.closing-overlay { position: absolute; inset: 0; background: rgba(19,19,19,0.55); }
.closing-inner { position: relative; z-index: 2; text-align: center; max-width: 640px; padding: 0 24px; }
.closing-head { color: #fff; font-size: clamp(22px, 3vw, 32px); white-space: nowrap; }
.closing-quote { color: #EDEDEA; font-size: 15px; margin-top: 20px; line-height: 1.7; }
.btn-closing { display: inline-block; margin-top: 30px; border: 1px solid #fff; color: #fff; font-size: 14px; font-weight: 700; padding: 15px 34px; border-radius: 0; }
@media (max-width: 640px) { .closing-head { white-space: normal; font-size: 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col p, .footer-col a { display: block; font-size: 13.5px; color: var(--desc); margin-bottom: 10px; }
.footer-col-title { color: var(--ink) !important; font-weight: 700; font-size: 14px; margin-bottom: 16px !important; }
.footer-brand { font-family: var(--font-title); font-size: 17px; font-weight: 700; color: var(--ink) !important; margin-bottom: 8px !important; }
.footer-hours { white-space: nowrap; }
.footer-cta-btn { display: inline-block; background: var(--accent); color: #fff !important; text-align: center; padding: 10px 0; border-radius: 4px; margin-bottom: 10px !important; font-weight: 700; }
.footer-cta-btn-outline { background: none; border: 1px solid var(--ink); color: var(--ink) !important; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 100px; font-size: 12.5px; color: #9a9d9f; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .footer-bottom { padding-bottom: 110px; } }

/* ---------- 모바일 하단 고정바 ---------- */
.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 600; background: var(--bar-chrome); border-top: 1px solid #E5E7EB; box-shadow: 0 -6px 22px rgba(0,0,0,0.08); padding: 10px 14px; gap: 10px; }
.mb-btn { flex: 1; text-align: center; padding: 13px 0; border-radius: 4px; font-weight: 700; font-size: 14.5px; }
.mb-btn-primary { background: var(--accent); color: #fff; }
.mb-btn-phone { flex: 0 0 52px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); }

/* ---------- 데스크톱 스크롤 하단 상담바 (B-23) ---------- */
.desktop-bottom-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 590;
    background: var(--bar-chrome); border-top: 1px solid #E5E7EB; box-shadow: 0 -6px 22px rgba(0,0,0,0.08);
    padding: 16px 32px; align-items: center; justify-content: center; gap: 24px;
    transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.desktop-bottom-bar.show { transform: translateY(0); opacity: 1; }
.db-msg { font-size: 15px; font-weight: 700; color: var(--ink); }
.db-btn { flex: none; padding: 12px 28px; }
@media (min-width: 768px) { .desktop-bottom-bar { display: flex; } }

/* ---------- 라이트박스 ---------- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox-close { position: absolute; top: 24px; right: 30px; background: none; border: none; color: #fff; font-size: 34px; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 30px; width: 48px; height: 48px; border-radius: 50%; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }

/* ---------- About / Contact ---------- */
.plain-section { padding: 80px 0; }
.plain-section h2 { font-size: 24px; margin-bottom: 20px; }
.plain-section p { font-size: 15px; color: var(--desc); line-height: 1.85; margin-bottom: 16px; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.info-table th, .info-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info-table th { width: 140px; color: var(--desc); font-weight: 600; white-space: nowrap; }
.contact-box { background: var(--accent-soft); padding: 48px; border-radius: 8px; text-align: center; margin-top: 32px; }
.contact-box .btn-primary { font-size: 17px; padding: 18px 40px; }

/* ---------- 지역/카테고리 ---------- */
.region-body { padding: 56px 0; }
.region-body p { font-size: 15.5px; color: #3d4148; line-height: 1.9; margin-bottom: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.chip-row a, .chip-row span { font-size: 13.5px; border: 1px solid var(--line); padding: 8px 16px; border-radius: 20px; color: var(--ink); }

.svc-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 767px) { .svc-cases-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; padding-top: 130px; }
    .hero-media img { height: 380px; }
    .cases-grid { grid-template-columns: 1fr; }
    .case-hero-img { height: 300px; }
}
@media (max-width: 767px) {
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 4px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
    .main-nav.open { transform: translateX(0); }
    .main-nav > a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-dropdown { width: 100%; }
    .nav-dd-menu { position: static; border: none; box-shadow: none; display: none; width: 100%; }
    .nav-dropdown.open .nav-dd-menu { display: flex; }
    .nav-dd-toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .btn-consult-desktop { display: none; }
    .btn-consult-mobile { display: block; margin-top: 16px; width: 100%; text-align: center; }
    .hamburger { display: flex; }
    .mobile-bottom-bar { display: flex; }
    .section { padding: 56px 0; }
    .closing { height: 520px; }
    .footer-inner { grid-template-columns: 1fr; }
}
