/*
 * RoboPress — main.css
 * Brand: FINERO 피네로 | brand_tier: premium
 * Color: Espresso Brown + Champagne Gold + Warm Ivory
 * Font: Noto Serif KR (heading) + Pretendard (body)
 */

/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS — 하이엔드 웜 뉴트럴 팔레트
══════════════════════════════════════════════════════════ */
:root {
  /* Primary Palette — Espresso Brown */
  --clr-primary:       #6B4226;
  --clr-primary-light: #9B6B4A;
  --clr-primary-dark:  #3D2314;

  /* Accent — Champagne Gold */
  --clr-accent:        #C9A882;
  --clr-accent-light:  #E8D5BB;
  --clr-accent-dark:   #A08050;

  /* Backgrounds */
  --clr-bg-main:       #FAF7F2;
  --clr-bg-section:    #F2EBE0;
  --clr-bg-dark:       #1E130A;
  --clr-bg-warm:       #EDE4D8;

  /* Borders */
  --clr-border-light:  #DDD0BF;
  --clr-border-dark:   #A08050;

  /* Text */
  --clr-text-primary:  #1A1108;
  --clr-text-secondary:#4A3520;
  --clr-text-muted:    #8C7660;
  --clr-text-on-dark:  #F5EDD8;

  /* Typography */
  --font-heading: 'Noto Serif KR', Georgia, serif;
  --font-body:    'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   3rem;
  --space-xl:   5rem;
  --space-2xl:  8rem;

  /* Section padding — 하이엔드 넉넉한 리듬 */
  --sec-pad: clamp(80px, 11vw, 140px);

  /* Border radius — 각진 디자인 */
  --radius:    0px;
  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-pill: 2px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(61,35,20,0.06);
  --shadow-md:  0 12px 32px rgba(61,35,20,0.10);
  --shadow-lg:  0 24px 60px rgba(61,35,20,0.16);

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

/* ══════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: var(--clr-text-primary);
  background: var(--clr-bg-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--clr-text-primary);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT — 풀블리드 + 내용 제한
══════════════════════════════════════════════════════════ */
.rb-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* rb-section: 배경이 화면 끝까지 풀블리드 */
.rb-section {
  width: 100%;
  max-width: none;
  padding-block: var(--sec-pad);
}

.rb-section--dark {
  background: var(--clr-bg-dark);
  color: var(--clr-text-on-dark);
}
.rb-section--dark h2,
.rb-section--dark h3,
.rb-section--dark .rb-section-header__title {
  color: var(--clr-text-on-dark);
}

.rb-section--sand {
  background: var(--clr-bg-section);
}

.rb-section--warm {
  background: var(--clr-bg-warm);
}

/* 골드 구분선 */
.rb-divider {
  width: 48px;
  height: 1px;
  background: var(--clr-accent);
  margin: 0 auto 2rem;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.rb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.rb-header--scrolled {
  border-bottom-color: var(--clr-border-light);
  box-shadow: var(--shadow-sm);
}

.rb-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
  height: 68px;
}

.rb-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clr-primary-dark);
  text-decoration: none;
  margin-right: auto;
}

.rb-logo-sub {
  font-weight: 400;
  color: var(--clr-text-secondary);
  font-size: 0.95rem;
}

.rb-header__nav {
  display: flex;
  gap: var(--space-md);
}

.rb-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  transition: color var(--transition);
  padding: 0.25rem 0;
  position: relative;
}

.rb-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--clr-accent-dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}

.rb-nav__link:hover {
  color: var(--clr-primary);
}

.rb-nav__link:hover::after {
  transform: scaleX(1);
}

.rb-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--clr-primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.rb-header__cta:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   EYEBROW
══════════════════════════════════════════════════════════ */
.rb-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION — 풀블리드 풀스크린
══════════════════════════════════════════════════════════ */
.rb-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--clr-text-on-dark);
}

.rb-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rb-hero__img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenBurns 12s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

.rb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30,19,10,0.88) 0%,
    rgba(30,19,10,0.65) 35%,
    rgba(30,19,10,0.30) 65%,
    rgba(30,19,10,0.05) 100%
  );
}

.rb-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(80px,12vw,160px) 0;
  padding-top: calc(68px + clamp(60px,10vw,120px));
}

