:root {
  --accent: #CA5625;
  --accent-soft: #F8E8E0;
  --hero-tint: #FAF7EE;
  --text: #1A1410;
  --muted: #6B5348;
  --line: #E8E0DC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, button, input, textarea {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
}
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  letter-spacing: -0.3px;
  line-height: 1.6;
  padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .4px;
  margin: 0 0 16px;
}
.section-title { font-size: 30px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.3px; }
.section-lead { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 640px; margin: 0; }

.btn-fill {
  height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: -.3px; align-items: center; justify-content: center;
  border: none; cursor: pointer;
}
.btn-line {
  height: 48px; padding: 0 26px; border-radius: 999px;
  background: transparent; color: var(--text); border: 1px solid var(--text);
  font-size: 15px; font-weight: 600; letter-spacing: -.3px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------- HEADER (joseon-center) ---------------- */
.site-header {
  position: relative; z-index: 200;
  background: #fff; border-bottom: 1px solid #000;
}
.header-inner {
  height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav { display: flex; align-items: center; gap: 26px; font-family: "Barlow Condensed", sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-cta {
  padding: 10px 20px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700;
}
.logo { display: flex; align-items: center; gap: 10px; justify-self: center; }
.logo-icon { width: 34px; height: 34px; color: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.logo-keyword { font-size: 19px; font-weight: 700; color: var(--text); }

.nav-drop { position: relative; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop-panel {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  box-shadow: 0 20px 44px rgba(0,0,0,.12); min-width: 200px; z-index: 201;
  flex-direction: column;
  text-transform: none; font-family: "Pretendard Variable", sans-serif; font-weight: 500; font-size: 15px;
}
.nav-drop-panel a { padding: 10px 14px; border-radius: 8px; }
.nav-drop-panel a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { display: flex; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); }
.nav-mobile { display: none; }

/* ---------------- HERO (split — main_skin1, matt 카드 금지) ---------------- */
.hero { padding: 0; background: #fff; }
.hero__inner {
  max-width: 1180px; margin: 0 auto; padding: 72px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: .4px; margin: 0 0 18px;
}
.hero h1 { font-size: 44px; font-weight: 700; color: var(--text); letter-spacing: -.5px; line-height: 1.3; margin: 0 0 16px; }
.hero-sub { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 440px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; margin: 0 0 24px; }
.hero-cta a { display: inline-flex; }
.hero-checks { display: flex; gap: 20px; padding: 18px 0 0; font-size: 14px; color: var(--muted); list-style: disc inside; }
.hero-media {
  border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 3/4;
  box-shadow: 0 20px 44px rgba(0,0,0,.12); background: var(--hero-tint);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hero-media img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------------- ABOUT ---------------- */
#about { background: #FAF7EE; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-copy p { font-size: 16px; line-height: 30px; color: var(--muted); margin: 0 0 18px; }

/* ---------------- SERVICE ---------------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-card { padding: 32px 24px; border: 1px solid var(--line); border-radius: 16px; }
.service-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; color: var(--accent); margin-bottom: 20px; }
.service-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.service-card p { font-size: 14px; line-height: 22px; color: var(--muted); margin: 0; }

/* ---------------- CASES (main_skin1: 4장 2x2 원그로브 호버) ---------------- */
#cases { background: #fff; }
.case-grid-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card-home {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 590/396;
  background: #fff;
}
.case-card-home img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.case-card-home .reveal {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 32px; background: #fff; opacity: 0; transition: opacity .3s ease;
}
.case-card-home .reveal p { font-size: 15px; line-height: 26px; color: #333; }
.case-card-home:hover img { opacity: 0; }
.case-card-home:hover .reveal { opacity: 1; }
.case-card-home .label {
  position: absolute; left: 16px; bottom: 16px; background: rgba(19,19,19,.6); color: #fff;
  font-size: 13px; padding: 6px 12px; border-radius: 999px; transition: opacity .3s ease;
}
.case-card-home:hover .label { opacity: 0; }

/* ---------------- PROCESS ---------------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid var(--line); }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: none; }
.pnum { color: var(--accent); font-weight: 700; font-size: 13px; display: block; margin-bottom: 10px; }
.process-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.process-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 22px; }

/* ---------------- REGION teaser ---------------- */
.region-links { display: flex; flex-wrap: wrap; gap: 12px; }
.region-links a {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
}
.region-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; }
.faq-item h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.faq-item p { font-size: 14px; line-height: 24px; color: var(--muted); margin: 0; }

/* ---------------- PLAN TABLE ---------------- */
.plan-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; }
.plan-table caption { text-align: left; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.plan-table th, .plan-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.plan-table thead th { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.plan-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.plan-table td { color: var(--muted); }
.plan-table-note { font-size: 13px; color: var(--muted); margin: 0 0 32px; }

/* ---------------- CLOSING ---------------- */
.closing {
  position: relative; height: 600px; 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,.55); }
.closing-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px; }
.closing-head { font-size: 32px; font-weight: 700; white-space: nowrap; margin: 0 0 18px; }
.closing-quote { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 0 28px; }
.btn-closing {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 32px;
  border: 1px solid #fff; color: #fff; font-size: 15px; font-weight: 600;
}

/* ---------------- PAGE HERO (tint panel, 서브페이지) ---------------- */
.hero-panel {
  max-width: 1180px; margin: 40px auto; padding: 48px 56px; background: var(--hero-tint);
  border-radius: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-panel h1 { font-size: 34px; font-weight: 700; margin: 12px 0; letter-spacing: -.4px; }
.hero-panel p { font-size: 15px; line-height: 26px; color: var(--muted); margin: 0; }
.hero-panel .panel-media {
  border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hero-panel .panel-media img { width: 100%; height: 100%; object-fit: contain; }

.page-hero {
  position: relative; z-index: 0; min-height: 420px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(19,19,19,.5); pointer-events: none; z-index: 0; }
.page-hero .copy { position: relative; z-index: 1; color: #fff; pointer-events: none; }
.page-hero .copy .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.page-hero h1 { color: #fff; font-size: 36px; font-weight: 800; margin: 0; }

/* ---------------- CASE LIST (editorial-card) ---------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.case-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.case-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 20px 22px; }
.case-card .body .tag { font-size: 12px; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.case-card .body h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.case-card .body p {
  font-size: 14px; color: var(--muted); margin: 0; line-height: 22px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- CASE DETAIL (apt-journal-detail) ---------------- */
.case-body { max-width: 640px; margin: 48px auto 0; text-align: center; }
.case-body .rep-photo { border-radius: 18px; overflow: hidden; background: #F3F5F8; }
.case-body .rep-photo img { width: 100%; height: auto; object-fit: contain; display: block; }
.case-body .photo-label { font-size: 13px; color: #888; margin: 14px 0 20px; }
.case-body h2 { font-size: 27px; font-weight: 700; margin: 0 0 24px; }
.case-body .journal-text { text-align: left; font-size: 15px; font-weight: 500; line-height: 28px; color: var(--text); }
.case-body .journal-text p { margin: 0 0 18px; }

.back-link { text-align: center; padding: 48px 0; }
.back-link a { font-size: 15px; font-weight: 600; color: var(--muted); }
.back-link a:hover { color: var(--accent); }

/* ---------------- CATALOG-CARD (section_variant=1, 공간유형 카테고리) ---------------- */
.catalog-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalog-card {
  border-radius: 4px; overflow: hidden; background: #FAF7EE;
}
.catalog-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.catalog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card .cap { padding: 20px; }
.catalog-card .cap .tag { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .4px; margin-bottom: 8px; }
.catalog-card .cap h4 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0; }

/* ---------------- REGION LIST ---------------- */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.region-chip {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600;
}
.region-chip:hover { border-color: var(--accent); color: var(--accent); }
.region-province { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin: 40px 0 16px; }
.region-province:first-child { margin-top: 0; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.footer-biz { border-top: 1px solid var(--line); padding-top: 24px; }
.footer-biz p { font-size: 13px; color: var(--muted); line-height: 22px; margin: 0 0 4px; }
.footer-copy { font-size: 13px; color: var(--muted); margin: 20px 0 0; }

.mobile-bar { display: none; }

@media (max-width: 767px) {
  .header-inner { grid-template-columns: auto 1fr auto; height: 64px; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile {
    display: none; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-mobile .nav-cta { border: none; margin-top: 12px; text-align: center; border-radius: 999px; padding: 12px; }

  .hero__inner { grid-template-columns: 1fr; padding: 40px 24px; gap: 28px; }
  .hero h1 { font-size: 30px; }
  .hero-media { order: -1; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid-home { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(even) { border-right: none; }
  .process-item:nth-child(odd) { padding-left: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .catalog-card-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-panel { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 20px; }
  .closing-head { white-space: normal; font-size: 24px; }

  section { padding: 56px 0; }
  body { padding-bottom: 72px; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; z-index: 300;
    background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar-item {
    flex: 1; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
  }
  .mobile-bar-tel { background: var(--accent); color: #fff; }
}

@media (min-width: 768px) {
  .mobile-bar { display: none !important; }
}
