/* Design tokens */
:root {
  --color-bg: #FAFAFA;
  --color-bg-sub: #E5E9F0;
  --color-accent: #2B3A67;
  --color-accent-sub: #FF6B00;
  --color-text: #1A1C23;
  --header-height: 72px;
  --radius: 12px;
  --side-padding: 24px;
  --section-gap: 50px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; line-height: 1.35; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--side-padding); }
.section { padding-block: var(--section-gap); }
main > .section + .section { margin-top: 0; }
.page-offset { padding-top: var(--header-height); }
.label { display: block; color: var(--color-accent); font-weight: 700; letter-spacing: .05em; font-size: 14px; margin-bottom: 8px; }
.section-title { font-weight: 700; }
.section-subtitle { font-weight: 400; color: #4a4d59; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons */
.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 8px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--color-accent-sub); color: #fff; }
.btn-primary:hover { background: #e05f00; }
.btn-outline { background: transparent; border: 2px solid var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-nav-cta { background: #fff; border: 1.5px solid var(--color-bg-sub); color: var(--color-accent); }
.btn-nav-cta:hover { background: var(--color-bg-sub); }
.btn-nav-cta .icon { color: var(--color-accent); }

/* Cards */
.card { background: #fff; border-radius: var(--radius); padding: 24px; }
.card .icon, .checklist-item .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 10px; box-sizing: content-box;
  background: var(--color-bg-sub); border-radius: 50%;
  color: var(--color-accent); margin-bottom: 16px; flex-shrink: 0;
}
.checklist-item .icon { margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
.card-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-text { padding-top: 16px; }

/* Clickable service card (image + text link tile on the homepage) */
a.card-link {
  display: block; padding: 0; text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(26, 28, 35, .08);
  transition: box-shadow .25s ease, transform .25s ease;
}
a.card-link:hover, a.card-link:focus-within { box-shadow: 0 10px 24px rgba(26, 28, 35, .14); transform: translateY(-4px); }
a.card-link .card-text { padding: 24px; }
a.card-link .card-text::after {
  content: "자세히 보기 →";
  display: block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--color-accent);
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: var(--color-bg); border-bottom-color: var(--color-bg-sub); }
.header-inner {
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--side-padding);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-text { font-weight: 700; font-size: 18px; color: var(--color-accent); }
.pc-nav { display: none; }
.pc-nav a { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: var(--color-text); }
.site-header:not(.scrolled) .pc-nav a:not(.btn),
.site-header:not(.scrolled) .logo-text { color: #fff; }
@media (min-width: 1024px) {
  .pc-nav { display: flex; align-items: center; gap: 32px; }
  .hamburger { display: none; }
}
.hamburger {
  width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.hamburger span { width: 24px; height: 2px; background: var(--color-text); }
.site-header:not(.scrolled) .hamburger span { background: #fff; }
.mobile-menu { max-height: 0; overflow: hidden; background: var(--color-bg); transition: max-height .3s ease; }
.mobile-menu.is-open { max-height: 320px; border-top: 1px solid var(--color-bg-sub); }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 24px;
  text-decoration: none; color: var(--color-text); font-weight: 600;
}
.mobile-menu .icon { color: var(--color-accent); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,28,35,.6), rgba(26,28,35,.4)); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 64px; }
.hero-content h1 { color: #fff; }
.hero-content p { font-size: 18px; max-width: 640px; }
.hero-content .btn-outline { border-color: #fff; color: #fff; }
.hero-content .btn-outline:hover { background: #fff; color: var(--color-accent); }
.hero-content .btn-primary { background: #fff; color: var(--color-accent); }
.hero-content .btn-primary:hover { background: var(--color-bg-sub); }

/* Fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* Slider (mobile horizontal swipe) */
.slider-wrap { position: relative; }
.slider {
  display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px;
}
.slider::-webkit-scrollbar { display: none; }
.slider .slide { flex: 0 0 100%; scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(26, 28, 35, .18); padding: 0; border: none; }
.dot.active { background: var(--color-accent); }
@media (min-width: 768px) {
  .slider { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); overflow: visible; }
  .slider .slide { flex: initial; }
  .dots { display: none; }
}

/* Grids */
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-6 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* Case / portfolio cards (hover overlay, title on hover) */
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.case-card img { width: 100%; height: 100%; object-fit: cover; }
.case-card .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(26,28,35,.8), rgba(26,28,35,0) 65%);
  opacity: 0; transition: opacity .3s ease;
}
.case-card .overlay h3 { color: #fff; margin: 0; transform: translateY(16px); transition: transform .3s ease; }
.case-card:hover .overlay, .case-card:focus-within .overlay { opacity: 1; }
.case-card:hover .overlay h3, .case-card:focus-within .overlay h3 { transform: translateY(0); }

/* Comparison cards */
.compare-card { border-radius: 16px; padding: 32px; }
.compare-card h3 { font-size: 20px; margin-bottom: 20px; }
.compare-card p { margin: 0; }
.compare-card ul { list-style: none; margin: 0; padding: 0; }
.compare-card li { position: relative; padding-left: 20px; margin-bottom: 14px; }
.compare-card li:last-child { margin-bottom: 0; }
.compare-card li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
}
.compare-bad { background: #fff; border: 1px solid var(--color-bg-sub); box-shadow: 0 1px 3px rgba(26, 28, 35, .05); }
.compare-bad li::before { background: #9aa3b5; }
.compare-good { background: var(--color-accent); color: #fff; box-shadow: 0 16px 32px rgba(43, 58, 103, .22); }
.compare-good h3 { color: #fff; }
.compare-good li::before { background: var(--color-accent-sub); }

/* Fullscreen video */
.video-section { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.video-section video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .video-section { aspect-ratio: auto; height: 100vh; } }

/* FAQ accordion */
.faq-item { background: #fff; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 16px 20px; font-weight: 700; font-size: 16px; color: var(--color-text);
}
.faq-question .plus { flex-shrink: 0; width: 14px; height: 14px; position: relative; }
.faq-question .plus::before, .faq-question .plus::after {
  content: ''; position: absolute; background: var(--color-accent); border-radius: 2px;
}
.faq-question .plus::before { width: 14px; height: 2px; top: 6px; left: 0; }
.faq-question .plus::after { width: 2px; height: 14px; top: 0; left: 6px; transition: transform .25s ease; }
.faq-item.is-open .faq-question .plus::after { transform: rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 20px 20px; margin: 0; color: #4a4d59; }

/* Pre-footer CTA */
.pre-footer-cta { background: var(--color-accent); color: #fff; text-align: center; padding-block: var(--section-gap); }
.pre-footer-cta h2 { color: #fff; }
.pre-footer-cta .subtitle { color: #cfd6ea; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.pre-footer-cta .cta-buttons { gap: 16px; justify-content: center; margin-top: 24px; }
.pre-footer-cta .btn-outline { border-color: #fff; color: #fff; }
.pre-footer-cta .btn-outline:hover { background: #fff; color: var(--color-accent); }

/* Footer link row */
.footer-links { background: var(--color-bg); }
.footer-links .container { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding-block: 20px; }
.footer-links a { text-decoration: none; color: #4a4d59; font-size: 14px; }
.footer-links a:hover { color: var(--color-accent); }

/* Footer */
.site-footer { background: var(--color-bg-sub); }
.footer-inner { padding-block: 32px; display: flex; flex-direction: column; gap: 20px; }
.footer-info p { margin: 0 0 6px; font-size: 14px; color: #4a4d59; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--color-text); }
.footer-nav .icon { width: 20px; height: 20px; color: var(--color-accent); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Checklist */
.checklist-item { display: flex; gap: 16px; align-items: flex-start; }

/* Contact page */
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.contact-info-card dt { font-weight: 700; margin-top: 16px; }
.contact-info-card dt:first-child { margin-top: 0; }
.contact-info-card dd { margin: 4px 0 0; color: #4a4d59; }

/* Sub-page (service/case/contact) header */
.page-header { padding-top: calc(var(--header-height) + 40px); padding-bottom: 40px; background: var(--color-accent); color: #fff; }
.page-header h1 { color: #fff; }
.page-header .intro { max-width: 720px; color: #cfd6ea; }

/* Numbered process steps */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Simple data table */
.table-simple { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table-simple th, .table-simple td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-bg-sub); }
.table-simple th { color: var(--color-accent); font-weight: 700; }

/* Sitemap page */
.sitemap-group h2 { margin-top: 0; }
.sitemap-group ul { list-style: none; padding: 0; margin: 0 0 32px; }
.sitemap-group li { border-bottom: 1px solid var(--color-bg-sub); }
.sitemap-group a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-text); font-weight: 600; }
.sitemap-group a:hover { color: var(--color-accent); }
