/* ===== 한국포소화설비협회 메인 스타일 ===== */

/* ── 변수 ── */
:root {
  --navy:     #2d3748;
  --navy-dk:  #1a202c;
  --navy-lt:  #4a5568;
  --red:      #7b1d2e;
  --red-dk:   #5c1522;
  --red-lt:   #9e2539;
  --gray:     #2d3748;
  --gray-md:  #718096;
  --gray-lt:  #a0aec0;
  --bg:       #f7f8fa;
  --bg-lt:    #edf0f4;
  --white:    #ffffff;
  --border:   #d0d6e0;
  --shadow:   rgba(26,32,44,.10);
  --radius:   8px;
  --radius-lg:16px;
  --trans:    .25s ease;
  --max-w:    1140px;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans KR', sans-serif;
  color: var(--gray);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 공통 ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy-dk);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-md);
  text-align: center;
  margin-bottom: 48px;
}
.section-subtitle::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 16px;
}

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 13px 30px;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(123,29,46,.30);
}
.btn-primary:hover { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,29,46,.35); }
.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--navy-dk);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--bg-lt); transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 16px 40px; }

/* ── 헤더 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 2px 12px var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-dk);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.logo-sub {
  font-size: .68rem;
  color: var(--gray-md);
  letter-spacing: .04em;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--trans);
}
.site-nav a:hover, .site-nav a.active { color: var(--navy-dk); background: var(--bg-lt); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--red-dk) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-dk); border-radius: 2px; transition: var(--trans); }

/* ── 히어로 ── */
.hero {
  position: relative;
  background: #1a202c;
  padding: 110px 0;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}
.hero::before { content: none; }
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-slide 25s infinite;
}
.hero-slide:nth-child(1) { opacity: 1; animation-name: hero-slide-first; animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.12) saturate(1.18) brightness(1.06); }
@keyframes hero-slide-first {
  0%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hero-slide {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 5px 18px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Do Hyeon', 'IBM Plex Sans KR', sans-serif;
  font-size: clamp(3.2rem, 7.5vw, 5.6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.hero h1 span { color: #f5a623; }
.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  margin-bottom: 36px;
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0,0,0,.50);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.30);
}
.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.04) 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-placeholder .ph-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hero-placeholder p { color: rgba(255,255,255,.50); font-size: .85rem; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.hero-stat span:first-child {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
}
.hero-stat span:last-child {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(26,32,44,.07);
  transition: var(--trans);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(26,32,44,.14); border-color: var(--navy-lt); }

/* 좌측 강조선형 */
.card-left-bar {
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.card-left-bar:hover { border-left-color: var(--navy-lt); }

/* 상단 컬러바형 */
.card-top-bar {
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.card-top-bar:hover { border-top-color: var(--navy-lt); }

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-placeholder.red-bg {
  background: linear-gradient(135deg, var(--red-dk) 0%, var(--red) 100%);
}
.card-img-placeholder.gray-bg {
  background: linear-gradient(135deg, #1a3d28 0%, #2d6a4f 100%);
}
.card-img-placeholder svg { opacity: .35; }

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body .card-link { margin-top: auto; padding-top: 10px; }
.card-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dk);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-text { font-size: .9rem; color: var(--gray-md); line-height: 1.7; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
  transition: var(--trans);
}
.card-link:hover { color: var(--red); gap: 10px; }

/* ── 서비스 카드 ── */
.svc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
  box-shadow: 0 2px 12px rgba(26,32,44,.07);
  transition: var(--trans);
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(26,32,44,.14);
  border-top-color: var(--navy);
}
.svc-img { width: 100%; height: 165px; object-fit: cover; display: block; }
.svc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-body .card-link { margin-top: auto; padding-top: 10px; }
.svc-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy-lt) 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.svc-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; }
.svc-title { font-size: 1.05rem; font-weight: 700; color: var(--navy-dk); margin-bottom: 10px; }
.svc-text  { font-size: .875rem; color: var(--gray-md); line-height: 1.75; }
/* 실적 카드 이미지 */
.case-img { width: 100%; height: 210px; object-fit: cover; display: block; }
/* 제품 정사각형 카드 */
.product-card { aspect-ratio: 1 / 1; }
.card-grid-5 .product-card { aspect-ratio: unset; }
.card-grid-5 .product-card .product-img { height: 150px; }
.card-grid-5 .product-card .card-body { padding: 10px 12px 12px; }
.card-grid-5 .card-title { font-size: .82rem; line-height: 1.35; }
.card-grid-5 .product-price { font-size: .88rem; margin-top: 4px; }
.card-grid-5 .card-link { font-size: .74rem; }
.card-grid-5 .card-tag { font-size: .66rem; margin-bottom: 4px; }
.card-grid-5 .shop-badge { font-size: .58rem; padding: 1px 5px; }
.product-card .product-img {
  width: 100%;
  height: 56%;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  background: #f4f7fb;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.product-card .card-body { padding: 14px 18px 16px; justify-content: space-between; }
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--red); margin-top: 8px; }
.shop-badge { display: inline-block; font-size: .68rem; font-weight: 700; background: var(--navy-dk); color: var(--white); border-radius: 4px; padding: 2px 7px; letter-spacing: .03em; vertical-align: middle; margin-left: 4px; }
@media (max-width: 480px) {
  .product-card { aspect-ratio: unset; }
  .product-card .product-img { height: 200px; }
}

