/* The달팽이 — jointpro.koreazipsuri.com — font_id=3(KT업사이클) design_id=1 hero_id=5 section_variant=1 draw_id=1 header_variant=1 */

:root {
  --font-title: "Gowun Batang", serif;
  --font-body: "Pretendard", sans-serif;
  --deep: #0A1628;
  --accent: #C49A32;
  --accent-soft: #F4EBD4;
  --accent-text: #1A1A1A;
  --mid-band: #F4F3EC;
  --bar-chrome: #E9EBEE;
  --ink: #000000;
  --line: #E5E5E5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
h1, h2, h3, .hero-title, .sec-title, .point-font { font-family: var(--font-title); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-family: var(--font-body); font-weight: 600;
  font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-cta { background: var(--accent); color: var(--accent-text); }
.btn-cta:hover { filter: brightness(0.94); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-closing {
  border: 1px solid #f4f4ed; color: #f4f4ed; background: transparent;
  border-radius: 0; padding: 14px 36px; letter-spacing: 0.02em;
}
.btn-closing:hover { background: rgba(244,244,237,0.12); }

/* ---------- Eyebrow / section label ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent);
  text-transform: uppercase;
}
.eyebrow .ic { display: block; width: 18px; height: 18px; flex-shrink: 0; overflow: hidden; }
.eyebrow .ic svg { display: block; width: 100%; height: 100%; max-width: 18px; max-height: 18px; }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; margin: 0 0 20px; }

/* ---------- Icon container (B-20 고정 패턴) ---------- */
.svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; color: var(--accent); }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
@media (max-width: 767px) {
  .svc-icon { width: 36px; height: 36px; }
  .svc-icon svg { max-width: 36px; max-height: 36px; }
}

/* ---------- Header (B-22: joseon-center + TOP transparent / SCROLLED chrome) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: #fff; border-bottom: 1px solid #000;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-transparent-ready { background: transparent; border-bottom-color: transparent; }
.site-header.is-transparent-ready .hd-logo-text, .site-header.is-transparent-ready .hd-nav a { color: #fff; }
.site-header.is-scrolled {
  background: var(--bar-chrome); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}
.site-header.is-scrolled .hd-logo-text, .site-header.is-scrolled .hd-nav a { color: var(--ink); }
.hd-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.hd-nav { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.hd-nav-right { justify-content: flex-end; }
.hd-logo { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hd-logo-icon { width: 26px; height: 26px; color: var(--accent); }
.hd-logo-icon svg { width: 100%; height: 100%; }
.hd-logo-text { font-family: var(--font-title); font-size: 20px; font-weight: 700; transition: color .3s ease; }
.hd-logo-the { color: inherit; }
.hd-logo-mark { color: var(--accent) !important; }
.hd-cta { padding: 10px 22px; font-size: 14px; }
@media (max-width: 900px) {
  .hd-nav-left { display: none; }
  .hd-inner { grid-template-columns: 1fr auto; }
  .hd-nav-right { display: flex; }
}

/* ---------- Hero (hero_id=5 자이언트타이포) ---------- */
.hero-giant { padding: 150px 24px 0; text-align: center; background: var(--mid-band); }
.hero-giant .hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 18px; text-transform: uppercase; }
.hero-title { font-size: clamp(58px, 10vw, 152px); line-height: 1.02; font-weight: 700; margin: 0 0 24px; word-break: keep-all; }
.hero-sub { font-size: 18px; max-width: 640px; margin: 0 auto 40px; color: #444; }
.hero-panel { position: relative; max-width: 1200px; margin: 0 auto; }
.hero-panel img { width: 100%; height: 62vh; min-height: 380px; max-height: 640px; object-fit: cover; }
.hero-panel-caption {
  position: absolute; left: 32px; bottom: 32px; color: #fff; max-width: 420px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,0) 40%, rgba(10,22,40,0.45) 100%); }

/* page hero (sub pages) */
.page-hero { padding: 150px 24px 60px; text-align: center; background: var(--mid-band); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 14px; }
.page-hero .lead { font-size: 17px; color: #444; max-width: 700px; margin: 0 auto; }

/* ---------- Sections ---------- */
.sec { padding: 80px 0; }
.sec-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec-alt { background: var(--mid-band); }

/* section_variant=1 catalog-card: 세로 카드 3열, 이미지 위 + 크림 배경 하단 대문자 제목+태그 */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalog-card { border: 1px solid transparent; transition: border-color .3s ease, transform .3s ease; }
.catalog-card .cc-img { aspect-ratio: 4/3; overflow: hidden; }
.catalog-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card .cc-body { background: var(--accent-soft); padding: 22px 20px; }
.catalog-card .cc-tag { font-size: 12px; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.catalog-card .cc-title { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin: 8px 0 0; font-family: var(--font-body); }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: 1fr; } }

/* draw_id=1 챔피언스시티 둘레선 호버 — 흰박스 카드에만 */
.draw-outline { position: relative; }
.draw-outline::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid transparent; transition: border-color .6s ease;
}
.draw-outline:hover::before { border-color: #000; }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-item { padding: 28px 20px; background: #fff; border: 1px solid var(--line); }
.process-num { font-family: var(--font-title); font-size: 32px; color: var(--accent); margin-bottom: 10px; }
.process-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-desc { font-size: 14px; color: #555; margin: 0; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { 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; cursor: pointer;
  padding: 22px 4px; font-size: 16px; font-weight: 600; font-family: var(--font-body);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--ink); transition: transform .25s ease; }
.faq-plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-plus::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.is-open .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; font-size: 15px; color: #444; }
.faq-item.is-open .faq-a { max-height: 300px; }

/* ---------- 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; text-align: center; color: #fff; padding: 0 24px; max-width: 720px; }
.closing-head { font-family: var(--font-title); font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 0 0 18px; white-space: nowrap; }
.closing-quote { font-size: 16px; color: #eee; margin: 0 0 30px; }
@media (max-width: 767px) { .closing-head { white-space: normal; font-size: 22px; } .closing { height: 520px; } }

/* ---------- Footer (색상표 seed%4=1 → 흰 푸터) ---------- */
.site-footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.ft-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ft-biz-name { font-family: var(--font-title); font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.ft-biz-line { font-size: 14px; color: #555; margin: 0 0 4px; }
.ft-biz-btns { display: flex; gap: 12px; margin-top: 18px; }
.ft-cat { display: flex; gap: 64px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ft-cat-col { display: flex; flex-direction: column; gap: 8px; }
.ft-cat-h { font-size: 12px; font-weight: 700; color: #999; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px; }
.ft-cat-col a { font-size: 13px; color: #777; }
.ft-cat-col a:hover { color: var(--ink); }
.ft-copy { margin-top: 40px; font-size: 12px; color: #aaa; }

/* ---------- Sticky bottom bar (B-23, desktop) ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 90;
  background: var(--bar-chrome); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(0,0,0,0.08);
  display: flex; justify-content: center; padding: 14px;
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.sticky-bar.is-show { transform: translateY(0); opacity: 1; }
.mobile-bar { display: none; }

@media (max-width: 767px) {
  .sticky-bar { display: none; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 90;
    background: var(--bar-chrome); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }
  .mobile-bar-btn { flex: 1; text-align: center; padding: 16px 0; font-weight: 600; font-size: 15px; min-height: 48px; }
  .mobile-bar-call { background: var(--bar-chrome); color: var(--ink); border-right: 1px solid var(--line); }
  .mobile-bar-consult { background: var(--accent); color: var(--accent-text); }
  body { padding-bottom: 56px; }
}

/* ---------- Portfolio irregular grid ---------- */
.pf-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px 28px; }
.pf-card { grid-column: span 6; }
.pf-card .pf-img { aspect-ratio: 7/6; overflow: hidden; }
.pf-card:nth-child(3n+1) { grid-column: span 4; }
.pf-card:nth-child(3n+1) .pf-img { aspect-ratio: 5/6; }
.pf-card:nth-child(3n+2) { grid-column: span 8; }
.pf-card:nth-child(3n+2) .pf-img { aspect-ratio: 189/100; }
.pf-card .pf-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-card .pf-cap { padding-top: 12px; }
.pf-card .pf-tag { font-size: 12px; color: var(--accent); font-weight: 600; }
.pf-card .pf-title { font-size: 16px; font-weight: 700; margin: 4px 0 0; }
@media (max-width: 900px) {
  .pf-card, .pf-card:nth-child(3n+1), .pf-card:nth-child(3n+2) { grid-column: span 12; }
  .pf-card .pf-img, .pf-card:nth-child(3n+1) .pf-img, .pf-card:nth-child(3n+2) .pf-img { aspect-ratio: 4/3; }
}
.pf-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 56px; }
.pf-pagination a, .pf-pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; }
.pf-pagination .is-current { background: #000; color: #fff; }

.pf-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.pf-intro img { aspect-ratio: 7/6; object-fit: cover; }
@media (max-width: 900px) { .pf-intro { grid-template-columns: 1fr; } }

/* ---------- Case detail (case_detail_variant=1 apt-journal-detail) ---------- */
.case-cover { max-width: 550px; margin: -40px auto 40px; }
.case-cover img { width: 550px; max-width: 100%; height: 410px; object-fit: cover; }
.case-label { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.case-body-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.case-title { font-size: 27px; font-weight: 700; margin: 0 0 24px; }
.case-body p { font-size: 15px; font-weight: 500; line-height: 1.85; color: #333; white-space: pre-line; }
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1000px; margin: 40px auto; padding: 0 24px; }
.case-gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.case-related { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.case-related .cc-img { aspect-ratio: 16/10; }
@media (max-width: 700px) { .case-gallery { grid-template-columns: repeat(2, 1fr); } .case-related { grid-template-columns: 1fr; } }

/* ---------- Brand intro type D (위 와이드 이미지 + 아래 글左·이미지3右) ---------- */
.brand-intro-wide img { width: 100%; height: 46vh; min-height: 320px; object-fit: cover; margin-bottom: 48px; }
.brand-intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.brand-intro-text h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; }
.brand-intro-text p { font-size: 15px; color: #444; line-height: 1.8; }
.brand-intro-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brand-intro-imgs img { aspect-ratio: 3/4; object-fit: cover; }
@media (max-width: 900px) { .brand-intro-split { grid-template-columns: 1fr; } }

/* Mid preview cards on home (#cases) */
.home-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; }
.hc-card { position: relative; }
.hc-card .hc-img { aspect-ratio: 1/1; overflow: hidden; }
.hc-card .hc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hc-card:hover .hc-img img { transform: scale(1.05); }
.hc-card .hc-box { background: #fff; padding: 16px 4px; }
.hc-card .hc-tag { font-size: 12px; color: var(--accent); font-weight: 600; }
.hc-card .hc-title { font-size: 16px; font-weight: 700; margin: 4px 0 0; }
@media (max-width: 900px) { .home-cases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .home-cases-grid { grid-template-columns: 1fr; } }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto 40px; }
.contact-card { border: 1px solid var(--line); padding: 36px 24px; text-align: center; }
.contact-card .svc-icon { margin: 0 auto 16px; }
.contact-card h3 { font-size: 18px; margin: 0 0 8px; }
.contact-card p { font-size: 14px; color: #666; }
.contact-info { max-width: 500px; margin: 0 auto; text-align: center; font-size: 14px; color: #555; }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }

/* About page */
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .about-values { grid-template-columns: 1fr; } }

/* utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
