@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

/* ── Base & CSS Variables ── */
:root {
  --brand-navy: #0f172a;
  --brand-dark: #1e293b;
  --brand-slate: #334155;
  --brand-orange: #ea580c;
  --brand-orange-light: #f97316;
  --brand-amber: #f59e0b;
  --brand-blue: #0284c7;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
}

html {
  scroll-behavior: smooth;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  letter-spacing: -0.025em;
}

body {
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Glassmorphism Navigation ── */
.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Hero Gradient & Pattern ── */
.hero-gradient-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.95) 100%);
}

.grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.warm-flame-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

/* ── Custom Animations ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.35);
  }
  50% {
    box-shadow: 0 0 30px rgba(234, 88, 12, 0.7);
  }
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.animate-float {
  animation: floatBadge 3.2s ease-in-out infinite;
}

#mobile-menu:not(.hidden) {
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Interactive Calculator Cards ── */
.calc-card-input:checked + .calc-card-label {
  border-color: #ea580c;
  background-color: rgba(234, 88, 12, 0.06);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.16);
}

.calc-card-input:checked + .calc-card-label .check-indicator {
  background-color: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

/* ── Custom Range Slider ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ea580c;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #c2410c;
}

/* ── Before & After Cards ── */
.ba-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
}

.ba-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
}

.ba-img-box img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ba-img-box:hover img {
  transform: scale(1.06);
}

.ba-badge-before {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #f87171;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  letter-spacing: 0.05em;
  z-index: 10;
}

.ba-badge-after {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #34d399;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  letter-spacing: 0.05em;
  z-index: 10;
}

.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.ba-img-box:hover .zoom-hint,
.gallery-card-box:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gallery Card Zoom & Styles ── */
.gallery-card-box {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-card-img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-box:hover .gallery-card-img {
  transform: scale(1.08);
}

/* ── Lightbox Modal ── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(10, 15, 30, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox-dialog,
.lightbox-content {
  position: relative;
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  animation: zoomInLightbox 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomInLightbox {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image-wrapper,
.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  width: 100%;
  max-width: 600px;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-align: left;
}

.lightbox-close,
.lightbox-nav-btn,
.lightbox-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.lightbox-close:hover,
.lightbox-nav-btn:hover,
.lightbox-btn:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-close {
  top: -20px;
  right: -20px;
}

.lightbox-nav-btn.prev,
.lightbox-prev {
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav-btn.next,
.lightbox-next {
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav-btn.prev:hover,
.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.next:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 14px;
    right: 14px;
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.85);
  }
  .lightbox-nav-btn.prev,
  .lightbox-prev {
    left: 8px;
    width: 40px;
    height: 40px;
  }
  .lightbox-nav-btn.next,
  .lightbox-next {
    right: 8px;
    width: 40px;
    height: 40px;
  }
  .lightbox-caption {
    margin-top: 8px;
    padding: 8px 12px;
  }
}

/* ── Photo Upload Dropzone ── */
.photo-dropzone {
  border: 2px dashed #cbd5e1;
  background-color: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.photo-dropzone:hover, .photo-dropzone.drag-over {
  border-color: #ea580c;
  background-color: #fff7ed;
}

.photo-thumb-card {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb-card .delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.photo-thumb-card .delete-btn:hover {
  background-color: #ef4444;
  transform: scale(1.1);
}

.photo-thumb-card .file-size-tag {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #ffffff;
  font-size: 10px;
  text-align: center;
  padding: 4px 2px 2px;
}

/* ── FAQ Accordion ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #ea580c;
}

/* ── Gallery Filter Buttons ── */
.gallery-filter-btn.active {
  background-color: #0f172a;
  color: #ffffff;
}

/* ── Floating Action Bar ── */
#floatingActions {
  transition: all 0.3s ease;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
