* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Pretendard", sans-serif;
  line-height: 1.7;
  color: #ffffff;
  background: #0a0a0a;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

#hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15), transparent 60%),
    linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #1a1a1a;
}
#hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
#hero img {
  width: 160px; height: 160px;
  border-radius: 50%;
  margin: 0 auto 24px;
  object-fit: cover;
  border: 3px solid #d4af37;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}
#hero h1 { font-size: 32px; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.5px; }
#hero .title {
  font-size: 13px; color: #d4af37;
  margin-bottom: 14px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
#hero .tagline { font-size: 17px; font-weight: 300; color: #bbb; line-height: 1.6; }

nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f1f1f;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav a {
  display: inline-block;
  padding: 18px 18px;
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:active { color: #d4af37; }

main section { padding: 56px 24px; max-width: 720px; margin: 0 auto; }
main section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: #fff;
  position: relative;
  padding-left: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
main section h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, #d4af37, #b8941f);
  border-radius: 2px;
}

#about p { white-space: pre-line; color: #ccc; font-size: 15px; }
#about .certs { margin-top: 28px; }
#about .certs h3 {
  font-size: 12px; color: #d4af37;
  margin-bottom: 12px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
#about .certs ul { list-style: none; }
#about .certs li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: #ddd;
  font-size: 15px;
  border-bottom: 1px solid #1a1a1a;
}
#about .certs li:last-child { border-bottom: none; }
#about .certs li::before {
  content: "✓";
  position: absolute; left: 0;
  color: #d4af37;
  font-weight: 700;
}

.card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 14px;
  transition: border-color 0.25s, transform 0.15s;
}
.card:active { transform: scale(0.99); }