/* ── FAQ 아코디언 ── */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-accordion details {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, border-top-color .25s;
}
.faq-accordion details[open] {
  border-top-color: var(--navy);
  box-shadow: 0 8px 24px rgba(26,32,44,.10);
}
.faq-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dk);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: '';
  flex-shrink: 0;
  width: 24px; height: 24px;
  background-color: var(--navy-lt);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform .25s, background-color .25s;
}
.faq-accordion details[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--navy);
}
.faq-a {
  font-size: .9rem;
  color: var(--gray-md);
  line-height: 1.78;
  padding: 0 24px 20px 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── CTA 섹션 ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── 이미지 + 텍스트 ── */
.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.media-split.reverse .media-img { order: 2; }
.media-split.reverse .media-text { order: 1; }
.media-img img {
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.media-img-placeholder {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px var(--shadow);
}
.media-img-placeholder svg { opacity: .3; width: 80px; height: 80px; }
.media-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--navy-dk);
  margin-bottom: 16px;
  line-height: 1.35;
}
.media-text p { color: var(--gray-md); line-height: 1.8; margin-bottom: 14px; }
.media-text .check-list { margin: 20px 0 28px; }
.check-list li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: .95rem;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 16px; height: 16px;
  background: var(--navy);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l4 4 6-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── 페이지 히어로 (서브) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(123,29,46,.15) 0%, transparent 40%);
}
.page-hero .container { position: relative; }
.page-breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.60);
  margin-bottom: 14px;
}
.page-breadcrumb a { color: rgba(255,255,255,.70); }
.page-breadcrumb a:hover { color: var(--white); }
.page-breadcrumb span { margin: 0 8px; }
.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}
.page-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  max-width: 640px;
  line-height: 1.75;
}

/* ── 본문 콘텐츠 ── */
.content-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-dk);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}
.content-body p {
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 16px;
}
.content-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.8;
}
.content-body ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.8;
}
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: .9rem;
}
.content-body th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.content-body td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
}
.content-body tr:nth-child(even) td { background: var(--bg); }

.info-box {
  background: var(--bg-lt);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: .95rem;
  color: var(--navy-dk);
  line-height: 1.75;
}
.warn-box {
  background: #fff5f5;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: .95rem;
  color: #7b2020;
  line-height: 1.75;
}

/* ── 관련 페이지 ── */
.related-section { background: var(--bg); }
.related-section .section-title { font-size: 1.2rem; text-align: left; margin-bottom: 20px; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-link {
  display: inline-block;
  padding: 9px 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--trans);
}
.related-link:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ── 이미지 갤러리 ── */
.img-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.img-gallery img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.img-gallery-ph {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
}

/* ── 상담 페이지 ── */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--navy);
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px var(--shadow);
}
.contact-phone {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: .04em;
  margin: 20px 0 10px;
}
.contact-hours { font-size: .9rem; color: var(--gray-md); margin-bottom: 24px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.contact-info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dk);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.contact-info-card p { font-size: .9rem; color: var(--gray-md); line-height: 1.8; }

/* ── 사이트맵 ── */
.sitemap-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dk);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.sitemap-links { list-style: none; }
.sitemap-links li {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.sitemap-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 4px;
  font-size: .95rem;
  color: var(--gray);
  transition: var(--trans);
}
.sitemap-links a:hover { color: var(--navy-dk); padding-left: 10px; }
.sitemap-links a span { font-size: .8rem; color: var(--gray-lt); }

