:root {
  --accent: #6E5428;
  --accent-soft: #F3EBD8;
  --hero-tint: #F7F3EA;
  --text: #1A1610;
  --muted: #6A6154;
  --line: #E6E1D6;
  --btn-text: #1A1610;
  --apt-ink: #13130A;
  --apt-yellow: #FEEB8F;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, button, input, textarea {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  margin: 0; color: var(--text);
}
body { 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; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* header (header_variant=1 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: 30px; 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: 11px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; }
.logo { display: flex; align-items: center; gap: 10px; justify-self: center; }
.logo-icon { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; overflow: hidden; }
.logo-icon svg { display: block; width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.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-btn { font: inherit; color: inherit; text-transform: uppercase; display: flex; align-items: center; gap: 4px; }
.nav-drop-panel { position: absolute; top: 100%; left: 0; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 20px 44px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 201; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-panel a { padding: 10px 14px; border-radius: 8px; font-size: 15px; text-transform: none; letter-spacing: -0.3px; font-weight: 500; }
.nav-drop-panel a:hover { background: var(--accent-soft); }
.mobile-bar { display: none; }

/* buttons */
.btn-fill { display: inline-flex; align-items: center; height: 48px; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.btn-line { display: inline-flex; align-items: center; height: 48px; padding: 14px 26px; border-radius: 999px; background: transparent; color: var(--text); border: 1px solid var(--text); font-size: 15px; font-weight: 600; }
.btn-outline { display: inline-flex; align-items: center; height: 52px; padding: 14px 30px; border: 1px solid #fff; color: #fff; font-size: 15px; font-weight: 600; border-radius: 0; }

/* apt_variant=1 home hero (full-bleed) */
.apt-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.apt-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,19,10,.35), rgba(19,19,10,.65)); pointer-events: none; }
.apt-hero-inner { position: relative; z-index: 1; color: #fff; max-width: 620px; }
.apt-hero .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(254,235,143,.16); color: var(--apt-yellow); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.apt-hero h1 { font-size: 48px; font-weight: 700; line-height: 1.28; margin-bottom: 16px; letter-spacing: -.5px; }
.apt-hero .hero-sub { font-size: 17px; line-height: 28px; color: rgba(255,255,255,.86); max-width: 460px; margin-bottom: 26px; }
.apt-hero .hero-cta { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.apt-hero .btn-fill-yellow { display: inline-flex; align-items: center; height: 50px; padding: 14px 28px; border-radius: 999px; background: var(--apt-yellow); color: var(--apt-ink); font-size: 15px; font-weight: 700; }
.apt-hero .hero-checks { display: flex; gap: 20px; list-style: disc inside; font-size: 14px; color: rgba(255,255,255,.8); padding: 0; }

/* matt-style card hero (subpages) */
.hero { padding: 28px 20px 40px; background: #fff; }
.hero__inner { max-width: 1280px; margin: 0 auto; padding: 56px; border-radius: 26px; background: var(--hero-tint); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .4px; margin: 0 0 18px; }
.hero h1 { font-size: 44px; font-weight: 700; color: var(--text); letter-spacing: -.3px; line-height: 1.32; margin: 0 0 14px; }
.hero-sub { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 440px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; margin: 0 0 24px; }
.hero-checks { display: flex; gap: 20px; padding: 18px 0 0; margin: 0; font-size: 14px; color: var(--muted); list-style: disc inside; }
.hero-media { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; }
.hero-media img { width: 100%; height: auto; object-fit: contain; display: block; }

/* tint panel (sub hero without big photo) */
.hero-panel { max-width: 1280px; 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 img { border-radius: 16px; }
.hero-panel .intro { font-size: 16px; line-height: 28px; color: var(--muted); margin-top: 14px; }

/* page-hero (설치사례 목록/상세 풀폭) */
.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 { color: var(--apt-yellow); }
.page-hero h1 { color: #fff; font-size: 38px; font-weight: 800; margin: 0; }

/* generic sections */
section { padding: 96px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }
.eyebrow svg { width: 18px; height: 18px; }
.sec-title { font-size: 30px; font-weight: 700; margin: 14px 0 12px; }
.sec-lead { font-size: 16px; max-width: 640px; color: var(--muted); margin-bottom: 40px; white-space: nowrap; }
@media (max-width:900px){ .sec-lead{ white-space: normal; } }

/* about */
.about-body p { font-size: 16px; line-height: 30px; color: var(--muted); max-width: 720px; margin-bottom: 18px; }

/* service icons */
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px; }
.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: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; line-height: 22px; color: var(--muted); }
@media (max-width:767px){ .svc-icon{ width:36px; height:36px; } .svc-icon svg{ max-width:36px; max-height:36px; } }

/* quote-lead section_variant=5 */
.quote-lead { background: var(--accent-soft); }
.quote-lead .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.quote-lead .ql-box { background: #fff; border-left: 4px solid var(--accent); padding: 32px 30px; border-radius: 4px; }
.quote-lead .ql-box p { font-size: 15px; color: var(--muted); line-height: 26px; }
.quote-lead .ql-headline { background: #fff; border-radius: 20px; padding: 40px; box-shadow: 0 16px 34px rgba(0,0,0,.06); }
.quote-lead .ql-headline p { font-size: 20px; font-weight: 600; line-height: 1.5; }
@media (max-width:900px){ .quote-lead .wrap{ grid-template-columns:1fr; } }

/* case grid (editorial-card list_variant=1) */
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .2s; }
.case-card:hover { transform: scale(1.03); }
.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 24px; }
.case-card .tag { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.case-card h3 { font-size: 19px; font-weight: 700; margin: 8px 0 8px; }
.case-card p { font-size: 14px; color: var(--muted); line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 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-bottom: 8px; }
.process-item p { font-size: 14px; color: var(--muted); line-height: 22px; }
@media (max-width:767px){ .process-list{ grid-template-columns: repeat(2,1fr); } .process-item{ border-right:1px solid var(--line); border-bottom:1px solid var(--line);} }

/* region list */
.region-links { display: flex; flex-wrap: wrap; gap: 10px; }
.region-links a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.region-links a:hover { background: var(--accent-soft); border-color: var(--accent); }
.region-group-title { font-size: 15px; font-weight: 700; margin: 28px 0 12px; color: var(--accent); }
.region-group-title:first-child { margin-top: 0; }

/* case-body (case_detail_variant=1 apt-journal-detail) */
.case-photo-wide { max-width: 900px; margin: 40px auto 0; border-radius: 20px; overflow: hidden; background: var(--hero-tint); }
.case-photo-wide img { width: 100%; height: auto; object-fit: contain; }
.case-body { max-width: 640px; margin: 0 auto; text-align: center; }
.case-body .caption { font-size: 13px; color: #888; margin: 16px 0 6px; }
.case-body h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.case-body .desc { text-align: left; font-size: 15px; line-height: 30px; font-weight: 500; color: var(--text); }
.case-back { text-align: center; padding: 60px 0 0; }
.case-back a { color: var(--accent); font-weight: 600; }

/* faq */
.faq-sec { background: var(--hero-tint); }
.faq-list { max-width: 780px; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 14px; line-height: 24px; color: var(--muted); }

/* closing */
.closing { position: relative; min-height: 560px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.closing-tint { background: var(--hero-tint); min-height: 400px; }
.closing-overlay { position: absolute; inset: 0; background: rgba(19,19,19,.55); }
.closing-inner { position: relative; z-index: 1; color: #fff; max-width: 620px; padding: 0 24px; }
.closing-quote { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.closing h2 { font-size: 30px; font-weight: 700; margin-bottom: 26px; line-height: 1.4; }

/* footer (apt_variant=1: black) */
.site-footer { background: var(--apt-ink); color: rgba(255,255,255,.72); padding: 72px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; line-height: 2; color: rgba(255,255,255,.65); }
.footer-col a:hover { color: var(--apt-yellow); }
.footer-h { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-brand .logo-icon { color: var(--apt-yellow); margin-bottom: 14px; }
.footer-name { color: #fff; font-weight: 700; font-size: 16px; margin: 4px 0 8px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.footer-nap p { color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.45); }

/* about split (apt_variant home) */
.apt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.apt-split img { border-radius: 20px; }
@media (max-width:900px){ .apt-split{ grid-template-columns:1fr; } }

/* mobile */
@media (max-width:767px){
  body{ padding-bottom: 72px; }
  .nav{ display:none; }
  .header-inner{ grid-template-columns: 1fr auto; }
  .hero__inner, .hero-panel{ grid-template-columns: 1fr; padding: 28px 24px; border-radius: 20px; }
  .apt-hero h1{ font-size: 32px; }
  .service-grid{ grid-template-columns: repeat(2,1fr); }
  .case-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .mobile-bar{ display:flex; position:fixed; left:0; right:0; bottom:0; height:60px; z-index:300; }
  .mobile-bar a{ flex:1; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; }
  .mobile-bar a:first-child{ background:var(--accent); color:#fff; }
  .mobile-bar a:last-child{ background:var(--apt-ink); color:#fff; }
}
