:root {
  --accent: #4F787C;
  --accent-soft: #E4EEF0;
  --ink: #13130A;
  --apt-yellow: #FEEB8F;
  --bg-soft: #FAF7EE;
  --bar-chrome: #ECEEF1;
  --desc: #5B6169;
  --font-title: "Noto Serif KR", serif;
  --font-body: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font-family: var(--font-body); letter-spacing: -0.02em; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .section-title, .hero-title { font-family: var(--font-title); font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
button { font-family: var(--font-body); }

/* ---------- header (header_variant=2 · bath-emblem) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: background .3s ease, box-shadow .3s ease; }
.header-topline { height: 3px; background: var(--accent); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 16px; }
.brand-tag { justify-self: start; font-size: 13px; color: var(--desc); letter-spacing: .04em; }
.logo { justify-self: center; display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--accent); }
.logo-icon svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: var(--ink); }
.logo-keyword { font-size: .7rem; color: var(--accent); letter-spacing: .04em; }
.main-nav { justify-self: end; display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink); }
.main-nav a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; font-weight: 600; font-size: 14px; border-radius: 6px; }
.btn-primary { background: var(--accent); color: #fff; }
.nav-cta { padding: 9px 20px; border-radius: 6px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; justify-self: end; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); display: block; }
.site-header.scrolled { background: var(--bar-chrome); box-shadow: 0 1px 16px rgba(0,0,0,.06); }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; padding: 32px 24px; gap: 22px; align-items: flex-start;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 18px; }
  .nav-cta { margin-top: 8px; }
  .hamburger { display: flex; grid-column: 3; justify-self: end; }
  .logo { grid-column: 2; }
  .brand-tag { display: none; }
}

/* ---------- hero (apt-service-hero style: bright photo, no dark overlay, big black type) ---------- */
.hero { position: relative; height: 640px; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.55) 68%, #fff 96%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 44px; max-width: 1180px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 14px; }
.hero-title { font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0 0 14px; }
.hero-desc { font-size: 16px; color: #33352E; max-width: 640px; line-height: 1.6; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; }
.btn-ghost-ink { border: 1px solid var(--ink); color: var(--ink); padding: 10px 22px; border-radius: 6px; font-weight: 600; font-size: 14px; }

/* ---------- section shell ---------- */
.section { padding: 84px 0; }
.section-head { margin-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow svg { flex-shrink: 0; }
.section-title { font-size: clamp(24px, 3vw, 34px); margin: 0; white-space: nowrap; }
@media (max-width: 640px) { .section-title { white-space: normal; font-size: 24px; } }
.section-desc { color: var(--desc); font-size: 15.5px; line-height: 1.7; margin-top: 12px; max-width: 620px; }

/* ---------- split intro ---------- */
.split-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-intro img { border-radius: 14px; width: 100%; height: 480px; object-fit: cover; }
.split-intro .split-text p { color: var(--desc); font-size: 15.5px; line-height: 1.8; margin: 16px 0; }
@media (max-width: 860px) { .split-intro { grid-template-columns: 1fr; gap: 28px; } .split-intro img { height: 320px; } }

/* ---------- catalog-wide (section_variant=2) ---------- */
.catalog-wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: var(--bg-soft); border-radius: 18px; padding: 48px; }
.catalog-wide img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.catalog-wide-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.catalog-wide-tags span { font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--accent); color: var(--accent); border-radius: 100px; }
@media (max-width: 860px) { .catalog-wide { grid-template-columns: 1fr; padding: 28px; } .catalog-wide img { height: 260px; } }

/* ---------- service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #E5E7EB; border: 1px solid #E5E7EB; }
.service-card { background: #fff; padding: 32px 26px; }
.svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; color: var(--accent); margin-bottom: 18px; }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.service-card h3 { font-size: 17px; margin: 0 0 8px; font-family: var(--font-title); }
.service-card p { font-size: 13.8px; color: var(--desc); line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .svc-icon { width: 36px; height: 36px; } .svc-icon svg { max-width: 36px; max-height: 36px; } }

/* ---------- cases carousel (apt_variant 가로 캐러셀) ---------- */
.case-carousel { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.case-carousel::-webkit-scrollbar { height: 6px; }
.case-carousel::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.case-card { flex: 0 0 300px; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #EEE; }
.case-card img { height: 380px; object-fit: cover; transition: transform .4s ease; }
.case-card:hover img { transform: scale(1.04); }
.case-card-body { padding: 16px 18px; }
.case-card-region { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.case-card-title { font-size: 16px; font-weight: 700; margin: 6px 0 0; font-family: var(--font-title); }
.case-view-all { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- portfolio intro + list (apt-journal) ---------- */
.pf-hero { position: relative; height: 38vh; min-height: 280px; overflow: hidden; }
.pf-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.pf-hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 24px; }
.pf-hero-text .eyebrow { color: var(--apt-yellow); }
.pf-hero-text h1 { font-size: clamp(26px, 4vw, 40px); margin: 0; color: #fff; }
.pf-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding: 56px 0; align-items: center; }
.pf-intro img { border-radius: 14px; width: 100%; height: 300px; object-fit: cover; }
.pf-intro .about-list { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--desc); }
.pf-intro .about-list li { padding: 6px 0 6px 20px; position: relative; }
.pf-intro .about-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) { .pf-intro { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; } }

.pf-grid-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; font-family: var(--font-title); margin: 0 0 36px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.pf-card { display: block; }
.pf-card .im { overflow: hidden; border-radius: 4px; min-width: 0; }
.pf-card img { width: 100%; aspect-ratio: 7/6; object-fit: cover; border-radius: 0; }
.pf-card-region { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 14px; }
.pf-card-title { font-size: 20px; font-weight: 700; margin: 6px 0 0; font-family: var(--font-title); }
.pf-card-desc { font-size: 14px; color: var(--desc); margin-top: 8px; line-height: 1.6; }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- generic page-hero (sub pages) ---------- */
.page-hero { position: relative; height: 34vh; min-height: 240px; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.page-hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 24px; }
.page-hero-text h1 { color: #fff; font-size: clamp(24px, 3.6vw, 36px); margin: 0; }
.page-hero-text .eyebrow { color: var(--apt-yellow); }

/* ---------- case detail (34aptr standard) ---------- */
.case-meta { font-size: 12px; color: var(--desc); letter-spacing: .04em; margin: 40px 0 14px; text-align: center; }
.case-cover { width: 550px; max-width: 100%; height: 410px; object-fit: cover; border-radius: 18px; margin: 0 auto 40px; cursor: zoom-in; }
.case-body { max-width: 720px; margin: 0 auto 48px; font-size: 15.6px; line-height: 1.85; color: #2B2E31; white-space: pre-line; }
.case-body p { margin: 0 0 20px; }

.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto 56px; }
.ba-item figure { margin: 0; }
.ba-item img { width: 100%; height: auto; max-height: 500px; object-fit: contain; border-radius: 12px; background: #F4F4F2; cursor: zoom-in; }
.ba-item figcaption { text-align: center; font-size: 13px; color: var(--desc); margin-top: 10px; }
@media (max-width: 640px) { .ba-row { grid-template-columns: 1fr; } }

.gallery-rest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto 8px; }
.gallery-rest img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
@media (max-width: 640px) { .gallery-rest { grid-template-columns: 1fr; } }

.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; font-family: var(--font-body); }
.process-item p { font-size: 13.5px; color: #5B6169; line-height: 1.65; margin: 0; }
@media (max-width: 767px) { .process-list { grid-template-columns: 1fr 1fr; } }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E5E5E5; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 4px; font-size: 15.5px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq-q::after { content: "+"; color: var(--accent); font-size: 20px; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 14.5px; color: var(--desc); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 4px 20px; }

.related-row { display: flex !important; gap: 20px; max-width: 900px; margin: 56px auto 0; }
.related-row a { flex: 1; display: block; }
.related-row img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.related-row .rr-title { margin-top: 10px; font-size: 14.5px; font-weight: 600; text-align: center; }
@media (max-width: 640px) { .related-row { flex-direction: column; } }

/* ---------- closing ---------- */
.closing { position: relative; height: 650px; background-size: cover; background-position: center; }
.closing-overlay { position: absolute; inset: 0; background: rgba(19,19,19,.55); }
.closing-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.closing-head { color: #fff; font-size: clamp(20px, 2.6vw, 30px); white-space: nowrap; margin: 0 0 18px; }
@media (max-width: 640px) { .closing-head { white-space: normal; font-size: 21px; } }
.closing-quote { color: #EDEDED; font-size: 14.5px; margin: 0 0 26px; max-width: 520px; }
.btn-closing { border: 1px solid #fff; color: #fff; padding: 13px 34px; border-radius: 0; font-weight: 600; font-size: 14.5px; }

/* ---------- footer ---------- */
.site-footer { background: #000; color: #D8D8D6; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2A2A2A; }
.footer-brand { font-family: var(--font-title); font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer-biz { font-size: 13.5px; line-height: 1.9; color: #B7B7B3; margin: 0; }
.biz-nowrap { white-space: nowrap; }
.biz-regno-label { color: #8C8C88; }
.footer-heading { font-size: 13px; color: #8C8C88; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col a { display: block; font-size: 14px; color: #D8D8D6; margin-bottom: 10px; }
.footer-contact-btn { display: inline-block; background: var(--apt-yellow); color: #13130A; padding: 9px 18px; border-radius: 6px; font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.footer-contact-btn-ghost { background: none; border: 1px solid #444; color: #D8D8D6; }
.footer-copy { padding: 20px 24px; font-size: 12.5px; color: #7C7C78; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- mobile bottom bar + floating cta ---------- */
.mobile-bottombar { display: none; }
.floating-cta { position: fixed; right: 24px; bottom: 96px; z-index: 90; background: var(--apt-yellow); color: #13130A; padding: 13px 20px; border-radius: 100px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
@media (max-width: 767px) {
  .mobile-bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--bar-chrome); border-top: 1px solid #E5E7EB; box-shadow: 0 -6px 22px rgba(0,0,0,.08); }
  .mb-btn { flex: 1; text-align: center; padding: 15px 0; font-weight: 700; font-size: 14.5px; }
  .mb-btn-ghost { color: var(--ink); }
  .mb-btn-primary { background: var(--accent); color: #fff; }
  .floating-cta { bottom: 78px; right: 16px; }
  body { padding-bottom: 54px; }
}

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

/* ---------- about / contact simple pages ---------- */
.simple-body { max-width: 720px; margin: 0 auto; font-size: 15.6px; line-height: 1.85; color: #2B2E31; }
.simple-body p { margin: 0 0 20px; }
.contact-card { max-width: 480px; margin: 0 auto; text-align: center; background: var(--bg-soft); border-radius: 18px; padding: 48px 32px; }
.contact-card .btn-primary { display: flex; width: 100%; padding: 16px; font-size: 16px; margin-top: 10px; border-radius: 8px; }
.contact-hours { margin-top: 22px; font-size: 13.5px; color: var(--desc); }
