/* ==========================================================================
   KSGS (주식회사 케이에스금상) 웹사이트 공통 스타일
   Primary: Navy #0B1E3D / Accent: Gold #C9A84C
   Fonts: Barlow Condensed(제목), Noto Sans KR(본문)
   ========================================================================== */

:root {
  --navy: #0B1E3D;
  --navy-light: #16305c;
  --navy-dark: #071429;
  --gold: #C9A84C;
  --gold-light: #dcc07a;
  --white: #ffffff;
  --off-white: #f6f6f4;
  --gray-100: #f0f1f3;
  --gray-300: #d6d9de;
  --gray-500: #8a919c;
  --gray-700: #4a5261;
  --text-main: #1c2431;
  --max-width: 1200px;
  --radius: 6px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, .headline {
  font-family: "Barlow Condensed", "Noto Sans KR", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- 헤더 / 네비게이션 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--gold); }
.nav-menu {
  display: flex;
  gap: 36px;
}
.nav-menu a {
  color: var(--gray-300);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
}

@media (max-width: 860px) {
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-menu.open { max-height: 480px; }
  .nav-menu a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .nav-toggle { display: flex; }
}

/* ---------- 히어로 / 서브 페이지 상단 배너 ----------
   배경 이미지는 /assets/images/ 폴더에 아래 파일명으로 넣으면 자동 적용됩니다.
   ------------------------------------------------------------------- */
.hero,
.page-banner {
  position: relative;
  color: var(--white);
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}
.hero::before,
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,20,41,0.55) 0%, rgba(11,30,61,0.35) 100%);
}
.hero-inner,
.banner-inner {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image: url("../hero-bg.jpg");
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
}
.hero-eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: 52px;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 22px;
}
.hero p {
  color: var(--gray-300);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-banner {
  min-height: 260px;
  display: flex;
  align-items: center;
}
.banner-inner { max-width: var(--max-width); margin: 0 auto; padding: 60px 24px; }
.page-banner h1 { color: var(--white); font-size: 40px; }
.page-banner .breadcrumb {
  color: var(--gray-300);
  font-size: 14px;
  margin-top: 12px;
}
.page-banner .breadcrumb a:hover { color: var(--gold); }

/* 페이지별 배경 이미지 지정 (파일을 assets/images 에 넣으면 자동 반영) */
.banner-about      { background-image: url("../about-bg.jpg"); }
.banner-business    { background-image: url("../business-bg.jpg"); }
.banner-products    { background-image: url("../products-bg.jpg"); }
.banner-references  { background-image: url("../references-bg.jpg"); }
.banner-certifications { background-image: url("../certifications-bg.jpg"); }
.banner-partners    { background-image: url("../partners-bg.jpg"); }
.banner-contact     { background-image: url("../contact-bg.jpg"); }

/* ---------- 섹션 공통 ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { margin-bottom: 48px; max-width: 640px; }
.section-eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--gray-700); font-size: 16px; }
.section-navy .section-head p { color: var(--gray-300); }

/* ---------- 카드 내 상단 이미지 ----------
   가로가 긴 사진(4:3 또는 16:9), 가로 800px 이상 권장.
   박스 크기에 맞게 자동으로 채워서 잘라줍니다. 파일이 없으면 옅은 회색으로 표시됩니다.
   ------------------------------------------------------------------- */
.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  margin: -32px -32px 20px -32px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-img-hull      { background-image: url("../hull-bg.jpg"); }
.card-img-outfit    { background-image: url("../outfit-bg.jpg"); }
.card-img-interior  { background-image: url("../interior-bg.jpg"); }

/* ---------- 그리드 / 카드 ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 15px; }
.card .card-num {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--gray-300);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- 통계 ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat { flex: 1; min-width: 160px; }
.stat .num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
}
.stat .label { color: var(--gray-300); font-size: 14px; margin-top: 6px; }

/* ---------- 테이블 ---------- */
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 15px;
}
th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.03em;
}
tr:nth-child(even) td { background: var(--off-white); }

/* ---------- 타임라인 ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--gray-300); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-item .year {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}
.timeline-item p { color: var(--gray-700); margin-top: 4px; }

/* ---------- 폼 ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 6px; }
.form-status { margin-top: 16px; font-size: 14px; display: none; }
.form-status.success { color: #1c7c3f; display: block; }
.form-status.error { color: #b3261e; display: block; }

/* ---------- 정보 미기재 안내 (연락처 플레이스홀더) ---------- */
.tbd {
  color: var(--gray-500);
  font-style: italic;
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-logo span { color: var(--gold); }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 38px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
