@charset "utf-8";
/* DF TECH — 공통 스타일
 *
 * 기존 xet_frame 테마의 레이아웃·리듬을 그대로 옮기되,
 * 강조색만 테마 기본값(#38b5c7)에서 회사 로고색(#002188)으로 바꿨다.
 * 근거는 web_admin/df-tech/RECON.md 5절 참조.
 */

/* ── 토큰 ─────────────────────────────────────────────────── */
:root {
  --navy: #002188;          /* 로고에서 추출한 브랜드색 */
  --navy-700: #001a6e;
  --navy-100: #e8ecfa;
  --blue: #2563eb;          /* 밝은 상호작용 파랑 */
  --ink: #1b1b1b;           /* 제목 */
  --body: #4b5563;          /* 본문 */
  --muted: #6b7280;
  --line: #e5e7eb;
  --wash: #f8fafc;
  --dark: #17181c;          /* 헤더/푸터 어두운 배경 */
  --white: #fff;

  --header-h: 84px;
  --header-h-sm: 64px;
  --container: 1200px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --f-sans: 'Raleway', 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
            'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* ── 리셋 ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  word-break: keep-all;
}
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 18px; background: var(--navy); color: #fff; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── 섹션 공통 ─────────────────────────────────────────────── */
.section { padding: 90px 0; }
.section--wash { background: var(--wash); }
@media (max-width: 767px) { .section { padding: 60px 0; } }

/* 원본 테마의 특징적인 제목 장식: 좌상 50% / 우하 50% 의 1px 선 */
.section-title {
  position: relative;
  display: inline-block;
  padding: 14px 0 18px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
}
.section-title::before, .section-title::after {
  content: ""; position: absolute; width: 50%; height: 1px; background: var(--navy);
}
.section-title::after { top: 0; left: 0; }
.section-title::before { bottom: 0; right: 0; }
@media (max-width: 767px) { .section-title { font-size: 24px; } }

