/* ================= 공통 기본 설정 ================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Noto Sans KR", sans-serif;
  font-size: 15px;          /* 전체 기본 글자 크기 살짝 통일 */
  line-height: 1.7;         /* 줄 간격 조금 여유 있게 */
  color: #0f172a;           /* 너무 밝지 않은 진한 글자색 */
  background-color: #f5f5f5;
}


img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  margin-top: 0;
  color: #0f172a;
  letter-spacing: -0.01em;   /* 제목 자간 살짝 줄여서 단단한 느낌 */
}

/* 페이지 전반 공통 제목 크기/굵기 */
h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

h3 {
  font-weight: 500;
}

/* 전체 레이아웃 폭 */
main, header, footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================= 공통 섹션 간격 ================= */
section {
  /* 위 여백 줄이고, 메뉴 높이에 맞게 앵커 보정값도 살짝 줄이기 */
  padding: 0 0 30px;
  scroll-margin-top:72px;
}

section > h2 {
  margin-bottom: 14px;    /* 제목 아래 공간을 조금 더 컴팩트하게 */
}

section > p {
  margin-bottom: 26px;  /* 본문 아래 간격 */
}

/* ================= 헤더 / 내비게이션 ================= */
/* 상단 헤더 – 애플식 플로팅 바 베이스 */
header {
  position: sticky;
  top: 0;
  z-index: 300;                 /* 메뉴·Dim 위로 올라오도록 충분히 높게 */
  background: transparent;      /* 전체 배경은 투명 */
  border-bottom: none;
  box-shadow: none;
}

/* 스크롤해도 헤더 전체 배경은 투명 유지 */
header.is-scrolled {
  background-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* 대신 안쪽 캡슐 바만 조금 더 또렷해지게 */
header.is-scrolled .header-inner {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

/* 헤더 안쪽 캡슐 바 – 애플 느낌 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1120px;                         /* 중앙 정렬 */
  margin: 10px auto;                         /* 위로 살짝 띄우기 */
  padding: 10px 24px;
  gap: 32px;

  background: rgba(255, 255, 255, 0.94);     /* 유리 느낌 흰색 */
  border-radius: 999px;                      /* 캡슐 모양 */
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

/* 모바일에서는 다시 풀 폭 바 느낌으로 단순화 */
@media (max-width: 900px) {
  .header-inner {
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: 8px 16px;
    box-shadow: none;
    border: none;
  }  
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #0b2447;
  white-space: nowrap;
}

/* 언어 스위치 – 애플식 심플 & pill 스타일 */
.lang-switch {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.lang-switch a {
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}

/* 현재 선택된 언어 강조 */
.lang-switch a[aria-current="page"] {
  font-weight: 600;
  color: #111827;
  background-color: rgba(15, 23, 42, 0.06); /* 아주 은은한 pill */
}

/* hover 시 미묘하게 강조 */
.lang-switch a:hover:not([aria-current="page"]) {
  background-color: rgba(15, 23, 42, 0.04);
  color: #111827;
}

.nav-toggle {
  display: none;          /* 모바일에서만 보이게 – 아래 media query에서 제어 */
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* === 상단 메인 메뉴 업그레이드 (PC 기본) === */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;               /* 메뉴 간격 살짝 넓게 */
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  align-items: center;
}

.main-nav a {
  position: relative;
  padding: 6px 10px;       /* 좌우 여백 추가해서 탭 느낌 */
  font-weight: 500;
  color: #111827;
  border-radius: 999px;    /* pill 형태 */
  transition:
    color 0.18s ease-out,
    background-color 0.18s ease-out,
    opacity 0.18s ease-out;
}

/* 상단 공통 a:hover의 밑줄 제거 */
.main-nav a:hover {
  text-decoration: none;
}

/* 활성 메뉴(현재 섹션) */
.main-nav a.active {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.06);
}

/* hover 시 살짝 강조 */
.main-nav a:hover:not(.active) {
  background-color: rgba(15, 23, 42, 0.03);
  opacity: 0.95;
}

/* === A안: PC 메뉴 그라디언트 밑줄 + 모던 애니메이션 === */
@media (min-width: 901px) {
  .main-nav a {
    position: relative;
    padding: 6px 10px;
    font-weight: 500;
    border-radius: 999px;
    transition:
      color 0.18s ease-out,
      background-color 0.18s ease-out,
      opacity 0.18s ease-out;
  }

  /* hover / active 시 확장 + 빛나는 느낌 */
  .main-nav a:hover::after,
  .main-nav a.active::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* === GNB: 회사소개 드롭다운 (PC) === */
@media (min-width: 901px) {
  .main-nav li.has-sub {
    position: relative;
  }

  .main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 8px 0;
    list-style: none;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.3);
    min-width: 190px;
    display: none;
    z-index: 200;
  }

  .main-nav .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 0;              /* 여기서는 pill 말고 기본 메뉴 느낌 */
  }

  /* PC: 서브메뉴 hover / active 통일 */
  .main-nav .sub-menu li a:hover{
    background-color: #f3f4f6;
    border-radius: 10px;
    text-decoration: none;
  }

  .main-nav .sub-menu li a.active{
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.08);
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
  }

  .main-nav li.has-sub:hover > .sub-menu {
    display: block;
  }
}

