:root {
  --clr-primary:       #C08A3E;
  --clr-primary-light: #E3C99A;
  --clr-primary-dark:  #96692A;
  --clr-accent:        #C9B889;
  --clr-accent-light:  #E8DCC0;
  --clr-accent-dark:   #7A6A42;

  --clr-bg-main:       #EFF3EA;
  --clr-bg-section:    #E2EADB;
  --clr-bg-dark:       #14210F;
  --clr-bg-warm:       #D6E2CE;

  --clr-border-light:  #C7D6BE;
  --clr-border-dark:   #7A6A42;

  --clr-text-primary:  #17140F;
  --clr-text-secondary:#3A3428;
  --clr-text-muted:    #8A8168;
  --clr-text-on-dark:  #F2EEDD;

  --font-heading: 'Gowun Batang', 'Noto Serif KR', Georgia, serif;
  --font-h1: 'Gowun Batang', 'Noto Serif KR', Georgia, serif;
  --font-display: var(--font-h1);
  --font-body:    'Wanted Sans Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --sec-pad: clamp(80px, 11vw, 140px);

  --radius: 0px;
  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-pill: 2px;

  --shadow-sm: 0 2px 8px rgba(150,105,42,0.06);
  --shadow-md: 0 12px 32px rgba(150,105,42,0.10);
  --shadow-lg: 0 24px 60px rgba(150,105,42,0.16);

  --ease-out: cubic-bezier(.22,1,.36,1);
  --transition: 0.35s cubic-bezier(.22,1,.36,1);

  --text-on-light: var(--clr-text-primary);
  --text-on-dark: var(--clr-text-on-dark);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--clr-text-primary);
  background: var(--clr-bg-main);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--clr-text-primary); }
h1, h2 { font-family: var(--font-h1); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 600; margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 700; margin-bottom: var(--space-md); }
h2 .accent-word { color: var(--clr-primary-dark); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; margin-bottom: var(--space-xs); }
p { margin: 0 0 var(--space-sm); color: var(--clr-text-secondary); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.rt-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rt-section { padding: var(--sec-pad) 0; }
.rt-section--dark { background: var(--clr-bg-dark); color: var(--text-on-dark); }
.rt-section--dark h2, .rt-section--dark h3, .rt-section--dark p { color: var(--text-on-dark); }
.rt-section--sand { background: var(--clr-bg-section); }
.rt-section--warm { background: var(--clr-bg-warm); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.rt-btn--gold { background: var(--clr-accent); color: var(--clr-text-primary); box-shadow: var(--shadow-sm); }
.rt-btn--primary { background: var(--clr-primary-dark); color: var(--text-on-dark); }
.rt-btn--outline { background: transparent; border-color: var(--clr-border-dark); color: var(--clr-primary-dark); }
.rt-btn--outline-dark { background: transparent; border-color: rgba(242,238,221,0.5); color: var(--text-on-dark); }
.rt-btn--sm { padding: 9px 18px; font-size: 0.85rem; }

@media (hover: hover) and (pointer: fine) {
  .rt-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .rt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.rt-btn:active, .rt-card:active, .link-card:active { transform: translateY(-1px); }

/* ---------- Header ---------- */
.rt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239,243,234,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border-light);
  transition: var(--transition);
}
.rt-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1180px; margin: 0 auto; }
.rt-header__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--clr-primary-dark); }
.rt-header__logo span { font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; color: var(--clr-text-muted); display: block; letter-spacing: 0.08em; }
.rt-header__nav { display: flex; gap: 28px; }
.rt-header__nav a { font-weight: 600; font-size: 0.92rem; color: var(--clr-text-secondary); }
.rt-header__cta { display: flex; align-items: center; gap: 14px; }
.hdr-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hdr-hamburger span { width: 22px; height: 2px; background: var(--clr-primary-dark); display: block; }

#mob-nav {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100%;
  background: var(--clr-bg-main); z-index: 100; box-shadow: var(--shadow-lg);
  transition: right 0.35s var(--ease-out); padding: 24px; overflow-y: auto;
}
#mob-nav.open { right: 0; }
#mob-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--clr-border-light); font-weight: 600; }
#mob-nav-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-bottom: 12px; }
#mob-overlay { position: fixed; inset: 0; background: rgba(20,33,15,0.5); z-index: 99; display: none; }
#mob-overlay.open { display: block; }

