/* The달팽이 — 대리석변색복원 (color.koreazipsuri.com) / seed 2274 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
    --accent: #B06B72;
    --accent-soft: #F3E8E9;
    --deep: #161616;
    --mid-band: #F4F3EC;
    --bar-chrome: #EBECEE;
    --ink: #161616;
    --paper: #FFFFFF;
    --line: #E5E5E5;
    --serif: 'Noto Serif KR', serif;
    --sans: 'Pretendard', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--serif);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0 0 .6em; line-height: 1.35; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
table caption { text-align: left; font-weight: 600; margin-bottom: .5em; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
th { background: var(--mid-band); font-weight: 600; }
.ic { display: inline-block; vertical-align: -4px; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper); color: var(--ink);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    background: var(--bar-chrome);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.logo-accent { color: var(--accent); }
.main-nav ul { display: flex; gap: 28px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.main-nav a.is-active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.mobile-nav { display: none; background: var(--paper); border-top: 1px solid var(--line); }
.mobile-nav ul { padding: 8px 24px 16px; font-family: var(--sans); }
.mobile-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav.is-open { display: block; }
@media (max-width: 860px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
}

/* ---------- hero (hero_id=8 크림스플릿홈) ---------- */
.hero {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 560px;
}
.hero-copy {
    background: var(--mid-band);
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 56px;
}
.hero-h1 { margin: 0 0 20px; }
.hero-eyebrow { display: block; font-size: 25px; font-family: var(--sans); font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.hero-brand { display: block; font-size: 50px; line-height: 1.1; margin-top: 6px; }
.hero-lead { font-size: 17px; color: #333; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 8px; font-family: var(--sans); }
.hero-photo { background-size: cover; background-position: center; min-height: 320px; }
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 44px 24px; order: 2; }
    .hero-photo { min-height: 260px; order: 1; }
    .hero-brand { font-size: 40px; }
}

.btn-primary, .btn-outline {
    font-family: var(--sans); font-weight: 600; font-size: 15px;
    padding: 13px 26px; display: inline-block; border-radius: 2px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }

