@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.css");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap");

:root {
  --c-primary: #075985;
  --c-second: #0EA5E9;
  --c-bg: #F1F5F9;
  --c-text: #0C1524;
  --c-accent: #FACC15;
  --radius: 0px;
  --maxw: 1280px;
  --leading: 1.65;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Nanum Gothic", "Noto Sans KR", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: var(--leading);
  font-display: swap;
}

h1, h2, .brandmark span {
  font-family: "SUIT Variable", "SUIT", "Nanum Gothic", sans-serif;
}

a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 300;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- Fixed top header with shadow ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 89, 133, 0.12);
  z-index: 200;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-primary);
  margin-right: auto;
}
.brandmark span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--c-primary);
}
.header-nav {
  display: flex;
  gap: 20px;
}
.header-nav a {
  text-decoration: none;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover,
.header-nav a:focus-visible {
  border-bottom-color: var(--c-second);
  color: var(--c-primary);
}
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(7, 89, 133, 0.22);
}
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--c-primary);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Main ---------- */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 32px 80px;
}

.hero {
  padding-bottom: 36px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-second);
  font-weight: 800;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 18px;
  color: var(--c-primary);
}
.hero-sub {
  font-size: 1.05rem;
  color: #334155;
  max-width: 680px;
  margin: 0 0 40px;
}

/* Hero: 기준 등급 배지 3단 (staircase badges) */
.grade-stairs {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}
.grade-step {
  background: #fff;
  border: 1px solid #DCEEF7;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(7, 89, 133, 0.10);
  padding: 18px 20px;
  width: 240px;
}
.step-1 { margin-top: 0; }
.step-2 { margin-top: 28px; }
.step-3 { margin-top: 56px; }
.step-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--c-primary);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.step-2 .step-badge { background: var(--c-second); }
.step-3 .step-badge { background: #0C4A6E; }
.grade-step p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
}

/* CTA group */
.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: 0 8px 20px rgba(7, 89, 133, 0.16);
}
.cta--call {
  background: var(--c-primary);
  color: #fff;
}
.cta--sms {
  background: #fff;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
  box-shadow: none;
}
.cta:hover { transform: translateY(-2px); }

/* ---------- Staircase content sections ---------- */
section.content-block {
  padding: 40px 36px;
  border-top: 1px solid #D9E7F0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(7, 89, 133, 0.08);
  margin-bottom: 22px;
}
section.content-block:nth-of-type(1) { margin-left: 0; }
section.content-block:nth-of-type(2) { margin-left: 28px; }
section.content-block:nth-of-type(3) { margin-left: 56px; }
section.content-block:nth-of-type(4) { margin-left: 28px; }
section.content-block:nth-of-type(5) { margin-left: 0; }

.content-block .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-second);
  font-weight: 800;
  margin: 0 0 10px;
}
.content-block h2 {
  font-size: 1.5rem;
  color: var(--c-primary);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.content-block p { margin: 0 0 14px; color: #1e293b; }
.content-block ul { margin: 0 0 14px; padding-left: 20px; }
.content-block li { margin-bottom: 8px; color: #1e293b; }

table.grade-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: 0.9rem;
}
table.grade-table th, table.grade-table td {
  border: 1px solid #D9E7F0;
  padding: 12px 14px;
  text-align: left;
}
table.grade-table th {
  background: #E0F2FE;
  color: var(--c-primary);
}

/* Photo row */
.photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 8px 0 32px;
}
.photo-row figure { margin: 0; }
.photo-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(7, 89, 133, 0.12);
}
.photo-row figcaption {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 8px;
}

/* related links */
.related-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
}
.related-links a {
  text-decoration: none;
  background: #F0F9FF;
  border: 1px solid #DCEEF7;
  color: var(--c-primary);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
}
.related-links a:hover { background: #E0F2FE; }

/* Footer */
.site-footer {
  border-top: 1px solid #D9E7F0;
  padding: 40px 32px 60px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-inner { max-width: 640px; }
.footer-brand {
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 12px;
}
.footer-biz {
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 6px;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #475569;
}
.footer-biz dt { font-weight: 600; color: #64748B; }
.footer-biz dd { margin: 0; }
.footer-biz a { color: var(--c-primary); text-decoration: underline; }
.footer-copy { font-size: 0.78rem; color: #94A3B8; margin: 0; }

/* Mobile overlay nav */
.mobile-overlay { display: none; }

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-call span { display: none; }
  .hamburger-btn { display: inline-flex; }
  .mobile-overlay.open {
    display: flex;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--c-primary);
    z-index: 300;
    flex-direction: column;
    padding: 28px 24px;
    gap: 6px;
  }
  .mobile-overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .mobile-overlay .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-bottom: 12px;
    display: none;
  }
  .grade-stairs { flex-wrap: wrap; }
  section.content-block:nth-of-type(1),
  section.content-block:nth-of-type(2),
  section.content-block:nth-of-type(3),
  section.content-block:nth-of-type(4),
  section.content-block:nth-of-type(5) { margin-left: 0; }
}

@media (max-width: 768px) {
  .photo-row { grid-template-columns: 1fr 1fr; }
  .grade-stairs { flex-direction: column; }
  .grade-step { width: 100%; margin-top: 0 !important; }
  .footer-biz { grid-template-columns: 90px 1fr; }
}

@media (max-width: 480px) {
  .main { padding-left: 20px; padding-right: 20px; }
  section.content-block { padding: 28px 20px; }
  .photo-row { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; }
  .cta { justify-content: center; }
  .header-inner { padding: 0 16px; gap: 12px; }
}

/* Scroll reveal (single animation type for this page) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
