/* 이전교습소철거 — 기존공간 vs 신규공간 비교 concept
   Primary #0B4F6C / Accent #01BAEF */

:root {
  --primary: #0B4F6C;
  --primary-dark: #06344A;
  --accent: #01BAEF;
  --bg: #F2F8FA;
  --card-bg: #FFFFFF;
  --card-border: #D6E7EC;
  --text-body: #1E3946;
  --text-muted: #4F6C78;
  --old-tint: #EEF2F4;
  --old-border: #C7D2D6;
  --new-tint: #E4F8FE;
  --new-border: #9FE3F7;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-display: swap;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); }
a:hover, a:focus { color: var(--accent); }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--primary);
  border-bottom: 4px solid var(--accent);
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #FFFFFF;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  text-decoration: none;
  color: #D9F1FB;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #FFFFFF;
  background: rgba(1, 186, 239, 0.25);
}

/* ---------- Layout ---------- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-panel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 36px 30px;
  border-left: 6px solid var(--accent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  color: #D9F1FB;
  font-size: 1.02rem;
  margin: 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 6px 18px rgba(11, 79, 108, 0.08);
}

.hero-img-card { padding: 12px; }

h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--new-border);
}

h3 {
  margin: 22px 0 8px;
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 500;
}

.card h3:first-of-type { margin-top: 4px; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---------- Compare 2-column ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.compare-col {
  border-radius: 12px;
  padding: 20px 18px;
  border: 2px solid transparent;
}

.compare-old {
  background: var(--old-tint);
  border-color: var(--old-border);
}

.compare-new {
  background: var(--new-tint);
  border-color: var(--new-border);
}

.compare-col h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compare-col h3 span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13l4 4L19 7' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-grid figure { margin: 0; }

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

/* ---------- CTA ---------- */
.cta-card {
  text-align: center;
  background: var(--primary);
  border-color: var(--primary);
}
.cta-card h2 {
  color: #FFFFFF;
  border-bottom: none;
  padding-bottom: 0;
}
.cta-card p {
  color: #D9F1FB;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-card a:not(.btn-cta) { color: #9FE3F7; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  margin-top: 16px;
  padding: 10px 30px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: filter 0.15s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  filter: brightness(1.1);
  color: var(--primary-dark);
}

/* ---------- Footer ---------- */
footer {
  background: var(--primary-dark);
  color: #B9D6DF;
  padding: 32px 20px 40px;
}

footer nav {
  max-width: 960px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
}

footer nav a {
  color: #B9D6DF;
  text-decoration: none;
  font-size: 0.88rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

footer nav a:hover,
footer nav a:focus { color: #FFFFFF; }

footer address {
  max-width: 960px;
  margin: 0 auto;
  font-style: normal;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #8FB3BE;
  border-top: 1px solid #1D5A73;
  padding-top: 18px;
}

footer address a { color: #01BAEF; }

footer p {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: #6E96A2;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1024px) {
  main { max-width: 760px; }
  .header-inner, footer nav, footer address { max-width: 760px; }
}

@media (max-width: 768px) {
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main { padding: 18px 14px 48px; }
  .card { padding: 20px 16px; }
  .hero-panel { padding: 26px 20px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .gallery-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 10px 20px 16px;
    z-index: 20;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: center; }
}

@media (min-width: 1280px) {
  main, .header-inner, footer nav, footer address { max-width: 1040px; }
}