/* ---------- section intro (section_variant=12 makeon-intro) ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--mid-band); }
.section-intro { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-intro .eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-intro h2 { font-size: 30px; }
.section-intro p { color: #555; }

/* ---------- service grid ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { border: 1px solid var(--line); padding: 30px 22px; text-align: center; }
.service-card .ic-wrap { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--accent); }
.service-card h3 { font-size: 17px; }
.service-card p { font-size: 14px; color: #555; margin: 0; }
@media (max-width: 860px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .service-card .ic-wrap { width: 36px; height: 36px; } }

/* ---------- cases preview (design_id=0 4-card hover) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-card { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-card .cc-overlay {
    position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
    display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity .3s ease;
}
.case-card .cc-overlay p { color: #fff; font-family: var(--sans); font-size: 14px; margin: 0; }
.case-card:hover img { transform: scale(1.06); }
.case-card:hover .cc-overlay { opacity: 1; }
@media (max-width: 860px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- brand intro (image-left 2x2 + text-right) ---------- */
.brand-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bi-grid img { aspect-ratio: 1/1; object-fit: cover; }
.bi-text h2 { font-size: 28px; }
.bi-text ul { margin-top: 18px; display: grid; gap: 12px; }
.bi-text li { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 15px; }
.bi-text li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 860px) { .brand-intro { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); padding: 4px 20px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-family: var(--sans); font-weight: 600; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 16px; color: #444; font-size: 15px; }

/* ---------- process steps ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-item { position: relative; padding-top: 8px; }
.process-item .pnum { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--accent-soft); line-height: 1; }
.process-item h3 { font-size: 16px; margin-top: 4px; }
.process-item p { font-size: 14px; color: #555; margin: 0; }
@media (max-width: 860px) { .process-list { grid-template-columns: 1fr 1fr; } }

/* ---------- portfolio grid (30/68/49 cycle) ---------- */
.portfolio-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.portfolio-grid .pf-item { position: relative; overflow: hidden; }
.portfolio-grid .pf-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-grid .pf-item:nth-child(6n+1) { width: 30%; aspect-ratio: 5/6; }
.portfolio-grid .pf-item:nth-child(6n+2) { width: calc(68% - 16px); aspect-ratio: 9.45/5; }
.portfolio-grid .pf-item:nth-child(6n+3),
.portfolio-grid .pf-item:nth-child(6n+4) { width: calc(49% - 8px); aspect-ratio: 7/6; }
.portfolio-grid .pf-item:nth-child(6n+5) { width: calc(68% - 16px); aspect-ratio: 9.45/5; }
.portfolio-grid .pf-item:nth-child(6n+6) { width: 30%; aspect-ratio: 5/6; }
.portfolio-grid .pf-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.7)); color: #fff; font-family: var(--sans); font-size: 13px; }
@media (max-width: 700px) {
    .portfolio-grid .pf-item { width: 100% !important; aspect-ratio: 4/3 !important; }
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; font-family: var(--sans); }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); }
.pagination .is-current { background: var(--ink); color: #fff; }

/* ---------- case / region detail ---------- */
.case-hero { height: 46vh; min-height: 320px; background-size: cover; background-position: center; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.case-photo-framed { width: 550px; max-width: 100%; height: 410px; object-fit: cover; margin: 0 auto 20px; }
.case-label { font-family: var(--sans); color: var(--accent); font-size: 14px; letter-spacing: .04em; margin-bottom: 10px; }
.article-wrap h1 { font-size: 30px; }
.article-body p { color: #333; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 32px 0; }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; cursor: zoom-in; }
.related-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.related-row a { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.related-row img { width: 100%; height: 100%; object-fit: cover; }
.related-row span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--sans); font-size: 13px; }
.breadcrumb { font-family: var(--sans); font-size: 13px; color: #777; margin-bottom: 20px; }
.breadcrumb a { color: #777; }

/* ---------- closing (650px 고정) ---------- */
.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(0,0,0,.55); }
.closing-inner { position: relative; text-align: center; color: #fff; max-width: 640px; padding: 0 24px; }
.closing-headline { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.closing-quote { font-family: var(--sans); font-size: 15px; opacity: .85; margin-bottom: 28px; }
.btn-consult {
    display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 15px;
    color: #fff; border: 1px solid #F3EEE3; border-radius: 0; padding: 14px 34px;
}
@media (max-width: 700px) { .closing-headline { font-size: 24px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 0; }
.ft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-family: var(--sans); font-size: 14px; }
.ft-col h3 { font-size: 14px; margin-bottom: 12px; }
.ft-col ul { display: grid; gap: 8px; }
.ft-col p.nap { color: #555; line-height: 1.8; }
.ft-tel { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--accent); }
.ft-logo { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.ft-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0; font-family: var(--sans); font-size: 12px; color: #888; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ft-grid { grid-template-columns: 1fr; } }

/* ---------- sticky bars ---------- */
.sticky-mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
.sm-cell { flex: 1; text-align: center; padding: 14px 0; font-family: var(--sans); font-weight: 600; }
.sm-call { background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sm-consult { background: var(--accent); color: #fff; }
@media (max-width: 767px) { .sticky-mobile-bar { display: flex; } body { padding-bottom: 52px; } }

.sticky-desktop-consult {
    position: fixed; right: 28px; bottom: 28px; z-index: 60;
    background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 600;
    padding: 14px 24px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
    opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .25s ease;
}
.sticky-desktop-consult.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 767px) { .sticky-desktop-consult { display: none; } }

/* ---------- fade-in ---------- */
[data-anim] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-anim].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; }
.lightbox .lb-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 28px; cursor: pointer; background: none; border: 0; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; padding: 12px; }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }

/* ---------- content page basics ---------- */
.page-hero { padding: 60px 0 20px; text-align: center; }
.page-hero h1 { font-size: 32px; }
.simple-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.contact-card { border: 1px solid var(--line); padding: 28px; text-align: center; }
.contact-card .ic-wrap { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--accent); }
.contact-card a.big-tel { font-family: var(--sans); font-size: 24px; font-weight: 700; color: var(--accent); }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }
.last-modified { font-family: var(--sans); font-size: 13px; color: #999; text-align: right; margin-top: 8px; }
