/**
 * 회사소개 페이지 스타일
 * 감성적이고 스토리텔링이 강한 디자인
 */

/* ==========================================================================
   0. Header Override (헤더 오버라이드)
   ========================================================================== */

/* 회사소개 페이지에서는 헤더를 상단 고정하되 숨김 처리 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

/* 스크롤 업 시 헤더 표시 */
.header--visible {
  transform: translateY(0);
}

/* Hero Section이 화면 최상단부터 시작 */
.company-hero {
  margin-top: 0;
}

/* ==========================================================================
   1. Scroll Snap (스냅 스크롤)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  scroll-snap-type: y proximity;
  overflow-y: scroll;
}

/* ==========================================================================
   2. Hero Section (히어로 섹션)
   ========================================================================== */

.company-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.company-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.4)
  );
}

.company-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.company-hero__slogan {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.company-hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Hero 섹션 페이드인 애니메이션 */
.company-hero-fade {
  opacity: 0;
  animation: heroFadeIn 2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 부제목은 최종 opacity 0.95 유지 + 더 늦게 시작 */
.company-hero__subtitle.company-hero-fade {
  animation: heroFadeInSubtitle 2s ease-out forwards;
  animation-delay: 1.2s;
}

@keyframes heroFadeInSubtitle {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.95;
  }
}

/* ==========================================================================
   3. Container & Common Styles
   ========================================================================== */

.company-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.company-section {
  padding: 80px 0;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-section__title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.company-section__title--center {
  text-align: center;
}

.company-section__text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.company-section__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   4. Our Story Section (우리의 시작)
   ========================================================================== */

.company-story {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.company-story__image-wrapper {
  width: 100%;
}

.company-story__image {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* company-story__content는 기본 스타일 사용 */

/* ==========================================================================
   5. Mission Section (미션)
   ========================================================================== */

.company-mission {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--bg-secondary);
  padding: 80px 40px;
  border-radius: 16px;
}

/* company-mission__content는 기본 스타일 사용 */

.company-mission__image-wrapper {
  width: 100%;
}

.company-mission__image {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   6. Core Values Section (핵심 가치)
   ========================================================================== */

.company-values {
  background: var(--bg-primary);
}

.company-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.company-value-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.company-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.company-value-card__title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.company-value-card__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.company-value-card__quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 10px;
  border-left: 3px solid var(--accent-color);
}

.company-value-card__description {
  color: var(--text-tertiary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==========================================================================
   7. Team Section (팀 소개)
   ========================================================================== */

.company-team {
  background: var(--bg-secondary);
  padding: 80px 40px;
  border-radius: 16px;
}

.company-team__image-wrapper {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.company-team__image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-team__content {
  max-width: 875px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   8. Scroll Animations (스크롤 애니메이션)
   ========================================================================== */

/* 애니메이션 초기 상태 */
.animate-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* 애니메이션 활성화 상태 */
.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero 섹션은 항상 표시 (애니메이션 제외) */
.company-hero {
  opacity: 1;
  transform: none;
}

/* 섹션별 애니메이션 변형 */
.company-story.animate-target {
  transform: translateX(-30px);
}

.company-story.animate-in {
  transform: translateX(0);
}

.company-mission.animate-target {
  transform: translateX(30px);
}

.company-mission.animate-in {
  transform: translateX(0);
}

/* 가치 카드 애니메이션 */
.company-value-card.animate-target {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.company-value-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Team 섹션 애니메이션 */
.company-team.animate-target {
  opacity: 0;
  transform: translateY(40px);
}

.company-team.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. Text Animations (텍스트 순차 애니메이션)
   ========================================================================== */

/* 텍스트 애니메이션 초기 상태 */
.text-animate-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* 텍스트 애니메이션 활성화 상태 */
.text-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 모션 감소 설정 존중 (접근성) */
@media (prefers-reduced-motion: reduce) {
  .animate-target,
  .text-animate-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   9. Responsive Design (반응형)
   ========================================================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  /* 스냅 스크롤 비활성화 (태블릿/모바일) */
  body {
    scroll-snap-type: none;
  }

  .company-section,
  .company-hero {
    scroll-snap-align: none;
    min-height: auto;
  }

  .company-hero {
    height: 500px;
    min-height: 500px;
  }

  .company-values__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .company-story,
  .company-mission {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company-mission {
    grid-template-columns: 1fr;
  }

  .company-mission__image-wrapper {
    order: -1; /* 이미지를 위로 */
  }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
  .company-hero {
    height: 400px;
  }

  .company-hero__slogan {
    font-size: 2rem;
  }

  .company-hero__subtitle {
    font-size: 1rem;
  }

  .company-section {
    padding: 60px 0;
  }

  .company-section__title {
    font-size: 1.5rem;
  }

  .company-section__text {
    font-size: 1rem;
  }

  .company-story__image,
  .company-mission__image {
    max-height: 400px;
  }

  .company-value-card {
    padding: 30px 20px;
  }

  .company-value-card__image {
    height: 200px;
  }

  .company-contact {
    padding: 60px 20px;
  }

  .company-contact__title {
    font-size: 1.5rem;
  }

  .company-contact__info {
    font-size: 1rem;
  }

  .company-contact__cta {
    padding: 14px 36px;
    font-size: 1rem;
  }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .company-hero {
    height: 350px;
  }

  .company-hero__slogan {
    font-size: 1.75rem;
  }

  .company-hero__subtitle {
    font-size: 0.95rem;
  }

  .company-section {
    padding: 40px 0;
  }

  .company-story,
  .company-mission,
  .company-team,
  .company-contact {
    padding: 40px 20px;
  }

  .company-story__image,
  .company-mission__image {
    max-height: 300px;
  }
}

/* 강조 문구 스타일 */
.company-highlight {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--color-text-primary);
}