/* ================= 히어로 섹션 ================= */
#hero {
  position: relative;
  padding-top: 60px;
  padding-bottom: 80px;

  /* ✔ 가로만 풀블리드: 화면 전체 폭 사용 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  overflow: hidden;
  background-color: #020617; /* 동영상 로딩 전 배경 */
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 1100px;
  margin: 0 auto;

  /* 애플 느낌: 여백을 넉넉하게 + 세로 가운데 정렬 */
  padding: 80px 28px 96px;
  display: flex;
  align-items: center;   /* 세로 가운데 */
  justify-content: flex-start;

  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* 4-2: 동영상 레이어 */
.hero-video-bg {
  position: absolute;
  inset: 0;               /* top/right/bottom/left: 0 */
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* PC 기준: 살짝 더 밝게, 대비는 약간만 */
  filter: brightness(0.78) contrast(1.05) saturate(1.04);
  transform: scale(1.03);
}

/* 4-3: 텍스트/버튼을 앞 레이어로 끌어올림 */
.hero-content {
  position: relative;
  z-index: 2;

  /* 애플처럼 텍스트 블록을 조금 좁게 */
  max-width: 640px;
  margin-top: 0;

  /* ✅ 판매용 업그레이드: 부드러운 페이드업 */
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.6s ease-out 0.15s forwards;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4-4: 동영상 위에 어두운 그라디언트 오버레이 (섹션 전체 기준) */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.70),
    rgba(15, 23, 42, 0.52) 40%,
    rgba(15, 23, 42, 0.18) 100%
  );
}

/* 상단 작은 태그 */
.hero-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.hero-inner h1 {
  font-size: 2.1rem;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #ffffff;  /* 메인 타이틀을 완전 흰색으로 */
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.65); /* 배경 위에서 더 또렷하게 */
}

.hero-inner p {
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 24px;
  color: #f1f5f9;
  opacity: 0.97;
}

/* 히어로 본문 리드 문장 */
.hero-lead {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.9;     /* 가독성 ↑ */
}

/* 히어로 하단 3줄 포인트 */
.hero-bullets {
  margin: 0 0 22px;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #f1f5f9;
  opacity: 0.95;
}

/* 애플 느낌 타이포 튜닝 */
.hero-inner h1 {
  font-size: 2.4rem;        /* 제목 조금 더 크게 */
  line-height: 1.3;         /* 줄 간격 살짝 타이트하게 */
  letter-spacing: -0.03em;  /* 자간 줄여서 단단한 느낌 */
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.02rem;
  color: #e5e7eb;
  opacity: 0.96;            /* 살짝 부드럽게 */
}

.hero-bullets {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-bullets li + li {
  margin-top: 4px;
}

/* 버튼 영역 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;      /* 버튼을 아래로 살짝 내려 안정감 */
}

.hero-actions a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #ffffff;
  transition: background-color 0.18s ease-out,
              color 0.18s ease-out,
              transform 0.12s ease-out,
              box-shadow 0.12s ease-out;
}

.hero-actions a:first-child {
  background-color: #ffffff;
  color: #0b2447;
}

.hero-actions a:last-child {
  background-color: transparent;
  color: #ffffff;
}

