/* ================================
   Home Page Styles
   ================================ */

/* 홈페이지 main: 헤더와 겹치도록 margin 제거 */
main {
  margin-top: 0;
}

/* ================================
   Transparent Header (홈 전용)
   ================================ */
.header:not(.scrolled):not(.menu-open) {
  background-color: transparent;
  color: #fff;
}

.header:not(.scrolled):not(.menu-open) {
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.header:not(.scrolled):not(.menu-open) .header__logo {
  background-image: url(/static/img/header-logo-white.png);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background-color: #000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 핵심: 화면 가득 + 비율 유지 */
  object-position: center;
  transform: translateZ(0); /* 일부 모바일에서 깜빡임 완화 */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 16px;
}

.hero__title {
  font-size: 64px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  margin-top: 8px;
  font-size: 24px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero__fallback {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  z-index: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.scroll-indicator::after {
  content: "";
  display: block;
  width: 44px;
  height: 13px;
  opacity: 0.9;
  animation: chevron-bounce 2s ease-in-out infinite;
  will-change: transform, opacity;
  background: url(/static/home/img/scroll-indicator.png) no-repeat center;
  background-size: 100%;
}

.company-intro {
  padding: 128px 0;
  background-color: #efefef;
}

.company-intro__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-intro__logo {
  display: block;
  width: 408px;
}

.company-intro__title {
  margin-top: 32px;
  font-size: 20px;
  color: #777676;
  text-align: center;
}

.company-intro__links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  color: #fff;
}

.company-intro__link-item {
  position: relative;
  display: block;
  width: 324px;
  border-radius: 36px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #aaa no-repeat center;
  background-size: cover;
}

.company-intro__link-item.link-to-about {
  background-image: url(/static/home/img/company-intro-about.jpg);
}

.company-intro__link-item.link-to-history {
  background-image: url(/static/home/img/company-intro-history.jpg);
}

.company-intro__link-item__inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgba(54, 43, 43, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  opacity: 0;
  transition: opacity 0.15s;
  will-change: opacity;
}

.company-intro__link-item__inner:hover {
  opacity: 1;
}

.company-intro__link-item__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  border-bottom: 1px solid currentColor;
}

.company-intro__link-item__inner > h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.company-intro__link-item__inner > p {
  font-size: 18px;
}

.products-section {
  display: flex;
  background-color: #f5f5f2;
}

.products-section__background {
  width: 40%;
  background: url(/static/home/img/products-bg.jpg) no-repeat center;
  background-size: cover;
}

.products-section__main {
  width: 820px;
  min-width: 560px;
  padding: 128px 0;
  text-align: center;
}

.products-section__main > h2 {
  font-size: 56px;
  line-height: 1;
}

.products-section__main > p {
  margin-top: 32px;
  font-size: 20px;
  color: #858585;
}

.products-section__circles {
  margin-top: 48px;
  display: flex;
  justify-content: space-evenly;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.products-section__circle-item {
  position: relative;
  display: block;
  width: calc(33.333333% - 32px);
  background: #ddd no-repeat center;
  background-size: cover;
  border-radius: 50%;
  overflow: hidden;
}

.products-section__circle-item.products-circle-products {
  background-image: url(/static/home/img/products-products.jpg);
}

.products-section__circle-item.products-circle-brands {
  background-image: url(/static/home/img/products-brands.jpg);
}

.products-section__circle-item.products-circle-purchase {
  background-image: url(/static/home/img/products-purchase.jpg);
}

.products-section__circle-item > span {
  display: flex;
  aspect-ratio: 1;
  border-radius: inherit;
  justify-content: center;
  align-items: center;
  transition: background-color 0.15s;
  will-change: background-color;
}

.products-section__circle-item.products-circle-products > span {
  background-color: rgba(90, 77, 65, 0.75);
}

.products-section__circle-item.products-circle-brands > span {
  background-color: rgba(42, 74, 85, 0.7);
}

.products-section__circle-item.products-circle-purchase > span {
  background-color: rgba(55, 87, 56, 0.7);
}

.products-section__circle-item > span:hover {
  background-color: transparent;
}

.products-section__circle-item::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
}

.social-section {
  padding: 128px 0;
  text-align: center;
}

.social-section__container > h2 {
  font-size: 56px;
  line-height: 1;
}

.social-section__container > p {
  margin-top: 32px;
  font-size: 20px;
  color: #858585;
}

.social-section__body {
  margin-top: 40px;
  background: #ddd url(/static/home/img/social-section-bg.jpg) no-repeat center;
  background-size: cover;
}

.social-section__buttons {
  height: 412px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.social-section__button {
  display: block;
  width: 65px;
  height: 65px;
  border-radius: 12px;
}

.social-section__button > img {
  display: block;
  width: 100%;
}

.social-section__divider {
  width: 2px;
  height: 88px;
  background-color: #fff;
}

.press-section {
  padding: 0 0 128px;
}

.press-section__container > h2 {
  font-size: 56px;
  line-height: 1;
  text-align: center;
}

.press-section__container > p {
  margin-top: 32px;
  font-size: 20px;
  color: #858585;
  text-align: center;
}

.press-slider {
  margin-top: 40px;
}

/* Swiper 슬라이드 카드 스타일 */
.press-card {
  background: #fff;
  border: 1px solid #cacaca;
  border-radius: 12px;
  overflow: hidden;
  height: auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.press-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: #bbb;
}

.press-card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

.press-content {
  flex-grow: 1;
}

.press-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.press-source {
  color: #333;
}

.press-divider {
  color: #ddd;
  font-size: 12px;
}

.press-headline {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
  /* 2줄 이상 말줄임 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.press-quote {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  /* 3줄 이상 말줄임 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.press-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f5f5f5;
}

.read-more {
  font-size: 15px;
  transition: padding-left 0.2s;
}

.press-card:hover .read-more {
  padding-left: 5px;
}

.press-slider {
  padding-bottom: 50px !important;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 0.5;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: #333;
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .company-intro {
    padding: 80px 0;
  }

  .company-intro__logo {
    width: 224px;
  }

  .company-intro__title {
    margin-top: 20px;
    font-size: 14px;
  }

  .company-intro__links {
    margin-top: 32px;
    gap: 32px;
  }

  .company-intro__link-item {
    width: 240px;
  }

  .company-intro__link-item__inner {
    gap: 60px;
    opacity: 0.85;
  }

  .company-intro__link-item__inner::after {
    left: 40px;
    right: 40px;
  }

  .company-intro__link-item__inner > h2 {
    font-size: 28px;
  }

  .company-intro__link-item__inner > p {
    font-size: 14px;
  }

  .products-section__background {
    display: none;
  }

  .products-section__main {
    width: 100%;
    min-width: unset;
    padding: 72px 0 48px;
    background: url(/static/home/img/products-bg.jpg) no-repeat center;
    background-size: cover;
  }

  .products-section__main > h2 {
    font-size: 28px;
  }

  .products-section__main > p {
    margin-top: 16px;
    font-size: 16px;
    color: #000;
    text-shadow: 0 0 8px #fff;
  }

  .products-section__circles {
    margin-top: 40px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 20px;
  }

  .products-section__circle-item {
    width: 184px;
  }

  .social-section {
    padding: 80px 0;
  }

  .social-section__container > h2 {
    font-size: 28px;
  }

  .social-section__container > p {
    margin-top: 16px;
    font-size: 16px;
  }

  .social-section__body {
    position: relative;
    margin-top: 100px;
    height: 172px;
  }

  .social-section__buttons {
    position: absolute;
    height: auto;
    left: 0;
    right: 0;
    top: -64px;
    gap: 12px;
  }

  .social-section__button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.25);
  }

  .social-section__divider {
    height: 36px;
    background-color: #dfdeda;
  }

  .press-section {
    padding: 0 0 80px;
  }

  .press-section__container {
    padding-left: 0;
    padding-right: 0;
  }

  .press-section__container > h2 {
    font-size: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .press-section__container > p {
    margin-top: 16px;
    font-size: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .press-slider {
    margin-top: 32px;
  }

  .press-card-link {
    padding: 16px;
  }

  .press-meta {
    font-size: 12px;
  }

  .press-headline {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .press-quote {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .press-footer {
    padding-top: 12px;
  }

  .read-more {
    font-size: 14px;
  }
}

@keyframes chevron-bounce {
  0% {
    transform: translateY(-8px);
    opacity: 0.7;
  }
  45% {
    transform: translateY(8px);
    opacity: 1;
  }
  100% {
    transform: translateY(-8px);
    opacity: 0.7;
  }
}