.rb-hero__inner {
  max-width: 680px;
}

.rb-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1.25rem;
  color: #F5EDD8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-hero__title em {
  font-style: normal;
  color: var(--clr-accent-light);
  position: relative;
  display: inline-block;
}

.rb-hero__title em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: titleUnderline 1.1s cubic-bezier(.22,1,.36,1) 0.8s forwards;
}

@keyframes titleUnderline {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.rb-hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  color: rgba(245,237,216,.8);
  margin-bottom: 2.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Hero Trust 뱃지 */
.rb-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.rb-hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rb-hero__trust-item strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--clr-accent-light);
}

.rb-hero__trust-item span {
  font-size: 0.75rem;
  color: rgba(245,237,216,0.6);
}

.rb-hero__trust-sep {
  width: 1px;
  height: 32px;
  background: rgba(201,168,130,0.3);
}

/* ══════════════════════════════════════════════════════════
   BUTTONS — 하이엔드 각진 디자인
══════════════════════════════════════════════════════════ */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  min-height: 52px;
  padding: 14px 32px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.rb-btn--primary {
  background: var(--clr-primary);
  color: white;
  box-shadow: var(--shadow-md);
}
.rb-btn--primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rb-btn--gold {
  background: var(--clr-accent-dark);
  color: white;
  box-shadow: var(--shadow-md);
}
.rb-btn--gold:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rb-btn--outline {
  background: transparent;
  color: var(--clr-text-on-dark);
  border: 1px solid rgba(201,168,130,0.6);
}
.rb-btn--outline:hover {
  background: rgba(201,168,130,0.15);
  border-color: var(--clr-accent);
  color: var(--clr-accent-light);
}

.rb-btn--outline-dark {
  background: transparent;
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  padding: 14px 32px;
}
.rb-btn--outline-dark:hover {
  background: var(--clr-primary);
  color: white;
}

.rb-btn--sm {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════ */
.rb-section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.rb-section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: 1rem;
}

.rb-section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: 0.75rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-section-header__sub {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 48ch;
  margin-inline: auto;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════════════════════════════
   STATS BAND — 골드 serif 대형 숫자
══════════════════════════════════════════════════════════ */
.rb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.rb-stat {
  padding: 2rem 1rem;
  position: relative;
}

.rb-stat + .rb-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(201,168,130,0.25);
}

.rb-stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.rb-stat__number::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--clr-accent);
  margin: 14px auto 0;
}

.rb-stat__label {
  font-size: 0.88rem;
  color: var(--clr-text-on-dark);
  opacity: 0.75;
  letter-spacing: 0.04em;
  word-break: keep-all;
}

/* ══════════════════════════════════════════════════════════
   BENTO GRID — 12컬럼 + 3행 완전 채움
══════════════════════════════════════════════════════════ */
.rb-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 320px) 260px;
  gap: 6px;
}

.rb-bento__item {
  position: relative;
  overflow: hidden;
  background: var(--clr-bg-section);
  transition: transform var(--transition), box-shadow var(--transition);
}

.rb-bento__item:hover {
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

/* item1: 대형 — col 1-8, row 1-2 */
.rb-bento__item:nth-child(1) {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
}

/* item2: col 9-12, row 1 */
.rb-bento__item:nth-child(2) {
  grid-column: 9 / 13;
  grid-row: 1 / 2;
}

/* item3: col 9-12, row 2 */
.rb-bento__item:nth-child(3) {
  grid-column: 9 / 13;
  grid-row: 2 / 3;
}

/* item4: col 1-4, row 3 */
.rb-bento__item:nth-child(4) {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
}

/* item5: col 5-8, row 3 */
.rb-bento__item:nth-child(5) {
  grid-column: 5 / 9;
  grid-row: 3 / 4;
}

/* item6: col 9-12, row 3 */
.rb-bento__item:nth-child(6) {
  grid-column: 9 / 13;
  grid-row: 3 / 4;
}

.rb-bento__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.rb-bento__item:hover .rb-bento__img {
  transform: scale(1.04);
}

.rb-bento__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(30,19,10,0.88) 0%, transparent 100%);
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.rb-bento__item:hover .rb-bento__overlay {
  opacity: 1;
  transform: translateY(0);
}