/* ── 푸터 ── */
.site-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-main { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand p { font-size: .85rem; line-height: 1.75; }
.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .04em;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: .85rem; transition: var(--trans); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { transition: var(--trans); }
.footer-bottom a:hover { color: var(--white); }
.biz-info { font-size: .82rem; line-height: 1.9; margin-top: 6px; }
.biz-info span { margin-right: 16px; }

/* ── 동영상 그리드 ── */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 30px 0; }
.video-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: #000;
}
.video-wrap picture, .video-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.video-wrap:hover img { opacity: .82; }
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  background: rgba(123,29,46,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .25s;
}
.video-wrap:hover .video-play-btn { transform: translate(-50%,-50%) scale(1.1); }
.video-play-btn::after {
  content: '';
  border: 0 solid transparent;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
  margin-left: 5px;
}
.video-label { margin-top: 10px; font-size: .875rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.img-gallery-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.img-gallery-2 picture img, .img-gallery-2 img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius); display:block; }
.img-gallery-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 30px 0; }
.img-gallery-5 picture img, .img-gallery-5 img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius); display:block; }

/* ── 무한 사진 띠 (Marquee) ── */
.photo-strip {
  position: relative;
  overflow: hidden;
  padding: 8px 0 4px;
}
.photo-strip::before,
.photo-strip::after { content: none; }

.marquee-track {
  display: flex;
  animation: marquee-scroll 52s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  flex-shrink: 0;
}

.marquee-item { flex-shrink: 0; width: 300px; }
.marquee-item picture { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.marquee-item img { width: 300px; height: 210px; object-fit: cover; display: block; transition: transform .6s ease; }
.marquee-item:hover img { transform: scale(1.04); }
.marquee-caption {
  font-size: .78rem;
  color: rgba(255,255,255,.58);
  text-align: center;
  margin-top: 9px;
  letter-spacing: .03em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 섹션 배경 테마 ── */
.bg-tinted { background: #edf0f4; }

.bg-deep {
  background: linear-gradient(160deg, #1a202c 0%, #2d3748 100%);
}
.bg-deep .section-title  { color: var(--white); }
.bg-deep .section-subtitle { color: rgba(255,255,255,.62); }
.bg-deep .section-subtitle::before { background: var(--red); }
.bg-deep .video-label    { color: rgba(255,255,255,.85); }
.bg-deep .btn-outline    { border-color: rgba(255,255,255,.6); color: var(--white); }
.bg-deep .btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* ── 유틸 ── */
.text-center { text-align: center; }
.text-navy   { color: var(--navy-dk); }
.bg-white    { background: var(--white); }
.bg-light    { background: var(--bg); }
.bg-orange   { background: #7b1d2e; }
.bg-orange .section-title    { color: #ffffff; }
.bg-orange .section-subtitle { color: rgba(255,255,255,.75); }
.bg-orange .marquee-caption  { color: rgba(255,255,255,.90); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .hero-grid     { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .card-grid-4   { grid-template-columns: repeat(2, 1fr); }
  .card-grid-5   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section    { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .site-nav   { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; border-bottom: 2px solid var(--border); padding: 12px 16px 20px; gap: 2px; }
  .site-nav.open { display: flex; }
  .site-nav a { display: block; padding: 11px 16px; border-radius: var(--radius); }
  .nav-toggle { display: flex; }
  .card-grid   { gap: 18px; }
  .card-grid-3  { grid-template-columns: 1fr 1fr; }
  .card-grid-5  { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2  { grid-template-columns: 1fr; }
  .media-split  { grid-template-columns: 1fr; gap: 32px; }
  .media-split.reverse .media-img { order: 0; }
  .media-split.reverse .media-text { order: 0; }
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .img-gallery  { grid-template-columns: repeat(2, 1fr); }
  .video-grid   { grid-template-columns: 1fr; }
  .video-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .img-gallery-2 { grid-template-columns: 1fr; }
  .img-gallery-5 { grid-template-columns: repeat(2, 1fr); }
  .hero         { padding: 60px 0; }
  .hero-btns    { flex-direction: column; }
  .hero-btns .btn { text-align: center; }
  .cta-btns     { flex-direction: column; align-items: center; }
  .svc-img { height: 140px; }
  .case-img { height: 180px; }
  .marquee-item { width: 220px; }
  .marquee-item img { width: 220px; height: 160px; }
}


@media (max-width: 480px) {
  .card-grid-3  { grid-template-columns: 1fr; }
  .card-grid-4  { grid-template-columns: 1fr; }
  .card-grid-5  { grid-template-columns: 1fr; }
  .img-gallery-5 { grid-template-columns: 1fr; }
  .hero h1      { font-size: 1.8rem; }
  .hero-desc    { white-space: normal; }
  .contact-phone { font-size: 1.8rem; }
  .img-gallery  { grid-template-columns: 1fr; }
}
