:root {
  --accent: #2A3048;
  --accent-soft: #E9ECF4;
  --ink: #000000;
  --hero-tint: #F1ECE2;
  --font-heading: 'Noto Serif KR', serif;
  --font-nav: 'Barlow Condensed', sans-serif;
  --font-body: 'PretendardVariable', 'Pretendard', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
.process-list, .hero__checks, .course-grid, .cases-grid-3, .kh-gallery, .emc-list {
  list-style: none; margin: 0; padding: 0;
}
.course-grid > li, .cases-grid-3 > li, .kh-gallery > li, .emc-list > li { display: contents; }
.course-grid > li > a, .cases-grid-3 > li > a { display: block; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: #22262B; font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: #000; margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-nav); font-weight: 600; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.06em; color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow svg { width: 18px; height: 18px; flex-shrink: 0; }
.section-head { margin-bottom: 36px; }
.section-head.is-center { text-align: center; }
.section-title { font-size: 30px; line-height: 1.35; }
.section-desc { margin-top: 12px; color: #5B6169; font-size: 15px; line-height: 1.7; }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff !important; font-weight: 700;
  padding: 12px 22px; border-radius: 0; font-size: 14.5px; white-space: nowrap;
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fff; color: #fff !important; font-weight: 700;
  padding: 13px 28px; border-radius: 0; font-size: 15px;
}

/* ---------- header (header_variant=1: joseon-center) ---------- */
.site-header { background: #fff; border-bottom: 1px solid #000; position: sticky; top: 0; z-index: 50; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; }
.logo { display: flex; align-items: center; gap: 8px; justify-self: center; }
.logo-icon { width: 34px; height: 34px; color: var(--accent); flex: none; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-family: var(--font-heading); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #000; }
.logo-keyword { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav--left { justify-self: start; }
.main-nav--right { justify-self: end; }
.main-nav a { font-family: var(--font-nav); font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; }
.nav-dropdown { position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.nav-dropdown__toggle { background: none; border: 0; font: inherit; font-family: var(--font-nav); font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 0; }
.caret { font-size: 10px; }
.nav-dropdown__panel {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #ECECEC; box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  min-width: 220px; padding: 8px 0; flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel { display: flex; }
.nav-dropdown__panel a { padding: 10px 20px; font-size: 14.5px; font-weight: 500; text-transform: none; letter-spacing: normal; font-family: var(--font-body); }
.nav-dropdown__panel a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; justify-self: end; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: #000; display: block; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid #ECECEC; padding: 8px 24px 16px; }
.mobile-nav a, .mobile-nav__cta { padding: 10px 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid #F3F3F1; }
.mobile-nav__courses-label { padding-top: 10px; font-size: 12px; color: #888; font-weight: 700; }
.mobile-nav.is-open { display: flex; }

/* ---------- hero (hero_id=1: split-card, forced — vertical-only source photos) ---------- */
.hero { padding: 56px 0 88px; background: #fff; }
.hero__inner { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; background: var(--hero-tint); border-radius: 24px; padding: 56px; }
.hero__eyebrow { display: inline-block; background: #fff; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; padding: 7px 16px; margin-bottom: 20px; }
.hero h1 { font-size: 44px; line-height: 1.25; margin-bottom: 18px; color: #000; }
.hero h1 .accent { color: var(--accent); position: relative; }
.hero h1 .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; background: #fff; z-index: -1; }
.hero p { font-size: 16.5px; line-height: 1.8; max-width: 480px; color: #4B5563; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hero__cta .btn-outline { border-color: #000; color: #000 !important; }
.hero__checks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: #4B5563; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; }
.hero__checks li::before { content: '✓'; color: var(--accent); margin-right: 6px; font-weight: 700; }
.hero__photo { border-radius: 14px; overflow: hidden; max-width: 420px; margin-left: auto; box-shadow: 0 20px 44px rgba(0,0,0,0.14); }
.hero__photo img { width: 100%; height: 560px; object-fit: cover; display: block; }

/* ---------- section shells ---------- */
.section { padding: 84px 0; }
.section--bg1 { background: #DCD8CF; }
.section--bg2 { background: #F3F3F1; }
.section--bg3 { background: #F9F7F3; }
.section--bg4 { background: #F4F8FC; }
.section--bg5 { background: #F4F3EC; }
.section--bg6 { background: #F8FAFC; }

/* ---------- box cards + champions-city hover ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.box-card {
  position: relative; background: #fff; border: 1px solid #ECECEC; padding: 30px 26px;
  transition: transform 0.25s ease; overflow: hidden;
}
.box-card:hover { transform: translateY(-3px); }
.box-card .cc-frame { position: absolute; inset: 0; pointer-events: none; }
.box-card .cc-frame i { position: absolute; background: #000; transition: all 0.6s ease; }
.box-card .cc-frame .t { top: 0; left: 0; width: 0; height: 1px; }
.box-card .cc-frame .r { top: 0; right: 0; width: 1px; height: 0; }
.box-card .cc-frame .b { bottom: 0; right: 0; width: 0; height: 1px; }
.box-card .cc-frame .l { bottom: 0; left: 0; width: 1px; height: 0; }
.box-card:hover .cc-frame .t { width: 100%; }
.box-card:hover .cc-frame .r { height: 100%; }
.box-card:hover .cc-frame .b { width: 100%; }
.box-card:hover .cc-frame .l { height: 100%; }
.box-card__icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 18px; flex-shrink: 0; overflow: hidden; }
.box-card__icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.box-card h3 { font-size: 17px; margin-bottom: 10px; }
.box-card p { font-size: 14px; color: #5B6169; line-height: 1.7; margin: 0; }

/* ---------- why-us zigzag ---------- */
.whyus-list { display: flex; flex-direction: column; gap: 70px; }
.whyus-item { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.whyus-item.is-reverse .whyus-item__text { order: 2; }
.whyus-item.is-reverse .whyus-item__imgs { order: 1; }
.whyus-item__text h3 { font-size: 22px; margin-bottom: 14px; }
.whyus-item__text p { font-size: 15px; color: #5B6169; line-height: 1.8; margin: 0; }
.whyus-item__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.whyus-item__imgs img { width: 100%; height: 240px; object-fit: cover; border-radius: 8px; }

/* ---------- courses (section_variant=6: border-lift) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card { display: block; border: 1px solid #E0E0DC; transition: border-color 0.25s ease, transform 0.25s ease; }
.course-card:hover { border-color: #000; transform: translateY(-4px); }
.course-card__foot { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ---------- cases (home + list) ---------- */
.cases-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { display: block; background: #fff; }
.case-card__img-wrap { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; }
.case-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.case-card:hover .case-card__img-wrap img { transform: scale(1.05); }
.case-card__body { padding: 16px 2px; }
.case-card__task { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.case-card__kw { font-size: 13px; color: #888; }
.cases-more { margin-top: 40px; text-align: center; }
.link-more { display: inline-block; border-bottom: 1px solid var(--ink); font-weight: 700; font-size: 14.5px; padding-bottom: 2px; }

/* ---------- editorial-meta-card (list_variant=2, 교육사례 목록) ---------- */
.emc-list { display: flex; flex-direction: column; gap: 28px; }
.emc-item { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid #ECECEC; }
.emc-item__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; }
.emc-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.emc-item:hover .emc-item__img img { transform: scale(1.04); }
.emc-item__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.emc-item__tag { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; }
.emc-item__title { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.emc-item__meta { font-size: 13px; color: #888; }

/* ---------- after / support ---------- */
.after-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- about ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-block__text p { font-size: 15px; color: #4B5563; line-height: 1.85; margin: 0 0 16px; }
.about-block__img img { border-radius: 12px; width: 100%; height: 420px; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E5E5E5; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-size: 15.5px; font-weight: 700; font-family: var(--font-body); color: #000;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--accent); font-weight: 400; }
.faq-item.is-open .faq-q::after { content: '－'; }
.faq-a { display: none; padding: 0 4px 22px; font-size: 14.5px; color: #5B6169; line-height: 1.8; }
.faq-item.is-open .faq-a { display: block; }

/* ---------- closing ---------- */
.closing { position: relative; height: 650px; background-image: url('/assets/images/cases/천연대리석부분공사/02.webp'); 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; max-width: 640px; padding: 0 24px; }
.closing__inner h2 { color: #fff; font-size: clamp(18px, 3vw, 28px); margin-bottom: 18px; line-height: 1.4; }
.closing__inner p { font-size: 15.5px; color: #EDEDED; margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid #E5E5E5; padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-weight: 700; font-size: 16px; }
.footer-info { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #4B5563; }
.footer-biz { font-size: 12.5px; color: #888; display: flex; flex-direction: column; gap: 2px; }
.footer-copy { font-size: 12.5px; color: #999; margin-top: 6px; }

/* ---------- mobile bar / floating cta ---------- */
.mobile-bar { display: none; }
.floating-cta {
  position: fixed; bottom: 32px; right: 32px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28); z-index: 55;
}
.floating-cta svg { width: 26px; height: 26px; }

/* ---------- category page ---------- */
.cat-hero { padding: 70px 0 40px; background: var(--accent-soft); }
.cat-hero h1 { font-size: 34px; margin-bottom: 14px; }
.cat-hero p { color: #4B5563; font-size: 15px; max-width: 680px; }
.cat-body { padding: 60px 0; max-width: 820px; margin: 0 auto; font-size: 15.5px; color: #333; line-height: 1.9; }
.cat-body h2 { font-size: 21px; margin: 42px 0 14px; }
.cat-body p { margin: 0 0 16px; }
.cat-cta { text-align: center; margin: 40px 0; }

/* ---------- cases list hero ---------- */
.cases-hero { height: 38vh; min-height: 260px; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; }
.cases-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cases-hero__overlay { position: absolute; inset: 0; background: rgba(15,15,15,0.5); }
.cases-hero h1 { position: relative; color: #fff; font-size: 34px; display: flex; align-items: center; gap: 12px; }
.cases-hero .eyebrow-inline { color: #fff; opacity: 0.85; font-family: var(--font-nav); font-size: 15px; text-transform: uppercase; }
.pagination { display: flex; justify-content: center; gap: 10px; padding: 40px 0 60px; }
.pagination a, .pagination span { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #333; }
.pagination .is-current { background: #000; color: #fff; }

/* ---------- case detail (case_detail_variant=1: apt-journal-detail tone) ---------- */
.page-hero { height: 380px; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.5); }
.page-hero__title { position: relative; color: #fff; font-size: 30px; font-weight: 700; font-family: var(--font-heading); text-align: center; padding: 0 20px; }
.kh-single { max-width: 780px; margin: 0 auto; padding: 56px 24px 0; }
.kh-single__thumb { max-width: 550px; margin: 0 auto 40px; border-radius: 12px; overflow: hidden; background: #fff; }
.kh-single__thumb img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; cursor: pointer; display: block; }
.kh-single__index { font-size: 13px; color: #888; letter-spacing: 0.04em; margin-bottom: 14px; display: block; }
.kh-single__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.kh-single__cats a { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; }
.kh-single__title { font-size: 26px; font-weight: 700; line-height: 1.35; margin: 0 0 36px; font-family: var(--font-heading); }
.kh-single__body { font-size: 15px; color: #333; line-height: 1.9; font-weight: 500; }
.kh-single__body p { margin: 0 0 16px; }
.kh-single__body h2 { font-size: 21px; margin-top: 48px; margin-bottom: 16px; font-family: var(--font-heading); }
.kh-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 32px auto 40px; }
.kh-gallery img { width: 100%; height: 300px; object-fit: cover; object-position: center; background: transparent; border-radius: 12px; cursor: pointer; display: block; }

.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; }

.related-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 auto; max-width: 1000px; }
.kh-cta { text-align: center; margin: 20px 0; }

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

/* ---------- about page ---------- */
.about-hero { padding: 70px 0 44px; background: var(--accent-soft); }
.about-hero h1 { font-size: 34px; }

@media (max-width: 1024px) {
  .card-grid, .course-grid, .cases-grid-3, .after-grid { grid-template-columns: repeat(2, 1fr); }
  .about-block { grid-template-columns: 1fr; }
  .related-row { grid-template-columns: repeat(2, 1fr); }
  .whyus-item { grid-template-columns: 1fr; }
  .emc-item { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }
  .hero { padding: 44px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 28px; border-radius: 18px; }
  .hero__photo { max-width: 100%; margin-left: 0; order: -1; }
  .hero__photo img { height: 320px; }
  .hero h1 { font-size: 30px; }
  .hero p { max-width: 100%; }
  .card-grid, .course-grid, .cases-grid-3, .after-grid, .related-row { grid-template-columns: 1fr; }
  .box-card__icon { width: 36px; height: 36px; }
  .box-card__icon svg { max-width: 36px; max-height: 36px; }
  .about-block { gap: 24px; }
  .whyus-list { gap: 40px; }
  .whyus-item.is-reverse .whyus-item__text,
  .whyus-item.is-reverse .whyus-item__imgs { order: initial; }
  .whyus-item__imgs img { height: 160px; }
  .about-block__img img { height: 260px; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .kh-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kh-gallery img { height: 180px; }
  .process-item { padding: 22px 16px 22px 16px; }
  .process-item:first-child { padding-left: 16px; }
  .kh-single__title { font-size: 22px; }
  .section { padding: 56px 0; }
  .closing { height: 480px; }
  .closing__inner h2 { font-size: clamp(16px, 5vw, 22px); }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
  .floating-cta { display: none; }
  .mobile-bar__btn { flex: 1; text-align: center; padding: 14px 0; font-weight: 700; font-size: 14.5px; background: var(--accent); color: #fff; }
  .mobile-bar__btn--phone { background: #1B1F2E; }
  body { padding-bottom: 54px; }
}
