/* =========================
   0) Reset / Base
========================= */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
}

/* =========================
   1) Layout (Header / Main / Footer)
========================= */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 50;
}

.site-main { min-height: 60vh; }

.site-footer {
  border-top: 1px solid #eee;
  background: #fafafa;
}

/* =========================
   2) Header
========================= */
.topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: 800;
  text-decoration: none;
  color: #111;
}

.logo-image {
  display: block;
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gnb {
  display: flex;
  gap: 14px;
  flex: 1;
}

.gnb a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-outline {
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.btn-call {
  background: #ff4d4f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* Mobile nav */
.hamburger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 22px;
}

.mnav {
  display: none;
  border-top: 1px solid #eee;
  padding: 10px 16px;
}

.mnav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #111;
}

/* =========================
   3) Hero Banner / Slider
========================= */
.hero { background: #f6f6f6; }

.hero-slider {
  position: relative;           /* ✅ 오버레이 기준 */
  max-width: 1200px;
  margin: 0 auto;
  height: 520px;
  overflow: hidden;
}

/* Slide */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

.slide.is-active { opacity: 1; }

/* Image */
.slide picture,
.slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.slide img { object-fit: cover; }

/* ✅ 배너 전체 클릭 오버레이 */
.slide-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 3;                  /* 이미지보다 위 */
  text-decoration: none;
}

/* ✅ 이미지가 링크 아래로 가도록(클릭은 link가 받게) */
.slide picture,
.slide img {
  position: relative;
  z-index: 1;
}

/* Controls */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 5;                  /* ✅ link보다 위 */
}

.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }

/* Dots */
.slide-dots {
  position: relative;
  z-index: 5;                  /* ✅ link보다 위 */
}

