:root {
  --primary:#2F5D50;
  --primary-dark:#1E3A32;
  --accent:#EA580C;
  --background:#F6F8F6;
  --text:#1C2621;
  --surface:#FFFFFF;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.section { padding: clamp(32px, 6vw, 64px) 0; }

/* ---------- 헤더 ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid #E3E8E3;
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header__brand { font-weight: 700; font-size: 1.15rem; color: var(--primary-dark); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.site-nav a { font-size: .95rem; font-weight: 500; color: var(--text); transition: color .15s; }
.site-nav a:hover { color: var(--primary); }
.site-nav__cta {
  background: var(--accent); color: #fff !important; padding: 8px 16px; border-radius: 6px;
}
.site-nav__cta:hover { background: #C64A0A; }
.nav-toggle, .nav-toggle__btn { display: none; }

@media (max-width: 600px) {
  .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .nav-toggle__btn {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; z-index: 60;
  }
  .nav-toggle__btn span { width: 22px; height: 2px; background: var(--text); }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; border-bottom: 1px solid #E3E8E3;
    transition: max-height .2s ease;
  }
  .site-nav a { width: 100%; padding: 14px 20px; border-top: 1px solid #EEF1EE; }
  .nav-toggle:checked ~ .site-nav { max-height: 320px; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #C64A0A; }
.btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- CTA 박스 ---------- */
.cta-box {
  background: var(--primary-dark); color: #fff;
  border-radius: 10px; padding: 32px 20px; text-align: center;
}
.cta-box p, .cta-box h2 { color: #fff; }

/* ---------- 카드/그리드 ---------- */
.card {
  background: var(--surface); border: 1px solid #E3E8E3; border-radius: 10px;
  padding: 20px; transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }

.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.photo-grid img, .grid-2 img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; width: 100%; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .grid-4, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; margin: 1em 0; }
.table-clean { min-width: 480px; }
.table-clean th, .table-clean td {
  border: 1px solid #E3E8E3; padding: 10px 14px; text-align: left; font-size: .95rem;
}
.table-clean th { background: var(--background); font-weight: 700; }
.table-clean tr:nth-child(even) td { background: #FBFCFB; }

/* ---------- 캐러셀 ---------- */
/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid #E3E8E3; padding: 16px 0; }
.faq-item h3 { font-size: 1.05rem; color: var(--primary-dark); }
.faq-item p { margin: 0; color: var(--text); }

/* ---------- 배지 ---------- */
.badge {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}

/* ---------- 히어로 (은은한 나뭇결) ---------- */
.hero {
  background-color: var(--background);
  background-image: repeating-linear-gradient(100deg, rgba(30,58,50,.04) 0 2px, transparent 2px 26px);
  padding: clamp(40px, 8vw, 80px) 0;
}

/* ---------- 푸터 ---------- */
.site-footer { background: var(--primary-dark); color: #E7ECE9; padding: 20px 0; margin-top: 40px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.site-footer__nav a { font-size: .85rem; color: #CFE0D8; }
.site-footer__biz { font-size: .75rem; color: #9DB3AA; margin: 0; line-height: 1.6; }
