:root {
  --color-primary: #171717;
  --color-secondary: #404040;
  --color-accent: #D4AF37;
  --color-neutral-dark: #171717;
  --color-neutral-light: #FFFFFF;
  --color-bg: #FAFAF7;
  --color-line: rgba(23,23,23,0.12);
  --font-heading: 'Gowun Batang', serif;
  --font-body: 'Noto Sans KR', sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--color-primary); background: var(--color-bg); line-height: 1.65; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

/* === Layout: sidebar + main === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.sidebar-nav { flex: 1; text-align: right; }
.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--color-line);
  padding: .5rem .9rem;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--color-primary);
  border-radius: 2px;
}
.nav-list {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding-top: 1rem;
  width: 100%;
  text-align: left;
}
.nav-list.is-open { display: flex; }
.nav-list a {
  display: block;
  padding: .6rem .25rem;
  border-bottom: 1px solid var(--color-line);
  font-size: .98rem;
  letter-spacing: .01em;
}
.nav-list a[aria-current="page"] { color: var(--color-accent); }
.sidebar-foot {
  display: none;
  margin: 0;
  font-size: .78rem;
  color: var(--color-secondary);
}

.main { padding: 2.5rem 1.25rem 0; max-width: 1080px; margin: 0 auto; }

/* === Hero === */
.hero { padding: 1rem 0 2.5rem; border-bottom: 1px solid var(--color-line); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero h1 { max-width: 22ch; }
.lede {
  max-width: 55ch;
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-top: 1rem;
}
.hero-cta { margin-top: 1.5rem; }
.hero-figure { margin: 2.5rem 0 0; }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }

/* === Sections === */
.section { padding: 3.5rem 0; border-bottom: 1px solid var(--color-line); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head p { color: var(--color-secondary); font-size: 1.02rem; }
.body-block { max-width: 68ch; font-size: 1.02rem; color: var(--color-secondary); }

.split { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.split-text p { color: var(--color-secondary); max-width: 55ch; }
.split-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }

/* === Grid cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-line);
  padding: 1.75rem;
  border-radius: 4px;
}
.card h3 { margin: .75rem 0 .5rem; }
.card p { color: var(--color-secondary); font-size: .96rem; margin: 0; }
.icon { color: var(--color-accent); }

/* === Stats === */
.stat { border-left: 2px solid var(--color-accent); padding-left: 1.25rem; }
.stat-number { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-primary); font-weight: 700; margin-bottom: .5rem; }
.stat p { color: var(--color-secondary); font-size: .95rem; margin: 0; }

/* === Quote === */
.quote-section { padding: 4rem 0; text-align: center; }
.pull-quote {
  max-width: 60ch;
  margin: 0 auto;
  font-family: var(--font-heading);
  border: none;
  padding: 0;
}
.pull-quote p {
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.pull-quote cite { font-family: var(--font-body); font-style: normal; font-size: .9rem; color: var(--color-secondary); letter-spacing: .05em; }

/* === CTA band === */
.cta-band {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 3.5rem 1.5rem;
  text-align: center;
  margin: 3rem 0 0;
  border-radius: 4px;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 55ch; margin-left: auto; margin-right: auto; }
.contact-line { font-size: .95rem; letter-spacing: .02em; }
.contact-band .contact-line { color: rgba(255,255,255,0.9); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--color-primary); color: var(--color-neutral-light); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-neutral-light); }
.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-dark); border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-neutral-light); color: var(--color-primary); }

/* === Form === */
.contact-form { max-width: 640px; }
.form-row { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.form-row label { font-size: .9rem; margin-bottom: .4rem; color: var(--color-secondary); font-weight: 500; }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .85rem;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--color-secondary); margin-bottom: 1.5rem; line-height: 1.5; }
.form-consent input { margin-top: .25rem; flex: 0 0 auto; }
.form-consent a { color: var(--color-primary); text-decoration: underline; }

/* === FAQ === */
.faq details {
  border-bottom: 1px solid var(--color-line);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding-right: 1rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--color-accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--color-secondary); }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  color: var(--color-secondary);
  font-size: .92rem;
}
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
.foot-brand { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-primary); margin-bottom: .5rem; font-weight: 700; }
.foot-links li, .foot-legal li { margin-bottom: .5rem; }
.foot-links a, .foot-legal a { color: var(--color-secondary); }
.foot-links a:hover, .foot-legal a:hover { color: var(--color-accent); }
.foot-legal { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-line); font-size: .85rem; }
.copyright { border-top: 1px solid var(--color-line); padding-top: 1.5rem; margin: 0; font-size: .82rem; }

/* === 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: 4px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  font-family: var(--font-body);
  font-size: .88rem;
  padding: .55rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: var(--color-neutral-light);
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-neutral-dark); font-weight: 500; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: .5rem;
  padding: .5rem 1rem;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .85rem;
}

/* === Responsive: tablet === */
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.reverse .split-figure { order: -1; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 3rem; }
  .main { padding: 3rem 2rem 0; }
}

/* === Responsive: desktop with sidebar === */
@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: 240px 1fr; align-items: start; }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2.5rem 1.75rem;
    border-bottom: none;
    border-right: 1px solid var(--color-line);
    gap: 0;
  }
  .sidebar-nav { text-align: left; width: 100%; margin-top: 2.5rem; flex: 1; }
  .nav-toggle { display: none; }
  .nav-list { display: flex !important; padding-top: 0; gap: 0; }
  .nav-list a { border-bottom: none; padding: .55rem 0; font-size: 1rem; }
  .sidebar-foot { display: block; margin-top: auto; }
  .main { padding: 3rem 3rem 0; max-width: none; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 2rem 0 3.5rem; }
  .hero-figure { margin-top: 3rem; }
  .cta-band { padding: 4.5rem 2rem; }
}

@media (min-width: 1200px) {
  .layout { grid-template-columns: 280px 1fr; }
  .main { padding: 4rem 4rem 0; max-width: 1200px; }
}
