/* GNS SIGN portfolio site — shared stylesheet for index.html / consult.html */

:root {
  --ink: #1b1720;
  --ink-2: #2c2333;
  --accent: #ff7a29;
  --accent-dark: #d85f14;
  --accent-2: #ff3d81;
  --gray-900: #221e26;
  --gray-600: #6b6575;
  --gray-300: #ded8e2;
  --gray-100: #f7f4f8;
  --radius: 12px;
}

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

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 80px 0; }
.bg-light { background: var(--gray-100); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 23, 32, 0.95);
  backdrop-filter: blur(6px);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: none;
  padding: 0 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
}
.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Orbitron", "Pretendard", sans-serif;
}
.logo-gns {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}
.logo-sign {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: #dfe4f0;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.main-nav a:hover { color: #fff; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, #3a2340 60%, var(--accent-dark) 100%);
  overflow: hidden;
}
.hero-main {
  background:
    linear-gradient(to top, rgba(10, 8, 12, 0.75), rgba(10, 8, 12, 0.1) 55%),
    linear-gradient(135deg, rgba(27, 23, 32, 0.2), rgba(216, 95, 20, 0.15)),
    url("images/hero-atrium-wide.jpg") center 30% / cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  text-align: center;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}
.hero-content h1 span { color: #ffb066; }
.hero-desc {
  color: #fff;
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(0, 0, 0, 0.6);
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Section titles */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; margin-bottom: 10px; }
.section-title p { color: var(--gray-600); font-size: 16px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(27, 23, 32, 0.05);
}
.stat-card i { font-size: 26px; color: var(--accent); margin-bottom: 12px; display: block; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--ink); }
.stat-label { display: block; margin-top: 6px; font-size: 14px; color: var(--gray-600); }

.text-block { max-width: 820px; margin: 0 auto; font-size: 16px; color: #333; }
.text-block strong { color: var(--ink); }

/* Before / After portfolio */
.ba-block { margin-bottom: 56px; }
.ba-block:last-child { margin-bottom: 0; }
.ba-block h3 { font-size: 19px; font-weight: 700; margin-bottom: 18px; color: var(--ink); }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ba-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(27, 23, 32, 0.1);
}
.ba-card img { width: 100%; height: 260px; object-fit: cover; }
.ba-card p { padding: 14px 16px; font-size: 14px; color: var(--gray-600); }
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.tag-before { background: #6b7280; }
.tag-after { background: var(--accent); }

/* Spec table */
.table-responsive { overflow-x: auto; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(27, 23, 32, 0.05);
}
.spec-table th, .spec-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
  font-size: 14px;
}
.spec-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td strong { color: var(--ink); }

/* Process timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.process-step {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.step-num {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--gray-600); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 14px; font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }
.faq-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 4px 0 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}
.faq-more-btn:hover { background: var(--gray-100, #f5f5f5); }

/* CTA banner */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 122, 41, 0.5), rgba(216, 95, 20, 0.5)), #fff;
  color: var(--ink);
  padding: 64px 0;
  overflow: hidden;
}
.cta-banner::before {
  content: "GNS SIGN";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: clamp(60px, 14vw, 180px);
  color: rgba(216, 95, 20, 0.1);
  letter-spacing: 4px;
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 122, 41, 0.12);
  color: var(--accent-dark);
  font-size: 22px;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; color: rgba(27, 23, 32, 0.7); }
.cta-banner p { color: var(--gray-600); margin-bottom: 28px; }
.cta-banner .btn-primary {
  box-shadow: 0 10px 28px rgba(255, 122, 41, 0.45);
}
.cta-banner .btn-primary:hover {
  box-shadow: 0 12px 34px rgba(216, 95, 20, 0.55);
}
.text-center { text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d2de; padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-info h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-info p { font-size: 14px; margin-bottom: 8px; }
.copyright { color: #9a8fa3; font-size: 12.5px; margin-top: 16px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

/* ===== 이미지 위주 신규 레이아웃 ===== */

/* Hero: full-bleed, text bottom-aligned */
.hero-full { min-height: calc(100svh - 72px); align-items: flex-start; }
.hero-content-bottom { padding: 18vh 32px 0; text-align: left; max-width: 720px; margin: 0; }
.hero-content-bottom .hero-desc { margin: 0 0 28px; }
.hero-content-bottom .hero-buttons { justify-content: flex-start; }
.hero-content-bottom h1,
.hero-content-bottom .hero-desc,
.hero-content-bottom .hero-buttons {
  animation: hero-text-in 0.7s ease both;
}
.hero-content-bottom h1 { animation-delay: 0.1s; }
.hero-content-bottom .hero-desc { animation-delay: 0.3s; }
.hero-content-bottom .hero-buttons { animation-delay: 0.5s; }
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content-bottom h1,
  .hero-content-bottom .hero-desc,
  .hero-content-bottom .hero-buttons {
    animation: none;
  }
}

/* 1. 풀와이드 사진 배너 + 한 줄 카피 */
.band-photo { position: relative; }
.band-photo img { width: 100%; height: 420px; object-fit: cover; }
@media (min-width: 641px) {
  .band-photo img { height: 68vh; min-height: 560px; max-height: 760px; }
}
.band-caption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background:
    linear-gradient(0deg, rgba(27,23,32,0.88), transparent 60%),
    linear-gradient(135deg, rgba(27, 23, 32, 0.2), rgba(216, 95, 20, 0.15));
}
.band-caption p {
  color: #fff; font-size: clamp(15px, 2vw, 19px);
  max-width: 760px; padding: 32px; margin: 0;
}
.band-caption strong { color: var(--accent); }
.band-line { display: block; opacity: 0; transform: translateY(18px); }
.band-caption.in-view .band-line { animation: hero-text-in 0.7s ease both; }
.band-caption.in-view .band-line:nth-child(1) { animation-delay: 0.1s; }
.band-caption.in-view .band-line:nth-child(2) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .band-line { opacity: 1; transform: none; }
}

