/* ===========================================================
   풀필로그 랜딩페이지 — 커스텀 스타일
   Tailwind Play CDN으로 해결할 수 없는 부분만 정의.
   =========================================================== */

/* 기본 리셋 보강 — Inter + Noto Sans KR */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Hero 배경 ---------- */
/* 원본 레이아웃 복원: 섹션 801px + 이미지는 contain으로 중앙 정렬
   (상하 ~83px 여백은 #hero의 흰색으로 자연스럽게 다음 섹션과 연결) */
#hero {
  background-color: #ffffff;
}
#hero .hero-bg {
  width: 100%;
  height: 801px;
  background-image: url('../assets/hero-bg.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Hero 헤드라인 pill 박스 (다크 네이비 70% 반투명) */
.hero-pill {
  background-color: rgba(15, 42, 68, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 섹션 등장 애니메이션은 파일 끝(stylesheet 마지막)에서 정의하여
   .service-card / .icon-card / .stat-card 등의 transition을 override */

/* ---------- 숫자 카운트업 ---------- */
.count-up {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- 서비스 카드 (feature 3장) ---------- */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #0f172a;
  aspect-ratio: 388 / 440;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  color: white;
  text-decoration: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.service-card:hover img {
  transform: scale(1.05);
}
.service-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.75rem;
  color: white;
}
.service-card .tag {
  font-size: 0.85rem;
  opacity: 0.95;
  white-space: pre-line;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.service-card .title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-line;
  margin-top: auto;
  margin-bottom: auto;
}

/* ---------- 배송/시스템 섹션 래퍼 ---------- */
.delivery-block {
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 100%);
}
.system-block {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
}

/* ---------- 배송 / 시스템 카드 ---------- */
.icon-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1rem;
  min-height: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.icon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.12);
}
.icon-card .icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-card .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.icon-card .title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  white-space: pre-line;
  margin-bottom: 0.25rem;
}
.icon-card .desc {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: pre-line;
  line-height: 1.5;
}

/* 카드 기본은 흰색 (래퍼의 그라데이션이 배경) */

/* ---------- Stats 카드 ---------- */
.stat-card {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}
.stat-card .label {
  font-size: 1rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.75rem;
}
.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.2;
}
.stat-card .suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  margin-left: 0.15rem;
}

/* ---------- 채널 (소식 섹션 - 헤딩 + 썸네일 그리드) ---------- */
.channel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.channel-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 0.35rem;
}
.channel-heading .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.channel-heading .text strong {
  font-weight: 800;
  color: #111827;
  margin-left: 0.1rem;
}
.channel.instagram .channel-heading .dot {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
}

/* 썸네일 그리드 */
.channel-thumbs {
  display: grid;
  gap: 0.5rem;
}
.channel-thumbs.thumb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.channel-thumbs.thumb-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 767px) {
  .channel-thumbs.thumb-cols-6 { grid-template-columns: repeat(3, 1fr); }
  .channel-thumbs.thumb-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.channel-thumbs .thumb {
  position: relative;
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: var(--thumb-aspect, 1 / 1);
  background: #f3f4f6;
}
.channel-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.channel-thumbs .thumb:hover img {
  transform: scale(1.06);
}
.channel-thumbs .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  pointer-events: none;
}

/* ---------- 물류센터 카드 ---------- */
.center-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.center-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}
.center-card img {
  width: 100%;
  aspect-ratio: 388 / 256;
  object-fit: cover;
  display: block;
}
.center-card .body {
  padding: 1.75rem 1.75rem 2rem;
}
.center-card .city {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.25rem;
}
.center-card .code {
  font-size: 0.75rem;
  color: #9ca3af;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.center-card .type {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}
.center-card .area {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.center-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.center-card ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.8;
}
.center-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #93c5fd;
}

/* ---------- 폼 보강 ---------- */
#quote-form input[type="checkbox"] {
  accent-color: #2563eb;
  width: 1rem;
  height: 1rem;
}

/* ---------- 스크롤바 숨김 (필요 시) ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- 반응형 미세 조정 ---------- */
@media (max-width: 767px) {
  #hero { padding-top: 96px; }
  .service-card { aspect-ratio: 388 / 320; }
}

/* ============================================================ */
/*  섹션 등장 애니메이션 (원본 data 페이지 방식)                 */
/*  .fade-item + .fade-up/down/left/right + data-index stagger  */
/*  파일 끝에 정의 → 다른 클래스의 transition을 override         */
/* ============================================================ */
.fade-item,
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up, .reveal      { transform: translateY(30px); }
.fade-up.show,
.reveal.visible        { opacity: 1; transform: translateY(0); transition: 1.2s cubic-bezier(0.25, 1, 0.5, 1); }

.fade-down              { transform: translateY(-10px); transition: 0.8s; }
.fade-down.show         { opacity: 1; transform: translateY(0); transition: 0.8s; }

.fade-left              { transform: translateX(-30px); }
.fade-left.show         { opacity: 1; transform: translateX(0); transition: 1.2s; }

.fade-right             { transform: translateX(30px); }
.fade-right.show        { opacity: 1; transform: translateX(0); transition: 1.2s; }

.zoom-in                { transform: scale(0.9); }
.zoom-in.show           { opacity: 1; transform: scale(1); transition: 1s; }

/* Stagger: data-index 기반 지연 (0.15초 간격) */
.fade-item[data-index="0"].show,  .reveal[data-index="0"].visible  { transition-delay: 0s; }
.fade-item[data-index="1"].show,  .reveal[data-index="1"].visible  { transition-delay: 0.15s; }
.fade-item[data-index="2"].show,  .reveal[data-index="2"].visible  { transition-delay: 0.30s; }
.fade-item[data-index="3"].show,  .reveal[data-index="3"].visible  { transition-delay: 0.45s; }
.fade-item[data-index="4"].show,  .reveal[data-index="4"].visible  { transition-delay: 0.60s; }
.fade-item[data-index="5"].show,  .reveal[data-index="5"].visible  { transition-delay: 0.75s; }
.fade-item[data-index="6"].show,  .reveal[data-index="6"].visible  { transition-delay: 0.90s; }
.fade-item[data-index="7"].show,  .reveal[data-index="7"].visible  { transition-delay: 1.05s; }
.fade-item[data-index="8"].show,  .reveal[data-index="8"].visible  { transition-delay: 1.20s; }
.fade-item[data-index="9"].show,  .reveal[data-index="9"].visible  { transition-delay: 1.35s; }
.fade-item[data-index="10"].show, .reveal[data-index="10"].visible { transition-delay: 1.50s; }
.fade-item[data-index="11"].show, .reveal[data-index="11"].visible { transition-delay: 1.65s; }

@media (prefers-reduced-motion: reduce) {
  .fade-item, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
