: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, 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;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: relative;
  z-index: 200;
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.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-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 {
  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 > a { padding: 8px 0; }
.nav > a.is-active { color: var(--accent); }
.nav-drop { position: relative; }
.nav-drop > a { display: flex; align-items: center; gap: 4px; padding: 8px 0; }
.nav-drop .caret { font-size: 11px; }
.nav-drop__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 201;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0,0,0,.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel {
  opacity: 1; visibility: visible; transform: translateY(8px);
}
.nav-drop__panel a {
  font-size: 14px; font-weight: 600; text-transform: none;
  letter-spacing: -0.035em; padding: 10px 12px; border-radius: 8px;
}
.nav-drop__panel a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-cta {
  padding: 11px 22px; border-radius: 999px;
  background: var(--accent); color: #fff !important;
  font-size: 15px; font-weight: 600;
}
.nav-toggle { display: none; }

/* ===== Hero (matt형 카드) ===== */
.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; flex-wrap: wrap; }
.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; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-label { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin: 0 0 12px; }
.section-title { font-size: 30px; font-weight: 700; margin: 0 0 16px; }
.section-lead { font-size: 16px; max-width: 640px; color: var(--muted); margin: 0 0 40px; }
.section:nth-child(odd) { background: #F6F9F6; }
.section.hero-adjacent { background: #fff; }
#about { background: #fff; }
#service { background: #F2F5F2; }
#cases { background: #fff; }
.process { background: #F6F9F6; }
#region { background: #fff; }
.faq { background: #F2F5F2; }

/* about */
.about-body { max-width: 760px; }
.about-body p { margin: 0 0 18px; color: var(--text); font-size: 16px; line-height: 1.8; }
.about-list { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-list li { padding: 16px 18px; background: var(--accent-soft); border-radius: 12px; font-size: 14.5px; color: var(--text); font-weight: 600; }

/* service */
.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; margin-bottom: 18px; color: var(--accent); }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.service-card h3 { font-size: 18px; margin: 0 0 8px; }
.service-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.7; }

/* pricing table */
.price-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 14px 18px; text-align: left; }
.price-table th { background: var(--accent-soft); color: var(--text); font-weight: 700; }
.price-table td.num { color: var(--accent); font-weight: 700; }

/* cases */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; transition: transform .2s ease; border: 1px solid var(--line); }
.case-card:hover { transform: scale(1.03); }
.case-card__img { aspect-ratio: 16/10; overflow: hidden; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 18px 20px 22px; }
.case-card__body h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.case-card__body p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-more { text-align: center; margin-top: 40px; }

/* 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.is-first { padding-left: 0; }
.process-item.is-last { border-right: none; }
.process-item .pnum { color: var(--accent); font-weight: 700; font-size: 13px; margin: 0 0 10px; }
.process-item h3 { font-size: 17px; margin: 0 0 8px; }
.process-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }

/* region */
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.region-grid a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; font-weight: 600; text-align: center; }
.region-grid a:hover { border-color: var(--accent); color: var(--accent); }

/* faq */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-size: 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* closing */
.closing { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.closing__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing__overlay { position: absolute; inset: 0; background: rgba(19,19,19,.55); }
.closing__content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px; }
.closing__content h2 { font-size: 32px; font-weight: 700; margin: 0 0 16px; }
.closing__quote { font-size: 16px; color: rgba(255,255,255,.8); margin: 0 0 28px; }
.btn-outline-white {
  display: inline-flex; align-items: center; height: 50px; padding: 0 30px;
  border: 1px solid #fff; color: #fff; font-size: 15px; font-weight: 600;
}

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.footer__links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.footer__biz { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin: 0 0 12px; }
.footer__biz a { color: var(--muted); }
.footer__copy { font-size: 12px; color: #9AA5A1; margin: 0; }

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 500; background: rgba(10,12,12,.9);
  align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }

/* mobile bar */
.mobile-bar { display: none; }

/* 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 .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1px; margin: 0 0 12px; color: #fff; opacity: .85; }
.page-hero h1 { color: #fff; font-size: 38px; font-weight: 800; margin: 0; }

/* hero-panel (사진 작을 때 / 목록·허브 상단) */
.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__text .eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); margin: 0 0 12px; letter-spacing: 1px; }
.hero-panel__text h1 { font-size: 36px; font-weight: 700; margin: 0 0 14px; line-height: 1.32; }
.hero-panel__text p { font-size: 15.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.hero-panel__media { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.12); }
.hero-panel__media img { width: 100%; height: 100%; object-fit: contain; }
.hero-panel--nomedia { grid-template-columns: 1fr; text-align: center; }
.hero-panel--nomedia .hero-panel__text { max-width: 640px; margin: 0 auto; }

/* 목록 인트로 */
.list-intro { text-align: center; max-width: 640px; margin: 40px auto 40px; color: var(--muted); font-size: 15.5px; }

/* case detail */
.case-body { max-width: 640px; margin: 48px auto 0; text-align: center; padding: 0 24px; }
.case-body img { border-radius: 20px; width: 100%; object-fit: contain; background: #F0F5F4; }
.case-body .case-label { font-size: 13px; color: #888; margin: 14px 0 8px; }
.case-body h2 { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.case-body .case-text { text-align: left; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.case-back { text-align: center; margin: 60px 0; }
.case-back a { color: var(--accent); font-weight: 600; font-size: 15px; }

/* 080 badge box */
.partner-box {
  max-width: 640px; margin: 40px auto 0; padding: 20px 24px; border-radius: 14px;
  background: var(--accent-soft); text-align: center; font-size: 14.5px; color: var(--text);
}
.partner-box a { color: var(--accent); font-weight: 700; }

/* about / contact page body */
.page-body { max-width: 760px; margin: 56px auto; padding: 0 24px; }
.page-body h2 { font-size: 24px; margin: 40px 0 14px; }
.page-body p { font-size: 15.5px; line-height: 1.85; color: var(--text); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.contact-card h3 { margin: 0 0 8px; font-size: 17px; }
.contact-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pagination .is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 991px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-item { border-right: none; border-bottom: 1px solid var(--line); }
  .process-item.is-first { padding-left: 24px; }
  .about-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    width: 32px; height: 32px; justify-content: center; align-items: center; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 24px 20px; text-transform: none;
    font-family: "Pretendard Variable", sans-serif; font-size: 16px; letter-spacing: -0.3px;
  }
  .nav.is-open .nav-drop { width: 100%; }
  .nav.is-open .nav-drop__panel { position: static; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 4px 0 0 12px; transform: none; display: none; }
  .nav.is-open .nav-drop.is-open .nav-drop__panel { display: flex; }
  .nav.is-open .nav-cta { margin-top: 10px; }

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

  .section { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .case-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: 1fr; }
  .process-item { border-right: none !important; padding-left: 0 !important; }
  .about-list { grid-template-columns: 1fr; }

  .hero-panel { grid-template-columns: 1fr; padding: 28px 24px; margin: 20px auto; }

  body { padding-bottom: 72px; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    height: 60px; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-bar__btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; background: #fff; color: var(--text);
  }
  .mobile-bar__btn--fill { background: var(--accent); color: #fff; }
}