/* ---------- Hero ---------- */
.rt-hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.rt-hero__bg { position: absolute; inset: 0; z-index: 0; }
.rt-hero__bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.rt-hero__bg img.is-active { opacity: 1; animation: heroDrift 9s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.08) translate(-1%,-1%); } }
.rt-hero__textbox {
  position: relative; z-index: 2; background: rgba(20,33,15,0.72);
  padding: 40px 44px; max-width: 620px; margin: 0 24px;
  border-left: 3px solid var(--clr-accent);
}
.rt-hero__textbox h1, .rt-hero__textbox p, .rt-hero__textbox .hero-sub { color: var(--text-on-dark); }
.rt-hero__textbox .hero-sub { color: var(--clr-accent-light); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 12px; }
.rt-hero__cta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

.sub-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; overflow: hidden; }
.sub-hero__bg { position: absolute; inset: 0; }
.sub-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroDrift 12s ease-in-out infinite alternate; }
.sub-hero__overlay { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(0deg, rgba(20,33,15,0.88) 10%, rgba(20,33,15,0) 100%); }
.sub-hero__content { position: relative; z-index: 2; padding: 48px 24px; max-width: 1180px; margin: 0 auto; width: 100%; }
.sub-hero__content h1, .sub-hero__content p { color: var(--text-on-dark); }
.sub-hero__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 9vw, 6rem); color: rgba(242,238,221,0.16); position: absolute; top: -10px; right: 24px; z-index: 1; }

/* ---------- Grid utility ---------- */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; text-align: center; align-items: center; }
/* 마지막 줄 고아 아이템 방지: 홀로 남는 마지막 아이템은 전체 폭으로 확장 */
.dp-g2 > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dp-g3 > *:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media(max-width:768px) {
  .dp-g2, .dp-g3 { grid-template-columns: 1fr; }
  .dp-g2 > *:last-child:nth-child(odd), .dp-g3 > *:last-child:nth-child(3n+1) { grid-column: auto; }
}
@media(max-width:600px) { .dp-stat3 { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Cards ---------- */
.rt-card {
  background: #fff; border: 1px solid var(--clr-border-light); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.rt-card img { border-radius: var(--radius-md); margin-bottom: 16px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.rt-card h3 { margin-bottom: 8px; }
.rt-card p { margin-bottom: 0; font-size: 0.92rem; }

.contact-card { padding: 36px 28px; }
.contact-card__number {
  font-family: var(--font-h1); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700;
  color: var(--clr-primary-dark); margin: 10px 0 !important; letter-spacing: 0.02em;
}

.link-card { display: block; background: #fff; border: 1px solid var(--clr-border-light); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.link-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.link-card__body { padding: 18px 20px; }
.link-card__body .eyebrow { display: block; margin-bottom: 4px; }
.link-card__body h3 { font-size: 1.05rem; color: var(--clr-text-primary); }

.card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
@media(max-width:768px) { .card-badges { flex-direction: column; align-items: flex-start; gap: 6px; } }
.badge { display: inline-block; padding: 5px 14px; background: var(--clr-bg-warm); color: var(--clr-accent-dark); font-size: 0.78rem; font-weight: 700; }

/* ---------- Before / After ---------- */
.ba-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ba-compare figure { margin: 0; position: relative; }
.ba-compare img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ba-compare figcaption {
  position: absolute; top: 12px; left: 12px; background: var(--clr-primary-dark); color: var(--text-on-dark);
  font-size: 0.78rem; font-weight: 700; padding: 5px 14px; letter-spacing: 0.05em;
}
@media(max-width:768px) { .ba-compare { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.proc-list { display: flex; list-style: none; margin: 0; padding: 0; }
.proc-step { flex: 1; position: relative; padding: 0 12px; text-align: center; }
.proc-step:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; left: 50%; width: 100%; height: 2px;
  background: var(--clr-border-light); z-index: 0;
}
.proc-num {
  position: relative; z-index: 1; margin: 0 auto 12px; width: 48px; height: 48px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--clr-primary-dark); color: var(--text-on-dark); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.proc-step h4 { font-size: 0.98rem; margin-bottom: 4px; }
.proc-step p { font-size: 0.82rem; }
@media(max-width:768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--clr-border-light); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-weight: 700; font-size: 1rem; color: var(--clr-text-primary); font-family: var(--font-body);
}
.faq-q .ico { font-size: 1.3rem; color: var(--clr-accent-dark); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.faq-a p { padding: 0 4px 20px; font-size: 0.92rem; }

/* ---------- Stat ---------- */
.stat-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--clr-accent); }
.stat-label { font-size: 0.85rem; color: var(--clr-text-muted); }
.rt-section--dark .stat-label { color: rgba(242,238,221,0.65); }

/* ---------- Footer ---------- */
.rt-footer { background: var(--clr-bg-dark); color: var(--text-on-dark); padding: var(--space-xl) 0 var(--space-lg); }
.rt-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
@media(max-width:768px) { .rt-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.rt-footer h4 { color: var(--clr-accent-light); font-size: 0.95rem; margin-bottom: 14px; }
.rt-footer p, .rt-footer li { color: rgba(242,238,221,0.75); font-size: 0.88rem; margin-bottom: 8px; }
.rt-footer a { color: rgba(242,238,221,0.85); }
.rt-footer__bottom { border-top: 1px solid rgba(242,238,221,0.15); margin-top: 32px; padding-top: 20px; font-size: 0.78rem; color: rgba(242,238,221,0.5); }

/* ---------- Mobile sticky / floating CTA ---------- */
#mob-bar { display: none; }
@media(max-width:768px) {
  body { padding-bottom: 64px; }
  #mob-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--clr-primary-dark); height: 64px;
  }
  #mob-bar a { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-on-dark); font-weight: 700; font-size: 0.95rem; }
  #mob-bar a:first-child { background: var(--clr-accent); color: var(--clr-text-primary); }
  .hdr-nav, .hdr-phone { display: none; }
  .hdr-hamburger { display: flex; }
}
#float-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 55; width: 60px; height: 60px;
  background: var(--clr-accent); color: var(--clr-text-primary); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); font-weight: 700; font-size: 0.75rem; text-align: center;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(201,184,137,0.5); } 100% { box-shadow: 0 0 0 16px rgba(201,184,137,0); } }
