.business-main { padding: 0; margin: 0; }

/* ---------------------------------
   🎥 Video Hero (페이지 스코프 + svh)
   - 전역 오염 방지: 반드시 .business-page로 스코프
---------------------------------- */
.business-page .video-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;        /* 100vh → 100svh: 모바일 주소창 안전 */
  overflow: hidden;
}
.business-page .video-hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.business-page .video-hero .overlay {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: min(30svh, 30vh);  /* 고정값 → svh/ vh 최소값 */
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* 약식 히어로(포스터형) 유지 */
.business-hero.video-hero { aspect-ratio: 16 / 9; }

/* ---------------------------------
   🧭 Intro (배경 + 오버레이 톤)
---------------------------------- */
.business-intro {
  background-image: url('../../img/bg/business-bg.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  margin-top: 75px;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1rem;
}
.business-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(40, 80, 40, 0.5);
  z-index: -1;
  transition: background-color 0.3s ease;
}
.business-intro:hover::before { background-color: rgba(40, 80, 40, 0.7); }
.business-intro h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.55); }

/* ✅ 인트로 텍스트 래퍼 폭 보정(about/solution 톤과 유사) */
.business-intro .intro-text{
  max-width: 980px;
  margin: 0 auto;
  padding-inline: .5rem;
}

/* ✅ 인트로 타이핑: 가로 한 줄 + 애니메이션 대응 */
.business-intro .typewriter{
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;        /* 한 줄 유지(애니 폭 증가 시 줄바꿈 방지) */
  overflow: hidden;           /* 넘침 가리기 */
  display: inline-block;
  line-height: 1.7;
  margin: 0 auto;
}

/* 요약 문단(현행 유지, 페이드 인 효과) */
.business-summary {
  font-size: 1rem;
  margin-top: 2rem;
  color: #fff;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.business-summary.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------
   📦 전략 카드 (가로 스크롤 패턴)
   - about 카드 톤과 UX 통일
---------------------------------- */
.strategy-cards .card-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: 1200px;
  padding: 40px 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 카드 박스: 배경 투명 + 녹색 테두리로 통일 */
.strategy-cards .card {
  position: relative;
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 380px;
  max-height: 450px;
  border-radius: 16px;
  overflow: hidden;

  background: transparent;                         /* ✅ 투명 */
  border: 1px solid var(--color-primary);          /* ✅ 녹색 테두리 */

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: flex 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* [추가] 전략 카드: 제목 색상/여백 (about 카드 톤과 동일) */
.strategy-cards .card-header{
  padding: 1rem 1.25rem .5rem;  /* ← 제목 영역에 여유 공간 */
}
.strategy-cards .card-header h3{
  color: var(--color-primary);  /* ← 제목 녹색 */
  margin: 0;
}
@media (min-width: 769px){
  .strategy-cards .card-header h3{
    white-space: nowrap;         /* 줄바꿈 금지 */
    overflow: hidden;            /* 넘치면 숨김 */
    text-overflow: ellipsis;     /* 말줄임표 */
  }
}

.strategy-cards .card:hover {
  flex: 0 0 380px;
  border-color: color-mix(in oklab, var(--color-primary) 85%, white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 이미지/호버 효과 */
.strategy-cards .card-image { width: 100%; height: 220px; transition: opacity 0.3s ease; }
.strategy-cards .card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s ease;
}
.strategy-cards .card:hover .card-image img {
  opacity: 0.3;
  filter: blur(4px);
  transform: scale(1.05);
}

/* 오버레이 */
.strategy-cards .card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(240, 240, 240, 0.92);
  opacity: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.strategy-cards .card:hover .card-overlay {
  opacity: 1;
  pointer-events: auto;
}
.strategy-cards .card-overlay .overlay-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* ✅ 텍스트 배경 제거(about 톤) */
.strategy-cards .card-overlay p {
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;           /* 검정 텍스트 */
  background: none;      /* 배경 제거 */
  padding: 0;            /* 여백 제거 */
  border-radius: 0;
  box-shadow: none;
  line-height: 1.6;
}

/* ---------------------------------
   💡 인사이트 섹션 (현행 유지)
---------------------------------- */
.insight-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--section-padding) 1rem;
  background-color: #fefefe;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-sm);
  text-align: left;
  font-size: var(--fs-base);      /* var(--font-size-base) → var(--fs-base) */
  color: var(--color-text);
  line-height: 1.8;
}
.insight-section h2 {
  text-align: center;
  font-size: var(--fs-h2);        /* var(--font-size-xl) → var(--fs-h2) */
  color: var(--color-primary);
  margin-bottom: var(--gap-md);
}
.insight-slide { margin-bottom: 2rem; }
.insight-slide h3 {
  font-size: var(--fs-h3);        /* var(--font-size-lg) → var(--fs-h3) */
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}
.insight-slide p,
.insight-slide ul {
  font-size: var(--fs-base);      /* var(--font-size-base) → var(--fs-base) */
  color: var(--color-text);
  line-height: 1.8;
  margin-left: 0.5rem;
}
.insight-slide ul {
  padding-left: 1.25rem;
  list-style: disc;
}

/* ---------------------------------
   📄 공통 섹션 (현행 유지)
---------------------------------- */
.business-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-padding) 0;
  text-align: center;
  font-size: var(--fs-base);      /* var(--font-size-base) → var(--fs-base) */
  color: var(--color-text);
  line-height: 1.8;
}
.business-section h2 {
  font-size: var(--fs-h2);        /* var(--font-size-xl) → var(--fs-h2) */
  color: var(--color-primary);
  margin-top: var(--gap-lg);
  margin-bottom: var(--gap-sm);
}
.business-section p {
  max-width: 900px;
  margin: 0 auto var(--gap-md);
}
.business-section .business-message {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 1rem;
}

