/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.section-title-num {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #ac95f7;
}

/* ===== Header (메인 컬러 = Electric Violet) ===== */
#site-header {
  transition: background-color .3s ease, box-shadow .3s ease;
  background-color: #6C4CF1;
}
#site-header.scrolled {
  background-color: #5639cf;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.brand-wordmark {
  line-height: 1;
}
.header-label,
.header-name,
.header-phone,
.header-quote {
  transition: color .3s ease;
}
.header-label {
  color: rgba(229,233,242,0.85);
}
.header-keyword {
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(229,233,242,0.55);
}
.header-name {
  color: rgba(229,233,242,0.92);
}
.header-phone {
  color: rgba(229,233,242,0.8);
}
.header-phone:hover {
  color: #ffffff;
}
.header-quote {
  color: rgba(255,255,255,0.65);
  font-size: 0.85em;
}

/* ===== Hero (light, legacy) ===== */
.hero-bg {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(44,77,115,0.09), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(23,44,69,0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
}

/* ===== Hero (dark, premium) ===== */
.hero-bg-dark {
  background:
    radial-gradient(1100px 550px at 85% -10%, rgba(108,76,241,0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(108,76,241,0.12), transparent 60%),
    linear-gradient(180deg, #0C0C16 0%, #121219 55%, #181822 100%);
}
.hero-vignette {
  background: radial-gradient(1200px 700px at 50% 40%, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero-photo-frame {
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
}
.stat-card-dark {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform .3s ease, background-color .3s ease;
}
.stat-card-dark:hover {
  transform: translateY(-4px);
  background-color: rgba(255,255,255,0.08);
}
.btn-ghost-hero {
  background-color: transparent;
  color: #E5E9F2;
  border: 1px solid rgba(229,233,242,0.4);
  transition: background-color .2s ease, border-color .2s ease;
}
.btn-ghost-hero:hover {
  background-color: rgba(229,233,242,0.08);
  border-color: rgba(229,233,242,0.7);
}

.stat-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(108,76,241,0.2);
}

/* ===== Buttons (포인트 컬러 = Cold White) ===== */
.btn-primary {
  background-color: #E5E9F2;
  color: #14141f;
  transition: background-color .2s ease, transform .2s ease;
}
.btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}
.btn-kakao {
  background-color: #FEE500;
  color: #3C1E1E;
  transition: filter .2s ease, transform .2s ease;
}
.btn-kakao:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid #E5E9F2;
  color: #E5E9F2;
  background: transparent;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-outline:hover {
  background-color: #E5E9F2;
  color: #14141f;
  transform: translateY(-2px);
}
.btn-primary-accent {
  background-color: #6C4CF1;
  color: #ffffff;
  transition: background-color .2s ease, transform .2s ease;
}
.btn-primary-accent:hover {
  background-color: #8d6ff3;
  transform: translateY(-2px);
}
/* ===== Photo hover ===== */
.photo-card {
  overflow: hidden;
}
.photo-card img {
  transition: transform .5s ease, filter .4s ease;
  filter: saturate(0.94) contrast(1.03);
}
.photo-card:hover img {
  transform: scale(1.06);
}
.photo-caption {
  transition: opacity .3s ease, transform .3s ease;
}

/* ===== Number counter ===== */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ===== KakaoTalk chat bubble UI ===== */
.kakao-chat-frame {
  background: #cdd6de;
  border-radius: 20px;
  padding: 16px 12px 20px;
  position: relative;
}
.kakao-chat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #40506a;
  font-size: 0.78rem;
  font-weight: 600;
  padding-bottom: 10px;
}
.kakao-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.kakao-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
}
.kakao-name {
  font-size: 0.72rem;
  color: #4b5563;
  margin-bottom: 2px;
}
.kakao-bubble {
  background: #fff;
  border-radius: 4px 14px 14px 14px;
  padding: 10px 13px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #222;
  max-width: 220px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.kakao-bubble-row.from-me {
  justify-content: flex-end;
}
.kakao-bubble-row.from-me .kakao-bubble {
  background: #FEE500;
  border-radius: 14px 4px 14px 14px;
  color: #3C1E1E;
}
.kakao-time {
  font-size: 0.62rem;
  color: #6b7280;
  white-space: nowrap;
  margin-bottom: 2px;
}

/* ===== Review stars (display, inside kakao bubble list) ===== */
.review-stars {
  font-size: 0.72rem;
  letter-spacing: 1px;
}
.review-stars .fa-star.text-yellow-400 {
  color: #FACC15;
}
.review-stars .fa-star.text-gray-500 {
  color: #d1d5db;
}

/* ===== Star rating input (review write form) ===== */
.star-input {
  display: flex;
  gap: 6px;
  font-size: 1.5rem;
  color: #4b5563;
}
.star-input i {
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.star-input i:hover {
  transform: scale(1.12);
}
.star-input i.active {
  color: #FACC15;
}

/* ===== Timeline ===== */
.timeline-line {
  background: linear-gradient(180deg, #6C4CF1 0%, rgba(108,76,241,0.15) 100%);
}
.timeline-dot {
  box-shadow: 0 0 0 6px rgba(108,76,241,0.18);
}

/* ===== Step arrows ===== */
.step-arrow {
  color: rgba(172,149,247,0.55);
}

/* ===== Gallery grid ===== */
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .4s ease;
  filter: saturate(0.94) contrast(1.03);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* ===== Keyword emphasis ===== */
.kw {
  font-weight: 800;
  color: #ac95f7;
}
.kw-navy {
  font-weight: 800;
  color: #E5E9F2;
}

/* ===== Contact form (Section17) ===== */
.form-input {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E9F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.75rem;
}
select.form-input option {
  background-color: #181822;
  color: #ffffff;
}
.form-radio-label {
  display: block;
  cursor: pointer;
}
.form-radio-pill {
  display: block;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d1d5db;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.15s ease;
}
.form-radio-label input:checked + .form-radio-pill {
  background-color: #6C4CF1;
  border-color: #6C4CF1;
  color: #ffffff;
}
.form-radio-label:hover .form-radio-pill {
  border-color: rgba(108, 76, 241, 0.6);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #121219; }
::-webkit-scrollbar-thumb { background: #6C4CF1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #8d6ff3; }

/* ===== Utility ===== */
.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (max-width: 768px) {
  .section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