@media(max-width:768px) { #float-cta { display: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.stagger.is-visible { transition-delay: var(--d, 0s); }

/* ---------- Table wrapper ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { padding: 12px 16px; border: 1px solid var(--clr-border-light); text-align: left; font-size: 0.9rem; }
th { background: var(--clr-bg-warm); font-family: var(--font-heading); }

.br-mobile { display: none; }
.br-desktop { display: inline; }
@media(max-width:768px) { .br-mobile { display: inline; } .br-desktop { display: none; } }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
  transition: width 0.12s linear;
}

/* ---------- Concern chip selector ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip {
  background: #fff; border: 1px solid var(--clr-border-light); padding: 12px 20px;
  font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: var(--transition);
  color: var(--clr-text-secondary);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--clr-primary-dark); color: var(--clr-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
}
.chip:active { transform: translateY(0); }
.bento-item.chip-highlight {
  animation: chipPulse 1.4s ease;
}
@keyframes chipPulse {
  0% { box-shadow: 0 0 0 0 rgba(201,184,137,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(201,184,137,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,184,137,0); }
}

/* ---------- Bento service grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; margin-top: 32px; }
.bento-item {
  position: relative; overflow: hidden; display: block; background: var(--clr-bg-dark);
}
.bento-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.6s var(--ease-out); }
.bento-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,33,15,0.82) 0%, rgba(20,33,15,0.15) 55%, rgba(20,33,15,0) 100%); }
.bento-item__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; }
.bento-item__body .eyebrow { color: var(--clr-accent-light); }
.bento-item__body h3 { color: var(--text-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .bento-item:hover img { transform: scale(1.08); }
}
.bento-item--lg { grid-column: span 2; grid-row: span 2; }
.bento-item--md { grid-column: span 2; grid-row: span 1; }
.bento-item--wide { grid-column: span 2; grid-row: span 1; }
@media(max-width:768px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento-item--lg, .bento-item--md, .bento-item--wide { grid-column: auto; grid-row: auto; }
}

/* ---------- Before/After drag slider ---------- */
.ba-slider {
  position: relative; max-width: 760px; margin: 32px auto 0; aspect-ratio: 4/3;
  overflow: hidden; box-shadow: var(--shadow-lg); user-select: none;
}
.ba-slider__layer { position: absolute; inset: 0; }
.ba-slider__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-slider__after { clip-path: inset(0 50% 0 0); }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff;
  transform: translateX(-50%); z-index: 3; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-slider__handle::before {
  content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--clr-primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: var(--shadow-md);
}
.ba-slider__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; -webkit-appearance: none; z-index: 4;
}
.ba-slider__tag { position: absolute; top: 14px; z-index: 2; background: var(--clr-primary-dark); color: var(--text-on-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; padding: 5px 14px; }
.ba-slider__tag--before { left: 14px; }
.ba-slider__tag--after { right: 14px; }

/* ---------- Responsive ---------- */
@media(max-width:1024px) {
  .rt-hero__textbox { max-width: 520px; }
}
@media(max-width:768px) {
  .rt-hero { min-height: 78vh; }
  .rt-section { padding: 64px 0; }
}
@media(max-width:480px) {
  .rt-hero__textbox { padding: 28px 24px; margin: 0 16px; }
}
