/* 전지작업 — 공통 스타일시트 */
:root {
  --forest: #173F32;
  --forest-deep: #102D25;
  --sage: #9CAF98;
  --sage-pale: #EEF3EE;
  --charcoal: #252C28;
  --white: #FFFFFF;
  --line: #D8E2D9;
  --muted: #536257;
  --content-width: 1240px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(16, 45, 37, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Pretendard", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 600px) { body { font-size: 16px; line-height: 1.75; } }

h1, h2, h3 {
  font-family: "Noto Serif KR", serif;
  color: var(--forest-deep);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2.6em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--forest);
  color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 200; transition: top .15s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 1.4rem; color: var(--forest-deep); text-decoration: none; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--charcoal); padding: 8px 2px; }
.main-nav a:hover { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); }
.btn-outline { background: transparent; color: var(--forest-deep); border-color: var(--forest-deep); }
.btn-outline:hover { background: var(--sage-pale); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.header-cta.btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 72px 0 0 0; background: var(--white);
    flex-direction: column; gap: 0; padding: 12px 24px; transform: translateX(100%);
    transition: transform .2s ease; overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Hero ===== */
.hero { background: var(--forest-deep); color: #fff; }
.hero .wrap {
  display: grid; grid-template-columns: 40% 60%; align-items: center; gap: 40px; padding: 56px 24px;
}
.hero-text .btn-primary { background: var(--sage); color: var(--forest-deep); margin-bottom: 22px; }
.hero-text .btn-primary:hover { background: #fff; }
.hero-text h1 { color: #fff; }
.hero-text p.lead { color: var(--sage); font-size: 1.1rem; max-width: 46ch; }
.hero-photo-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 36px 20px; }
  .hero-photo-frame { order: -1; }
}

/* contact hero buttons */
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.contact-actions .btn { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.contact-hint { color: var(--sage); font-size: 0.92rem; margin-top: -8px; }

/* ===== Carousel ===== */
.carousel-section { padding: 64px 0; background: var(--white); }
.carousel-track-wrap { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px;
  scrollbar-width: thin;
}
.carousel-track:focus-visible { outline: 3px solid var(--forest); }
.carousel-card {
  scroll-snap-align: start; flex: 0 0 31%; min-width: 260px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.carousel-card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.carousel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel-card .body { padding: 16px 18px 20px; }
.carousel-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.carousel-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.carousel-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.carousel-controls button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.carousel-controls button svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .carousel-card { flex-basis: 78%; } }

/* ===== Before/After grid ===== */
.ba-section { padding: 48px 0; }
.ba-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ba-pair { display: contents; }
.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(23,63,50,0.88); color: #fff;
  font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.ba-tag.after { background: rgba(156,175,152,0.95); color: var(--forest-deep); }
.ba-fade { animation: baFade .5s ease both; }
.ba-zoom { animation: baZoom .5s ease both; }
.ba-outline .ba-item { border: 2px solid var(--forest); }
@keyframes baFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes baZoom { from { transform: scale(0.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 860px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; grid-column: 1 / -1; }
}

/* ===== Cards grid (services/regions) ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card, .region-card {
  text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s;
}
.service-card:hover, .region-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card .thumb, .region-card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.service-card .thumb img, .region-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body, .region-card .body { padding: 14px 16px 18px; }
.service-card h3, .region-card h3 { font-size: 1.05rem; margin: 0; }
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cards-grid.cols-1-xs { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-foot { text-align: center; margin-top: 28px; }
.region-scope-note {
  margin-top: 20px; padding: 16px 18px; background: var(--sage-pale); border-radius: var(--radius); color: var(--muted); font-size: 0.95rem;
}

/* ===== Tables ===== */
table.compare { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
table.compare caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.compare thead th { background: var(--sage-pale); color: var(--forest-deep); }
@media (max-width: 640px) {
  table.compare thead { display: none; }
  table.compare, table.compare tbody, table.compare tr, table.compare td { display: block; width: 100%; }
  table.compare tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
  table.compare td { border: none; border-bottom: 1px solid var(--line); }
  table.compare td:last-child { border-bottom: none; }
  table.compare td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--forest-deep); margin-bottom: 4px; font-size: 0.85rem; }
}

/* ===== Checklist / process ===== */
ul.checklist { list-style: none; margin: 1.2em 0; padding: 0; display: grid; gap: 10px; }
ul.checklist li { display: flex; gap: 10px; align-items: flex-start; }
ul.checklist li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--forest); }

.process-diagram { display: flex; flex-wrap: wrap; gap: 0; margin: 1.6em 0; }
.process-step {
  flex: 1 1 150px; background: var(--sage-pale); border-radius: var(--radius); padding: 16px 14px;
  text-align: center; position: relative; margin: 6px;
}
.process-step .num { display: block; font-family: "Noto Serif KR", serif; font-weight: 700; color: var(--forest); font-size: 1.3rem; margin-bottom: 6px; }
.process-step p { margin: 0; font-size: 0.92rem; color: var(--charcoal); }
.process-arrow { display: flex; align-items: center; color: var(--sage); }
.process-arrow svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .process-diagram { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); align-self: center; }
}

/* ===== Related cards ===== */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.related-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; display: block; }
.related-card:hover { border-color: var(--forest); background: var(--sage-pale); }
.related-card .tag { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 6px; }
.related-card h3 { font-size: 1.05rem; margin: 0; }

/* ===== FAQ ===== */
.faq-list { margin: 1.4em 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.08rem; }
.faq-item p { margin: 0; color: var(--charcoal); }

/* ===== CTA band ===== */
.cta-band { background: var(--sage-pale); padding: 56px 0; text-align: center; }
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--forest-deep); color: var(--sage); padding: 44px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.biz-info { font-size: 0.88rem; line-height: 1.9; color: var(--sage); }
.biz-info a { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 28px; padding-top: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 0.86rem; color: var(--muted); margin: 18px 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Article shell ===== */
.page-lead { font-size: 1.1rem; color: var(--charcoal); background: var(--sage-pale); padding: 20px 22px; border-radius: var(--radius); }
.article-body section { margin-top: 2.4em; }
.main-section { padding: 56px 0; }
.main-section.alt { background: var(--sage-pale); }
