/* ==========================================================================
   안성바닥코팅전문 - 전용 스타일
   컨셉: 남부권 산업단지(안성원곡일반산업단지, 안성테크노밸리)의 물류 벨트와
   아연도금 강판(패널) 질감을 모티프로 한 앰버 & 슬레이트 팔레트
   ========================================================================== */

:root {
  --as-amber: #c8631e;
  --as-amber-dark: #9c4a12;
  --as-amber-soft: #f5deca;
  --as-slate: #2b3038;
  --as-slate-soft: #4a5160;
  --as-ink: #1c1f24;
  --as-paper: #faf7f2;
  --as-panel: #ffffff;
  --as-line: #e4ddd0;
  --as-radius: 4px;
  --as-shadow: 0 10px 28px -14px rgba(28, 31, 36, 0.35);
  --as-font: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--as-font);
  color: var(--as-ink);
  background: var(--as-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

a { color: var(--as-amber-dark); }
h1, h2, h3 { color: var(--as-slate); line-height: 1.35; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--as-panel);
  border-bottom: 3px solid var(--as-amber);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--as-slate);
  text-decoration: none;
  letter-spacing: -0.01em;
}

#primary-nav {
  display: flex;
  gap: 22px;
}

#primary-nav a {
  color: var(--as-slate-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

#primary-nav a:hover {
  color: var(--as-amber-dark);
  border-color: var(--as-amber);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--as-slate);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--as-slate) 0%, #23262d 60%, var(--as-ink) 100%);
  padding: 84px 20px 96px;
}

/* industrial-belt motif: 산업단지 도로 구획을 연상시키는 사선 벨트 패턴 */
.industrial-belt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(200, 99, 30, 0.16) 0px,
      rgba(200, 99, 30, 0.16) 2px,
      transparent 2px,
      transparent 64px
    ),
    repeating-linear-gradient(
      115deg,
      rgba(250, 247, 242, 0.05) 0px,
      rgba(250, 247, 242, 0.05) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity: 0.9;
}

.industrial-belt::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(200, 99, 30, 0.35), transparent 70%);
  filter: blur(6px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--as-paper);
}

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(250, 247, 242, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--as-amber-soft);
  margin-bottom: 18px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: #d7d9de;
  font-size: 1.02rem;
  margin: 0 auto 30px;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--as-radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--as-amber);
  color: #fff;
}

.btn-primary:hover {
  background: var(--as-amber-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 247, 242, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--as-amber-soft);
  color: var(--as-amber-soft);
}

/* ---------- Content ---------- */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-section {
  padding: 64px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.content-main h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--as-amber);
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main p {
  color: #3a3f47;
  font-size: 1rem;
  margin: 0 0 8px;
}

.content-side {
  align-self: start;
}

.fact-box {
  background: var(--as-panel);
  border: 1px solid var(--as-line);
  border-top: 4px solid var(--as-amber);
  border-radius: var(--as-radius);
  padding: 24px 22px;
  box-shadow: var(--as-shadow);
}

.fact-box h2 {
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fact-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--as-slate-soft);
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--as-amber);
  border-radius: 2px;
}

/* ---------- 관련 페이지 ---------- */
.related-section {
  background: var(--as-panel);
  border-top: 1px solid var(--as-line);
  padding: 40px 0;
}

.related-section h2 {
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.related-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.related-section li {
  font-size: 0.95rem;
}

.related-section a {
  color: var(--as-amber-dark);
}

/* ---------- FAQ ---------- */
.faq-section {
  background: #f1ebe0;
  padding: 60px 0;
}

.faq-section h2 {
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 28px;
}

.accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--as-panel);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  overflow: hidden;
}

.accordion-item h3 {
  margin: 0;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--as-slate);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accordion-trigger::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--as-amber);
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "\2212";
}

.accordion-trigger[aria-expanded="true"] {
  color: var(--as-amber-dark);
}

.accordion-panel {
  padding: 0 20px 18px;
  color: #4a5160;
  font-size: 0.95rem;
}

.accordion-panel p {
  margin: 0;
}

/* ---------- Site photos ---------- */
.site-photo-section {
  padding: 60px 20px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.site-photo-section h2 {
  font-size: 1.5rem;
  margin: 0 0 26px;
}

.site-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.site-photo-grid picture {
  display: block;
  width: 100%;
  border-radius: var(--as-radius);
  overflow: hidden;
  box-shadow: var(--as-shadow);
  border: 1px solid var(--as-line);
}

.site-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 640px) {
  .site-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(120deg, var(--as-amber-dark), var(--as-amber));
  padding: 68px 20px;
}

.cta-inner {
  max-width: 700px;
  text-align: center;
  color: #fff;
}

.cta-inner h2 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 14px;
}

.cta-inner p {
  margin: 0 0 26px;
  color: #fbe9d7;
}

.cta-section .btn-primary {
  background: var(--as-ink);
}

.cta-section .btn-primary:hover {
  background: #000;
}

.cta-section .btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-section .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--as-ink);
  color: #b8bcc4;
  padding: 16px 20px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer address {
  font-style: normal;
  line-height: 1.5;
  color: #9aa0ab;
}

.site-footer address a {
  color: var(--as-amber-soft);
}

/* ---------- Responsive ---------- */
@media (min-width: 860px) {
  .content-grid {
    grid-template-columns: 2.1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  #primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--as-panel);
    flex-direction: column;
    padding: 10px 20px 18px;
    gap: 4px;
    border-bottom: 1px solid var(--as-line);
    display: none;
  }

  #primary-nav.is-open {
    display: flex;
  }

  .hero {
    padding: 60px 18px 72px;
  }
}
