/* 광명바닥코팅전문 — 네이비 & 앰버 KTX/테크노밸리 톤 + 레일 라인 모티프 + 각진 카드 레이아웃 */

:root {
  --navy: #0B1F3A;
  --navy-2: #122A4E;
  --steel: #24406B;
  --steel-2: #33507F;
  --amber: #F2A93B;
  --amber-dim: rgba(242, 169, 59, 0.18);
  --paper: #F4F6FA;
  --paper-2: #E7ECF3;
  --ink: #16212F;
  --muted: #51607A;
  --line: #D6DEE9;
  --heading-font: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
p { color: var(--ink); margin: 0 0 18px; }
h1, h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  line-height: 1.28;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 7.6vw, 3.2rem); margin: 8px 0 14px; color: #FFFFFF; }
h2 { font-size: clamp(1.4rem, 4.2vw, 1.9rem); margin: 0 0 16px; }
h3 { font-size: 1.03rem; font-weight: 700; margin: 0; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.section-inner { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, 0.96);
  border-bottom: 3px solid var(--amber);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.logo { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; text-decoration: none; color: #FFFFFF; }
.menu-toggle {
  background: transparent; border: 2px solid var(--amber); border-radius: 6px;
  width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--amber); display: block; }
#primary-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy-2); border-top: 1px solid var(--steel); border-bottom: 3px solid var(--amber);
  flex-direction: column; padding: 8px 20px 16px;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  display: flex; align-items: center; min-height: 44px;
  text-decoration: none; color: #E9EEF6; border-bottom: 1px solid var(--steel);
  font-weight: 600;
}

/* buttons: 각진 클립 코너 (레일 신호기 이미지) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 13px 28px;
  border: 2px solid transparent; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { transform: translateY(-2px); background: #FFC266; }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* hero: 레일 라인 모티프 — KTX 궤도와 테크노밸리 회로선이 교차하는 이미지 */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--steel) 100%);
  overflow: hidden;
  position: relative;
}
.rail-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(100deg, transparent 0 15%, rgba(242,169,59,0.35) 15% 15.6%, transparent 15.6% 100%),
    linear-gradient(100deg, transparent 0 32%, rgba(242,169,59,0.22) 32% 32.5%, transparent 32.5% 100%),
    linear-gradient(100deg, transparent 0 58%, rgba(233,238,246,0.14) 58% 58.4%, transparent 58.4% 100%),
    radial-gradient(circle, rgba(242,169,59,0.5) 3px, transparent 3.5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px;
  background-position: 0 0, 0 0, 0 0, 10px 30px;
}
.hero-inner { padding: 48px 20px 54px; max-width: 720px; margin: 0 auto; text-align: left; position: relative; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.14em; color: var(--amber);
  margin: 0 0 10px; font-weight: 800; text-transform: uppercase;
}
.hero-sub { color: #C9D4E4; font-size: 1.02rem; margin-bottom: 0; }

/* content: 본문 + 지역 특징 박스 */
.content-section { border-top: 1px solid var(--line); }
.content-grid { display: block; }
.content-main h2:not(:first-child) { margin-top: 42px; }
.content-main h2 { position: relative; padding-left: 18px; }
.content-main h2::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: var(--amber);
}
.content-main a { color: var(--steel-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.content-main p { color: var(--muted); }

.content-side { margin-top: 40px; }
.fact-box {
  background: var(--navy);
  padding: 30px 26px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.fact-box h2 { font-size: 1.32rem; margin-bottom: 20px; color: #FFFFFF; padding-left: 0; }
.fact-box h2::before { content: none; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fact-list li {
  padding-left: 26px; position: relative; color: #D7DEEA; font-size: 0.95rem;
}
.fact-list li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px;
  background: var(--amber); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

/* related links */
.related-section { border-top: 1px solid var(--line); }
.related-section h2 { position: relative; padding-left: 18px; }
.related-section h2::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: var(--amber); }
.related-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.related-section li { margin: 0; }
.related-section a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 10px 22px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--steel-2); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.related-section a:hover { background: var(--amber-dim); transform: translateY(-2px); }

/* faq / accordion */
.faq-section { background: var(--paper-2); border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; text-align: left; min-height: 44px;
  background: none; border: none; color: var(--navy);
  font-size: 1rem; font-weight: 700; padding: 18px 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: inherit;
}
.accordion-trigger::after {
  content: '+'; color: var(--navy); font-size: 1.25rem; flex-shrink: 0; font-weight: 800;
  width: 28px; height: 28px; background: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.accordion-trigger[aria-expanded="true"]::after { content: '\2212'; background: var(--navy); color: var(--amber); }
.accordion-panel { padding: 0 4px 20px; }
.accordion-panel p { color: var(--muted); margin: 0; }

/* cta */
.cta-section { background: var(--navy); border-top: 3px solid var(--amber); }
.cta-section h2 { color: #FFFFFF; }
.cta-inner { text-align: left; }
.cta-inner p { color: #C9D4E4; }
.cta-section .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.5); }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* footer */
.site-footer { background: #081527; padding: 16px 20px; }
address {
  max-width: 1120px; margin: 0 auto; font-style: normal; color: #8FA0BC; font-size: 0.88rem; line-height: 1.8;
}
address a { color: var(--amber); text-decoration: none; }
/* breakpoints */
@media (min-width: 480px) {
  .hero-cta { gap: 16px; }
}
@media (min-width: 768px) {
  #primary-nav { position: static; display: flex !important; flex-direction: row; background: none; border: none; padding: 0; gap: 20px; }
  #primary-nav a { border-bottom: none; min-height: auto; color: #E9EEF6; }
  .menu-toggle { display: none; }
  .hero-inner { padding: 64px 20px 72px; max-width: 900px; }
}
@media (min-width: 1024px) {
  .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .content-side { margin-top: 0; position: sticky; top: 90px; }
  .hero-inner { max-width: 1000px; }
}
@media (min-width: 1280px) {
  .header-inner, .section-inner { max-width: 1200px; }
}

/* 현장 사진 */
.site-photo-section { max-width: 1000px; margin: 0 auto; padding: 44px 20px; }
.site-photo-section h2 { color: var(--navy); margin: 0 0 20px; text-align: center; }
.site-photo-grid { display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: center; }
.site-photo-grid picture {
  display: block; width: 100%; max-width: 480px; aspect-ratio: 4/3; overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.site-photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 640px) {
  .site-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .site-photo-grid picture { max-width: none; }
}
