/* =========================================================
   신원안전(주) - style.css
   ========================================================= */
:root {
  --navy-900: #0b1a30;
  --navy-800: #102544;
  --navy-700: #183559;
  --navy-100: #e8eef6;
  --red: #d42a2f;
  --red-dark: #b01f24;
  --yellow: #f5c518;
  --ink: #16202e;
  --body: #4a5566;
  --muted: #8a94a3;
  --line: #e3e7ed;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 37, 68, .08);
  --shadow-lg: 0 20px 50px rgba(16, 37, 68, .16);
  --gnb-h: 76px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--gnb-h); }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* 이미지 플레이스홀더 */
.is-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #24405f, #142a47);
}
.is-placeholder::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.55); letter-spacing: -.01em;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: .25s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-800); }

/* =========================================================
   GNB
   ========================================================= */
.gnb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--gnb-h);
  transition: background .3s, box-shadow .3s;
}
.gnb.is-scrolled, .gnb.is-menu-open {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.gnb__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.gnb__logo img { height: 40px; width: auto; transition: filter .3s; }
.gnb:not(.is-scrolled):not(.is-menu-open) .gnb__logo img { filter: brightness(0) invert(1); }

.gnb__nav { display: flex; align-items: center; gap: 40px; }
.gnb__nav a {
  position: relative; font-size: 16px; font-weight: 600; color: #fff;
  transition: color .3s;
}
.gnb.is-scrolled .gnb__nav a { color: var(--ink); }
.gnb__nav a:not(.gnb__cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .25s;
}
.gnb__nav a:hover::after, .gnb__nav a.is-current::after { transform: scaleX(1); }
.gnb__nav .gnb__cta {
  padding: 8px 18px; border-radius: 999px; font-size: 14px;
  border: 1px solid rgba(255,255,255,.45);
}
.gnb.is-scrolled .gnb__nav .gnb__cta { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }

.gnb__toggle { display: none; width: 40px; height: 40px; position: relative; }
.gnb__toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; transition: .3s;
}
.gnb__toggle span:nth-child(1) { top: 13px; }
.gnb__toggle span:nth-child(2) { top: 19px; }
.gnb__toggle span:nth-child(3) { top: 25px; }
.gnb.is-scrolled .gnb__toggle span, .gnb.is-menu-open .gnb__toggle span { background: var(--ink); }
.gnb.is-menu-open .gnb__toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.gnb.is-menu-open .gnb__toggle span:nth-child(2) { opacity: 0; }
.gnb.is-menu-open .gnb__toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media.is-placeholder::after { content: none; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,26,48,.92) 0%, rgba(11,26,48,.65) 50%, rgba(11,26,48,.25) 100%),
    linear-gradient(0deg, rgba(11,26,48,.7) 0%, transparent 40%);
}
.hero__content { position: relative; padding-top: var(--gnb-h); padding-bottom: 140px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}
.hero__eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--red); }
.hero__title {
  font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  color: #fff;
}
.hero__title span { font-weight: 500; opacity: .8; margin-left: 4px; font-size: .6em; }
.hero__slogan {
  margin-top: 24px; font-size: clamp(22px, 2.8vw, 34px); font-weight: 600;
  line-height: 1.45; letter-spacing: -.02em; color: #fff;
}
.hero__desc { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.7); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.15);
  background: rgba(11,26,48,.4); backdrop-filter: blur(6px);
}
.hero__stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 24px 0 24px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.stat strong small { font-size: 15px; font-weight: 500; margin-left: 2px; }
.stat span { font-size: 14px; color: rgba(255,255,255,.65); }

/* =========================================================
   공통 섹션
   ========================================================= */
.section { padding: 120px 0; }
.section__head { margin-bottom: 56px; }
.section__label {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--red); margin-bottom: 12px;
}
.section__title { font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.25; }
.section__desc { margin-top: 16px; font-size: 17px; color: var(--body); }

/* =========================================================
   회사소개
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about__message blockquote {
  position: relative; padding: 32px 36px; margin-bottom: 32px;
  background: var(--navy-800); color: #fff; border-radius: var(--radius);
  font-size: 20px; font-weight: 500; line-height: 1.65; letter-spacing: -.01em;
}
.about__message blockquote::before {
  content: '“'; position: absolute; top: -18px; left: 28px;
  font-size: 80px; line-height: 1; color: var(--red); font-family: Georgia, serif;
}
.about__message blockquote em { font-style: normal; color: var(--yellow); font-weight: 700; }
.about__message > p { font-size: 16.5px; line-height: 1.9; }
.about__values { display: flex; gap: 12px; margin-top: 32px; }
.about__values li {
  flex: 1; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.about__values span { display: block; font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .1em; }

.about__info h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.about__info h3:not(:first-child) { margin-top: 40px; }
.info-table { border-top: 2px solid var(--ink); }
.info-table > div { display: grid; grid-template-columns: 100px 1fr; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.info-table dt { color: var(--muted); font-size: 15px; }
.info-table dd { color: var(--ink); font-weight: 500; }


.about__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.about__photos figure { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.about__photos img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .5s; }
.about__photos figure:hover img { transform: scale(1.04); }

/* =========================================================
   주요업무 / 건설분야 카드
   ========================================================= */
