/* VIOSIMOS — 기존 아임웹 사이트의 색/서체/레이아웃을 그대로 옮긴 스타일시트
   네이비 #364d6a, 본문 #212121, 제목 Anton — 모두 원본에서 추출한 값이다. */

:root {
  --navy: #364d6a;
  --ink: #212121;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #ffffff;
  --header-h: 61px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.anton {
  font-family: Anton, "Noto Sans KR", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- 헤더 : 히어로 위에 겹치는 투명 헤더, 스크롤하면 흰 배경 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 26px; width: auto; }
.brand .logo-navy { display: none; }

/* 투명 헤더일 때 밝은 사진 위에서도 흰 로고·메뉴가 읽히도록 위쪽에 옅은 그늘을 깐다 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0));
  pointer-events: none;
  transition: opacity .25s ease;
}
.site-header.solid::before { opacity: 0; }
.site-header .wrap { position: relative; z-index: 1; }

.site-header.solid { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.site-header.solid .logo-white { display: none; }
.site-header.solid .logo-navy { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; list-style: none; }
.nav a {
  display: block;
  padding: 15px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: color .2s ease;
}
.site-header.solid .nav a { color: var(--ink); }
.nav a:hover, .nav a.active { color: var(--navy); }
/* 사진 위(투명 헤더)에서는 색 대신 밑줄로 현재 위치를 표시한다 */
.site-header:not(.solid) .nav a:hover { color: #fff; opacity: .72; }
.site-header:not(.solid) .nav a.active { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.nav a.active { font-weight: 700; }
.nav ul { margin: 0; padding: 0; }

/* Business 하위 메뉴 */
.has-sub > .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu li { list-style: none; }
.submenu a { color: var(--ink) !important; padding: 10px 16px; font-size: 13px; }
.submenu a:hover { background: #f6f7f9; color: var(--navy) !important; }

/* 모바일 메뉴 */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; height: 2px; margin: 5px 0; background: #fff;
  transition: background .25s ease;
}
.site-header.solid .hamburger span { background: var(--ink); }

@media (max-width: 860px) {
  .hamburger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 0 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { color: var(--ink) !important; padding: 14px 24px; font-size: 15px; }
  .has-sub > .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: #f7f8fa;
  }
  .submenu a { padding-left: 40px; }
}

/* ---------- 히어로 ---------- */
.hero-video {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #000 center/cover no-repeat;
}
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;          /* 16:9 를 화면 너비에 맞춤 */
  min-height: 100vh;
  min-width: 177.78vh;      /* 세로가 길 때는 높이에 맞춤 */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* 하위 페이지 상단 배너 */
.page-banner {
  position: relative;
  height: 52vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy) center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.18);
}
.page-banner h1 {
  position: relative; z-index: 1;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  color: #fff;
}

/* ---------- 섹션 ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.center { text-align: center; }

h2.section-title {
  margin: 0 0 40px;
  font-size: clamp(30px, 4.4vw, 52px);
  color: var(--navy);
}
h3.block-title {
  margin: 0 0 16px;
  font-size: 26px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}
p { margin: 0 0 18px; }
.lead { font-size: 17px; color: #3f4650; }
.muted { color: var(--muted); }

/* 홈 : Wellcome 히어로 텍스트 */
.welcome { color: var(--navy); }
.welcome .small { display: block; font-size: clamp(20px, 2.6vw, 30px); }
.welcome .big { display: block; font-size: clamp(42px, 7vw, 60px); }

/* 3단 카드 */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; gap: 40px; } }
.card h3 { margin: 0 0 14px; font-size: 30px; color: var(--navy); }
.card p { font-size: 15px; color: #4b5563; }

.more {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--navy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .2s ease;
}
.more:hover { opacity: .6; }

/* 홈 : 이미지 + 인용문 */
.quote-band { margin: 0 0 72px; }
.quote-band:last-child { margin-bottom: 0; }
.quote-band img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 35%;   /* 세로로 긴 사진에서 인물이 잘리지 않게 */
}
.quote-band blockquote {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--navy);
}
.quote-band blockquote::before { content: "\201C "; }
.quote-band blockquote::after { content: " \201D"; }

/* 전체폭 이미지 띠 */
.band {
  height: 340px;
  background: var(--navy) center/cover no-repeat;
}
@media (max-width: 700px) { .band { height: 220px; } }

/* 배경 이미지 위의 섹션 */
.bg-section {
  position: relative;
  background: var(--navy) center/cover no-repeat;
  color: #fff;
  padding: 140px 0;
}
.bg-section::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20, 30, 45, .45);
}
.bg-section .wrap { position: relative; z-index: 1; }
.bg-section h2, .bg-section h3 { color: #fff; }

/* 2단 (텍스트 | 이미지) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.split:last-child { margin-bottom: 0; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .split.reverse .split-media { order: 0; }
}
.split-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* 브랜드 카드 */
.brand-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.brand-row:last-child { border-bottom: 0; }
.brand-row img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.brand-row h3 { margin: 0 0 10px; font-size: 24px; color: var(--navy); }
@media (max-width: 720px) {
  .brand-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .brand-row img { max-width: 260px; }
}

/* 연락처 */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
@media (max-width: 720px) { .contact-box { grid-template-columns: 1fr; gap: 28px; } }
.contact-box address { font-style: normal; line-height: 2; }
.contact-box a:hover { color: var(--navy); text-decoration: underline; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 15px 34px;
  font-size: 15px;
  letter-spacing: .04em;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .85; }
.btn + .btn { margin-left: 10px; }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
@media (max-width: 560px) {
  .btn { display: block; text-align: center; }
  .btn + .btn { margin: 10px 0 0; }
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.footer-nav li { list-style: none; }
.footer-nav a:hover { color: var(--navy); }
.footer-info { line-height: 1.9; }

/* 스크롤 등장 애니메이션 (원본의 fadeInUp 재현) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
