/* 포천바닥코팅전문 — 산악 능선 실루엣 콘셉트: 포레스트그린 + 그래파이트, 지그재그 능선 디바이더 */
:root {
  --forest: #2E6E4E;
  --forest-dark: #1F4E38;
  --graphite: #33383A;
  --graphite-dark: #1C1F20;
  --line: #465049;
  --paper: #F1F4F0;
  --card: #FFFFFF;
  --ink: #1C2220;
  --muted: #545F58;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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;
  overflow-x: hidden;
}

a { color: inherit; }
p { margin: 0 0 1em; }

.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;
}

h1, h2 {
  font-family: "Do Hyeon", "Noto Sans KR", sans-serif;
  font-weight: 400;
  line-height: 1.3;
  color: var(--forest);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.8rem, 5.2vw, 2.7rem); color: #fff; }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.7rem); color: var(--graphite); }
h3 { font-family: "Do Hyeon", "Noto Sans KR", sans-serif; font-weight: 400; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite-dark);
  border-bottom: 3px solid var(--forest);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: "Do Hyeon", "Noto Sans KR", sans-serif;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--forest);
}
#primary-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  display: block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 .5rem;
  color: #E6EBE6;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

/* ---------- 산악 능선 실루엣 데코 ---------- */
.ridge-row {
  display: flex;
  align-items: flex-end;
  height: 30px;
  padding-top: 8px;
  background: var(--graphite-dark);
  gap: 2px;
}
.ridge-row .peak {
  flex: 1;
  height: 100%;
  background: var(--forest);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: .5;
}
.ridge-row .peak:nth-child(2n) { opacity: .28; height: 70%; align-self: flex-end; }
.ridge-row .peak:nth-child(3) { opacity: .8; }

.ridge-divider {
  height: 36px;
  background: var(--forest);
  clip-path: polygon(0% 100%, 4% 35%, 8% 100%, 13% 15%, 18% 100%, 23% 55%, 28% 100%, 33% 8%, 38% 100%,
    43% 45%, 48% 100%, 53% 25%, 58% 100%, 63% 65%, 68% 100%, 73% 12%, 78% 100%, 83% 40%, 88% 100%,
    93% 20%, 100% 100%);
  opacity: .8;
}

/* ---------- hero ---------- */
.hero-section {
  background: var(--graphite-dark);
  position: relative;
}
.hero-inner { padding-top: 2.5rem; padding-bottom: 3rem; }
.eyebrow {
  color: var(--forest);
  font-size: .85rem;
  letter-spacing: .06em;
  margin: 0 0 .5rem;
}
.hero-desc {
  color: #DCE4DA;
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- buttons: 슬로프 각진 형태 ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .9rem 2.1rem;
  font-family: "Do Hyeon", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  text-decoration: none;
  clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 92% 100%, 0% 100%);
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }

/* ---------- content ---------- */
.content-section { background: var(--paper); }
.content-section h2 { position: relative; padding-left: 1.2rem; }
.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 0;
  height: 0;
  border-left: .5rem solid transparent;
  border-right: .5rem solid transparent;
  border-bottom: .8rem solid var(--forest);
}
.content-section p { color: var(--ink); }
.content-section a { color: var(--forest-dark); text-decoration: underline; }
.content-section ul { padding-left: 1.2rem; }
.content-section li { margin-bottom: .5rem; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { border: 1px solid #D7DED6; padding: .7rem .9rem; text-align: left; font-size: .95rem; }
thead th { background: var(--forest); color: #fff; }

/* ---------- CTA ---------- */
.cta-section { background: var(--graphite); }
.cta-section h2 { color: #fff; }
.cta-inner p { color: #DCE4DA; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--graphite-dark);
  color: #C6D0C6;
  padding: 1rem 1.25rem;
}
.site-footer address {
  max-width: 1080px;
  margin: 0 auto 1rem;
  font-style: normal;
  font-size: .85rem;
  line-height: 1.5;
  color: #A6B3A6;
}
.site-footer address a { color: var(--forest); text-decoration: none; }

/* ---------- 현장 사진: 사선 절단 프레임 ---------- */
.site-photo-section { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.site-photo-section h2 { color: var(--graphite); margin: 0 0 18px; }
.site-photo-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.site-photo-grid picture {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0% 100%);
  border: 1px solid var(--line);
}
.site-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .site-photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 관련 페이지 ---------- */
.related-section { background: #E6EAE4; }
.related-section h2 { color: var(--graphite); }
.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-top: 1.2rem;
}
.related-cards a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--graphite);
  font-weight: 700;
  min-height: 44px;
  transition: background .15s ease;
}
.related-cards a:hover { background: #F4F7F2; }
@media (min-width: 640px) { .related-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq-section { background: var(--paper); }
.faq-section .accordion { max-width: 780px; margin: 0 auto; }
.faq-section .accordion-item { border: 2px solid var(--line); margin-bottom: .8rem; background: var(--card); }
.faq-section .accordion-item h3 { margin: 0; font-size: 1rem; }
.faq-section .accordion-trigger {
  width: 100%;
  text-align: left;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--graphite);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}
.faq-section .accordion-trigger::after { content: '+'; color: var(--forest-dark); font-size: 1.3rem; flex-shrink: 0; }
.faq-section .accordion-trigger[aria-expanded="true"]::after { content: '\2212'; }
.faq-section .accordion-panel { padding: 0 1.2em 1.1em; }
.faq-section .accordion-panel p { color: var(--muted); margin: 0; }

.last-modified { color: var(--muted); font-size: .85rem; }

/* ---------- breakpoints ---------- */
@media (min-width: 480px) {
  .btn { padding: .9rem 2.4rem; }
}

@media (min-width: 768px) {
  .header-inner { padding: 16px 32px; }
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
  }
  #primary-nav a {
    border-top: none;
    min-height: auto;
    line-height: normal;
    padding: 0;
  }
  .section-inner { padding: 4rem 2rem; }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 4rem; }
}

@media (min-width: 1024px) {
  .section-inner { padding: 5rem 2rem; }
  .content-section .section-inner { max-width: 900px; }
}

@media (min-width: 1280px) {
  .header-inner, .section-inner { max-width: 1280px; }
  .content-section .section-inner { max-width: 960px; margin: 0 auto; }
}
