/* ----------------------------------------------------
   주식회사 렛츠 (Let's Works) - Main Stylesheet
   ---------------------------------------------------- */

@font-face {
  font-family: 'GangwonEdu_OTFLightA';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEdu_OTFLightA.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GangwonEdu_OTFBoldA';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEdu_OTFBoldA.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-pink: #d82b7d;
  --primary-pink-hover: #f03a8d;
  --primary-pink-light: rgba(216, 43, 125, 0.12);
  --dark-bg: #0a0b0d;
  --card-dark: #121418;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-light: #f9fafb;
  --border-color: #e5e7eb;
  --card-radius: 22px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'GangwonEdu_OTFBoldA', 'GangwonEdu_OTFLightA', sans-serif;
  color: var(--text-main);
  background-color: #fffdf1;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fffdf1;
}

/* ----------------------------------------------------
   Header Navigation (Not fixed/sticky, no boundary lines)
   ---------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  background: transparent;
  padding: 1rem 1.6rem 0.6rem 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.header-container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-company-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  padding-left: 10px;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  height: 24px;
  line-height: 1;
}

.main-nav-list {
  display: flex;
  list-style: none;
  gap: 1.44rem;
}

.main-nav-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.4rem 0.64rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.main-nav-link:hover,
.main-nav-link.active {
  color: var(--primary-pink);
  background-color: var(--primary-pink-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ----------------------------------------------------
   Main Layout & Category Sections (Light Theme Wireframe - 80% Scale)
   ---------------------------------------------------- */
.main-content {
  flex: 1;
  max-width: 1152px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 1.6rem 2.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Category Row Layout (Scaled Height 240px = 80% of 300px) */
.category-section-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  height: 240px;
  min-height: 240px;
}

/* Left Category Card (Transparent Background, No Shadow, No Border) */
.category-left-card {
  width: 176px;
  height: 240px;
  flex-shrink: 0;
  background-color: transparent;
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  box-shadow: none;
  border: none;
}

.category-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.category-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
  text-shadow: none;
}

/* Right Image Slide Area (Gallery Slider - 240px Height, 80% Scale) */
.gallery-slider-wrapper {
  flex: 1;
  height: 240px;
  max-height: 240px;
  background-color: #fffdf1;
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
}

.gallery-slider-track {
  display: flex;
  gap: 0; /* Zero gap between sliding images */
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 240px;
  max-height: 240px;
  align-items: center;
  /* Hide scrollbars */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-slider-track::-webkit-scrollbar {
  display: none;
}

/* Individual Slide Card (Scaled Width 272px, Height 240px) */
.gallery-slide-card {
  flex: 0 0 272px;
  height: 240px;
  scroll-snap-align: start;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #fffdf1;
  transition: transform 0.4s var(--transition-smooth);
}

.gallery-slide-card:hover {
  transform: scale(1.02);
  z-index: 2;
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

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

/* Slide info overlay: Scaled 80% */
.gallery-slide-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #ffffff;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.slide-tag,
.slide-desc {
  display: none !important;
}

.slide-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.slide-hover-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 0 3px 10px rgba(216, 43, 125, 0.35);
}

.gallery-slide-card:hover .slide-hover-btn {
  opacity: 1;
  transform: scale(1);
}

/* Slider Controls (Scaled 35px) */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
}

.slider-nav-btn:hover {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
  left: 1rem;
}

.slider-nav-btn.next {
  right: 1rem;
}

/* Hide pagination dots navigation completely */
.slider-dots,
.slider-pagination,
.slider-dot {
  display: none !important;
}

/* ----------------------------------------------------
   Lightbox Modal Component (Bright Light Theme)
   ---------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.modal-container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  transform: scale(0.92);
  transition: transform 0.35s var(--transition-smooth);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-pink);
  background: rgba(216, 43, 125, 0.12);
  border: 1px solid rgba(216, 43, 125, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.modal-close-btn {
  background: #f3f4f6;
  border: none;
  color: #374151;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary-pink);
  color: #ffffff;
}

.modal-body {
  padding: 1.8rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
}

.modal-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  max-height: 420px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111827;
}

.modal-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.modal-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.modal-details-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.5rem;
}

.modal-details-list span.label {
  color: #6b7280;
}

.modal-details-list span.val {
  color: #111827;
  font-weight: 700;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.9rem;
  background: var(--primary-pink);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(216, 43, 125, 0.3);
}

.modal-cta-btn:hover {
  background: var(--primary-pink-hover);
}

/* ----------------------------------------------------
   Site Footer (Compact & Minimal 80% Scale)
   ---------------------------------------------------- */
.site-footer {
  background: transparent;
  border-top: none;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
  text-align: center;
}

.footer-container {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-contact-info {
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  letter-spacing: -0.01em;
}

.footer-contact-info a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-info a:hover {
  color: var(--primary-pink);
}

.footer-copyright {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

/* ----------------------------------------------------
   Responsive Layout Media Queries (Mobile & Tablet Optimized)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .main-content {
    padding: 1rem 1.25rem 2rem 1.25rem;
    gap: 1.25rem;
  }

  .category-section-row {
    flex-direction: column;
    height: auto;
    min-height: auto;
    gap: 0.5rem;
  }

  .category-left-card {
    width: 100%;
    height: auto;
    padding: 0.3rem 0.2rem;
    justify-content: flex-start;
    align-items: flex-start;
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .category-title {
    font-size: 1.2rem;
    text-align: left;
  }

  .gallery-slider-wrapper {
    width: 100%;
    height: 200px;
    max-height: 200px;
    border-radius: 16px;
  }

  .gallery-slider-track {
    height: 200px;
    max-height: 200px;
  }

  .gallery-slide-card {
    flex: 0 0 230px;
    height: 200px;
  }

  .slider-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .slider-nav-btn.prev {
    left: 0.5rem;
  }

  .slider-nav-btn.next {
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.75rem 1rem 0.4rem 1rem;
  }

  .brand-logo-img {
    height: 24px;
  }

  .brand-company-name {
    font-size: 0.85rem;
    height: 20px;
    padding-left: 8px;
  }

  .main-content {
    padding: 0.8rem 0.8rem 1.8rem 0.8rem;
    gap: 1.1rem;
  }

  .category-title {
    font-size: 1.1rem;
  }

  .gallery-slider-wrapper {
    height: 185px;
    max-height: 185px;
    border-radius: 14px;
  }

  .gallery-slider-track {
    height: 185px;
    max-height: 185px;
  }

  .gallery-slide-card {
    flex: 0 0 210px;
    height: 185px;
  }

  .slide-title {
    font-size: 0.8rem;
  }

  .site-footer {
    padding: 1.2rem 1rem;
  }

  .footer-logo {
    height: 22px;
    margin-bottom: 0.5rem;
  }

  .footer-contact-info {
    font-size: 0.85rem;
  }

  .footer-copyright {
    font-size: 0.72rem;
  }

  .modal-container {
    padding: 1.25rem;
    max-height: 90vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