/* 버튼 호버 시 살짝 올라오는 느낌 */
.hero-actions a:hover {
  transform: translateY(-2px);  /* 살짝 더 위로 */
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);  /* 그림자 약간 강화 */
}

/* 모바일에서 히어로 영상 톤/위치 조정 */
@media (max-width: 768px) {
  .hero-video {
    object-position: center top;   /* 상단 쪽 서버 랙이 잘 보이게 */
    filter: brightness(0.78) contrast(1.05) saturate(1.04);
  }
}

/* ================= 공통 섹션 타이틀 ================= */
section > h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
}

section > p {
  max-width: 720px;
}

/* ================= 회사 소개 ================= */
/* 회사 개요 기본 문단 스타일 */
#about p {
  margin-bottom: 14px;
}

/* 카드 레이아웃 (솔루션/프로젝트 카드와 톤 맞춤) */
#about .about-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* 첫 문단 리드 텍스트 */
#about .about-lead {
  font-size: 0.98rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 12px;
}

/* 카드 안의 나머지 문단 */
#about .about-card p:not(.about-lead) {
  font-size: 0.92rem;
  color: #4b5563;
}

/* ================= 솔루션 섹션 ================= */

#solutions .solutions-lead {
  max-width: 900px;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 10px;   /* 카드와 간격 */
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;              /* 카드 사이 간격 살짝 확대 */
  margin-top: 22px;
}

.solution-card {
  background-color: #ffffff;
  border-radius: 16px;     /* 모서리 조금 더 부드럽게 */
  padding: 20px 18px 18px; /* 위쪽 여백 살짝 넉넉하게 */
  border: 1px solid rgba(148, 163, 184, 0.45);  /* 옅은 테두리 */
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.12s ease-out,
              box-shadow 0.12s ease-out,
              border-color 0.12s ease-out;
}

.solution-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.solution-card p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;       /* 문단 읽기 좋게 */
  color: #4b5563;
}

/* 마우스 올렸을 때 살짝 떠오르는 느낌 */
.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.55);
}

/* ================= 기술력 & 실적 ================= */

/* 기술력 & 실적 섹션 – 메뉴 클릭 시 앵커 위치 보정 */

#experience .exp-lead {
  max-width: none;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 14px;
}

#experience section {
  margin-top: 18px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}

#experience h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

#experience ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
}
#experience ul li + li {
  margin-top: 4px;
}

#experience .exp-tag {
  margin-bottom: 8px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;                                /* 진한 파랑 텍스트 */
  background-color: rgba(37, 99, 235, 0.06);     /* 아주 옅은 파랑 배경 */
  padding: 3px 10px;
  border-radius: 999px;                          /* 동그란 pill 모양 */
  margin-bottom: 6px;
}

/* ================= 주요 수행 프로젝트 ================= */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* projects.html: 카드 전체 클릭 */
.project-card-link{
  display:block;
  text-decoration:none;
  color: inherit;
}
.project-card-link:focus-visible{
  outline: 2px solid rgba(37, 99, 235, 0.6);
  outline-offset: 4px;
  border-radius: 18px;
}

.project-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.12s ease-out,
              box-shadow 0.12s ease-out,
              border-color 0.12s ease-out;
}

.project-card h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  font-weight: 600;
  color: #111827;
}

.project-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
  color: #4b5563;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.55);
}

/* 모바일에서는 1열로 */
@media (max-width: 900px) {
  .solutions-grid,
  #projects .projects-grid,
  .process-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* 프로젝트 타입 태그 (오피스/병원/물류센터 등) */
.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  background-color: rgba(37, 99, 235, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* 프로젝트 포인트 리스트 */
.project-points {
  margin: 0;
  margin-top: 6px;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5563;
}

.project-points li + li {
  margin-top: 3px;
}

/* ================= 프로젝트 수행 프로세스 ================= */

/* 프로세스 섹션 – 메뉴 클릭 시 앵커 위치 보정 */

/* 프로세스 리드 문장 */
#process .process-lead {
  max-width: 760px;
  font-size: 0.95rem;
  color: #4b5563;
  margin: 10px 0 16px;
}

/* STEP 태그 (작은 라벨) */
.process-step-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;                          /* 진한 파랑 글자 */
  background-color: rgba(37, 99, 235, 0.08); /* 옅은 파랑 배경 */
  margin-bottom: 6px;
}