/* =========================
   4) Quick CTA
========================= */
.quick-cta {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cta-card {
  display: block;
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 14px;
  text-decoration: none;
  color: #111;
  background: #fff;
}

.cta-title { font-weight: 800; margin-bottom: 6px; }
.cta-desc { color: #666; font-size: 14px; }

/* =========================
   4.2) Inline Consult
========================= */
.consult-inline {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.consult-inline--twitter .inline-card {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(29, 155, 240, 0.08);
}

.consult-inline--twitter .inline-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.consult-inline--twitter .inline-desc {
  margin: 0 0 12px;
  color: #536471;
  font-size: 14px;
}

.consult-inline--twitter .form-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1.1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.consult-inline--twitter .form-field label {
  font-weight: 600;
  color: #0f1419;
}

.consult-inline--twitter .form-hint {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.2;
  margin-top: 4px;
}

.consult-inline--twitter .form-field input,
.consult-inline--twitter .form-field select {
  background: #f7f9f9;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.consult-inline--twitter .form-field input:focus,
.consult-inline--twitter .form-field select:focus {
  outline: none;
  border-color: #1d9bf0;
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.2);
}

.consult-inline--twitter .btn-primary {
  background: #1d9bf0;
  border-color: #1d9bf0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}

.consult-inline--twitter .btn-primary:hover {
  background: #1a8cd8;
  border-color: #1a8cd8;
}

.consult-inline--twitter .inline-message {
  min-height: 20px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #0f1419;
}

.consult-inline--twitter .inline-message.is-error {
  color: #d93025;
}

.consult-inline--twitter .inline-message.is-success {
  color: #1d9bf0;
}

/* =========================
   4.8) Toast
========================= */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f1419;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-success {
  background: #1d9bf0;
}

.toast.is-error {
  background: #d93025;
}

/* =========================
   4.85) Reviews
========================= */
.review-section {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.review-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.review-viewport {
  overflow: hidden;
}

.review-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
}

.review-card {
  min-width: 280px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.06);
  cursor: pointer;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.review-name {
  font-weight: 700;
  color: #111;
}

.review-rating {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.review-rating .is-on {
  color: #f5a623;
}

.review-content {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

.review-actions {
  display: flex;
  gap: 8px;
}

.review-actions .btn-secondary {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.review-nav {
  border: 0;
  background: #f3f4f6;
  color: #111;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.review-empty {
  padding: 16px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
  font-size: 14px;
}

/* =========================
   4.86) Process / Hours
========================= */
.process-section,
.hours-section {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.section-header p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-steps li {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(15, 20, 25, 0.05);
}

.step-num {
  display: inline-block;
  font-weight: 800;
  color: #1d9bf0;
  margin-bottom: 8px;
}

.step-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
}

.step-desc {
  font-size: 13px;
  color: #6b7280;
}

.hours-card {
  background: linear-gradient(135deg, #f8fafc, #eef6ff);
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hours-title {
  font-weight: 800;
  color: #111;
}

.hours-time {
  font-size: 18px;
  font-weight: 800;
  color: #1d9bf0;
}

.hours-note {
  font-size: 13px;
  color: #6b7280;
}

.review-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.review-modal.is-open {
  display: flex;
}

.review-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.4);
}

.review-modal__panel {
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(15, 20, 25, 0.25);
  z-index: 1;
}

.review-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-modal__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.review-modal__close {
  border: 0;
  background: #f1f5f9;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.review-delete-hint {
  display: none;
  font-size: 12px;
  color: #d93025;
  margin-bottom: 8px;
}

.review-modal.mode-delete .review-field--author,
.review-modal.mode-delete .review-field--content {
  display: none;
}

.review-modal.mode-edit .review-field--author {
  display: none;
}

.review-modal.mode-delete .review-delete-hint {
  display: block;
}

.review-modal.mode-verify .review-display {
  display: none;
}

.review-modal.mode-verify .review-edit {
  display: none;
}

.review-display {
  display: none;
  gap: 10px;
  margin-bottom: 12px;
}

.review-display-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  font-size: 14px;
  color: #111;
}

.review-display-label {
  font-weight: 600;
  color: #374151;
}

.review-verify {
  display: none;
}

.review-edit {
  display: none;
}

.review-modal.mode-view .review-display {
  display: grid;
}

.review-modal.mode-view .review-edit {
  display: none;
}

.review-modal.mode-verify .review-verify {
  display: block;
}

.review-modal.mode-edit .review-edit {
  display: block;
}

.review-modal.mode-create .review-edit {
  display: block;
}
/* =========================
   4.5) Consult Form
========================= */
.consult-form .form-wrap {
  max-width: 720px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.consult-form h1 {
  font-size: 24px;
  margin: 0 0 16px;
}

.form-error {
  background: #fff3f3;
  border: 1px solid #ffd3d3;
  color: #b00020;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.form-field.form-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.form-check input[type="checkbox"] {
  margin-top: 0;
}

.form-check label {
  display: inline;
  line-height: 1.4;
}

.form-hint {
  font-size: 12px;
  color: #888;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-secondary {
  border-color: #ddd;
  color: #111;
}

/* =========================
   5) Footer
========================= */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #444;
  font-size: 13px;
}

.footer-title { font-weight: 800; margin-bottom: 6px; }
.footer-links {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  margin: 0 6px;
  color: #cbd5f5;
}

.legal-page {
  max-width: 900px;
  margin: 24px auto 48px;
  padding: 0 16px;
  color: #111;
}

.legal-page h1 {
  font-size: 26px;
  margin: 0 0 16px;
}

.legal-page h2 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.legal-page p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.6;
}

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #4b5563;
}

.legal-page li {
  margin-bottom: 6px;
}

/* =========================
   6) Responsive
========================= */
.consult-inline--twitter .form-actions {
  display: flex;
  justify-content: flex-end;
  align-self: end;
}

/* =========================
   4.9) Consult Modal
========================= */
.consult-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.consult-modal.is-open {
  display: flex;
}

.consult-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.4);
}

.consult-modal__panel {
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(15, 20, 25, 0.25);
  z-index: 1;
}

.consult-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.consult-modal__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.consult-modal__close {
  border: 0;
  background: #f1f5f9;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 900px){
  .topbar {
    justify-content: center;
  }
  .hero-slider { height: 360px; }
  .quick-cta { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .review-slider { grid-template-columns: 1fr; }
  .review-nav { display: none; }
  .review-viewport { overflow-x: auto; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px){
  .hero-slider { height: 300px; }
  .process-steps { grid-template-columns: 1fr; }
  .review-display-row { grid-template-columns: 1fr; }
  .review-display-label { margin-bottom: 4px; }
  .logo-image { height: 36px; }
}
