/* ============================================================
   URBAN FIX / 어반픽스 — 시스템행거철거
   MODULAR / EDITORIAL design system
   WHITE + CHARCOAL + LAVENDER/VIOLET
============================================================ */

:root {
    --bg: #FFFFFF;
    --bg-sub: #F7F7FA;
    --text: #222226;
    --text-sub: #303036;
    --text-mute: #6B6B74;
    --violet: #7256B8;
    --violet-2: #8066C2;
    --lavender: #EEEAF8;
    --lavender-2: #F5F2FA;
    --line: #E2E1E8;
    --container: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
        "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
svg { display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 14px;
}

.section {
    padding: 72px 0;
}
.section-lg { padding: 90px 0; }
.section-sub { background: var(--bg-sub); }

.section-head {
    margin-bottom: 48px;
}
.section-head h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text-sub);
    letter-spacing: -0.01em;
}
.section-head p {
    margin-top: 14px;
    color: var(--text-mute);
    font-size: 1rem;
}

.point { color: var(--violet); }

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-en {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--text);
}
.brand-kr {
    font-size: 0.72rem;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}
.nav-desktop {
    display: none;
}
.nav-desktop ul {
    display: flex;
    gap: 32px;
}
.nav-desktop a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-sub);
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--violet); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--violet);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 20px;
    border-radius: 4px;
    white-space: nowrap;
}
.btn-call:hover { background: #614aa0; }
.btn-call svg { width: 16px; height: 16px; flex: none; }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { padding: 8px 24px 20px; }
.nav-mobile li { border-bottom: 1px solid var(--line); }
.nav-mobile a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 900px) {
    .nav-desktop { display: block; }
    .menu-toggle { display: none; }
    .nav-mobile { display: none !important; }
}

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
    padding: 64px 0 40px;
}
.hero-grid {
    display: grid;
    gap: 48px;
}
.hero-copy { position: relative; }
.hero-copy-bg {
    position: absolute;
    top: -10%;
    right: -12%;
    width: 78%;
    max-width: 380px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}
.hero-copy-bg svg { width: 100%; height: auto; display: block; }
.hero-copy-content { position: relative; z-index: 1; }
.hero-copy h1 {
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--text-sub);
}
.hero-copy .sub {
    margin-top: 22px;
    font-size: 1.05rem;
    color: var(--text-mute);
    max-width: 42em;
}
.hero-actions { margin-top: 32px; }

.hero-visual {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--lavender-2);
}
.hero-photo-main { aspect-ratio: 340/300; }
.hero-photo-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 900px) {
    .hero { padding: 96px 0 56px; }
    .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

/* ------------------------------------------------------------
   SERVICE FLOW (timeline, single line — not cards)
------------------------------------------------------------ */
.flow-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-sub);
    margin-bottom: 40px;
}
@media (min-width: 900px) {
    .flow-section { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
    .flow-title { margin-bottom: 0; }
}
.flow-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 2px solid var(--text);
}
.flow-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
}
.flow-item .num { font-size: 1rem; font-weight: 800; color: var(--violet); flex: none; width: 1.6em; }
.flow-item .icon-badge {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--violet);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-item .icon-badge svg { width: 20px; height: 20px; }
.flow-item .text { min-width: 0; }
.flow-item .en { display: block; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
.flow-item .kr { display: block; font-size: 1.1rem; font-weight: 700; color: var(--text-sub); margin-top: 2px; }
.flow-item .desc { margin-top: 4px; font-size: 0.86rem; color: var(--text-mute); }
.flow-note {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--lavender);
    border-radius: 4px;
    font-size: 0.94rem;
    color: var(--text-sub);
    border-left: 3px solid var(--violet);
}
@media (min-width: 900px) {
    .flow-track { grid-template-columns: repeat(4, 1fr); border-top: none; gap: 0; }
    .flow-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        border-bottom: none;
        border-top: none;
        padding: 0 16px;
        position: relative;
    }
    .flow-item .num { width: auto; order: -1; }
    .flow-item:not(:first-child)::before {
        content: "";
        position: absolute;
        top: 45px;
        left: -50%;
        width: 100%;
        height: 1px;
        background: var(--line);
    }
    .flow-item .icon-badge { position: relative; z-index: 1; }
    .flow-item .desc { max-width: 15em; }
}

