body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-base);
  color: var(--c-text);
  background: var(--c-white);
}

/* 글이 적어서 내용이 화면 높이보다 짧아도 푸터가 화면 맨 밑에 붙도록 합니다 */
main {
  flex: 1 0 auto;
}

/* ===== 공통 헤더 (모든 페이지, 항상 상단 고정) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  color: var(--c-white);
  background: #377974;
  transition:
    color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.site-header.is-on-dark {
  color: var(--c-white);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header__inner {
  height: 100%;
  padding: 0 var(--header-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  display: block;
  height: var(--header-h);
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 76px);
  font-size: clamp(13px, 1.11vw, 16px);
  font-weight: 600;
}

.site-header__nav a {
  opacity: 0.95;
  transition: opacity 0.2s var(--ease);
}

.site-header__nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* 언어 전환: Products 앞에 있는 작은 드롭다운 박스. 평소엔 현재 언어만
   보이고, 누르면 아래로 KR/EN 두 줄이 펼쳐집니다 */
.site-header__lang {
  position: relative;
  margin-right: clamp(4px, 1vw, 12px);
}

.site-header__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  opacity: 0.95;
  cursor: pointer;
  padding: 4px 2px;
}

.site-header__lang-toggle:hover {
  opacity: 1;
}

.site-header__lang-caret {
  font-size: 18px;
  transition: transform 0.2s var(--ease);
}

.site-header__lang.is-open .site-header__lang-caret {
  transform: rotate(180deg);
}

.site-header__lang-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.site-header__lang.is-open .site-header__lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-header__lang-menu a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--c-ink);
  opacity: 1;
}

.site-header__lang-menu a:hover {
  background: rgba(55, 121, 116, 0.08);
  text-decoration: none;
}

.site-header__lang-menu a.is-active {
  color: #377974;
  background: rgba(55, 121, 116, 0.12);
}

/* 햄버거 버튼: 평소엔 숨겨두고, 1020px 이하에서만 보입니다 */
.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* 열렸을 때 햄버거 세 줄이 X자로 바뀝니다 */
.site-header__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.site-header__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1020px) {
  .site-header__toggle {
    display: flex;
  }

  /* 모바일(햄버거 메뉴로 바뀌는 구간)에서만 로고를 70% 크기로 줄입니다 */
  .site-header__logo img {
    height: calc(var(--header-h) * 0.7);
  }

  /* 평소엔 헤더 바로 아래에 높이 0으로 접어 숨겨두고, 열리면 펼쳐지는
     드롭다운 패널입니다. 헤더가 투명/반투명해지는 is-on-dark 상태와
     무관하게 항상 또렷이 보이도록 패널 자체 배경을 따로 둡니다. */
  .site-header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #377974;
    padding: 0 var(--header-gutter);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.3s var(--ease),
      opacity 0.25s var(--ease);
  }

  .site-header__nav.is-open {
    max-height: 380px;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 16px;
  }

  .site-header__nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-header__nav a:last-child {
    border-bottom: none;
  }

  /* 모바일 드롭다운 안에서는 이미 패널이 펼쳐져 있으니, 언어 전환도 별도
     클릭 없이 KR / EN 두 글자가 바로 보이는 한 줄로 보여줍니다 */
  .site-header__lang {
    margin-right: 0;
    order: -1;
  }

  .site-header__lang-toggle {
    display: none;
  }

  .site-header__lang-menu {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    background: none;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-header__lang-menu a {
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
  }

  .site-header__lang-menu a.is-active {
    color: #fff;
    background: none;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 600px) {
  .site-header__nav a {
    font-size: 15px;
  }
}

/* ===== 공통 푸터 ===== */
.site-footer {
  /* #377974에서 밝기를 50% 줄인 색 (cta의 25%보다 2배 어둡습니다) */
  background: #1c3d3a;
  color: var(--c-white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  /* 1440px 기준 100px, 더 좁은 화면에서는 비례해서 줄어듭니다 */
  padding: clamp(48px, 6.94vw, 100px);
}

.site-footer__company {
  font-size: clamp(13px, 1.11vw, 16px);
  font-weight: 700;
}

.site-footer__contact,
.site-footer__address {
  margin-top: 8px;
  font-size: clamp(13px, 1.11vw, 16px);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__contact a {
  color: inherit;
  font-weight: 600;
}

.site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__note {
  max-width: 62ch;
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(16px, 2vw, 24px) var(--gutter);
  font-size: clamp(11px, 0.97vw, 14px);
  color: rgba(255, 255, 255, 0.65);
}

/* ===== 공통 요소 ===== */
.section {
  position: relative;
  /* 위아래 여백을 절반씩 똑같이 둬서, 섹션 안 콘텐츠의 위/아래 여백이 서로 같습니다.
     섹션 사이 간격(= 앞 섹션의 아래 여백 + 다음 섹션의 위 여백)은 이전과 같은 --section-gap 그대로예요. */
  /* 1440px(일반적인 맥북 해상도) 기준으로 지금과 같은 150px/100px가 나오고,
     더 좁은 노트북 화면에서는 비례해서 줄어듭니다 */
  padding: clamp(72px, 10.42vw, 150px) clamp(48px, 6.94vw, 100px) 0px
    clamp(48px, 6.94vw, 100px);
}

.section-title {
  font-size: var(--fs-title);
  font-weight: 650;
  line-height: 1.35;
  color: var(--c-ink);
}

.section-desc {
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--c-ink);
  /* "고부가가치"처럼 한 단어가 음절 단위로 쪼개져 줄바꿈되는 걸 막습니다
     (화면 폭과 무관하게 항상 단어 사이 공백에서만 줄바꿈됩니다) */
  word-break: keep-all;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 36px;
  border-radius: 14px;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  transition:
    transform 0.2s var(--ease),
    filter 0.2s var(--ease);
}

/* 데스크탑에서만 버튼 글씨도 85%로 줄입니다 (모바일은 위 값 그대로) */
@media (min-width: 901px) {
  .btn {
    font-size: clamp(13.6px, 1.19vw, 17px);
  }
}

/* .btn.is-visible:hover가 따로 필요한 이유: reveal 애니메이션이 끝나면 밑의
   .reveal.is-visible{transform:none}이 명시도가 같은데 코드상 더 아래에 있어서
   이 호버 효과를 덮어버립니다. 명시도를 한 단계 더 올려서 항상 이기게 합니다.
   transition도 같은 이유로 .reveal의 0.7s가 아니라 이 0.2s가 쓰이도록 여기서 다시 지정합니다. */
.btn:hover,
.btn.is-visible:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  transition:
    transform 0.2s var(--ease),
    filter 0.2s var(--ease);
}

/* 본문/이미지/표: 스크롤에 걸리면 위에서 아래로 통째로 등장 */
.reveal {
  opacity: 0;
  transform: translateY(-28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 타이틀: 스크롤에 걸리면 글자가 한 글자씩 순서대로(왼쪽→오른쪽) 나타남.
   main.js가 글자마다 <span class="char" style="--char-index:N">로 쪼개 놓으면,
   is-visible이 붙는 순간 각 글자가 자기 순서(N)만큼 늦게 애니메이션을 시작합니다. */
.reveal-title .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
}

.reveal-title.is-visible .char {
  animation: char-in 0.9s cubic-bezier(0.5, 0, 0.5, 1) forwards;
  animation-delay: calc(20ms * var(--char-index, 0));
}

@keyframes char-in {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-title .char {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