.section-lead { max-width: 720px; margin-top: 26px; color: var(--body); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ── 버튼 ─────────────────────────────────────────────────── */
.btn-line {
  display: inline-block; padding: 0 0 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--navy);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.btn-line:hover { color: var(--navy); border-bottom-color: var(--ink); }
.btn-line--light { color: #fff; border-bottom-color: rgba(255, 255, 255, .7); }
.btn-line--light:hover { color: #fff; border-bottom-color: #fff; }

.btn-solid {
  display: inline-block; padding: 14px 30px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
  color: #fff; background: var(--navy);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-solid:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

/* ── 헤더 ─────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease);
}
/* 홈에서는 히어로 위에 투명하게 얹힌다 */
.site-header--overlay { background: transparent; border-bottom-color: transparent; }
.site-header--overlay.is-solid { background: #fff; border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px;
}
.logo { display: block; flex: none; }
.logo img { display: block; height: 26px; width: auto; }
.logo .logo--light { display: none; }
.site-header--overlay:not(.is-solid) .logo .logo--light { display: block; }
.site-header--overlay:not(.is-solid) .logo .logo--dark { display: none; }

.gnb { margin-left: auto; }
.gnb > ul { display: flex; align-items: center; gap: 40px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 30px 0;
  font-size: 15px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink);
}
.site-header--overlay:not(.is-solid) .gnb > ul > li > a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.gnb > ul > li > a::after {
  content: ""; display: block; height: 2px; margin-top: 6px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-header--overlay:not(.is-solid) .gnb > ul > li > a::after { background: #fff; }
.gnb > ul > li:hover > a::after,
.gnb > ul > li.is-current > a::after { transform: scaleX(1); }

.gnb .submenu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 210px; padding: 10px 0;
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transition: all .22s var(--ease);
}
.gnb > ul > li:hover .submenu,
.gnb > ul > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .submenu a {
  display: block; padding: 9px 22px; font-size: 14px; color: var(--body); white-space: nowrap;
}
.gnb .submenu a:hover, .gnb .submenu a.is-current { color: var(--navy); background: var(--navy-100); }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink);
}
.site-header--overlay:not(.is-solid) .nav-toggle { color: #fff; }
.nav-toggle span { display: block; width: 24px; height: 10px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: 0; }
.nav-toggle span::after { bottom: 0; }

@media (max-width: 991px) {
  :root { --header-h: var(--header-h-sm); }
  .gnb { display: none; }
  .nav-toggle { display: flex; }
  .logo img { height: 22px; }
}

/* ── 모바일 슬라이드 메뉴 ───────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(320px, 84vw); padding: 24px 0 40px;
  background: var(--dark); color: #fff; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: flex-end; padding: 0 20px 18px; }
.drawer__close { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #fff; }
.drawer nav > ul > li { border-top: 1px solid rgba(255, 255, 255, .1); }
.drawer nav a { display: block; padding: 14px 24px; font-size: 15px; color: #fff; }
.drawer .submenu a { padding: 10px 24px 10px 40px; font-size: 14px; color: rgba(255, 255, 255, .66); }
.drawer nav a:hover, .drawer nav a.is-current { color: #fff; background: rgba(255, 255, 255, .07); }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

/* ── 홈: 히어로 슬라이더 ─────────────────────────────────────── */
.hero { position: relative; height: 68vh; min-height: 460px; overflow: hidden; background: var(--dark); }
.hero__track { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 7s linear;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 8, 40, .5) 0%, rgba(0, 8, 40, .34) 45%, rgba(0, 8, 40, .62) 100%);
}
.hero__caption {
  position: relative; z-index: 2; display: flex; align-items: center;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: var(--header-h) 20px 0;
  color: #fff; text-align: center;
}
.hero__caption > div { width: 100%; }
.hero__eyebrow {
  margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.hero__title { margin: 0; color: #fff; font-size: 40px; font-weight: 700; line-height: 1.4; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero__title span { display: block; }
.hero__title span + span { margin-top: 8px; font-size: 22px; font-weight: 400; color: rgba(255, 255, 255, .9); }
.hero__cta { margin-top: 34px; }
@media (max-width: 767px) {
  .hero { height: 76vh; min-height: 420px; }
  .hero__title { font-size: 25px; }
  .hero__title span + span { font-size: 16px; }
  .hero__eyebrow { letter-spacing: .28em; font-size: 11px; }
}

.hero__dots { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero__dots button {
  width: 34px; height: 3px; background: rgba(255, 255, 255, .38); transition: background .2s var(--ease);
}
.hero__dots button.is-active { background: #fff; }
.hero__arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; color: #fff; opacity: .65; transition: opacity .2s var(--ease);
}
.hero__arrow:hover { opacity: 1; }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__arrow svg { width: 100%; height: 100%; }
@media (max-width: 991px) { .hero__arrow { display: none; } }

/* ── 홈: ABOUT ─────────────────────────────────────────────── */
.about { text-align: center; }
.about__text { max-width: 760px; margin: 30px auto 0; }
.about__cta { margin-top: 26px; }
.about__figure { margin: 56px auto 0; max-width: 720px; }
.about__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── 홈: 제품 카드 ─────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 767px) { .cards { grid-template-columns: 1fr; gap: 12px; } }
.card-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--dark); }
.card-item__img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
  opacity: .78;
}
.card-item:hover .card-item__img { transform: scale(1.05); opacity: .55; }
.card-item__body {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 26px; text-align: center; color: #fff;
  background: rgba(0, 12, 48, .34);
}
.card-item__title { color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.card-item__desc {
  margin: 0; max-width: 460px; font-size: 14px; line-height: 1.7;
  color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0,0,0,.5);
  white-space: pre-line;
}
@media (max-width: 767px) {
  .card-item__title { font-size: 18px; }
  .card-item__desc { font-size: 13px; }
}

/* ── 홈: 포트폴리오 ────────────────────────────────────────────
   처음에는 가로 스크롤 캐러셀이었으나, 항목이 6개뿐이라 굳이 옆으로
   밀어야 볼 수 있는 것이 불편해 격자로 바꿨다(전부 한눈에 들어온다). */