.review-card .meta { font-size: 13px; color: #888; margin-bottom: 10px; }
.review-card .stars {
  color: #d4af37;
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: 3px;
}
.review-card .text { color: #ddd; font-size: 15px; line-height: 1.75; }

.ba-card h3 { font-size: 16px; color: #fff; margin-bottom: 8px; font-weight: 600; }
.ba-card .images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ba-card .images figure { text-align: center; }
.ba-card .images figure img {
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0a0a0a;
}
.ba-card .images figcaption {
  font-size: 12px;
  color: #d4af37;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ba-card .summary { margin-top: 16px; font-size: 14px; color: #aaa; line-height: 1.6; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-grid figure {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #222;
  background: #141414;
}
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; }

#contact { text-align: center; }
.contact-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }
.contact-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  min-height: 56px;
  letter-spacing: 0.3px;
  transition: transform 0.15s, opacity 0.2s;
}
.contact-buttons a:active { transform: scale(0.97); opacity: 0.9; }
.contact-buttons .insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.contact-buttons .kakao { background: #fee500; color: #3c1e1e; }
.contact-buttons .phone {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

footer {
  padding: 40px 24px;
  text-align: center;
  color: #555;
  font-size: 13px;
  border-top: 1px solid #1a1a1a;
  margin-top: 40px;
}

@media (hover: hover) {
  nav a:hover { color: #d4af37; }
  .card:hover { border-color: #d4af37; transform: translateY(-2px); }
  .contact-buttons a:hover { transform: translateY(-2px); }
}

@media (min-width: 768px) {
  #hero { padding: 100px 24px 80px; }
  #hero h1 { font-size: 38px; }
  #hero img { width: 180px; height: 180px; }
  main section { padding: 80px 30px; }
  main section h2 { font-size: 26px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  nav a { padding: 20px 24px; }
}

.review-image { margin-top: 14px; border-radius: 10px; overflow: hidden; border: 1px solid #2a2a2a; cursor: zoom-in; }
.review-image img { width: 100%; display: block; transition: opacity 0.2s; }
.review-image img:active { opacity: 0.85; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadein 0.2s ease;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.review-card .member-name { color: #fff; font-size: 17px; margin: 4px 0 10px; font-weight: 600; }
.review-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.review-card .chip {
  background: #1a1a1a;
  color: #d4af37;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s, color 0.2s;
  font-family: inherit;
  line-height: 1.2;
}
.review-card .chip:active { transform: scale(0.96); }
.review-card .chip-active { background: #d4af37; color: #0a0a0a; border-color: #d4af37; }
.review-card .sub-meta { font-size: 12px; color: #777; margin-bottom: 10px; letter-spacing: 0.3px; }

.filter-banner {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.filter-banner .filter-label { color: #888; font-size: 13px; }
.filter-banner .filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #d4af37;
  color: #0a0a0a;
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  font-size: 13px;
  font-weight: 700;
}
.filter-banner .filter-pill button {
  background: none;
  border: none;
  color: #0a0a0a;
  font-size: 18px;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  font-weight: 700;
}
.filter-banner .filter-clear {
  margin-left: auto;
  background: none;
  border: 1px solid #3a3a3a;
  color: #ccc;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.filter-banner .filter-clear:active { background: #1f1f1f; }

.empty {
  text-align: center;
  color: #888;
  padding: 30px 20px;
  background: #141414;
  border: 1px dashed #2a2a2a;
  border-radius: 12px;
  margin-bottom: 14px;
}

@media (hover: hover) {
  .review-card .chip:hover { background: #2a2a2a; color: #f0c850; }
  .review-card .chip-active:hover { background: #c19c2e; color: #0a0a0a; }
  .filter-banner .filter-clear:hover { background: #1f1f1f; color: #fff; }
}

.filter-bar { margin-bottom: 16px; }
.filter-bar-label { color: #888; font-size: 12px; margin-bottom: 8px; letter-spacing: 0.5px; }
.filter-bar-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a transparent;
}
.filter-bar-chips::-webkit-scrollbar { height: 4px; }
.filter-bar-chips::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }
.filter-bar-chips::-webkit-scrollbar-track { background: transparent; }
.filter-bar-chips .chip { flex-shrink: 0; }

.review-card .chip-info {
  display: inline-block;
  background: #1a1a1a;
  color: #888;
  border: 1px solid #232323;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.competitions { margin-top: 32px; }
.competitions h3 {
  font-size: 12px;
  color: #d4af37;
  margin-bottom: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.comp-year {
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 2px solid #d4af37;
}
.comp-year h4 {
  color: #d4af37;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}
.comp-year ul { list-style: none; }
.comp-year li {
  padding: 5px 0;
  color: #ddd;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 14px;
}
.comp-year li::before {
  content: "•";
  color: #d4af37;
  position: absolute;
  left: 0;
  font-weight: 700;
}

.competition-image {
  max-width: 280px;
  margin: 20px auto;
  display: block;
}
.competition-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.process-intro {
  font-size: 16px;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 32px;
}
.process-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.process-step {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 22px 18px;
  border-left: 3px solid #4a9eff;
}
.process-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.process-step-number {
  background: #4a9eff;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.process-step-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.process-step-desc {
  color: #d0d0d0;
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 14px;
}
.process-step-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.process-step-images img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0 0 4px 0;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav:hover { background: rgba(0, 0, 0, 0.75); }
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10;
  pointer-events: none;
}
#about > p {
  white-space: pre-line;
}
/* ===== 후기 쓰기 버튼 ===== */
  .write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin: 4px 0 20px;
  }
  .write-review-btn:hover { background: #3a8eef; }

  /* ===== 후기 작성 모달 ===== */
  .review-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
  }
  .review-modal[hidden] { display: none; }
  .review-modal-box {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 26px 22px;
    width: 100%;
    max-width: 440px;
    margin: auto;
  }
  .review-modal-box h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
  }
  .review-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  #review-form label {
    display: block;
    margin: 14px 0 6px;
    font-size: 14px;
    color: #ddd;
    font-weight: 600;
  }
  #review-form input[type="text"],
  #review-form select,
  #review-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #222;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 11px 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
  }
  #review-form textarea { resize: vertical; }
  #review-form input::placeholder,
  #review-form textarea::placeholder { color: #777; }
  #review-form input[type="file"] {
    width: 100%;
    color: #ccc;
    font-size: 14px;
  }
  .form-row { display: flex; gap: 12px; }
  .form-row > div { flex: 1; }
  .opt { color: #888; font-weight: 400; font-size: 12px; }
  .req { color: #ff5252; }
  .form-msg {
    margin-top: 10px;
    font-size: 14px;
    color: #ffb74d;
    min-height: 18px;
  }

  .star-input {
    display: flex;
    gap: 4px;
    font-size: 34px;
    cursor: pointer;
    user-select: none;
  }
  .star-input span { color: #444; transition: color 0.1s; }
  .star-input span.on { color: #ffc107; }

  .review-submit {
    width: 100%;
    margin-top: 18px;
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
  }
  .review-submit:hover { background: #3a8eef; }
  .review-submit:disabled { opacity: 0.6; cursor: default; }

  .review-done { text-align: center; padding: 20px 0; }
  .review-done p {
    color: #eee;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

/* ===== 후기 정렬 토글 (최신순 / 추천순) ===== */
.sort-toggle {
  display: flex;
  width: fit-content;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 4px;
  margin: 0 0 18px;
  gap: 4px;
}
.sort-toggle button {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.sort-toggle button.active {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #0a0a0a;
}

/* 추천 후기 강조 */
.review-card.featured { border-color: #d4af37; }
.review-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