.rb-bento__overlay-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  word-break: keep-all;
}

.rb-bento__overlay-sub {
  font-size: 0.8rem;
  opacity: 0.8;
  word-break: keep-all;
}

/* ══════════════════════════════════════════════════════════
   SERVICE CARDS — 하이엔드 미니멀 2×2
══════════════════════════════════════════════════════════ */
.rb-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.rb-service-card {
  background: white;
  border: 1px solid var(--clr-border-light);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
  overflow: hidden;
}

/* 상단 골드 액센트 라인 — 호버 시 확장 */
.rb-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width .4s cubic-bezier(.22,1,.36,1);
}

.rb-service-card:hover::before {
  width: 100%;
}

.rb-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(61,35,20,.12);
}

.rb-service-card__num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: 1.25rem;
  display: block;
}

.rb-service-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 0.75rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-service-card__desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--clr-text-secondary);
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════════════════════════════
   BEFORE / AFTER
══════════════════════════════════════════════════════════ */
.rb-ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rb-ba-item {
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rb-ba-item__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  position: relative;
}

.rb-ba-item__label {
  position: absolute;
  top: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  z-index: 2;
}

.rb-ba-item__label--before {
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: white;
}

.rb-ba-item__label--after {
  right: 12px;
  background: var(--clr-primary);
  color: white;
}

.rb-ba-item__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rb-ba-item__info {
  padding: 1.25rem;
}

.rb-ba-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 0.25rem;
  word-break: keep-all;
}

.rb-ba-item__location {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* ══════════════════════════════════════════════════════════
   PROCESS STEPS — decimal-leading-zero + serif + hairline
══════════════════════════════════════════════════════════ */
.rb-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.rb-process__step {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border-light);
  transition: border-color var(--transition);
}

.rb-process__step:hover {
  border-top-color: var(--clr-accent);
}

.rb-process__step-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: -0.02em;
}

.rb-process__step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 0.5rem;
  word-break: keep-all;
}

.rb-process__step-desc {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════════════════════════════
   CTA BANNER — split 2:1
══════════════════════════════════════════════════════════ */
.rb-cta-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  overflow: hidden;
}

.rb-cta-banner__media {
  position: relative;
  overflow: hidden;
}

.rb-cta-banner__media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--clr-accent);
  z-index: 2;
}

.rb-cta-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.rb-cta-banner:hover .rb-cta-banner__img {
  transform: scale(1.04);
}

.rb-cta-banner__body {
  background: var(--clr-primary-dark);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.rb-cta-banner__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.rb-cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--clr-text-on-dark);
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-cta-banner__sub {
  font-size: 0.95rem;
  color: rgba(245,237,216,0.7);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-cta-banner__micro {
  font-size: 0.8rem;
  color: rgba(245,237,216,0.45);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════════════════
   FAQ ACCORDION — borderless + +/x 커스텀 토글
══════════════════════════════════════════════════════════ */
.rb-faq {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.rb-faq__item {
  border-top: 1px solid var(--clr-border-light);
  transition: border-color var(--transition);
}

.rb-faq__item:last-child {
  border-bottom: 1px solid var(--clr-border-light);
}

.rb-faq__item.is-open {
  border-top-color: var(--clr-accent-dark);
}

.rb-faq__question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-faq__question:hover { color: var(--clr-primary); }

.rb-faq__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--clr-accent-dark);
  transition: transform var(--transition), color var(--transition);
  line-height: 1;
}

.rb-faq__item.is-open .rb-faq__toggle {
  transform: rotate(45deg);
  color: var(--clr-primary);
}

.rb-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.22,1,.36,1);
}

.rb-faq__item.is-open .rb-faq__answer {
  max-height: 500px;
}

