/* ============================================================
   INDEX.CSS — 메인 페이지
   ============================================================ */

/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 42% 58%;
  height: 600px;
  align-items: stretch;
  overflow: hidden;
}

.slide-content {
  padding: var(--space-4) var(--space-8) var(--space-4)
    max(
      var(--container-pad),
      calc(50vw - var(--container-max) / 2 + var(--container-pad))
    );
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.slide-content h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  white-space: pre-line;
}

.slide-content p {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  white-space: pre-line;
}

.slide-image {
  position: relative;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-image--natural img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Slide backgrounds — 파스텔 블루 & 피치 */
.slide-1 {
  background: #f2f2f2;
}
.slide-2 {
  background: linear-gradient(135deg, #fae0cc 0%, #f2f2f2 100%);
}
.slide-3 {
  background: #f2f2f2;
}
.slide-4 {
  background: #f2f2f2;
}

/* ── Slider Controls ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.slider-arrow:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}
.slider-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  stroke-width: 2;
  fill: none;
}
.slider-arrow.prev {
  left: var(--space-5);
}
.slider-arrow.next {
  right: var(--space-5);
}

.slider-dots {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--transition-base),
    transform var(--transition-base);
}
.slider-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ── Slogan Strip ── */
.slogan-strip {
  padding: var(--space-12) 0;
  background: var(--color-white);
  text-align: center;
}
.slogan-text {
  font-family: "Barlow Condensed";
  font-weight: 300;
  font-size: 4rem;
  color: var(--color-text);
  text-transform: uppercase;
  margin: 0;
}

/* ── Features Strip ── */
.features-strip {
  padding: var(--space-10) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-5);
}
.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.feature-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}
.feature-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}
.feature-desc {
  font-size: var(--text-base);
  color: #4a5568;
  line-height: 1.6;
}

/* ── Popular Products ── */
.popular-products {
  padding: var(--space-20) 0;
  background: #edf0f3;
}

.product-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1;
}

.product-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}
.product-card-price {
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.product-card-price strong {
  color: var(--color-primary);
  font-weight: var(--font-semibold);
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  margin-top: auto;
  padding-top: var(--space-3);
  transition: gap var(--transition-fast);
}
.product-card-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--transition-fast);
}

.section-cta-wrap {
  text-align: center;
  margin-top: var(--space-4);
}

/* ── Promo Banner ── */
.promo-banner {
  padding: var(--space-5) 0;
  background: var(--color-white);
}
.promo-banner-inner {
  border-radius: var(--radius-xl);
  background: var(--color-white);
  padding: var(--space-12) var(--space-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.promo-banner-inner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 200px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.promo-text h2 {
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.25;
}
.promo-text p {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.promo-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Trust Brands ── */
.trust-brands {
  padding: var(--space-20) 0;
  background: var(--color-white);
}
.brands-marquee-wrap {
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-10);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
.brands-track {
  display: flex;
  gap: var(--space-10);
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.brands-track:hover {
  animation-play-state: paused;
}
.brands-track img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter var(--transition-base);
}
.brands-track img:hover {
  filter: grayscale(0) opacity(1);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.review-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.review-stars {
  color: #f5a623;
  display: flex;
  gap: 2px;
}
.review-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.review-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  flex: 1;
}
.review-author {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-weight: var(--font-medium);
}

/* ── Blog Section ── */
.blog-section {
  padding: var(--space-20) 0;
  background: #edf0f3;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}
.blog-card:hover {
  box-shadow: var(--shadow-sm);
}
.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.blog-card-body {
  padding: var(--space-5) var(--space-6);
}
.blog-card-tag {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.blog-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}
.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-read {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary);
}
.blog-card-read:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1279px) {
  .slide-content {
    padding: var(--space-12) var(--space-10);
  }
}

@media (max-width: 1023px) {
  .slider-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .slide-content {
    padding: var(--space-12) var(--space-8);
    max-width: 100%;
    margin: 0;
    text-align: center;
  }
  .slide-content h2 {
    font-size: var(--text-3xl);
  }
  .slide-image {
    height: 220px;
    min-height: auto;
    display: block;
  }
  .product-grid-home {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-banner-inner {
    grid-template-columns: 1fr;
  }
  .promo-image {
    display: block;
  }
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .slogan-text {
    font-size: 2rem;
  }
  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .promo-banner-inner {
    padding: var(--space-8);
  }
  .promo-text h2 {
    font-size: var(--text-2xl);
  }
  .brands-row {
    gap: var(--space-6);
  }
  .slider-arrow {
    display: none;
  }
  /* features-strip 모바일 */
  .features-strip {
    padding: var(--space-10) 0;
  }
  .features-grid {
    gap: var(--space-4);
  }
  .feature-item {
    padding: var(--space-4);
    gap: var(--space-2);
  }
  .feature-icon {
    width: 56px;
    height: 56px;
  }
  .feature-icon svg {
    width: 26px;
    height: 26px;
  }
  .feature-title {
    font-size: var(--text-base);
  }
  .feature-desc {
    font-size: var(--text-sm);
  }
}

@media (max-width: 479px) {
  .slide-content h2 {
    font-size: var(--text-2xl);
  }
  .slide-content {
    padding: var(--space-10) var(--space-5);
  }
  /* features-strip 소형 모바일 */
  .feature-item {
    padding: var(--space-3);
  }
  .feature-icon {
    width: 48px;
    height: 48px;
  }
  .feature-icon svg {
    width: 22px;
    height: 22px;
  }
  .feature-title {
    font-size: var(--text-sm);
  }
  .feature-desc {
    font-size: var(--text-xs);
    line-height: 1.5;
  }
}
