/* school-floor-coating — 바이올렛(violet) × 민트(mint) 콘셉트, 카드형 레이아웃 */

:root {
  --violet: #5B3E96;
  --violet-dark: #402B6E;
  --violet-light: #7B5FB8;
  --mint: #2EC4B6;
  --mint-dark: #1B9E92;
  --paper: #F7F5FC;
  --card: #FFFFFF;
  --ink: #2B2438;
  --muted: #6B6280;
  --line: #E0D9F0;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { font-family: "Gowun Dodum", "Malgun Gothic", sans-serif; font-weight: 400; color: var(--violet-dark); line-height: 1.4; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 5.5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; color: var(--violet); margin-top: 1.4em; }
p { margin: 0 0 1em; }

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

.tag-label {
  display: inline-block;
  background: var(--mint);
  color: #ffffff;
  font-family: "Gowun Dodum", sans-serif;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .35em 1em;
  border-radius: 999px;
  margin-bottom: 1em;
}

/* ===== Header — soft pill nav, rounded badge logo ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55em;
  color: var(--violet-dark);
  text-decoration: none;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 1.05rem;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: .95rem;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0 9px;
  background: var(--violet);
}
#primary-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #fff;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: .9em 1.25rem;
  border-top: 1px solid var(--line);
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex !important;
    flex-direction: row;
    width: auto;
    background: transparent;
    gap: .5rem;
  }
  #primary-nav a {
    border-top: none;
    padding: .6em 1.1em;
    min-height: auto;
    border-radius: 999px;
  }
  #primary-nav a:hover { background: var(--paper); color: var(--violet); }
}

/* ===== Buttons — soft pill shape ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7em 1.7em;
  text-decoration: none;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 62, 150, .28);
}
.btn-ghost {
  background: #fff;
  color: var(--violet-dark);
  border-color: var(--violet-light);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* ===== Hero — split card, no zigzag ===== */
.hero {
  background: linear-gradient(180deg, #EFE9FA 0%, var(--paper) 100%);
  padding: 3rem 1.25rem;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}
.hero .eyebrow {
  color: var(--mint-dark);
  font-family: "Gowun Dodum", sans-serif;
  letter-spacing: .08em;
  font-size: .85rem;
  margin: 0 0 .8em;
}
.hero-sub { color: var(--muted); max-width: 56ch; }
.hero-media picture, .hero-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(91, 62, 150, .18);
}

@media (min-width: 768px) {
  .hero { padding: 4.5rem 3rem; }
  .hero-inner { flex-direction: row; align-items: center; gap: 3rem; }
  .hero-text, .hero-media { flex: 1 1 50%; min-width: 0; }
}

/* ===== Zone cards ===== */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
  margin-top: 1.5rem;
}
.zone-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--mint);
  border-radius: 16px;
  padding: 1.1em 1.2em;
}
.zone-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.zone-name {
  display: block;
  font-family: "Gowun Dodum", sans-serif;
  color: var(--violet-dark);
  font-size: 1.05rem;
  margin-bottom: .3em;
}

@media (min-width: 600px) {
  .zone-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .zone-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Process section ===== */
.process-section { background: #fff; }
.process-section h3:first-of-type { margin-top: .4em; }

/* ===== Spec table ===== */
.spec-section { background: var(--paper); }
.table-scroll { overflow-x: auto; border-radius: 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--card);
}
th, td {
  text-align: left;
  padding: .95em 1.1em;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
th {
  background: var(--violet);
  color: #fff;
  font-family: "Gowun Dodum", sans-serif;
  font-weight: 400;
}
tbody tr:nth-child(even) { background: #FBFAFE; }

/* ===== Gallery ===== */
.gallery-section { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-grid img { border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; }

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Notice list ===== */
.notice-section { background: var(--paper); }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.notice-list li {
  background: var(--card);
  border-left: 5px solid var(--violet);
  border-radius: 12px;
  padding: 1em 1.2em;
}
.notice-list strong { color: var(--violet-dark); }

/* ===== FAQ accordion ===== */
.faq-section { background: #fff; }
.accordion-item {
  background: var(--paper);
  border-radius: 16px;
  margin-bottom: .8rem;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.1em 1.3em;
  min-height: 44px;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 1rem;
  color: var(--violet-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.accordion-trigger::after {
  content: "+";
  color: var(--mint-dark);
  font-size: 1.3em;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 1.3em 1.2em; }
.accordion-panel p { margin: 0; color: var(--muted); }
.accordion-item h3 { margin: 0; font-size: 1rem; }

/* ===== Related pages ===== */
.related-section { background: var(--paper); }
.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-top: 1rem;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--violet-dark);
  text-decoration: none;
  font-family: "Gowun Dodum", sans-serif;
  padding: 1.1em 1em;
  text-align: center;
  border-radius: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card:hover { background: var(--violet); color: #fff; }

@media (min-width: 768px) {
  .related-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ===== CTA ===== */
.cta-section { background: var(--violet); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #E4DBF6; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 1em; }
.cta-inner .hero-cta { justify-content: center; }
.cta-section .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* ===== Footer ===== */
.site-footer {
  background: var(--violet-dark);
  color: #D9CFEE;
  padding: 2.5rem 1.25rem 1.5rem;
}
.footer-nav {
  max-width: 1080px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}
.footer-nav a {
  color: #D9CFEE;
  text-decoration: none;
  font-size: .9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--mint); }
.site-footer address {
  max-width: 1080px;
  margin: 0 auto 1rem;
  font-style: normal;
  font-size: .85rem;
  line-height: 1.9;
}
.site-footer address a { color: var(--mint); text-decoration: none; }
.site-footer p { max-width: 1080px; margin: 0 auto; font-size: .8rem; color: #B6A9D6; }

/* ===== Breakpoint refinements ===== */
@media (min-width: 1024px) {
  .section-inner, .footer-nav, .site-footer address, .site-footer p { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1280px) {
  .section-inner { padding-left: 0; padding-right: 0; }
}

/* 모바일: 가로 스크롤 대신 행을 쌓아 화면에 한번에 표시 */
@media (max-width: 639px) {
  .table-scroll { overflow-x: visible; }
  table { min-width: 0; border: 1px solid var(--line); }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { border-bottom: 2px solid var(--line); }
  tr:last-child { border-bottom: none; }
  tr th[scope="row"] { background: var(--violet); color: #fff; font-weight: 800; border: none; border-bottom: 1px solid var(--line); }
  td { border: none; border-bottom: 1px solid var(--line); padding-left: 46%; position: relative; min-height: 44px; display: flex; align-items: center; }
  tr td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 40%;
    font-weight: 800;
    color: var(--violet);
  }
}
