/* 이천바닥코팅전문 — 그래파이트(실리콘) + 세라믹 앰버 톤, 칩 그리드 모티프, 카드형 레이아웃 */

:root {
  --graphite: #1B1F24;
  --graphite-2: #23282F;
  --graphite-3: #2C323B;
  --amber: #E8963C;
  --amber-2: #C97A2A;
  --amber-dim: rgba(232, 150, 60, 0.22);
  --fg: #F2EFE9;
  --muted: #ADB6C0;
  --heading-font: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--fg);
  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(--fg); margin: 0 0 18px; }
h1, h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 10px 0 14px; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 16px; color: var(--amber); position: relative; padding-left: 18px; }
h2::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 9px; height: 9px; background: var(--amber); }
h3 { font-size: 1.02rem; font-weight: 700; margin: 0; color: #fff; }
.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(27, 31, 36, 0.97);
  border-bottom: 1px solid var(--amber-dim);
}
.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.1rem; letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.menu-toggle {
  background: var(--graphite-2); border: 1px solid var(--amber-dim); border-radius: 4px;
  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(--graphite-2); border-top: 1px solid var(--amber-dim);
  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: var(--fg); border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* buttons: 칩(반도체) 핀 형태 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 13px 28px;
  border: none; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.btn-primary { background: var(--amber); color: #211405; }
.btn-ghost { background: var(--graphite-3); color: var(--amber); border: 1px solid var(--amber-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* hero: 칩 배열(회로 그리드) 모티프 */
.hero {
  background:
    linear-gradient(180deg, var(--graphite-2), var(--graphite) 75%);
  overflow: hidden;
  position: relative;
}
.chip-array {
  height: 34px;
  background-image:
    linear-gradient(90deg, var(--amber-dim) 1px, transparent 1px),
    linear-gradient(0deg, var(--amber-dim) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.hero-inner { padding: 44px 20px 52px; max-width: 720px; margin: 0 auto; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 0.76rem; letter-spacing: 0.1em; color: var(--amber);
  margin: 0 0 10px; font-weight: 700;
  background: var(--amber-dim);
  padding: 6px 12px;
  border-radius: 2px;
}
.hero-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }

/* content: 2단 레이아웃 (본문 + 지역 특징 카드) */
.content-section { border-top: 1px solid var(--amber-dim); }
.content-grid { display: block; }
.content-main h2:not(:first-child) { margin-top: 40px; }
.content-main a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

.content-side { margin-top: 40px; }
.fact-box {
  background: var(--graphite-2);
  border: 1px solid var(--amber-dim);
  border-left: 4px solid var(--amber);
  border-radius: 2px;
  padding: 28px 24px;
}
.fact-box h2 { font-size: 1.4rem; margin-bottom: 18px; padding-left: 0; }
.fact-box h2::before { display: none; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fact-list li {
  padding-left: 22px; position: relative; color: var(--fg); font-size: 0.95rem;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 14px;
}
.fact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-list li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px;
  background: var(--amber);
}

/* related links */
.related-section { border-top: 1px solid var(--amber-dim); }
.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 20px; border-radius: 4px;
  background: var(--graphite-3); border: 1px solid var(--amber-2);
  color: var(--amber); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  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(--graphite-2); border-top: 1px solid var(--amber-dim); }
.accordion { display: grid; gap: 10px; }
.accordion-item {
  background: var(--graphite-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%; text-align: left; min-height: 44px;
  background: none; border: none; color: var(--fg);
  font-size: 1rem; font-weight: 700; padding: 16px 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: inherit;
}
.accordion-trigger::after { content: '+'; color: var(--amber); font-size: 1.3rem; flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"]::after { content: '\2212'; }
.accordion-panel { padding: 0 18px 18px; }
.accordion-panel p { color: var(--muted); margin: 0; }

/* cta */
.cta-section { background: var(--graphite-3); border-top: 1px solid var(--amber-dim); }
.cta-inner { text-align: left; }
.cta-inner p { color: var(--muted); }

/* footer */
.site-footer { background: #14171B; padding: 16px 20px; }
address {
  max-width: 1120px; margin: 0 auto; font-style: normal; color: var(--muted); font-size: 0.88rem; line-height: 1.8;
}
address a { color: var(--amber); text-decoration: none; }
/* 현장 사진: 가운데 정렬 */
.site-photo-section { max-width: 900px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.site-photo-section h2 { color: var(--amber); margin: 0 0 18px; display: inline-block; padding-left: 18px; }
.site-photo-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  justify-content: center; justify-items: center;
  max-width: 760px; margin: 0 auto;
}
.site-photo-grid picture {
  display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--amber-dim);
}
.site-photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* breakpoints */
@media (min-width: 480px) {
  .hero-cta { gap: 16px; }
}
@media (min-width: 640px) {
  .site-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@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; }
  .menu-toggle { display: none; }
  .hero-inner { padding: 60px 20px 68px; 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; }
}
