/* 황토향 리디자인 — 전통·장인 톤 (흰 배경 + 그레이지 섹션 + 딥브라운 밴드, 명조 제목)
   공개 사이트 전용. admin(.admin-body)에는 영향 없도록 .rd-root 하위로 스코프. */

:root {
  --sec: #eeeae2;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', sans-serif;
  --brown: #8a5a2c;
  --brown-d: #734a22;
  --brown-l: #a9743f;
  --gold: #d8b98a;
  --gold-d: #c9976a;
  --ink: #2b1e14;
  --body: #6b5f52;
  --muted: #8a7862;
  --label: #a1876a;
  --dark: #3a2a1e;
  --footer: #241a12;
  --line: #eadfce;
  --line-sec: #e7ddcd;
  --line-head: #ebe0cf;
  --line-out: #cbb491;
  --dk-title: #f7ecd8;
  --dk-text: #f2e6d0;
  --dk-sub: #c7b49a;
  --dk-chip: #e8d6ba;
  --dk-line: #6a5540;
}

@keyframes rdFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- 루트 스코프 기본값 ---- */
.rd-root {
  font-family: var(--sans);
  background: #fff;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 한글이 단어(어절) 중간에서 어색하게 끊기지 않도록 */
  word-break: keep-all;
  overflow-wrap: break-word;
}
.rd-root ::selection { background: var(--gold); color: var(--ink); }
.rd-root h1, .rd-root h2, .rd-root h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 600;
}
.rd-root p { margin: 0; }
.rd-root img { max-width: 100%; display: block; }

/* ---- 레이아웃 ---- */
.rd-container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.rd-sec-bg { background: var(--sec); border-top: 1px solid var(--line-sec); }
.rd-fade { animation: rdFadeUp .7s ease both; }
.rd-fade-2 { animation: rdFadeUp .9s ease both; }

.rd-kicker {
  font-size: 13px; font-weight: 500; letter-spacing: 2.5px;
  color: var(--brown-l); margin-bottom: 18px;
}
.rd-lead { font-size: 16.5px; line-height: 1.85; color: var(--body); }

/* ---- 버튼/링크 ---- */
.rd-btn-fill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown); color: #fff; border: none; cursor: pointer;
  text-decoration: none; padding: 16px 30px; border-radius: 2px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0.5px;
  transition: background .15s;
}
.rd-btn-fill:hover { background: var(--brown-d); }
.rd-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--dark); border: 1.5px solid var(--line-out);
  text-decoration: none; padding: 16px 30px; border-radius: 2px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.rd-btn-outline:hover { border-color: var(--brown); color: var(--brown); }
.rd-link {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  color: var(--brown); text-decoration: none; transition: color .15s;
  white-space: nowrap;
}
.rd-link:hover { color: var(--brown-d); }

/* ---- 헤더 ---- */
.rd-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-head);
}
.rd-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px; height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.rd-logo { display: flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; }
.rd-logo-mark { height: 46px; width: auto; }
.rd-logo-full { height: 52px; width: auto; }
@media (max-width: 480px) {
  .rd-logo-mark { height: 34px; }
  .rd-logo-full { height: 40px; }
}
/* 푸터 로고 */
.rd-footer-logo { width: 200px; max-width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 14px; }
.rd-nav { display: flex; align-items: center; gap: 24px; }
.rd-nav-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: #4a3a2c;
  padding: 6px 0; border-bottom: 2px solid transparent; letter-spacing: 0.3px;
  text-decoration: none; transition: color .15s;
}
.rd-nav-link:hover { color: var(--brown); }
.rd-nav-link.active { font-weight: 700; color: var(--brown); border-bottom-color: var(--brown); }
.rd-header-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brown); color: #fff; text-decoration: none;
  padding: 11px 20px; border-radius: 2px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px; white-space: nowrap; transition: background .15s;
}
.rd-header-cta:hover { background: var(--brown-d); }
.rd-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.rd-burger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .2s; }

/* 모바일 메뉴 */
.rd-mobile { display: none; }

/* ---- 카드 ---- */
.rd-card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; transition: border-color .15s;
}
.rd-card:hover { border-color: var(--gold); }