.rb-faq__answer-inner {
  padding: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════════════════════════════
   REVIEW / TESTIMONIAL — quote 스타일
══════════════════════════════════════════════════════════ */
.rb-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rb-review {
  margin: 0;
  padding: 2rem;
  background: white;
  border-left: 3px solid var(--clr-accent);
}

.rb-review__stars {
  color: var(--clr-accent-dark);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.rb-review__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--clr-text-secondary);
  margin: 0 0 1.25rem;
  font-style: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rb-review__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.rb-review__name {
  font-weight: 700;
  color: var(--clr-text-secondary);
}

.rb-review__loc::before {
  content: '·';
  margin-right: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════ */
.rb-breadcrumb {
  padding: calc(68px + 1rem) 0 1rem;
  background: var(--clr-bg-section);
}

.rb-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.rb-breadcrumb li + li::before {
  content: '›';
  margin-right: 0.25rem;
}

.rb-breadcrumb a {
  color: var(--clr-primary);
}
.rb-breadcrumb a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   PORTFOLIO PAGE — GALLERY GRID
══════════════════════════════════════════════════════════ */
.rb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rb-gallery-card {
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.rb-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.rb-gallery-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.rb-gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.rb-gallery-card:hover .rb-gallery-card__img {
  transform: scale(1.06);
}

.rb-gallery-card__body {
  padding: 1.25rem;
}

.rb-gallery-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: 0.6rem;
}

.rb-gallery-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 0.4rem;
  word-break: keep-all;
}

.rb-gallery-card__meta {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ══════════════════════════════════════════════════════════
   CONSULT PAGE
══════════════════════════════════════════════════════════ */
.rb-consult-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

.rb-consult-card {
  background: white;
  border: 2px solid var(--clr-border-light);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}

.rb-consult-card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rb-consult-card__icon {
  width: 72px;
  height: 72px;
  background: rgba(107,66,38,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--clr-primary);
}

.rb-consult-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 0.5rem;
}

.rb-consult-card__desc {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  word-break: keep-all;
}

.rb-consult-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
  width: 100%;
  letter-spacing: 0.04em;
}

.rb-consult-card--tel .rb-consult-card__action {
  background: var(--clr-primary);
  color: white;
}
.rb-consult-card--tel .rb-consult-card__action:hover {
  background: var(--clr-primary-dark);
}

.rb-consult-card--sms .rb-consult-card__action {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.rb-consult-card--sms .rb-consult-card__action:hover {
  background: var(--clr-primary);
  color: white;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.rb-footer {
  background: var(--clr-bg-dark);
  color: var(--clr-text-on-dark);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.rb-footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.rb-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--clr-accent-light);
  margin-bottom: 0.4rem;
}

.rb-footer__meta {
  font-size: 0.85rem;
  color: rgba(245,237,216,0.55);
  margin-bottom: 0.3rem;
}

.rb-footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.rb-footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rb-footer__nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.rb-footer__nav a:hover {
  color: var(--clr-accent-light);
}

/* ══════════════════════════════════════════════════════════
   MOBILE STICKY CTA
══════════════════════════════════════════════════════════ */
.rb-sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: white;
  border-top: 1px solid var(--clr-border-light);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.rb-sticky-mobile__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.rb-sticky-mobile__btn--consult {
  background: var(--clr-primary);
  color: white;
}

.rb-sticky-mobile__btn--call {
  background: white;
  color: var(--clr-primary);
  border-right: 1px solid var(--clr-border-light);
}

/* ══════════════════════════════════════════════════════════
   DESKTOP FLOATING CTA
══════════════════════════════════════════════════════════ */
.dp-float-cta {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: var(--clr-primary-dark);
  color: white;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--clr-accent);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: rb-float-in 0.5s var(--ease-out) both;
}

.dp-float-cta::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--clr-accent);
  border-radius: 0;
  opacity: 0;
  animation: dp-float-ring 2.4s ease-in-out infinite;
}

@keyframes dp-float-ring {
  0%,100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.12); }
}

.dp-float-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(61,35,20,0.28);
}

.dp-float-cta__icon {
  width: 26px;
  height: 26px;
}

@keyframes rb-float-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   ANIMATION UTILITIES — blur + fade-up
══════════════════════════════════════════════════════════ */
.rb-animate {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 0.7s cubic-bezier(.22,1,.36,1),
    transform 0.7s cubic-bezier(.22,1,.36,1),
    filter 0.7s cubic-bezier(.22,1,.36,1);
}