.process-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* PC: 2열 */
  gap: 20px;                                         /* 카드 사이 간격 조금 넓게 */
}

.process-steps li {
  background-color: #ffffff;
  border-radius: 16px;                               /* 솔루션 카드와 톤 맞춤 */
  padding: 20px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.12s ease-out,
              box-shadow 0.12s ease-out,
              border-color 0.12s ease-out;
}

/* 프로세스 카드 호버 시 약간 띄우기 + 테두리 강조 */
.process-steps li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.55);
}

.process-steps h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
}

.process-steps p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
  color: #4b5563;
}

/* ================= 파트너 & 네트워크 ================= */

.partners-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.partners-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

/* 각 파트너 그룹 전체를 카드처럼 보이게 */
.partners-group {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* 반응형에서 한 칸으로 내려가도록 */
@media (max-width: 900px) {
  .partners-groups {
    grid-template-columns: 1fr;
  }

  /* 모바일에서는 로고 그리드를 2열로 표시 */
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#partners {
  margin-top: 20px;   /* 프로세스와 간격 분리 */
}

.partners-note {
  max-width: 720px;
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 18px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.partner-item {
background-color: #ffffff;   /* 완전 흰색 */
  border-radius: 14px;
  padding: 14px 10px;          
  display: flex;               /* 추가 */
  align-items: center;         /* 추가: 세로 가운데 정렬 */
  justify-content: center;     /* 추가: 가로 가운데 정렬 */
  min-height: 82px;            
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  letter-spacing: 0.02em;
  text-transform: none;
  transition: transform 0.12s ease-out,
              box-shadow 0.12s ease-out,
              border-color 0.12s ease-out;
}

/* 마우스를 올리거나(hover), 로고 링크에 포커스가 갔을 때(focus-within) 카드 강조 */
.partner-item:hover,
.partner-item:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.20);
  border-color: #2563eb;
}

/* 카드가 강조될 때 안의 로고도 살짝 확대 */
.partner-item:hover img,
.partner-item:focus-within img {
  transform: scale(1.04);
}

/* 파트너 로고용 이미지 스타일 */
.partner-item img {
  max-width: 100%;
  max-height: 55px;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.15s ease-out;  /* ← 이 줄만 추가 */
}

/* ============================
   파트너 로고 개별 미세 조정
   ============================ */

/* Honeywell – 살짝 확대 */
.partner-item img[src*="honeywell"] {
  max-height: 45px;
}

/* Schneider – 1~2px 줄이기 */
.partner-item img[src*="schneider"] {
  max-height: 41px;
}

/* Johnson Controls – 세로형 → 2px 축소 */
.partner-item img[src*="jci"] {
  max-height: 40px;
}

/* 삼성물산 – 약간 축소 */
.partner-item img[src*="samsung"] {
  max-height: 40px;
}

/* 현대건설 – 삼각형 로고가 커보이는 현상 → 축소 */
.partner-item img[src*="hyundai"] {
  max-height: 40px;
}

/* 대우건설 – 2px 축소 */
.partner-item img[src*="daewoo"] {
  max-height: 40px;
}

/* ================= 문의 섹션 ================= */
#contact {
  background-color: #eef2ff;
  border-radius: 18px;
  /* 위쪽 여백을 줄여서 메뉴 아래와 간격을 자연스럽게 */
  padding: 24px 24px 32px;
  scroll-margin-top: 76px;   /* 문의 섹션은 박스가 커서 살짝 더 크게 */
}

.contact-form {
  margin-top: 0;          /* 상단 여백은 contact-layout에서 통합 관리 */
  max-width: none;        /* flex 비율로 폭을 나눌 거라 제한 해제 */
  background-color: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #374151;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;       /* 살짝 톤다운된 회색 */
  font-size: 0.93rem;
  font-family: inherit;
  background-color: #f9fafb;
}

/* placeholder 색상 통일 */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field input:focus::placeholder,
.form-field textarea:focus::placeholder {
  color: #cbd5e1;                  /* 포커스 시 조금 더 연하게 */
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22);
  background-color: #ffffff;
}

