/* =========================================================
   렙타일리쉬 공통 스타일 — 모든 페이지가 이 파일을 사용합니다.
   ========================================================= */
:root {
  --bg: #f6f3ec;
  --bg-tint: #ece7db;
  --card: #fffdf8;
  --ink: #1c2a22;
  --muted: #5b6a60;
  --line: #ddd6c6;
  --green: #2f5d46;
  --green-deep: #1f3d2e;
  --accent: #d96f2f;
  --on-dark: #f3efe4;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111713;
    --bg-tint: #161e19;
    --card: #1b241f;
    --ink: #e8eee9;
    --muted: #9aa99f;
    --line: #2a362f;
    --green: #86c4a0;
    --green-deep: #183126;
    --accent: #ee9058;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--green-deep); color: var(--on-dark);
  font-weight: 600; text-decoration: none; font-size: 15px;
  border: 1.5px solid var(--green-deep);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-light { background: var(--on-dark); border-color: var(--on-dark); color: #1f3d2e; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (prefers-color-scheme: dark) {
  .btn { background: var(--green); border-color: var(--green); color: #0f1a14; }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn-accent { background: var(--accent); border-color: var(--accent); color: #1a0f08; }
  .btn-light { background: var(--on-dark); border-color: var(--on-dark); color: #1f3d2e; }
}
.link { color: var(--green); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; }
.brand { display: flex; align-items: center; height: 60px; color: var(--ink); }
.logo-h { display: block; height: 34px; width: auto; aspect-ratio: 2122 / 668; }
.topbar .btn-small { margin-left: auto; }
/* 모바일: 메뉴가 두 번째 줄로 */
.nav { order: 3; width: 100%; display: flex; gap: 4px; margin: 0 -10px; padding-bottom: 8px; overflow-x: auto; }
.nav a {
  flex: none; padding: 6px 10px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--bg-tint); }
@media (min-width: 820px) {
  .topbar-inner { flex-wrap: nowrap; }
  .nav { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; }
  .topbar .btn-small { margin-left: 0; }
}

/* ---------- common type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow-light { color: #f2a873; }
.h1 { font-size: clamp(34px, 6.4vw, 60px); font-weight: 800; }
.h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.lead { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 36em; }
.lead strong { color: var(--ink); }
.body { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section { padding: 64px 0; }
@media (min-width: 820px) { .section { padding: 96px 0; } }
.section-tint { background: var(--bg-tint); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section-head .body { margin-top: 12px; }

/* ---------- page hero (서브 페이지 상단) ---------- */
.page-hero { padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .page-hero { padding: 80px 0 72px; } }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 36px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 24px; font-weight: 800; }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .icon { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

/* ---------- portfolio ---------- */
.works { display: grid; gap: 18px; }
@media (min-width: 680px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .works-3 { grid-template-columns: repeat(3, 1fr); } }
.work {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.work:hover { border-color: var(--green); transform: translateY(-2px); }
.work[hidden] { display: none; }
.work-cover {
  position: relative; aspect-ratio: 1200 / 630; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--bg-tint);
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-cover.square { aspect-ratio: 1; }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.work-body h3 { font-size: 20px; }
.work-body p { color: var(--muted); font-size: 15px; }
.work-url { font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--green); }
.work-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.work-links .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* 표지 이미지가 없는 작업용 커버 */
.cover-art {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(255,255,255,.06) 9px 10px),
    linear-gradient(150deg, #24463a, #13271d);
  color: #f3efe4;
}
.cover-art strong { display: block; font-size: clamp(24px, 4vw, 34px); letter-spacing: .02em; }
.cover-art span { display: block; font-size: 13px; opacity: .7; margin-top: 4px; letter-spacing: .08em; }
.cover-art svg { width: 64px; height: 64px; margin: 0 auto 12px; color: #f2a873; }
.cover-art.warm { background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(0,0,0,.07) 9px 10px), linear-gradient(150deg, #e9a15f, #b4531c); }
.cover-art.light { background: repeating-linear-gradient(0deg, transparent 0 9px, color-mix(in srgb, var(--green) 10%, transparent) 9px 10px), color-mix(in srgb, var(--green) 12%, var(--card)); color: var(--green); }
.cover-art.light svg { color: var(--green); }

/* 사진 자리 표시 */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, color-mix(in srgb, var(--green) 10%, transparent) 9px 10px),
    color-mix(in srgb, var(--green) 14%, var(--card));
  color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: .06em;
}

/* 필터 버튼 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1.5px solid var(--line);
}
.filters button[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-dark); }
@media (prefers-color-scheme: dark) { .filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #0f1a14; } }

/* ---------- process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .process { grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 0; } }
.process li { position: relative; padding: 0 0 0 52px; min-height: 40px; }
.process li > span {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-deep); color: var(--on-dark); font-weight: 700; font-size: 15px;
}
@media (prefers-color-scheme: dark) { .process li > span { background: var(--green); color: #0f1a14; } }
.process strong { display: block; padding-top: 5px; }
.process p { color: var(--muted); font-size: 14px; }
@media (min-width: 820px) {
  .process li { padding: 52px 20px 0 0; }
  .process li::before { content: ""; position: absolute; top: 17px; left: 44px; right: 8px; height: 2px; background: var(--line); }
  .process li:last-child::before { display: none; }
}

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: flex; gap: 18px; padding: 12px 0; position: relative; }
.tl-dot { flex: none; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); position: relative; }
.tl-now { background: var(--accent); border-color: var(--accent); }
.timeline p { color: var(--muted); font-size: 15px; }

.two-col { display: grid; gap: 28px; }
@media (min-width: 880px) { .two-col { grid-template-columns: .9fr 1.1fr; gap: 64px; } .two-col > div > .body:first-child { margin-top: 0; } }

/* ---------- home ---------- */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 800; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; display: none; }
.hero-art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 7px, color-mix(in srgb, var(--accent) 30%, transparent) 7px 8px);
  transform: translate(8%, 6%);
}
.hero-mark { position: relative; display: block; width: 100%; height: 100%; color: var(--green-deep); }
@media (prefers-color-scheme: dark) { .hero-mark { color: var(--ink); } }
@media (min-width: 880px) {
  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-art { display: block; }
}
.biz { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .biz { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.biz-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.biz-card:hover { border-color: var(--green); transform: translateY(-2px); }
.biz-num { font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .04em; }
.biz-card h2 { font-size: 21px; margin: 10px 0 8px; }
.biz-card p { color: var(--muted); font-size: 15px; flex: 1; }
.biz-more { margin-top: 18px; font-weight: 600; font-size: 14px; }

/* ---------- store panel ---------- */
.panel {
  display: grid; gap: 36px;
  background: var(--green-deep); color: var(--on-dark);
  border-radius: 28px; padding: 36px 24px;
}
@media (min-width: 880px) { .panel { grid-template-columns: 1.2fr .8fr; padding: 56px; align-items: center; } }
@media (prefers-color-scheme: dark) { .panel { background: #1d3a2c; } }
.panel .body { color: color-mix(in srgb, var(--on-dark) 78%, transparent); }
.panel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.panel-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}
.panel-list span { flex: none; width: 64px; font-size: 12px; font-weight: 700; color: #f2a873; }

/* ---------- contact band (모든 페이지 하단) ---------- */
.contact-band { padding: 64px 0; }
@media (min-width: 820px) { .contact-band { padding: 88px 0; } }
.contacts { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 820px) { .contacts { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.contact {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .15s;
}
.contact:hover { border-color: var(--green); }
.contact-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-value { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.contact-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* 문의 폼 (assets/site.js 가 .inquiry 자리에 그림) */
.inquiry:empty { display: none; }
.inquiry { margin-top: 16px; }
.inquiry-form {
  display: grid; gap: 16px; max-width: 760px;
  padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 720px) { .inquiry-form { padding: 32px; } }
.inquiry-head h3, .inquiry-done h3 { font-size: 20px; }
.inquiry-head p, .inquiry-done p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld span { font-size: 14px; font-weight: 600; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
}
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.consent p { margin: 6px 0 0 30px; font-size: 13px; color: var(--muted); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-foot .btn:disabled { opacity: .6; cursor: default; transform: none; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.error { color: #b3402a; }
@media (prefers-color-scheme: dark) { .form-status.error { color: #f08a73; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 110px; font-size: 13px; color: var(--muted); }
@media (min-width: 820px) { .footer { padding-bottom: 48px; } }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.footer-top .logo-h { height: 30px; color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.bizinfo { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.bizinfo div { display: flex; gap: 6px; }
.bizinfo dt { font-weight: 600; }
.bizinfo dd { margin: 0; }
.copy { margin-top: 18px; }

/* ---------- mobile dock ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--green-deep); border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a { color: var(--on-dark); text-decoration: none; text-align: center; font-size: 13px; font-weight: 600; padding: 14px 4px; }
.dock a + a { border-left: 1px solid rgba(255,255,255,.12); }
@media (prefers-color-scheme: dark) { .dock { background: #24463a; } }
@media (min-width: 820px) { .dock { display: none; } }