/* placeholder(사진 없을 때) */
.rd-ph {
  background: repeating-linear-gradient(135deg,#eadfca 0,#eadfca 13px,#f2ebdc 13px,#f2ebdc 26px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #a58d68; font-family: 'Courier New', monospace; font-size: 13px;
}
.rd-img { background-size: cover; background-position: center; background-color: var(--sec); }

/* 제품 카드 — 사진이 잘리지 않도록 contain(전체 표시, 흰 여백) */
.rd-pcard-img {
  aspect-ratio: 4/3;
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
}
.rd-pcard-kicker {
  position: absolute; top: 12px; left: 12px; background: var(--dark); color: var(--dk-text);
  font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 2px;
}
.rd-pcard-body { padding: 20px 22px 24px; }
.rd-pcard-name { font-size: 17.5px; margin: 0 0 10px; line-height: 1.4; }
.rd-pcard-size { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.rd-pcard-price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rd-pcard-price { font-size: 16px; font-weight: 700; color: var(--brown); white-space: nowrap; }
.rd-pcard-tag { font-size: 12px; color: var(--label); border: 1px solid #e0d0b3; padding: 3px 9px; border-radius: 2px; white-space: nowrap; }

/* 제품 탭 */
.rd-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; border-bottom: 1px solid var(--line-sec); padding-bottom: 24px; }
.rd-tab {
  background: transparent; color: var(--body); border: 1.5px solid #d5c3a3; cursor: pointer;
  padding: 11px 22px; border-radius: 2px; font-family: var(--sans); font-size: 15px; font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.rd-tab:hover { border-color: var(--brown); color: var(--brown); }
.rd-tab.active { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ---- 다크 밴드 ---- */
.rd-dark { background: var(--dark); color: var(--dk-text); }

/* CTA 밴드 */
.rd-cta-inner {
  max-width: 1240px; margin: 0 auto; padding: 80px 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 32px;
}
.rd-cta-phone {
  display: inline-flex; align-items: center; gap: 10px; background: var(--dk-text); color: var(--dark);
  text-decoration: none; padding: 18px 32px; border-radius: 2px;
  font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.5px; transition: background .15s;
}
.rd-cta-phone:hover { background: #fff; }
.rd-cta-out {
  background: transparent; color: var(--dk-text); border: 1.5px solid var(--dk-line); cursor: pointer;
  padding: 18px 26px; border-radius: 2px; font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; transition: border-color .15s;
}
.rd-cta-out:hover { border-color: var(--gold-d); }

/* ---- 푸터 ---- */
.rd-footer { background: var(--footer); color: var(--dk-sub); }
.rd-footer-grid { max-width: 1240px; margin: 0 auto; padding: 64px 28px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.rd-footer h4 { font-family: var(--sans); font-size: 13px; color: var(--dk-chip); font-weight: 600; letter-spacing: 1px; margin: 0 0 18px; }
.rd-footer-col { display: flex; flex-direction: column; gap: 11px; }
.rd-footer-link { text-align: left; background: none; border: none; cursor: pointer; color: #a8967d; font-family: var(--sans); font-size: 14px; padding: 0; text-decoration: none; transition: color .15s; }
.rd-footer-link:hover { color: var(--dk-text); }
.rd-footer-bottom { border-top: 1px solid #3f2f22; }
.rd-footer-bottom > div { max-width: 1240px; margin: 0 auto; padding: 22px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--muted); }

/* ---- 플로팅 전화 ---- */
.rd-floating {
  position: fixed; bottom: 26px; right: 26px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; background: var(--brown); color: #fff;
  text-decoration: none; padding: 15px 22px; border-radius: 40px; font-size: 15px; font-weight: 500;
  box-shadow: 0 12px 30px rgba(58,42,30,.35); transition: background .15s;
}
.rd-floating:hover { background: var(--brown-d); }

/* 미디어 재생 프레임 */
.rd-media-frame { aspect-ratio: 16/9; position: relative; background: #1a1816; }
.rd-media-frame iframe, .rd-media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.rd-media-frame video { object-fit: cover; }

/* ================= 반응형 ================= */
@media (max-width: 1024px) {
  .rd-grid-2, .rd-grid-3, .rd-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .rd-hero-grid, .rd-split { grid-template-columns: 1fr !important; }
}
@media (max-width: 860px) {
  .rd-nav { display: none; }
  .rd-header-cta { display: none; }
  .rd-burger { display: block; }
  .rd-mobile.open {
    display: block; position: fixed; inset: 74px 0 0 0; z-index: 55;
    background: #fff; padding: 20px 28px; border-top: 1px solid var(--line-head);
  }
  .rd-mobile.open .rd-nav-link { display: block; font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); border-top: none; width: 100%; }
  .rd-mobile.open .rd-header-cta { display: inline-flex; margin-top: 20px; }
  .rd-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .rd-cta-inner, .rd-footer-grid { text-align: center; }
  .rd-footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .rd-footer-col { align-items: center; }
  .rd-cta-inner { justify-content: center; }
}
@media (max-width: 560px) {
  .rd-grid-2, .rd-grid-3, .rd-grid-4 { grid-template-columns: 1fr !important; }
  .rd-h1 { font-size: 34px !important; }
  .rd-h2 { font-size: 28px !important; }
  .rd-container, .rd-hero { padding-left: 20px; padding-right: 20px; }
}