/* CTA 버튼 (현행 유지) */
.business-section .cta.primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.business-section .cta.primary:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* ---------------------------------
   🧩 SaaS 섹션 (현행 유지, 톤만 조화)
---------------------------------- */
.saas-section {
  background-image: url('../../img/bg/solution-bg.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  margin-top: 75px;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1rem;
}
.saas-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(40, 80, 40, 0.5);
  z-index: -1;
  transition: background-color 0.3s ease;
}
.saas-section:hover::before { background-color: rgba(40, 80, 40, 0.7); }
.saas-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;                           /* 제목을 하얀색으로 고정 */
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
}
.saas-section .saas-message {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 1rem;
}

/* 후속 CTA 영역 */
.saas-followup {
  background-color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.saas-followup em {
  display: block;
  font-style: italic;
  color: var(--color-text);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.saas-followup .cta.primary {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
   margin-top: 1rem;
}

.saas-followup .cta.primary:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  /* 히어로 */
  .business-page .video-hero { min-height: 60svh; }
  .business-page .video-hero .overlay { padding-top: 12svh; font-size: 1rem; }

  /* 카드: 랩 + 라벨 */
  .strategy-cards .card-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 24px 12px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .strategy-cards .card {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .strategy-cards .card:hover { flex: 1 1 100%; }

  /* 📌 [모바일 전용] 이미지 위 라벨 */
  .strategy-cards .card .card-image { position: relative; }
  .strategy-cards .card .card-image::after {
    content: "내용 보기";
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255,255,255,.92);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    z-index: 2;
    pointer-events: none;
  }

  /* 인트로·타이포 */
  .business-intro h1 { font-size: 1.5rem; }
  .business-summary {
    font-size: 1rem;
    text-align: left;
    word-break: keep-all;
  }
}

@media screen and (max-width: 480px) {
  .strategy-cards .card { max-height: 400px; }
  .strategy-cards p { text-align: left; }
}

/* ===== FP07-2 Override: business ===== */
.business-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
@media (max-width:1024px){ .business-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width:640px) { .business-grid{ grid-template-columns: 1fr; } }
@media (max-width:480px){
  .business-item h3{ font-size: 18px; }
  .business-item p { font-size: 14px; }
}

/* ===== Typewriter 애니메이션(필요 시) ===== */
/* 글자 수(ch)만큼 폭을 0→Nch 로 늘리기 */
@keyframes typing {
  from { width: 0; }
  to   { width: calc(var(--chars, 1) * 1ch); }
}
/* (선택) 커서 깜빡임 */
@keyframes caretBlink { 50% { opacity: 0; } }

/* === [모바일 전용] 카드 이미지 위에 '내용 보기' 라벨 표시 === */
@media (max-width: 768px) {
  .smartfarm-effect-cards .card .card-image {
    position: relative; /* 기준점 */
  }

  .smartfarm-effect-cards .card .card-image::after {
    content: "내용 보기";
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .92);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 999px;   /* pill 형태 */
    font-weight: 600;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    z-index: 2;
    pointer-events: none;   /* 클릭 방해 X */
  }
}