.rail { margin-top: 50px; }
.rail__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.rail__item { display: block; }
.rail__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--wash);
  transition: transform .5s var(--ease);
}
.rail__item:hover img { transform: scale(1.03); }
.rail__item > span { display: block; overflow: hidden; border-radius: var(--radius); }
.rail__item h4 { margin-top: 16px; font-size: 17px; transition: color .2s var(--ease); }
.rail__item:hover h4 { color: var(--navy); }
.rail__item p { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 991px) { .rail__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; } }
@media (max-width: 560px) { .rail__track { grid-template-columns: 1fr; } }

/* ── 홈: 패럴랙스 배너 ─────────────────────────────────────── */
.banner {
  position: relative; padding: 110px 0;
  background-size: cover; background-position: center; background-attachment: fixed;
  color: #fff;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 10, 40, .68); }
.banner .container { position: relative; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.banner__text { flex: 1 1 460px; }
.banner h2 { color: #fff; font-size: 30px; }
.banner p { margin: 12px 0 0; color: rgba(255, 255, 255, .85); }
@media (max-width: 991px) {
  .banner { background-attachment: scroll; padding: 80px 0; text-align: center; }
  .banner .container { justify-content: center; }
  .banner h2 { font-size: 22px; }
}

/* ── 서브 페이지 상단 띠 ───────────────────────────────────── */
.page-top {
  position: relative; padding: calc(var(--header-h) + 70px) 0 60px;
  background-size: cover; background-position: center; color: #fff; text-align: center;
}
.page-top::before { content: ""; position: absolute; inset: 0; background: rgba(0, 10, 40, .62); }
.page-top .container { position: relative; }
.page-top h1 {
  position: relative; display: inline-block; padding: 14px 0 18px;
  color: #fff; font-size: 32px; font-weight: 800; letter-spacing: .02em;
}
.page-top h1::before, .page-top h1::after {
  content: ""; position: absolute; width: 50%; height: 1px; background: rgba(255, 255, 255, .8);
}
.page-top h1::after { top: 0; left: 0; }
.page-top h1::before { bottom: 0; right: 0; }
@media (max-width: 767px) { .page-top { padding: calc(var(--header-h) + 44px) 0 40px; } .page-top h1 { font-size: 23px; } }

/* 서브 네비게이션 (제품군 이동용) */
.lnb { border-bottom: 1px solid var(--line); background: #fff; }
.lnb__track { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lnb__track::-webkit-scrollbar { display: none; }
.lnb a {
  display: block; padding: 18px 20px; white-space: nowrap;
  font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent;
}
.lnb a:hover { color: var(--ink); }
.lnb a.is-current { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }

.page-body { padding: 70px 0 90px; }
@media (max-width: 767px) { .page-body { padding: 40px 0 56px; } }

/* 서브페이지 본문 래퍼. 좌우 여백은 여기서만 준다.
   본문 마크업이 자체적으로 .container 를 또 쓰기 때문에 이름을 따로 뒀다. */
.page-inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (max-width: 767px) { .page-inner { padding: 0 18px; } }

/* ── 푸터 ─────────────────────────────────────────────────── */
.site-footer { padding: 70px 0 40px; background: var(--dark); color: rgba(255, 255, 255, .72); }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.footer-grid h2 {
  margin-bottom: 12px; color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.footer-grid p { margin: 0; font-size: 15px; }
.footer-grid a:hover { color: #fff; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; } }

.footer-bottom {
  margin-top: 56px; padding-top: 30px; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: .1em; }
.footer-tagline { margin-top: 6px; font-size: 11px; letter-spacing: .34em; color: rgba(255, 255, 255, .5); }
.footer-copy { margin-top: 22px; font-size: 12px; color: rgba(255, 255, 255, .45); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--navy-700); color: #fff; }

/* ── 스크롤 등장 효과 ─────────────────────────────────────────
   반드시 html.js 아래에만 건다. 스크립트가 막히거나 실패해도
   본문이 통째로 안 보이는 일이 없어야 한다. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}