.contact-form button {
  margin-top: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* ✅ 히어로 버튼과 느낌을 맞추는 트랜지션 */
  transition: background-color 0.18s ease-out,
              color 0.18s ease-out,
              transform 0.12s ease-out,
              box-shadow 0.12s ease-out;
}

.contact-form button:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);                       /* 살짝 위로 */
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);     /* 은은한 그림자 */
}

/* 문의 섹션 리드 문구 및 안내 문구 */
.contact-lead {
  max-width: 720px;
  font-size: 0.95rem;
}

.contact-note {
  margin-top: 10px;    /* 위와 살짝 간격 */
  font-size: 0.82rem;  /* 기본 본문보다 조금 작은 글씨 */
  color: #6b7280;      /* 연한 회색으로 보조 설명 느낌 */
}

/* 문의폼 전송 상태 메시지 스타일 */
.form-status {
  margin-top: 8px;
  font-size: 0.85rem;
}

.form-status.sending {
  color: #2563eb;   /* 파란색(전송 중) */
}

.form-status.success {
  color: #16a34a;   /* 초록색(성공) */
}

.form-status.error {
  color: #dc2626;   /* 빨간색(오류) */
}

/* 문의 섹션: 왼쪽 폼 + 오른쪽 현장 사진 레이아웃 */
.contact-layout {
  display: flex;
  align-items: stretch;   /* flex-start → stretch 로 다시 변경 */
  gap: 24px;
  margin-top: 20px;
}

/* 왼쪽 폼: 약 45% 정도 비율 */
.contact-form {
  flex: 0.9;
}

/* 오른쪽 와이드 이미지 박스: 약 55% 정도 비율 */
.contact-media-box {
  flex: 1.1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  position: relative;
}

/* 내부 컨테이너 */
.contact-media-inner {
  position: relative;
  width: 100%;
  height: 100%;        /* ✅ 다시 추가 */
}

/* 현장 사진 자체 */
.contact-media {
  width: 100%;
  height: 100%;              /* ✅ 박스 높이에 맞춰 채우기 */
  object-fit: cover;         /* ✅ 넘치는 부분은 잘라냄 */
  object-position: center center;  /* 기존 bottom → center */
  display: block;
}

/* 아래에서 위로 올라오는 그라데이션 + 슬로건 */
.contact-media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.70),
    rgba(15, 23, 42, 0.05)
  );
}

.contact-media-overlay p {
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ================= 푸터 ================= */
footer {
  margin-top: 40px;
  padding: 28px 16px 34px;
  font-size: 0.88rem;

  /* 다크톤 배경 */
  background: radial-gradient(circle at top left, #1f2937 0, #020617 52%, #020617 100%);
  color: #e5e7eb;
}

.footer-inner {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 14px;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f9fafb;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
  color: #9ca3af;
}

.footer-copy {
  align-self: flex-end;
  font-size: 0.8rem;
  color: #6b7280;
}

/* 모바일에서는 세로 정렬 */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    align-self: flex-start;
    margin-top: 4px;
  }
}

/* ===== 유관기관 섹션: 한 줄 슬라이더 (A안 – 심플 버전) ===== */

/* 섹션 전체: 다른 섹션들과 같은 폭/정렬 */
.side-partners {
  margin: 70px 0 40px;
  padding: 0;
}

/* 섹션 제목: 다른 h2와 톤 맞추기 */
.side-partners-title {
  font-size: 1.5rem;
  font-weight: 600;              /* section > h2 와 동일 */
  color: #0f172a;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
  margin-bottom: 22px;           /* section > h2 와 동일 */
}

/* 설명 문단 */
.side-partners-desc {
  max-width: 720px;
  margin: 0 0 10px 0;            /* 왼쪽 여백 제거해서 다른 섹션과 같은 시작선 */
  font-size: 0.9rem;
  color: #4b5563;
}

/* 아래 작은 힌트 문구 */
.side-partners-hint {
  margin-top: 8px;
  margin-left: 0;                /* 동일하게 0으로 */
  font-size: 0.8rem;
  color: #9ca3af;
}

/* 슬라이더 레이아웃 */
.logo-slider {
  position: relative;
  margin-top: 10px;
  padding: 6px 44px;   /* 좌우 여백: 화살표 자리 확보 (PC 기준) */
}