.showcase { background: var(--bg-soft); }
.showcase--alt { background: var(--bg); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.showcase--alt .card { background: var(--bg-soft); border-color: transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__body { position: relative; padding: 26px 30px 30px; flex: 1; display: flex; flex-direction: column; }
.card__num {
  position: absolute; top: 22px; right: 24px;
  font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .05em;
}
.card__en { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.card__title { margin-top: 4px; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.card__desc { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--body); flex: 1; }

/* 카드 내 사진 슬라이더 */
.slider { position: relative; aspect-ratio: 16/10; background: var(--navy-800); }
.slider__track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy-800);
  font-size: 28px; line-height: 1; padding-bottom: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0; transition: opacity .25s, background .25s;
}
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }
.slider:hover .slider__btn:not(:disabled), .slider__btn:focus-visible { opacity: 1; }
.slider__btn:hover { background: #fff; }
.slider__btn:disabled { opacity: 0 !important; pointer-events: none; }
.slider__count {
  position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(11,26,48,.65); color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .02em;
}
.slider__count b { color: #fff; font-weight: 700; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.slider__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.5); transition: .3s; }
.slider__dot.is-active { width: 22px; background: #fff; }

/* =========================================================
   공사실적
   ========================================================= */
.records { background: var(--bg-soft); }
.records__tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.records__tabs::-webkit-scrollbar { display: none; }
.records__tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--body); transition: .2s;
}
.records__tab:hover { border-color: var(--navy-800); color: var(--navy-800); }
.records__tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.record {
  display: grid; grid-template-columns: 200px 1fr;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.record__year {
  padding: 32px; background: var(--navy-800); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.record__year strong { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.record__body { padding: 24px 32px; }
.record__empty { padding: 8px 0; color: var(--muted); }
.record__list li {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.record__list li:last-child { border-bottom: 0; }
.record__client { font-size: 14.5px; font-weight: 700; color: var(--navy-800); }
.record__client small { margin-left: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.record__name { font-size: 15.5px; color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding-top: 72px; }
.footer__inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { font-size: 15px; }
.footer__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.footer__info > div { display: flex; gap: 16px; font-size: 15px; }
.footer__info dt { flex-shrink: 0; width: 56px; color: rgba(255,255,255,.4); }
.footer__info dd { color: rgba(255,255,255,.85); }
.footer__info a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 36px; padding-bottom: 48px; font-size: 13px; color: rgba(255,255,255,.4);
}
.footer__top { font-weight: 600; color: rgba(255,255,255,.7); }
.footer__top:hover { color: #fff; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: rgba(8,16,30,.92);
  opacity: 0; visibility: hidden; transition: .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 20px; right: 24px; font-size: 28px; color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding-left: 40px; padding-right: 40px; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .record { grid-template-columns: 160px 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --gnb-h: 64px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .pc-only { display: none; }

  .gnb__logo img { height: 32px; }
  .gnb__toggle { display: block; }
  .gnb__nav {
    position: fixed; top: var(--gnb-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .gnb.is-menu-open .gnb__nav { transform: none; opacity: 1; visibility: visible; }
  .gnb__nav a { color: var(--ink); padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .gnb__nav a::after { display: none; }
  .gnb__nav .gnb__cta {
    margin-top: 16px; text-align: center; padding: 14px; font-size: 16px;
    background: var(--navy-800); border: 0; color: #fff;
  }

  .hero__content { padding-bottom: 140px; }
  .stat { padding: 16px 0 16px 14px; }
  .stat strong { font-size: 18px; }
  .stat span { font-size: 13px; }
  .btn { height: 48px; padding: 0 22px; font-size: 15px; }

  .section { padding: 80px 0; }
  .section__head { margin-bottom: 36px; }
  .section__desc { font-size: 15.5px; }

  .about__message blockquote { padding: 28px 24px; font-size: 17px; }
  .about__values li { padding: 14px; font-size: 16px; }
  .about__photos { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 48px; }
  .about__photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

  .cards { grid-template-columns: 1fr; gap: 20px; }
  .slider__btn { opacity: 1; width: 36px; height: 36px; font-size: 24px; }
  .card__body { padding: 20px; }
  .card__num { top: 20px; right: 20px; }
  .card__title { font-size: 20px; }

  .record { grid-template-columns: 1fr; }
  .record__year { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 18px 20px; }
  .record__year strong { font-size: 26px; }
  .record__body { padding: 12px 20px 18px; }
  .record__list li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .record__client { font-size: 13.5px; }
  .record__name { font-size: 15px; }

  .footer { padding-top: 56px; }
  .footer__info { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; padding-top: 28px; padding-bottom: 40px; }
  .lightbox { padding: 16px; }
}