.rb-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* rb-visible: 이전 코드와 호환 */
.rb-animate.rb-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.rb-animate--delay-1.is-visible,
.rb-animate--delay-1.rb-visible { transition-delay: 0.1s; }
.rb-animate--delay-2.is-visible,
.rb-animate--delay-2.rb-visible { transition-delay: 0.2s; }
.rb-animate--delay-3.is-visible,
.rb-animate--delay-3.rb-visible { transition-delay: 0.3s; }
.rb-animate--delay-4.is-visible,
.rb-animate--delay-4.rb-visible { transition-delay: 0.4s; }

/* 접근성 — 모션 감소 */
@media (prefers-reduced-motion: reduce) {
  .rb-animate {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .rb-hero__img-bg { animation: none; }
  .rb-hero__title em::after { animation: none; transform: scaleX(1); }
}

/* ══════════════════════════════════════════════════════════
   NAV CAROUSEL
══════════════════════════════════════════════════════════ */
.rb-nav-carousel {
  overflow: hidden;
}

.rb-nav-carousel ol {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.rb-nav-carousel li a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: white;
  border: 1px solid var(--clr-border-light);
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  transition: all var(--transition);
}

.rb-nav-carousel li a:hover {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1150px) {
  .rb-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .rb-stat + .rb-stat::before {
    display: none;
  }
  .rb-process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .rb-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .rb-bento__item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .rb-bento__item:nth-child(2) { grid-column: auto; grid-row: auto; }
  .rb-bento__item:nth-child(3) { grid-column: auto; grid-row: auto; }
  .rb-bento__item:nth-child(4) { grid-column: auto; grid-row: auto; }
  .rb-bento__item:nth-child(5) { grid-column: auto; grid-row: auto; }
  .rb-bento__item:nth-child(6) { grid-column: auto; grid-row: auto; }
  .rb-bento__img { min-height: 240px; }
  .rb-bento__item:nth-child(1) .rb-bento__img { min-height: 320px; }

  .rb-ba-grid {
    grid-template-columns: 1fr;
  }

  .rb-cta-banner {
    grid-template-columns: 1fr;
  }
  .rb-cta-banner__media {
    min-height: 260px;
  }
}

@media (max-width: 900px) {
  .rb-reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rb-services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rb-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .rb-header__nav { display: none; }

  .rb-hero__body {
    padding-top: calc(68px + 3rem);
  }

  .rb-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 4px;
  }
  .rb-bento__item:nth-child(1) { grid-column: 1 / 3; }
  .rb-bento__img { min-height: 200px; }
  .rb-bento__item:nth-child(1) .rb-bento__img { min-height: 260px; }

  .rb-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rb-services-grid {
    grid-template-columns: 1fr;
  }

  .rb-process {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .rb-sticky-mobile {
    display: flex;
  }

  .dp-float-cta { display: none; }

  body { padding-bottom: 70px; }

  .rb-consult-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .rb-reviews-grid {
    grid-template-columns: 1fr;
  }
  .rb-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rb-bento {
    grid-template-columns: 1fr;
  }
  .rb-bento__item:nth-child(1) { grid-column: 1; }

  .rb-stats {
    grid-template-columns: 1fr 1fr;
  }

  .rb-process {
    grid-template-columns: 1fr;
  }

  .rb-services-grid {
    grid-template-columns: 1fr;
  }

  .rb-hero__trust {
    gap: 1rem;
  }

  .rb-hero__trust-sep {
    display: none;
  }
}

@media (min-width: 769px) {
  .dp-float-cta { display: flex; }
  .rb-sticky-mobile { display: none; }
}

/* ══════════════════════════════════════════════════════════
   SITEMAP PAGE
══════════════════════════════════════════════════════════ */
.rb-sitemap {
  max-width: 700px;
  margin-inline: auto;
  padding: var(--space-xl) 0;
}

.rb-sitemap h2 {
  font-size: 1.4rem;
  color: var(--clr-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clr-border-light);
}

.rb-sitemap ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.rb-sitemap li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--clr-border-light);
}

.rb-sitemap a {
  color: var(--clr-primary);
  font-size: 1rem;
}
.rb-sitemap a:hover { text-decoration: underline; }

/* Print */
@media print {
  .rb-header, .rb-sticky-mobile, .dp-float-cta { display: none !important; }
  body { padding-bottom: 0; }
}