/* 2. 시공 스토리: 이미지 크게, 텍스트는 아래/옆 */
.story-block {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-areas: "img num" "img text" "sub sub";
  gap: 0 40px;
  margin-bottom: 72px;
}
.story-block:last-child { margin-bottom: 0; }
.story-num {
  grid-area: num;
  font-family: "Orbitron", sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); align-self: end; padding-bottom: 12px;
}
.story-img-link { grid-area: img; display: block; }
.story-img { width: 100%; height: 420px; object-fit: cover; display: block; }
.story-text { grid-area: text; align-self: start; }
.story-text h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.story-text p { color: var(--gray-600); font-size: 15px; }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--accent); }
.story-more:hover { color: var(--accent-dark); }
.story-sub {
  grid-area: sub;
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-300);
}
.story-sub img {
  width: 96px; height: 66px; object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.story-sub img:hover {
  transform: scale(4.2);
  z-index: 10;
  box-shadow: 0 12px 32px rgba(27, 23, 32, 0.35);
}
.story-sub span { font-size: 13px; color: var(--gray-600); }
.story-block.reverse { grid-template-columns: 1fr 1.6fr; grid-template-areas: "num img" "text img" "sub sub"; }
.story-block.reverse .story-num { text-align: right; }
.story-block.reverse .story-text { text-align: right; }
.story-block.reverse .story-sub { justify-content: flex-end; }

/* 3-1. 텍스트 전용 링크 목록 (분야별 전문 시공 — 중복 이미지 대신) */
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 0; }
.link-list a { display: block; padding: 14px 18px; background: var(--gray-100); border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.link-list a:hover { background: var(--accent); color: #fff; }
.link-group { margin-bottom: 36px; }
.link-group:last-child { margin-bottom: 0; }
.link-group h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--ink); }

/* 3. 현장 갤러리 — 매손리형 그리드, 텍스트 최소화 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-item {
  position: relative; overflow: hidden;
  grid-column: span 1; grid-row: span 1;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 12.5px; color: #fff;
  background: linear-gradient(0deg, rgba(27,23,32,0.85), transparent);
}
.gallery-link { position: absolute; inset: 0; z-index: 3; }
.gallery-more { display: contents; }
.gallery-more[hidden] { display: none; }

/* 4. 스펙: 카드 대신 사진 + 정의목록 분할 */
.spec-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}
.spec-photo img { width: 100%; }
.spec-lead { color: var(--gray-600); margin-bottom: 24px; }
.spec-list { border-top: 1px solid var(--gray-300); }
.spec-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-300);
}
.spec-row dt { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.spec-row dd { color: var(--gray-600); font-size: 14px; }
.spec-note { margin-top: 18px; font-size: 13px; color: var(--accent-dark); font-weight: 600; }

/* 5. 프로세스: 원형 카드 대신 가로 필름스트립 */
.filmstrip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  counter-reset: none;
}
.filmstrip li {
  list-style: none;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
}
.fs-num { font-family: "Orbitron", sans-serif; font-size: 22px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; }
.filmstrip h4 { font-size: 14.5px; margin-bottom: 6px; }
.filmstrip p { font-size: 12.5px; color: var(--gray-600); }

/* 푸터 v2 */
.footer-v2 { padding: 0 0 28px; }
.footer-brand-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-row p { color: #b8adbf; font-size: 14px; }
.footer-biz-info { color: #9a8fa3; font-size: 12.5px; margin-top: 4px; }
.footer-brand-text { flex: 1 1 260px; }
.footer-col { flex: 0 1 160px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-contact-list li { display: flex; align-items: center; gap: 8px; color: #d9d2de; }
.footer-bottom { padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .copyright { margin-top: 16px; }

@media (max-width: 960px) {
  .story-block, .story-block.reverse { grid-template-columns: 1fr; grid-template-areas: "img" "num" "text" "sub"; }
  .story-block.reverse .story-num, .story-block.reverse .story-text { text-align: left; }
  .story-block.reverse .story-sub { justify-content: flex-start; }
  .story-text, .story-num { padding: 0 6px; }
  .story-num { margin-top: 20px; padding-bottom: 0; }
  .spec-split { grid-template-columns: 1fr; }
  .spec-info { padding: 0 6px; }
  .filmstrip { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.tall, .gallery-item.wide { grid-column: span 1; grid-row: span 1; }
  .filmstrip { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .story-text, .story-num { padding: 0 12px; }
  .spec-info { padding: 0 12px; }
  .hero-content h1 { font-size: clamp(26px, 8vw, 40px); margin-bottom: 16px; }
  .hero-desc { font-size: 15px; line-height: 1.5; }
  .hero-content-bottom { padding: 14vh 20px 0; }
  .hero-content-bottom .hero-buttons { gap: 10px; }
  .hero-content-bottom .btn { padding: 12px 20px; font-size: 14px; }
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: clamp(20px, 6vw, 26px); line-height: 1.35; }
  .cta-banner .btn-lg { padding: 14px 28px; font-size: 15px; }
  .section-padding .work-desc { text-align: left; }
}

@media (max-width: 860px) {
  .main-nav ul { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav ul li:not(:last-child) { display: none; }
}