/* 가로 트랙 */
.side-logo-list {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  padding: 4px 0;

  /* 스크롤바 숨기기 */
  scrollbar-width: none;         /* Firefox */
}
.side-logo-list::-webkit-scrollbar {
  display: none;                 /* Chrome, Edge, Safari */
}

/* 로고 카드: 심플 & 알약 형태 */
.side-logo {
  flex: 0 0 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 46px;
  background-color: #f9fafb;
  border-radius: 999px;          /* 알약 모양 */
  border: 1px solid #e5e7eb;
  box-shadow: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.side-logo img {
  max-width: 150px;
  max-height: 32px;
  object-fit: contain;
}

/* hover 시만 살짝 강조 */
.side-logo:hover {
  background-color: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

/* 좌우 화살표 버튼: 작고 단정하게 */
.logo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
  z-index: 2;   /* 로고 위에 항상 보이도록 */
}

.logo-nav.prev { left: 12px; }
.logo-nav.next { right: 12px; }

.logo-nav:hover {
  background: #f3f4f6;
}

/* 모바일 최적화: 폭/여백만 조정, 화살표는 숨김 */
@media (max-width: 640px) {
  .side-partners {
    padding: 0;
    margin: 32px auto 22px;
  }

  .logo-slider {
    padding: 4px 4px;
  }

  .side-logo {
    flex: 0 0 150px;
    padding: 6px 8px;
  }

  .side-logo img {
    max-width: 130px;
  }

  .logo-nav {
    display: none;   /* 모바일은 손가락 스와이프만 사용 */
  }
}
/* ================= 모바일 문의 섹션 레이아웃 ================= */
@media (max-width: 900px) {
  .contact-layout {
    flex-direction: column;
  }

  .contact-media-box {
    max-height: 260px;
  }
}
@media (min-width: 1280px) {
  .hero-inner {
    padding-top: 96px;
    padding-bottom: 112px;
  }
}

/* === 모바일 상단 메뉴 (햄버거) – 위치·스타일 + 애니메이션 === */
@media (max-width: 900px) {

  .header-inner {
    position: relative;      /* 드롭다운 기준: 헤더 전체 */
    gap: 4px;
    justify-content: flex-start;
  }

  .main-nav {
    position: static;
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: block;          /* 모바일에서 햄버거 표시 */
  }

  /* ▷ 드롭다운 기본 상태: 숨긴 상태 + 애니메이션 준비 */
  .main-nav ul {
    position: absolute;
    top: 52px;               /* 헤더 바로 아래로 */
    right: 16px;              /* 햄버거와 거의 맞게 */
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    gap: 8px;
    min-width: 170px;
    z-index: 200;

    /* 여기서부터 “슬라이드+페이드” 효과 */
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity .28s ease-out, transform .28s ease-out;
  }

  /* ▷ .open 이 붙으면 자연스럽게 보이기 */
  .main-nav ul.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* 메뉴 항목 기본 스타일 */
  .main-nav a {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: transparent;
    font-size: .95rem;
  }

  /* hover 시 살짝 오른쪽으로 이동 + 배경 강조 */
  .main-nav ul.open a {
    transition: background-color .2s ease, transform .2s ease;
  }

  .main-nav ul.open a:hover {
    background-color: #f3f4f6;
    transform: translateX(4px);
  }

  /* 모바일 드롭다운에서는 밑줄 애니메이션 제거 */
  .main-nav a::after {
    display: none;
  }

  /* active 도 특별 색 X (리스트 모두 동일한 톤) */
  .main-nav a.active {
    color: #111827;
    background-color: transparent;
  }

  /* KR | EN 정렬 */
  .lang-switch {
    font-size: 0.85rem;
    margin-left: 0;
    margin-right: 8px;
    white-space: nowrap;
  }

    /* 햄버거를 언어스위치 오른쪽으로 밀기 */
  .nav-toggle { margin-left: auto; }


  /* === 회사소개 서브메뉴 (모바일 전용) === */

  .main-nav .sub-menu {
    /* 상위 .main-nav ul 의 속성을 무력화 */
    position: static;          /* absolute 해제 */
    margin: 4px 0 4px 10px;    /* 살짝 들여쓰기 */
    padding: 4px 0;
    background: transparent;
    border: none;
    box-shadow: none;

    display: block;            /* 항상 보이게 */
    opacity: 1;                /* 투명도 원래대로 */
    transform: none;           /* 이동 효과 제거 */
    pointer-events: auto;      /* 클릭 가능하게 */
  }

  .main-nav .sub-menu li a {
    font-size: 0.88rem;
    padding: 6px 12px;
    color: #374151;
    border-radius: 8px;
  }

  /* 모바일: 서브메뉴 active 통일 */
  .main-nav .sub-menu li a.active{
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.08);
    font-weight: 600;
  }

  .main-nav ul.open .sub-menu li a:hover {
    background-color: #f3f4f6;
    transform: translateX(4px);
  }

}

