:root {
  --color-primary: #64748B;
  --color-secondary: #94A3B8;
  --color-accent: #F97316;
  --color-neutral-dark: #334155;
  --color-neutral-light: #F8FAFC;
  --font-heading: 'Noto Serif KR', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --radius: 12px;
  --max-w: 1120px;
  --max-w-narrow: 720px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
blockquote { margin: 0; }

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

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: var(--max-w-narrow); }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(51, 65, 85, 0.08);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem; gap: 1rem;
}
.logo { display: inline-block; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: none; border: 0; cursor: pointer;
  color: var(--color-neutral-dark); padding: .5rem;
}
.primary-nav { display: none; }
.primary-nav.is-open { display: block; width: 100%; }
.primary-nav ul {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-direction: column; gap: .75rem;
}
.primary-nav a {
  display: block; padding: .5rem 0;
  color: var(--color-neutral-dark); text-decoration: none;
  font-weight: 500;
}
.primary-nav a[aria-current="page"] { color: var(--color-accent); }

@media (min-width: 768px) {
  .site-header__inner { flex-wrap: nowrap; }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
  .primary-nav ul { flex-direction: row; gap: 1.75rem; margin: 0; }
}

/* === Hero (centered) === */
.hero {
  text-align: center;
  padding-block: 3rem 2rem;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--color-secondary);
  margin: 0 0 1rem;
}
.hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  margin-bottom: 1.25rem;
}
.hero .lede {
  max-width: 48ch;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}
.hero__cta { margin-bottom: 2.5rem; }
.hero__figure { width: 100%; margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .hero { padding-block: 5rem 3rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}
.btn--primary {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
}
.btn--primary:hover { background: var(--color-primary); color: var(--color-neutral-light); }
.btn--accent {
  background: var(--color-accent);
  color: var(--color-neutral-light);
}
.btn--accent:hover { background: #E86308; color: var(--color-neutral-light); }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.section__head p { color: var(--color-primary); margin: 0; }

.intro { text-align: center; }
.intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.intro p { color: var(--color-primary); font-size: 1.05rem; }
.intro--alt { background: rgba(148, 163, 184, 0.08); border-radius: var(--radius); }

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* === Grid + Cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid rgba(51, 65, 85, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card__icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--color-primary); margin: 0; }
.card__more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 500;
}
a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(51, 65, 85, .35);
  border-color: var(--color-secondary);
}

/* === Testimonial === */
.testimonial { text-align: center; }
.testimonial blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  text-align: left;
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--color-neutral-dark);
  line-height: 1.55;
}
.testimonial cite {
  color: var(--color-secondary);
  font-style: normal;
  font-size: .95rem;
}

/* === CTA band === */
.cta-band {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  text-align: center;
  padding-block: 4rem;
}
.cta-band h2 { color: var(--color-neutral-light); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.cta-band p { color: rgba(248, 250, 252, 0.85); }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin-inline: auto;
  padding: 2rem 1.25rem 3rem;
}
.article-detail__head { margin-bottom: 1.5rem; }
.article-detail h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-detail__sub {
  font-size: 1.15rem;
  color: var(--color-primary);
}
.article-detail__figure {
  margin: 2rem 0;
}
.article-detail__figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}
.article-detail h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}
.article-detail p {
  font-size: 1.075rem;
  line-height: 1.8;
  margin-block: 1.25rem;
  color: var(--color-neutral-dark);
}
.article-detail__foot { margin-top: 3rem; }
.back-link {
  display: inline-block;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--color-neutral-dark); }

/* === Form === */
.form-section .section__head { text-align: left; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-size: .95rem; font-weight: 500; color: var(--color-neutral-dark); }
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(51, 65, 85, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem;
  color: var(--color-primary);
  line-height: 1.5;
}
.form-consent input { margin-top: .3rem; flex-shrink: 0; }
.form-consent a { color: var(--color-neutral-dark); }
.contact-form button[type="submit"] { align-self: flex-start; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq details {
  background: #fff;
  border: 1px solid rgba(51, 65, 85, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.faq summary {
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--color-neutral-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--color-accent);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: .75rem;
  color: var(--color-primary);
}

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(248, 250, 252, .85);
  padding-block: 3rem 1.5rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: var(--color-accent); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; }
}
.logo--footer img { height: 60px; }
@media (min-width: 768px) { .logo--footer img { height: 72px; } }
.footer__tagline { margin-top: .75rem; color: rgba(248, 250, 252, .7); }
.footer__title {
  font-family: var(--font-body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(248, 250, 252, .6);
  margin-bottom: 1rem;
}
.site-footer nav ul,
.footer__legal {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .5rem;
}
.footer__legal { margin-top: 1rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(248, 250, 252, .1);
  margin-top: 2.5rem; padding-top: 1.25rem;
  color: rgba(248, 250, 252, .55);
  font-size: .9rem;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
  max-width: 560px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.cookie-banner button {
  font-family: var(--font-body);
  border: 1px solid rgba(248, 250, 252, .25);
  background: transparent;
  color: var(--color-neutral-light);
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
}
.cookie-banner [data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .9rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: .5rem;
}

/* === Form success (unused on this multipage site, safe fallback) === */
.form-success { color: var(--color-accent); font-weight: 500; }
