/* SEIL 홈페이지 - 검정 · 금색 · 크림 테마 */
:root {
  --black: #0a0a0b;
  --ink: #141416;
  --ink-2: #1e1e22;
  --gold: #c9a54a;
  --gold-2: #e2c47a;
  --gold-d: #9c7b2b;
  --cream: #fbf8f0;
  --cream-2: #f3eedf;
  --text: #1c1c1f;
  --muted: #6c6a66;
  --line: #e6e0d0;
  --radius: 14px;
  --wrap: 1200px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201, 165, 74, 0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 120px; height: auto; }
.brand-sub { color: #cfc6b0; font-size: 13px; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: #eee8da; font-weight: 600; font-size: 16px; padding: 10px 18px; border-radius: 999px; transition: 0.2s; }
.site-nav a:hover { color: var(--gold-2); }
.site-nav a.active { color: var(--black); background: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--gold); margin: 5px 0; transition: 0.2s; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: 0.2s; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-small { padding: 8px 16px; font-size: 14px; border-color: var(--line); background: #fff; color: var(--text); }
.btn-small:hover { border-color: var(--gold); }

/* 메인 히어로 */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--black); }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero-slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { background: linear-gradient(90deg, rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0.55) 55%, rgba(10, 10, 11, 0.25) 100%); }
.hero-content { position: relative; padding-top: 60px; padding-bottom: 60px; width: 100%; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.14em; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: #e4ddcb; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* 숫자 */
.stats { background: var(--ink); color: #fff; border-top: 1px solid rgba(201, 165, 74, 0.3); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 16px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 38px; font-weight: 800; color: var(--gold-2); line-height: 1.1; }
.stat small { font-size: 16px; margin-left: 3px; color: var(--gold); }
.stat span { color: #bdb6a6; font-size: 14px; }

/* 섹션 */
.section { padding: 90px 0; }
.section-dark { background: var(--black); color: #f3eee2; }
.section-cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 20px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.more { color: var(--gold-d); font-weight: 700; white-space: nowrap; }
.section-dark .more { color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 공사분야 타일 */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); color: #fff; }
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(10, 10, 11, 0.92) 100%); }
.service-tile:hover img { transform: scale(1.06); }
.service-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 1; }
.service-tile h3 { font-size: 19px; margin-bottom: 6px; }
.service-tile h3::before { content: ''; display: block; width: 28px; height: 3px; background: var(--gold); margin-bottom: 10px; }
.service-tile p { font-size: 13.5px; color: #d8d1c0; margin: 0; line-height: 1.55; }

/* 카드 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12); border-color: var(--gold); }
.section-dark .card { background: var(--ink-2); border-color: #2c2c31; color: #f3eee2; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; }
.noimg.big { aspect-ratio: 4 / 3; background: var(--cream-2); border-radius: var(--radius); }
.badge-count { position: absolute; right: 10px; bottom: 10px; background: rgba(10, 10, 11, 0.75); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 18px; margin: 6px 0 4px; }
.card-body .meta { color: var(--muted); font-size: 14px; margin: 0; }
.section-dark .card-body .meta { color: #a59f90; }
.card-body .summary { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-d); background: #f7f0dc; padding: 2px 10px; border-radius: 999px; }
.section-dark .tag { background: rgba(201, 165, 74, 0.16); color: var(--gold-2); }

/* 문의 띠 */
.contact-band { background: linear-gradient(120deg, #17140c, #2a2312 60%, #3a2f12); color: #fff; padding: 56px 0; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-inner h2 { font-size: 28px; margin-bottom: 6px; }
.contact-inner p { color: #d9d0b8; margin: 0; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 서브 페이지 머리 */
.page-head { position: relative; background: var(--black) var(--bg, none) center / cover; color: #fff; padding: 70px 0 60px; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(201, 165, 74, 0.28), transparent 45%), linear-gradient(180deg, rgba(10, 10, 11, 0.6), rgba(10, 10, 11, 0.9)); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.page-head h1::after { content: ''; display: block; width: 46px; height: 4px; background: var(--gold); margin-top: 16px; }
.page-head p { color: #d6cfbd; margin: 14px 0 0; }
.subnav { background: var(--ink); position: sticky; top: 76px; z-index: 40; overflow-x: auto; }
.subnav .wrap { display: flex; gap: 4px; white-space: nowrap; }
.subnav a { color: #d8d1bf; padding: 14px 16px; font-weight: 600; font-size: 15px; }
.subnav a:hover { color: var(--gold-2); }

/* 회사소개 */
.greeting { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.greeting-title h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.greeting-body { font-size: 17px; color: #3a3833; }
.greeting-body .sign { margin-top: 28px; font-weight: 700; color: var(--text); }
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.company-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.company-logo { height: 70px; display: flex; align-items: center; margin-bottom: 18px; }
.company-logo img { max-height: 70px; width: auto; border-radius: 8px; }
.company-card h3 { font-size: 22px; margin-bottom: 10px; }
.company-card h3 small { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; }
.company-card > p { color: #4a4740; font-size: 15px; }
.company-card .muted-note { color: var(--muted); }
.company-card dl { margin: 16px 0 0; border-top: 1px solid var(--line); }
.company-card dl div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.company-card dt { color: var(--gold-d); font-weight: 700; }
.company-card dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--line); max-width: 860px; }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0 14px 28px; font-size: 17px; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.timeline time { font-weight: 800; color: var(--gold-d); }
.patent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.patent { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.patent-no { font-size: 13px; font-weight: 700; color: var(--gold-d); }
.patent strong { font-size: 17px; line-height: 1.45; }
.patent small { color: var(--muted); }
.facility-text { background: var(--cream); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 24px; color: #403d36; }
.facility-text p:last-child { margin: 0; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 10px; }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.location { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.location h3 { margin-bottom: 10px; }
.location p { margin: 0 0 6px; color: #403d36; }
.map-links { display: flex; gap: 8px; margin-top: 14px; }

/* 공사소개 */
.service-list { display: flex; flex-direction: column; gap: 70px; }
.service-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.service-row.rev .service-img { order: 2; }
.service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.service-text .num { font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: 0.1em; }
.service-text h2 { font-size: 30px; margin: 6px 0 14px; }
.service-text .lead { font-size: 17px; font-weight: 600; color: var(--text); }
.service-text p { color: #4a4740; }
.chip-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.chip-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.chip-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* 필터 · 페이지 */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; background: #fff; }
.filter a:hover { border-color: var(--gold); }
.filter a.on { background: var(--black); color: var(--gold-2); border-color: var(--black); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.pager a.on { background: var(--gold); border-color: var(--gold); font-weight: 700; }

/* 상세 */
.detail { max-width: 1040px; }
.back { display: inline-block; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.back:hover { color: var(--gold-d); }
.project-head h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 20px; }
.project-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 0 0 28px; border-top: 2px solid var(--black); }
.project-meta div { display: flex; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.project-meta dt { color: var(--gold-d); font-weight: 700; min-width: 56px; }
.project-meta dd { margin: 0; }
.prose { font-size: 17px; color: #36332d; margin-bottom: 30px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.gallery figure.wide img { aspect-ratio: 16 / 9; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 50px; border-top: 1px solid var(--line); padding-top: 24px; }
.prevnext a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.prevnext a:hover { border-color: var(--gold); }
.prevnext a.next { text-align: right; }
.prevnext small { display: block; color: var(--muted); font-weight: 500; }
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; margin-bottom: 40px; }
.product-photo img { width: 100%; border-radius: var(--radius); }
.product-info h1 { font-size: clamp(26px, 3.6vw, 34px); margin: 10px 0 14px; }
.product-info .lead { font-size: 17px; color: #403d36; }
.spec { width: 100%; border-collapse: collapse; margin: 18px 0 22px; border-top: 2px solid var(--black); }
.spec th, .spec td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.spec th { color: var(--gold-d); width: 90px; }
.maker { color: var(--muted); }
.sub-title { font-size: 24px; margin: 50px 0 20px; }

/* 푸터 */
.site-footer { background: var(--black); color: #a6a090; font-size: 14px; padding: 50px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid #26262a; flex-wrap: wrap; }
.footer-top nav { display: flex; gap: 22px; }
.footer-top nav a { color: #e9e2d0; font-weight: 600; }
.footer-top nav a:hover { color: var(--gold-2); }
.footer-companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 26px 0; }
.fc strong { display: block; color: #efe8d6; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #26262a; padding-top: 20px; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #6f6a5e; }

/* 사진 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 6, 0.94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 6px; }
.lightbox .lb-cap { color: #ddd; margin-top: 12px; min-height: 1.5em; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: #000; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* 반응형 */
@media (max-width: 1024px) {
  .service-grid, .card-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 10px 16px 24px; gap: 2px; border-bottom: 1px solid rgba(201, 165, 74, 0.3); transform: translateY(-120%); transition: transform 0.25s; z-index: -1; }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 14px 16px; border-radius: 10px; font-size: 17px; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-sub { display: none; }
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .service-grid, .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .greeting, .service-row, .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-row.rev .service-img { order: 0; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .site-nav { top: 64px; }
  .subnav { top: 64px; }
  .brand img { width: 96px; }
  .card-grid { grid-template-columns: 1fr; }
  .service-tile { aspect-ratio: 3 / 4; }
  .service-tile-body { padding: 14px; }
  .service-tile h3 { font-size: 16px; }
  .service-tile p { display: none; }
  .card-grid-4 .card-body { padding: 12px 14px 14px; }
  .card-grid-4 .card-body h3 { font-size: 15.5px; }
  .card-grid-4 .summary { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .prevnext { grid-template-columns: 1fr; }
  .stat strong { font-size: 30px; }
}
