/* =====================================================
   index.css  ─  메인 페이지 전용 스타일
   common.css 로드 후 이 파일을 추가로 로드합니다.
   ===================================================== */


/* ─── HERO LOADER ────────────────────────────────────── */
#hero-loader {
  position: fixed; inset: 0;
  background: #0d1f3c;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease;
}
#hero-loader.fade-out { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #5bc8f5;
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }


/* ─── HERO ───────────────────────────────────────────── */
#hero {
  --hero-accent: #5bc8f5;
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 1;
  padding: 0 80px; max-width: 760px;
}
.hero-tag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.4;
  color: var(--white);
  letter-spacing: -0.5px;
  font-weight: 700;
  animation: fadeUp 0.8s 0.15s ease both;
  word-break: keep-all;
}
.hero-title em { color: var(--hero-accent); font-style: normal; font-weight: 700; }
.hero-desc {
  margin-top: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--white);
  letter-spacing: 5px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-cta {
  margin-top: 40px;
  display: flex; gap: 16px;
  animation: fadeUp 0.8s 0.45s ease both;
}

/* 히어로 안의 버튼은 white 계열로 별도 override */
.hero-cta .btn-primary {
  background: var(--accent);
  color: var(--navy);
  clip-path: polygon(0 0,100% 0,100% 80%,94% 100%,0 100%);
}
.hero-cta .btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.hero-cta .btn-outline:hover { border-color: var(--accent); color: var(--accent); }


.scroll-ind {
  position: absolute; bottom: 32px; left: 80px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  font-family: 'Rajdhani', sans-serif;
}
.scroll-ind::before {
  content: ''; width: 40px; height: 1px;
  background: var(--accent);
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(23px, 6.5vw, 32px);
    letter-spacing: -0.5px;
    line-height: 1.5;
  }
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  .hero-cta a {
    text-align: center;
  }
  .hero-desc {
    font-size: 12px;
    letter-spacing: 4px;
  }
}

/* ─── 섹션 헤더 중앙정렬 (BUSINESS / HISTORY / LOCATION) ── */
#business .sec-label, #history .sec-label, #location .sec-label,
#business .sec-title,  #history .sec-title,  #location .sec-title,
#business .sec-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#business .sec-divider, #history .sec-divider, #location .sec-divider {
  margin: 20px auto 24px;
}


/* ─── BUSINESS AREA ──────────────────────────────────── */
#business { background: var(--light); padding: 100px 0; }
.biz-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 56px;
}
.biz-card {
  position: relative; overflow: hidden;
  height: 400px; cursor: pointer;
  display: flex; align-items: flex-end;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.biz-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.biz-card:hover .biz-card-bg { transform: scale(1.06); }
.biz-card-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,58,107,0.90) 0%, rgba(26,58,107,0.25) 60%, transparent 100%);
}
.biz-card-1 .biz-card-bg { background-image: url('../images/biz-battery.jpg'); }
.biz-card-2 .biz-card-bg { background-image: url('../images/biz-auto.jpg'); }
.biz-card-info { position: relative; z-index: 1; padding: 36px; width: 100%; }
.biz-num {
  display: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px; letter-spacing: 4px;
  color: var(--accent); margin-bottom: 10px;
}
.biz-card-title { font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.35; margin-bottom: 12px; }
.biz-card-desc  { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.biz-arrow {
  position: absolute; top: 32px; right: 32px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  transition: background 0.2s, border-color 0.2s; z-index: 1;
}
.biz-card:hover .biz-arrow { background: var(--accent); border-color: var(--accent); color: var(--navy); }
@media (max-width: 768px) {
  .biz-grid{
    grid-template-columns: 1fr; 
    gap: 20px;                 
    margin-top: 30px;
  }
  .biz-num{
    display: none;
  }
}


/* ─── HISTORY ────────────────────────────────────────── */
#history { background: var(--white); padding: 100px 0; }

.hist-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
}

.hist-year-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  align-items: start;
}

/* 연도 컬럼 */
.hist-year-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 8px;
  position: relative;
}

.hist-year-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; letter-spacing: 3px;
  color: var(--navy); line-height: 1;
  margin-bottom: 16px;
  margin-right: 28px;
}

.hist-year-badge-origin { color: var(--accent); }

.hist-year-dot {
  position: absolute;
  right: -8px; top: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

.hist-year-dot-origin {
  width: 20px; height: 20px;
  right: -10px; top: 8px;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px rgba(26,58,107,0.2);
}

.hist-year-line {
  position: absolute;
  right: -1px; top: 26px;
  width: 2px;
  height: calc(100% + 48px);
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
  z-index: 1;
}

/* 이벤트 컬럼 */
.hist-events-col {
  padding-left: 48px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 2px solid var(--border);
}

.hist-year-block-last .hist-events-col {
  border-left: 2px solid transparent;
}

/* 이벤트 카드 */
.hist-event-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-light);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.hist-event-card:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(37,99,200,0.12);
}

.event-body { display: flex; flex-direction: column; gap: 4px; }

.event-title {
  font-size: 15px; font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  word-break: keep-all;
}

/* 반응형 */
@media (max-width: 720px) {
  .hist-year-block {
    grid-template-columns: 1fr;
  }

  .hist-year-col {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
  }

  .hist-year-badge {
    font-size: 30px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .hist-year-dot,
  .hist-year-line {
    display: none;
  }

  .hist-events-col {
    padding-left: 0;
    border-left: none;
    padding-bottom: 36px;
  }
}


/* ─── LOCATION / 오시는길 ────────────────────────────── */
#location { background: var(--light); padding: 100px 0; }
.location-grid {
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 40px; margin-top: 56px; align-items: start;
}
.location-info { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.loc-item  { display: flex; gap: 16px; align-items: flex-start; }
.loc-icon  {
  width: 44px; height: 44px;
  background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.loc-label { font-size: 11px; font-weight: 700; color: var(--steel); letter-spacing: 2px; margin-bottom: 4px; }
.loc-value { font-size: 15px; color: var(--text-main); line-height: 1.6; }

/* 지도 이미지 */
.loc-map-img {
  width: 100%; height: 380px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(37, 99, 200, 0.10);
  overflow: hidden;
}
.loc-map-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}


/* ─── SUB PAGE placeholder (index.html 내부 서브 전환용) */
.page-wrap  { transition: opacity 0.2s; }
.sub-hero-legacy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-light) 100%);
  padding: 80px 0 60px; position: relative; overflow: hidden;
}
.sub-hero-legacy::after {
  content: ''; position: absolute; right: -80px; bottom: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.04);
}
.sub-hero-inner-legacy { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sub-breadcrumb-legacy {
  font-size: 12px; color: rgba(255,255,255,0.45);
  letter-spacing: 2px; margin-bottom: 16px;
}
.sub-hero-title-legacy { font-size: 42px; font-weight: 700; color: white; }
.sub-hero-title-legacy em { color: var(--accent); font-style: normal; }
.sub-content { max-width: 1200px; margin: 0 auto; padding: 80px 40px; }
.coming-soon { text-align: center; padding: 80px 0; }
.coming-icon { font-size: 64px; margin-bottom: 24px; }
.coming-soon h3 { font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.coming-soon p  { font-size: 15px; color: var(--text-sub); }

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}
