/* ===============================
   절구팩토리 메인 HERO 섹션
================================= */
.about-hero {
  position: relative;
  background: url('../images/34.jpg') center center / cover no-repeat;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff; /* ✅ 글자 흰색 유지 */
  overflow: hidden;
}

/* ✅ 어두운 오버레이로만 배경을 어둡게 처리 */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

/* ✅ 텍스트는 오버레이 위에 표시되도록 */
.about-hero .about-content {
  position: relative;
  z-index: 2;
}

/* 내용 박스 */
.about-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 영어 소제목 */
.about-content .eyebrow {
  font-family: 'GmarketSansMedium';
  font-size: 1rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* 메인 타이틀 */
.about-content h2 {
  font-family: 'GmarketSansBold';
  font-size: 3rem;
  margin-bottom: 22px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 1.2px;
}

/* 요약 설명 */
.about-content .summary {
  font-family: 'GmarketSansMedium';
  font-size: 1.3rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  max-width: 740px;
  margin: 0 auto;
}

/* 강조 텍스트 */
.about-content strong {
  color: #ffe48f;
  font-weight: 700;
}

/* 반응형 */
@media (max-width: 1024px) {
  .about-hero {
    height: 420px;
  }
  .about-content h2 {
    font-size: 2.3rem;
  }
  .about-content .summary {
    font-size: 1.05rem;
  }
}
@media (max-width: 768px) {
  .about-hero {
    height: 380px;
  }
  .about-content h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  .about-content .summary {
    font-size: 0.95rem;
  }
}

/* ===============================
   특징 3개 섹션
================================= */
.features {
  background: #faf9f6;
  padding: 80px 0;
  text-align: center;
}
.features .container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.feature {
  width: 280px;
}
.feature img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3a2c22;
  margin-bottom: 8px;
}
.feature p {
  font-size: 1rem;
  color: #564b43;
  line-height: 1.6;
}

/* ===============================
   클라이언트 섹션
================================= */
.split {
  background: #fff;
  padding: 100px 0;
}
.split-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.split-media img {
  width: 100%;
  border-radius: 12px;
}
.split-text {
  flex: 1;
  color: #3a2c22;
}
.split-text .eyebrow {
  font-size: 0.95rem;
  color: #b68d57;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.split-text h2 {
  font-size: 2.2rem;
  margin: 10px 0 20px;
  color: #2b2018;
}
.split-text p {
  line-height: 1.8;
  font-size: 1rem;
  color: #4a3d34;
}
.text-link {
  display: inline-block;
  margin-top: 14px;
  color: #b68d57;
  font-weight: 600;
  border-bottom: 1px solid #b68d57;
}

/* 반응형 */
@media (max-width: 1024px) {
  .split-inner {
    flex-direction: column;
  }
  .split-text h2 {
    font-size: 1.8rem;
  }
}

/* ===== 스토리 카드 섹션 ===== */
.story-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 100px 0;
  width: 100%;
  margin: 0;
  background: url('../images/back.jpg') center center / cover no-repeat;
  background-attachment: fixed;
}

.card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.card.reverse {
  flex-direction: row-reverse;
}
.card-img {
  width: 40%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  margin: 20px;
}
.card-text {
  width: 60%;
  padding: 40px 50px;
  text-align: left;
  color: #2e1f12;
}
.card-text h3 {
  font-family: 'GmarketSansBold';
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: #2e1f12;
}
.card-text p {
  font-family: 'GmarketSansMedium';
  line-height: 1.8;
  font-size: 1.05rem;
  color: #3c2c1f;
}

/* 반응형 */
@media (max-width: 1024px) {
  .card {
    flex-direction: column;
    width: 95%;
  }
  .card.reverse {
    flex-direction: column;
  }
  .card-img {
    width: 100%;
    height: 250px;
    margin: 0;
    border-radius: 16px;
  }
  .card-text {
    width: 100%;
    padding: 30px 25px;
  }
}

/* ===== 절구팩토리 추가 소개 섹션 ===== */
.about-links {
  display: flex;
  flex-direction: column;
  gap: 120px; /* ✅ 카드 간 간격 확대 */
  width: 90%;
  max-width: 1200px;
  margin: 140px auto;
}

.link-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* ✅ 이미지와 텍스트 위쪽 기준 정렬 */
  gap: 60px;
}

.link-card.reverse {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
}

.link-img {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.link-img img {
  width: 90%;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.link-text {
  flex: 1.1;
  color: #2e1f12;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.link-text .eyebrow {
  font-family: 'GmarketSansMedium';
  color: #a37c52;
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.link-text h2 {
  font-family: 'GmarketSansBold';
  font-size: 2rem;
  margin-bottom: 14px;
  color: #2e1f12;
}

.link-text p {
  font-family: 'GmarketSansMedium';
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3c2c1f;
  margin-bottom: 28px;
}

.link-text .text-link {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  background: #3b79eb;
  color: #fff;
  font-family: 'GmarketSansMedium';
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.link-text .text-link:hover {
  background: #0e3fb7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 반응형 */
@media (max-width: 1024px) {
  .about-links {
    gap: 70px;
  }
  .link-card,
  .link-card.reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .link-img img {
    width: 100%;
  }
  .link-text {
    align-items: center;
  }
}

/* ===============================
   ✨ 스크롤 애니메이션 좌/우 등장 (확실히 작동)
================================= */

.link-card {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1s ease;
}

.link-card.reverse {
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s ease;
}

.link-card.show {
  opacity: 1;
  transform: translateX(0);
}

/* PC/Mobile 텍스트 분리 */
.pc-text { display: block; }
.mobile-text { display: none; }

@media (max-width: 768px) {
  .pc-text { display: none; }
  .mobile-text { display: block; }
}

@media (max-width: 768px) {
  .mobile-text h2,
  h2.mobile-text {
    font-size: 1.6rem; /* 원하는 크기로 조절 */
    line-height: 1.35;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-hero .about-content {
    top: 30px;
  }
}