:root {
  --accent: #1E4544;
  --accent-soft: #DDECEA;
  --hero-tint: #F0F5F4;
  --text: #121A19;
  --muted: #4F5E5C;
  --line: #DDE5E3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, button, input { font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; }
body { margin: 0; color: var(--text); background: #fff; letter-spacing: -0.3px; padding-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 200; background: #FFFFFF; height: 76px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.logo-keyword { font-size: 19px; font-weight: 700; color: var(--text); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 17px; }
.nav > a { white-space: nowrap; }
.nav-cta { padding: 11px 22px; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 15px; font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop__btn {
  font-family: "Barlow Condensed", sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase;
  background: none; border: none; cursor: pointer; color: var(--text); display: flex; align-items: center; gap: 4px; padding: 0;
}
.nav-drop__panel {
  display: none; position: absolute; top: 40px; left: 0; z-index: 201; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 16px 32px rgba(0,0,0,.12); padding: 8px; min-width: 220px; flex-direction: column;
}
.nav-drop.open .nav-drop__panel { display: flex; }
.nav-drop__panel a { padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.nav-drop__panel a:hover { background: var(--accent-soft); }

/* ---------- Hero (matt card) ---------- */
.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; }
.btn-fill { height: 48px; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.3px; display: inline-flex; align-items: center; }
.btn-line { height: 48px; padding: 14px 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; }
.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; }

/* ---------- start panel (sub page no-photo hero) ---------- */
.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 h1 { font-size: 36px; font-weight: 700; margin: 10px 0 14px; line-height: 1.35; }
.hero-panel p { font-size: 16px; color: var(--muted); line-height: 1.6; }
.hero-panel .hero-panel-media { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.hero-panel .hero-panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- page-hero (case detail, list) ---------- */
.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; padding: 0 24px; }
.page-hero .copy .hero-eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.page-hero h1 { color: #fff; font-size: 38px; font-weight: 800; margin: 0; }
.page-hero.list-hero { min-height: 38vh; }

/* ---------- 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; }
.section-title { font-size: 30px; font-weight: 700; margin: 14px 0 12px; }
.section-lead { font-size: 16px; max-width: 640px; color: var(--muted); line-height: 1.6; margin: 0 0 48px; white-space: nowrap; }
@media (max-width: 767px) { .section-lead { white-space: normal; } }

/* ABOUT */
#about { background: #F6FAF9; }
#about .about-body p { font-size: 16px; line-height: 1.8; color: var(--text); max-width: 800px; margin: 0 0 18px; }

/* SERVICE — border-lift (section_variant=6) */
#service { background: #fff; }
.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; transition: transform .2s, border-color .2s; background: #fff; }
.service-card:hover { transform: translateY(-4px); border-color: var(--text); }
.svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; margin-bottom: 18px; }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.service-card h3 { font-size: 18px; margin: 0 0 10px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 767px) { .svc-icon, .svc-icon svg { width: 36px; height: 36px; max-width: 36px; max-height: 36px; } }

/* CASES */
#cases { background: var(--accent-soft); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; 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; display: block; }
.case-card .body { padding: 18px 20px 22px; }
.case-card .body h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.case-card .body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* PROCESS */
#process { background: #fff; }
.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; }
.process-item h3 { font-size: 18px; margin: 10px 0 8px; }
.process-item p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 767px) { .process-list { grid-template-columns: repeat(2, 1fr); } .process-item { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0 !important; } }

/* REGION */
#region { background: #F6FAF9; }
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.region-grid a { display: block; padding: 14px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 600; }
.region-grid a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 767px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq-section { background: #fff; }
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; font-size: 17px; font-weight: 600; margin: 0; }
.faq-item p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 12px 0 0; }

/* CLOSING */
.closing { position: relative; height: 620px; 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; margin: 0 0 20px; white-space: nowrap; }
.closing__quote { font-size: 16px; color: rgba(255,255,255,.85); margin: 0 0 28px; }
.closing__btn { display: inline-block; padding: 14px 32px; border: 1px solid #fff; color: #fff; border-radius: 0; font-size: 15px; font-weight: 600; }
@media (max-width: 767px) { .closing__head { white-space: normal; font-size: 24px; } }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.footer-links { display: flex; gap: 22px; font-size: 15px; }
.footer-nap { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0 0 16px; }
.footer-copy { font-size: 13px; color: var(--muted); margin: 0; }

/* Mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; z-index: 300; }
  .mobile-bar__btn { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
  .mobile-bar__btn--fill { background: var(--accent); color: #fff; }
  .mobile-bar__btn--line { background: #fff; color: var(--text); border-top: 1px solid var(--line); }
}
@media (min-width: 768px) { .mobile-bar { display: none !important; } }

/* Mobile hero */
@media (max-width: 767px) {
  .hero__inner, .hero-panel { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 20px; }
  .hero h1, .hero-panel h1 { font-size: 30px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* Case detail body */
.case-body { max-width: 640px; margin: 48px auto 0; text-align: center; padding: 0 24px; }
.case-body .photo { border-radius: 18px; overflow: hidden; background: #F0F5F4; }
.case-body .photo img { width: 100%; height: auto; object-fit: contain; display: block; cursor: zoom-in; }
.case-body .caption { font-size: 13px; color: #888; margin: 14px 0 24px; }
.case-body h2 { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.case-body .desc { text-align: left; font-size: 16px; line-height: 1.8; color: var(--text); }
.case-body .desc table { width: 100%; border-collapse: collapse; margin: 24px 0 0; font-size: 15px; }
.case-body .desc table th, .case-body .desc table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.case-body .desc table th { background: var(--accent-soft); font-weight: 700; width: 30%; }
.back-link { text-align: center; padding: 40px 0; }
.back-link a { font-size: 15px; font-weight: 600; color: var(--accent); }

/* Case list intro */
.case-list-intro { text-align: center; max-width: 640px; margin: 40px auto 0; padding: 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 999; cursor: zoom-out; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

/* Hub / generic content pages */
.content-body { max-width: 800px; margin: 0 auto; }
.content-body p { font-size: 16px; line-height: 1.85; color: var(--text); margin: 0 0 18px; }
.content-body table { width: 100%; border-collapse: collapse; margin: 0 0 32px; font-size: 15px; }
.content-body table th, .content-body table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.content-body table th { background: var(--accent-soft); font-weight: 700; }
.content-body ul { font-size: 15px; line-height: 1.9; color: var(--text); padding-left: 20px; }