/* === 스크롤 애니메이션 OFF: 항상 바로 보이게 === */
.reveal-on-scroll {
  opacity: 1;           /* 처음부터 보이게 */
  transform: none;      /* 움직임 없음 */
  transition: none;     /* 애니메이션 제거 */
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* === 모바일 Dim 배경 === */
  .mobile-dim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-out;
    z-index: 150;
  }
  .mobile-dim.active {
    opacity: 1;
    pointer-events: auto;
  }

/* ================= 서브 히어로 공통 ================= */
.sub-hero {
  padding: 120px 0 40px;
  background: #050816;  /* 메인 히어로와 톤 맞춘 어두운 상단 영역 */
  color: #fff;
}

.sub-hero .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.sub-hero .hero-content {
  max-width: 720px;
}

.sub-hero .hero-tag {
  display: inline-block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.sub-hero h1 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.sub-hero .hero-lead {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* 서브 히어로 아래 기본 여백 */
.sub-hero + section {
  margin-top: 24px;
}

/* ================= breadcrumb(상단 경로) ================= */
.breadcrumb {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 16px;
  font-size: 0.85rem;
  color: #777;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ================= 프로젝트 공통 섹션 ================= */
.project-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 16px;
}

.project-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.project-section h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* 프로젝트 상세: 이전/목록/다음 네비게이션 */
.project-nav-inner{
  display:flex;
  gap:12px;
  align-items:stretch;
}

.project-nav-link{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  text-decoration:none;
}

.project-nav-link.list{
  flex:0 0 auto;
  white-space:nowrap;
  justify-content:center;
}

.project-nav-title{
  display:block;
  margin-top:6px;
  opacity:0.85;
  font-size:0.95em;
}

@media (max-width: 700px){
  .project-nav-inner{ flex-direction:column; }
  .project-nav-link.list{ width:100%; }
}

/* ================= 프로젝트 개요 (요약 + Facts) ================= */
.project-summary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.project-summary-main p + p {
  margin-top: 10px;
}

.project-summary-side {
  min-width: 0;
}

.project-facts {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f7f7f9;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #ececf1;
}

.project-facts li:last-child {
  border-bottom: none;
}

.project-facts strong {
  font-weight: 600;
  white-space: nowrap;
}

.project-facts span {
  flex: 1;
  text-align: right;
}

/* 모바일(태블릿 이하)에서는 1단으로 변경 */
@media (max-width: 768px) {
  .project-summary {
    grid-template-columns: 1fr;
  }

  .project-facts li {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-facts span {
    text-align: left;
  }
}

/* ================= 2단 레이아웃 (요구사항, 설계, 시공, 등) ================= */
.project-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.project-two-col ul {
  margin-left: 18px;
  padding-left: 0;
  list-style: disc;
}

.project-two-col li + li {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .project-two-col {
    grid-template-columns: 1fr;
  }
}

/* ================= 결과 & 효과 ================= */
.project-result ul {
  margin-left: 18px;
  list-style: disc;
}

.project-result li + li {
  margin-top: 4px;
}

/* ================= 프로젝트 갤러리 ================= */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.project-photo img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.project-photo figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
}

.project-gallery-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #777;
}

@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* ================= 프로젝트 카테고리 필터 ================= */
.project-filter {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn.active {
  background: #050816;
  color: #fff;
  border-color: #050816;
}

/* ================= 목록/상세 하단 링크 ================= */
.project-back-link {
  margin-top: 24px;
  text-align: right;
  font-size: 0.9rem;
}

.project-back-link a {
  color: inherit;
  text-decoration: none;
}

.project-back-link a:hover {
  text-decoration: underline;
}