/* ------------------------------------------------------------
   NSEO INDEX (editorial list, not photo cards)
------------------------------------------------------------ */
.idx-list { border-top: 1px solid var(--line); }
.idx-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.idx-item .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lavender-2);
    -webkit-text-stroke: 1px var(--violet);
    color: transparent;
    flex: none;
    width: 1.4em;
}
.idx-item .name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-sub);
}
.idx-item .arrow {
    flex: none;
    color: var(--violet);
    font-size: 1.2rem;
    transition: transform 0.15s;
}
.idx-item:hover .arrow { transform: translateX(4px); }
@media (min-width: 640px) {
    .idx-item .name { font-size: 1.25rem; }
}
.services-photo {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 28px;
}
.services-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: servicesPhotoFade 8s ease-in-out infinite;
}
.services-photo img:nth-child(2) { animation-delay: 4s; }
@keyframes servicesPhotoFade {
    0%, 42% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .services-photo img { animation: none; opacity: 1; }
    .services-photo img:nth-child(2) { display: none; }
}
@media (min-width: 900px) {
    .services-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .services-photo { margin-top: 0; }
}

/* ------------------------------------------------------------
   SITUATIONS
------------------------------------------------------------ */
.situation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.situation-cell {
    background: #fff;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.situation-cell .icon-badge {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lavender);
    color: var(--violet);
    display: flex;
    align-items: center;
    justify-content: center;
}
.situation-cell .icon-badge svg { width: 20px; height: 20px; }
.situation-cell p {
    font-size: 0.96rem;
    color: var(--text-sub);
    font-weight: 600;
    line-height: 1.4;
}
.situation-cta {
    background: var(--violet);
}
.situation-cta .icon-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.situation-cta p {
    color: #fff;
}
@media (min-width: 640px) {
    .situation-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .situation-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------
   SERVICE AREA
------------------------------------------------------------ */
.area-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.area-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-sub);
    font-size: 0.92rem;
    font-weight: 600;
}
.area-chip svg { width: 15px; height: 15px; color: var(--violet); flex: none; }
.area-chip.is-link { transition: border-color 0.15s, color 0.15s; }
.area-chip.is-link:hover { border-color: var(--violet); color: var(--violet); }
.area-chip-all {
    background: var(--violet);
    border-color: var(--violet);
    color: #fff;
}
.area-chip-all svg { color: #fff; }

/* ------------------------------------------------------------
   PROCESS (timeline)
------------------------------------------------------------ */
.process-list { position: relative; }
.process-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding-bottom: 34px;
    position: relative;
}
.process-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 46px;
    bottom: 0;
    width: 1px;
    background: var(--line);
}
.process-item .num-badge {
    width: 54px;
    height: 54px;
    border: 2px solid var(--violet);
    color: var(--violet);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    background: #fff;
    flex: none;
}
.process-item h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-sub);
    margin-top: 10px;
}
.process-item p {
    margin-top: 6px;
    color: var(--text-mute);
    font-size: 0.95rem;
}
@media (min-width: 900px) {
    .process-list {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }
    .process-item {
        grid-template-columns: 1fr;
        padding: 0 14px 0 0;
        padding-bottom: 0;
    }
    .process-item:not(:last-child)::before {
        left: 50%;
        top: 22px;
        width: 100%;
        right: auto;
        bottom: auto;
        height: 1px;
    }
    .process-item .num-badge { width: 44px; height: 44px; font-size: 0.95rem; margin: 0 auto 4px; }
    .process-item h3 { font-size: 1rem; }
}

/* ------------------------------------------------------------
   CASE STUDIES / PHOTO PAIR
------------------------------------------------------------ */
.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.case-pair { }
.case-pair .imgs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
@media (min-width: 640px) {
    .case-pair .imgs { grid-template-columns: 1fr 1fr; }
}
.case-pair figure { margin: 0; position: relative; }
.case-pair img { border-radius: 4px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.case-pair figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(34, 34, 38, 0.78);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
}
.case-pair .cap {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-sub);
    font-weight: 600;
}
@media (min-width: 720px) {
    .case-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .case-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.section-head.with-cta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.btn-more {
    flex: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--violet);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 20px;
    white-space: nowrap;
}
.case-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.case-card {
    display: block;
    padding: 20px 20px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.case-card .tag {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--violet);
    letter-spacing: 0.06em;
}
.case-card h3 {
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-sub);
    line-height: 1.35;
}
.case-card img {
    margin-top: 18px;
    width: 100%;
    height: auto;
    display: block;
}
@media (min-width: 720px) {
    .case-cards { grid-template-columns: repeat(3, 1fr); }
}

/* single photo block used inside NSEO/region body */
.photo-block { margin: 0; }
.photo-block img { border-radius: 4px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-block figcaption {
    margin-top: 10px;
    font-size: 0.86rem;
    color: var(--text-mute);
}
.photo-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .photo-row.two { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------
   FAQ (native details/summary, no JS)
------------------------------------------------------------ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    padding: 20px 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-sub);
    display: flex;
    gap: 14px;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: "Q";
    flex: none;
    color: var(--violet);
    font-weight: 800;
}
.faq-item[open] summary::before { }
.faq-item .a {
    padding: 0 4px 22px 28px;
    color: var(--text-mute);
    font-size: 0.95rem;
    display: flex;
    gap: 14px;
}
.faq-item .a::before {
    content: "A";
    flex: none;
    color: var(--text-mute);
    font-weight: 800;
}

/* ------------------------------------------------------------
   OTHER SERVICES (photo card grid)
------------------------------------------------------------ */
.other-services .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.other-services .card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 0.15s ease;
}
.other-services .card:hover { border-color: var(--violet); }
.other-services .card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.other-services .card .label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-sub);
}
.other-services .card .arrow { color: var(--violet); }

@media (min-width: 720px) {
    .other-services .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------
   CHECK POINTS
------------------------------------------------------------ */
.check-list { border-top: 1px solid var(--line); }
.check-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.check-item .mark {
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--violet);
    border-radius: 50%;
    position: relative;
    margin-top: 2px;
}
.check-item .mark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--violet);
    border-bottom: 2px solid var(--violet);
    transform: rotate(40deg);
}
.check-item p { color: var(--text-sub); font-size: 0.98rem; font-weight: 600; }

/* ------------------------------------------------------------
   FINAL CTA
------------------------------------------------------------ */
.cta-band {
    background: var(--text-sub);
    color: #fff;
    text-align: center;
    padding: 64px 24px;
    border-radius: 4px;
}
.cta-band h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
.cta-band p { margin-top: 12px; color: #C9C6D6; font-size: 0.98rem; }
.cta-band .btn-call { margin-top: 26px; background: var(--violet-2); font-size: 1rem; padding: 15px 30px; }

/* ------------------------------------------------------------
   SMALL HERO (NSEO / region pages)
------------------------------------------------------------ */
.small-hero {
    padding: 44px 0 8px;
    border-bottom: 1px solid var(--line);
}
.small-hero .crumb {
    font-size: 0.82rem;
    color: var(--text-mute);
    margin-bottom: 16px;
}
.small-hero .crumb a { color: var(--violet); font-weight: 600; }
.small-hero h1 {
    font-size: clamp(1.9rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--text-sub);
    letter-spacing: -0.01em;
    padding-bottom: 36px;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.site-footer {
    background: var(--bg-sub);
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
    margin-top: 40px;
}
.footer-brand { font-weight: 800; font-size: 1.1rem; color: var(--text-sub); }
.footer-info {
    margin-top: 18px;
    font-size: 0.86rem;
    color: var(--text-mute);
    line-height: 2;
}
.footer-info strong { color: var(--text-sub); font-weight: 700; }
.footer-lastmod { margin-top: 14px; font-size: 0.8rem; color: var(--text-mute); }
.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--text-mute);
}

.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--violet);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 -4px 16px rgba(34, 34, 38, 0.16);
}
.mobile-cta-bar svg { width: 18px; height: 18px; flex: none; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
    .mobile-cta-bar { display: none; }
    body { padding-bottom: 0; }
}

/* ------------------------------------------------------------
   UTILITIES
------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-lg { margin-top: 90px; }
.mt-xl { margin-top: 120px; }

@media (max-width: 899px) {
    .mt-lg { margin-top: 64px; }
    .mt-xl { margin-top: 80px; }
    .section { padding: 56px 0; }
    .section-lg { padding: 64px 0; }
}

/* PC 전용 강제 줄바꿈 — 모바일에서는 자연 줄바꿈에 맡기고 숨김 */
.pc-only { display: none; }
@media (min-width: 900px) {
    .pc-only { display: inline; }
}
